Class SyntheticIR
java.lang.Object
com.ibm.wala.ssa.IR
com.ibm.wala.ipa.summaries.SyntheticIR
- All Implemented Interfaces:
IRView
- Direct Known Subclasses:
SummarizedMethodWithNames.SyntheticIRWithNames
-
Nested Class Summary
Nested classes/interfaces inherited from class IR
IR.SSA2LocalMap -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticIR(IMethod method, Context context, AbstractCFG<?, ?> cfg, SSAInstruction[] instructions, SSAOptions options, Map<Integer, ConstantValue> constants) Create an SSA form, induced over a list of instructions provided externally. -
Method Summary
Modifier and TypeMethodDescriptionprotected SSAIndirectionData<SSAIndirectionData.Name> subclasses must provide information about indirect use of values, if appropriate, and otherwise nullThis returns null, as synthetic IRs have no local names right now.protected StringinstructionPosition(int instructionIndex) This returns "", as synthetic IRs have no line numbers right now.Methods inherited from class IR
getBasicBlockForCatch, getBasicBlockForInstruction, getBasicBlocksForCall, getBlocks, getCallInstructionIndices, getCalls, getControlFlowGraph, getExitBlock, getInstructions, getLocalNames, getMethod, getNew, getNewInstructionIndex, getNumberOfParameters, getOptions, getParameter, getParameterType, getParameterValueNumbers, getPEI, getSymbolTable, isEmptyIR, iterateAllInstructions, iterateCallSites, iterateCatchInstructions, iterateNewSites, iterateNormalInstructions, iteratePhis, iteratePis, setupLocationMap, toString, visitAllInstructions, visitNormalInstructions
-
Constructor Details
-
SyntheticIR
public SyntheticIR(IMethod method, Context context, AbstractCFG<?, ?> cfg, SSAInstruction[] instructions, SSAOptions options, Map<Integer, ConstantValue> constants) throws AssertionErrorCreate an SSA form, induced over a list of instructions provided externally. This entrypoint is often used for, e.g., native method models- Parameters:
method- the method to construct SSA form forcontext- the governing contextinstructions- the SSA instructions which define the body of the methodconstants- a Map giving information on constant values for the symbol table- Throws:
AssertionError- if method is null
-
-
Method Details
-
instructionPosition
This returns "", as synthetic IRs have no line numbers right now.- Specified by:
instructionPositionin classIR- Returns:
- a String which is a readable representation of the instruction position corresponding to an instruction index
-
getLocalMap
This returns null, as synthetic IRs have no local names right now.- Specified by:
getLocalMapin classIR
-
getIndirectionData
Description copied from class:IRsubclasses must provide information about indirect use of values, if appropriate, and otherwise null- Specified by:
getIndirectionDatain classIR
-