Class StandardMergeController

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.StandardMergeController
All Implemented Interfaces:
IMergeController

public class StandardMergeController extends Object implements IMergeController
Default merge controller used when merging IR states.

Matching and mismatching variables are accepted, while variables present in only one side of the merge are rejected.

  • Constructor Details

    • StandardMergeController

      public StandardMergeController()
  • Method Details

    • onMatch

      public void onMatch(int varid)
      Specified by:
      onMatch in interface IMergeController
      Parameters:
      varid - variable id
    • onMismatch

      public boolean onMismatch(int varid)
      Specified by:
      onMismatch in interface IMergeController
      Parameters:
      varid - variable id
      Returns:
      true indicates the mismatched input variable should be removed
    • onOutputOnly

      public boolean onOutputOnly(int varid)
      Specified by:
      onOutputOnly in interface IMergeController
      Parameters:
      varid - variable id
      Returns:
      true indicates the missing variable should be added to input
    • onInputOnly

      public boolean onInputOnly(int varid)
      Specified by:
      onInputOnly in interface IMergeController
      Parameters:
      varid - variable id
      Returns:
      true indicates the missing variable should be removed from input