Add a check for analysis modules run (#1064)

pull/1071/head
Nikhil Parasaram 6 years ago committed by GitHub
parent d51d8fd871
commit 85c599d832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/analysis/symbolic.py
  2. 2
      mythril/mythril/mythril_analyzer.py

@ -42,6 +42,7 @@ class SymExecWrapper:
modules=(),
compulsory_statespace=True,
enable_iprof=False,
run_analysis_modules=True,
):
"""
@ -90,6 +91,7 @@ class SymExecWrapper:
plugin_loader.load(PluginFactory.build_mutation_pruner_plugin())
plugin_loader.load(PluginFactory.build_instruction_coverage_plugin())
if run_analysis_modules:
self.laser.register_hooks(
hook_type="pre",
hook_dict=get_detection_module_hooks(modules, hook_type="pre"),

@ -75,6 +75,7 @@ class MythrilAnalyzer:
execution_timeout=self.execution_timeout,
create_timeout=self.create_timeout,
enable_iprof=self.enable_iprof,
run_analysis_modules=False,
)
return get_serializable_statespace(sym)
@ -108,6 +109,7 @@ class MythrilAnalyzer:
transaction_count=transaction_count,
create_timeout=self.create_timeout,
enable_iprof=self.enable_iprof,
run_analysis_modules=False,
)
return generate_graph(sym, physics=enable_physics, phrackify=phrackify)

Loading…
Cancel
Save