|
|
|
@ -41,6 +41,7 @@ class MythrilAnalyzer: |
|
|
|
|
enable_iprof: bool = False, |
|
|
|
|
disable_dependency_pruning: bool = False, |
|
|
|
|
solver_timeout: Optional[int] = None, |
|
|
|
|
enable_coverage_strategy: bool = False, |
|
|
|
|
): |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
@ -61,6 +62,7 @@ class MythrilAnalyzer: |
|
|
|
|
self.create_timeout = create_timeout |
|
|
|
|
self.enable_iprof = enable_iprof |
|
|
|
|
self.disable_dependency_pruning = disable_dependency_pruning |
|
|
|
|
self.enable_coverage_strategy = enable_coverage_strategy |
|
|
|
|
|
|
|
|
|
analysis_args.set_loop_bound(loop_bound) |
|
|
|
|
analysis_args.set_solver_timeout(solver_timeout) |
|
|
|
@ -86,6 +88,7 @@ class MythrilAnalyzer: |
|
|
|
|
enable_iprof=self.enable_iprof, |
|
|
|
|
disable_dependency_pruning=self.disable_dependency_pruning, |
|
|
|
|
run_analysis_modules=False, |
|
|
|
|
enable_coverage_strategy=self.enable_coverage_strategy, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
return get_serializable_statespace(sym) |
|
|
|
@ -121,6 +124,7 @@ class MythrilAnalyzer: |
|
|
|
|
enable_iprof=self.enable_iprof, |
|
|
|
|
disable_dependency_pruning=self.disable_dependency_pruning, |
|
|
|
|
run_analysis_modules=False, |
|
|
|
|
enable_coverage_strategy=self.enable_coverage_strategy, |
|
|
|
|
) |
|
|
|
|
return generate_graph(sym, physics=enable_physics, phrackify=phrackify) |
|
|
|
|
|
|
|
|
@ -158,6 +162,7 @@ class MythrilAnalyzer: |
|
|
|
|
compulsory_statespace=False, |
|
|
|
|
enable_iprof=self.enable_iprof, |
|
|
|
|
disable_dependency_pruning=self.disable_dependency_pruning, |
|
|
|
|
enable_coverage_strategy=self.enable_coverage_strategy, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
issues = fire_lasers(sym, modules) |
|
|
|
|