Package ghidra.util.state
Class ResultsState
java.lang.Object
ghidra.util.state.ResultsState
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionResultsState(Address entryPt, FunctionAnalyzer analyzer, Program program, boolean maintainInstructionResults, TaskMonitor monitor) Constructor from a function entry point.ResultsState(LinkedList<SequenceNumber> flowList, FunctionAnalyzer analyzer, ContextState entryState, boolean maintainInstructionResults, TaskMonitor monitor) Constructor for replaying over a specified set of context states indicated via a flowList.
- 
Method SummaryModifier and TypeMethodDescriptionvoidSet an assumed register value immediately following construction and prior to flow.Returns entry point associated with this results state.Returns set of addresses analyzed with function.Returns collection of frame pointer candidates.Returns list of registers which are read before written.Returns the set of registers which were modifiedReturns the set of registers which were modified yet preserved.getReturnValues(Varnode varnode) static longstatic longgetUnsignedOffset(Varnode v, int size) static Varnodesimplify(PcodeOp pcodeOp, Varnode[] values, AddressFactory addrFactory, TaskMonitor monitor) Generate simplified operation
- 
Constructor Details- 
ResultsStatepublic ResultsState(Address entryPt, FunctionAnalyzer analyzer, Program program, boolean maintainInstructionResults, TaskMonitor monitor) throws CancelledException Constructor from a function entry point. Program context is used to establish the entry context state. Analysis is performed during construction.- Parameters:
- entryPt- function entry point
- analyzer- function analysis call-back handler
- program- program containing function
- maintainInstructionResults- true to maintain the instruction results
- monitor- task monitor
- Throws:
- CancelledException
 
- 
ResultsStatepublic ResultsState(LinkedList<SequenceNumber> flowList, FunctionAnalyzer analyzer, ContextState entryState, boolean maintainInstructionResults, TaskMonitor monitor) throws CancelledException Constructor for replaying over a specified set of context states indicated via a flowList. Analysis is performed during construction.- Parameters:
- flowList- ordered list of context state entry points
- analyzer- function analysis call-back handler
- entryState- context state which feeds into the first point within the flowList
- maintainInstructionResults-
- monitor- task monitor
- Throws:
- CancelledException
 
 
- 
- 
Method Details- 
getEntryPointReturns entry point associated with this results state.
- 
getExaminedSetReturns set of addresses analyzed with function. (In-line functions not included)
- 
assumeSet an assumed register value immediately following construction and prior to flow.- Parameters:
- register- (context register not permitted)
- value-
 
- 
getContextStates
- 
simplifypublic static Varnode simplify(PcodeOp pcodeOp, Varnode[] values, AddressFactory addrFactory, TaskMonitor monitor) throws CancelledException Generate simplified operation- Parameters:
- pcodeOp- pcode operation
- values- values associated with pcodeOp inputs
- Returns:
- operation output result or simplification of an operation.
- Throws:
- CancelledException
 
- 
getFramePointerCandidatesReturns collection of frame pointer candidates.
- 
getPreservedRegistersReturns the set of registers which were modified yet preserved.
- 
getModifiedRegistersReturns the set of registers which were modified
- 
getInputRegistersReturns list of registers which are read before written.
- 
getStackPointerVarnode- Returns:
- Varnode that represents the stack pointer register
 
- 
getReturnAddresses
- 
getReturnValues
- 
getUnsignedOffset
- 
getSignedOffset
 
-