Search in sources :

Example 6 with Variable

use of dk.brics.soot.intermediate.representation.Variable in project soot by Sable.

the class StmtTranslator method caseInvokeStmt.

public void caseInvokeStmt(InvokeStmt stmt) {
    InvokeExpr expr = stmt.getInvokeExpr();
    Variable lvar = jt.makeVariable(expr);
    et.translateExpr(lvar, stmt.getInvokeExprBox());
}
Also used : InvokeExpr(soot.jimple.InvokeExpr) Variable(dk.brics.soot.intermediate.representation.Variable)

Example 7 with Variable

use of dk.brics.soot.intermediate.representation.Variable in project soot by Sable.

the class StmtTranslator method caseReturnStmt.

public void caseReturnStmt(ReturnStmt stmt) {
    Variable rvar = jt.makeVariable(stmt.getOp());
    Return r = new Return();
    r.setAssignmentTarget(rvar);
    addStatement(r);
}
Also used : Variable(dk.brics.soot.intermediate.representation.Variable) Return(dk.brics.soot.intermediate.representation.Return)

Example 8 with Variable

use of dk.brics.soot.intermediate.representation.Variable in project soot by Sable.

the class StmtTranslator method getLocalVariable.

Variable getLocalVariable(Local l) {
    if (local_var.containsKey(l)) {
        return (Variable) local_var.get(l);
    }
    Variable var = jt.makeVariable(l);
    local_var.put(l, var);
    return var;
}
Also used : Variable(dk.brics.soot.intermediate.representation.Variable)

Aggregations

Variable (dk.brics.soot.intermediate.representation.Variable)8 SootClass (soot.SootClass)3 SootMethod (soot.SootMethod)3 Method (dk.brics.soot.intermediate.representation.Method)2 Value (soot.Value)2 FooInit (dk.brics.soot.intermediate.representation.FooInit)1 FooMethodCall (dk.brics.soot.intermediate.representation.FooMethodCall)1 Return (dk.brics.soot.intermediate.representation.Return)1 LinkedList (java.util.LinkedList)1 ArrayType (soot.ArrayType)1 Local (soot.Local)1 RefType (soot.RefType)1 Type (soot.Type)1 ArrayRef (soot.jimple.ArrayRef)1 FieldRef (soot.jimple.FieldRef)1 InvokeExpr (soot.jimple.InvokeExpr)1