Search in sources :

Example 6 with CPFlowSet

use of soot.dava.toolkits.base.AST.structuredAnalysis.CPFlowSet in project soot by Sable.

the class CPApplication method inASTWhileNode.

public void inASTWhileNode(ASTWhileNode node) {
    Object obj = cp.getAfterSet(node);
    if (obj == null)
        return;
    if (!(obj instanceof CPFlowSet))
        return;
    // after set is a non null CPFlowSet
    CPFlowSet afterSet = (CPFlowSet) obj;
    ASTCondition cond = node.get_Condition();
    // System.out.println("While Statement with condition: "+cond);
    // System.out.println("After set is: "+afterSet.toString());
    changedCondition(cond, afterSet);
}
Also used : ASTCondition(soot.dava.internal.AST.ASTCondition) CPFlowSet(soot.dava.toolkits.base.AST.structuredAnalysis.CPFlowSet)

Example 7 with CPFlowSet

use of soot.dava.toolkits.base.AST.structuredAnalysis.CPFlowSet in project soot by Sable.

the class CPApplication method inASTIfElseNode.

public void inASTIfElseNode(ASTIfElseNode node) {
    Object obj = cp.getBeforeSet(node);
    if (obj == null)
        return;
    if (!(obj instanceof CPFlowSet))
        return;
    // before set is a non null CPFlowSet
    CPFlowSet beforeSet = (CPFlowSet) obj;
    ASTCondition cond = node.get_Condition();
    // System.out.println("IfElse Statement with condition: "+cond);
    // System.out.println("Before set is: "+beforeSet.toString());
    changedCondition(cond, beforeSet);
}
Also used : ASTCondition(soot.dava.internal.AST.ASTCondition) CPFlowSet(soot.dava.toolkits.base.AST.structuredAnalysis.CPFlowSet)

Aggregations

CPFlowSet (soot.dava.toolkits.base.AST.structuredAnalysis.CPFlowSet)7 ASTCondition (soot.dava.internal.AST.ASTCondition)5 List (java.util.List)2 AugmentedStmt (soot.dava.internal.asg.AugmentedStmt)2 Stmt (soot.jimple.Stmt)2 Local (soot.Local)1 SootField (soot.SootField)1 Value (soot.Value)1 FieldRef (soot.jimple.FieldRef)1