Package sootup.java.frontend.conversion
Class InstructionConverter
java.lang.Object
sootup.java.frontend.conversion.InstructionConverter
This class converts wala instruction to jimple statement.
- Author:
- Linghui Luo
-
Method Summary
Modifier and TypeMethodDescriptionconvertInstruction
(com.ibm.wala.ssa.SSAInstruction inst, HashMap<Integer, Stmt> stmt2iIndex) boolean
determines wheter a given wala index is a target of a Branching Instruction.protected Map<BranchingStmt,
List<Stmt>> setUpTargets
(HashMap<Integer, Stmt> stmt2iIndex) This methods adds stmts with all branch stmts to builder (JIfStmt
,JGotoStmt
,JSwitchStmt
) having set up their target stmts.
-
Method Details
-
convertInstruction
-
setUpTargets
This methods adds stmts with all branch stmts to builder (JIfStmt
,JGotoStmt
,JSwitchStmt
) having set up their target stmts.- Parameters:
stmt2iIndex
-- Returns:
- This methods returns a list of stmts with all branch stmts (
JIfStmt
,JGotoStmt
,JSwitchStmt
) having set up their target stmts.
-
hasJumpTarget
determines wheter a given wala index is a target of a Branching Instruction. e.g. used for detection of implicit return statements in void methods.
-