custom change: include target in string representation of cond-branch

This commit is contained in:
Martin Mohr 2015-02-13 18:40:22 +01:00
parent 441cc6f279
commit b378f8c458
1 changed files with 3 additions and 2 deletions

View File

@ -60,11 +60,12 @@ public class SSAConditionalBranchInstruction extends SSAInstruction {
return operator;
}
/** BEGIN custom change: include jump target in string representation */
@Override
public String toString(SymbolTable symbolTable) {
return "conditional branch(" + operator + ") " + getValueString(symbolTable, val1) + "," + getValueString(symbolTable, val2);
return "conditional branch(" + operator + ", to iindex=" + target + ") " + getValueString(symbolTable, val1) + "," + getValueString(symbolTable, val2);
}
/** END custom change: include jump target in string representation */
/**
* @see com.ibm.wala.ssa.SSAInstruction#visit(IVisitor)
* @throws IllegalArgumentException if v is null