implement dependency pruner builder

pull/1353/head
Joran Honig 5 years ago
parent a0d38e6e7d
commit f78186ef36
  1. 9
      mythril/laser/plugin/plugins/dependency_pruner.py

@ -1,5 +1,5 @@
from mythril.laser.ethereum.svm import LaserEVM
from mythril.laser.plugin import LaserPlugin
from mythril.laser.plugin import LaserPlugin, PluginBuilder
from mythril.laser.plugin.signals import PluginSkipState
from mythril.laser.plugin.plugins.plugin_annotations import (
DependencyAnnotation,
@ -69,6 +69,13 @@ def get_ws_dependency_annotation(state: GlobalState) -> WSDependencyAnnotation:
return annotation
class DependencyPrunerBuilder(PluginBuilder):
plugin_name = "dependency-pruner"
def __call__(self, *args, **kwargs):
return DependencyPruner()
class DependencyPruner(LaserPlugin):
"""Dependency Pruner Plugin

Loading…
Cancel
Save