Ran black on files changed

cli-code-coverage
e-ngo 5 years ago
parent c8c97f7979
commit 2eb9d9f6c5
  1. 4
      mythril/interfaces/cli.py
  2. 11
      mythril/laser/ethereum/svm.py

@ -392,7 +392,9 @@ def create_analyzer_parser(analyzer_parser: ArgumentParser):
help="Deactivate dependency-based pruning", help="Deactivate dependency-based pruning",
) )
options.add_argument( options.add_argument(
"--enable-coverage-strategy", action="store_true", help="enable coverage based search strategy" "--enable-coverage-strategy",
action="store_true",
help="enable coverage based search strategy",
) )

@ -104,12 +104,17 @@ class LaserEVM:
self.iprof = InstructionProfiler() if enable_iprof else None self.iprof = InstructionProfiler() if enable_iprof else None
if enable_coverage_strategy: if enable_coverage_strategy:
from mythril.laser.ethereum.plugins.implementations.coverage.coverage_plugin import InstructionCoveragePlugin from mythril.laser.ethereum.plugins.implementations.coverage.coverage_plugin import (
from mythril.laser.ethereum.plugins.implementations.coverage.coverage_strategy import CoverageStrategy InstructionCoveragePlugin,
)
from mythril.laser.ethereum.plugins.implementations.coverage.coverage_strategy import (
CoverageStrategy,
)
instruction = InstructionCoveragePlugin() instruction = InstructionCoveragePlugin()
instruction.initialize(self) instruction.initialize(self)
self.strategy = CoverageStrategy(self.strategy, instruction) self.strategy = CoverageStrategy(self.strategy, instruction)
log.info("LASER EVM initialized with dynamic loader: " + str(dynamic_loader)) log.info("LASER EVM initialized with dynamic loader: " + str(dynamic_loader))
def extend_strategy(self, extension: ABCMeta, *args) -> None: def extend_strategy(self, extension: ABCMeta, *args) -> None:

Loading…
Cancel
Save