Class SharedReturnAnalysisCmd

  • All Implemented Interfaces:
    Command

    public class SharedReturnAnalysisCmd
    extends BackgroundCommand
    Identifies functions to which Jump references exist and converts the associated branching instruction flow to a CALL-RETURN
    • Constructor Detail

      • SharedReturnAnalysisCmd

        public SharedReturnAnalysisCmd​(AddressSetView set,
                                       boolean assumeContiguousFunctions,
                                       boolean considerConditionalBranches)
        Constructor
        Parameters:
        set - set of addresses over which destination functions will be examined for Jump reference to those functions.
        assumeContiguousFunctions - if true it will be assumed that any unconditional jump over another function will trigger a call-return override and the creation of
        considerConditionalBranches - if true conditional jumps can also be considered for jumping to another function as a shared return. a function at the destination.
    • Method Detail

      • applyTo

        public boolean applyTo​(DomainObject obj,
                               TaskMonitor monitor)
        Description copied from class: BackgroundCommand
        Method called when this command is to apply changes to the given domain object. A monitor is provided to display status information about the command as it executes in the background.
        Specified by:
        applyTo in class BackgroundCommand
        Parameters:
        obj - domain object that will be affected by the command
        monitor - monitor to show progress of the command
        Returns:
        true if the command applied successfully