Skip to content

Commit

Permalink
Removed limit options
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhartmann committed Oct 9, 2023
1 parent e007879 commit cdfe235
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions decompiler/pipeline/commons/expressionpropagationcommons.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ class ExpressionPropagationBase(PipelineStage, ABC):
name = "expression-propagation-base"

def __init__(self):
self._limit: Optional[int] = None
self._limits: Dict[Instruction, int]
self._use_map: UseMap
self._def_map: DefMap
self._pointers_info: Optional[Pointers] = None
Expand All @@ -43,7 +41,6 @@ def __init__(self):

def run(self, task: DecompilerTask):
"""Execute the expression propagation on the current ControlFlowGraph."""
self._parse_options(task)
iteration = 0
# execute until there are no more changes
while self.perform(task.graph, iteration):
Expand Down Expand Up @@ -89,15 +86,6 @@ def _definition_can_be_propagated_into_target(self, definition: Assignment, targ
"""
pass

def _parse_options(self, task: DecompilerTask):
"""Parse the config options for this pipeline stage."""
self._limit = task.options.getint(f"{self.name}.maximum_instruction_complexity")
self._limits = {
Branch: min(self._limit, task.options.getint(f"{self.name}.maximum_branch_complexity")),
Call: min(self._limit, task.options.getint(f"{self.name}.maximum_call_complexity")),
Assignment: min(self._limit, task.options.getint(f"{self.name}.maximum_assignment_complexity")),
}

def _initialize_maps(self, cfg: ControlFlowGraph) -> None:
"""
Fills use and def maps.
Expand Down

0 comments on commit cdfe235

Please sign in to comment.