Examples of ReturnStmt


Examples of soot.jimple.ReturnStmt

        for (SootMethod method : methods) {
            if (!method.isConcrete())
                continue;
            for (Unit unit : method.retrieveActiveBody().getUnits()) {
                if (unit instanceof ReturnStmt) {
                    ReturnStmt ret = (ReturnStmt)unit;
                    list.add(ret.getOpBox());
                }
            }
        }
        return list;
    }
View Full Code Here

Examples of soot.jimple.ReturnStmt

        for (SootMethod method : xmlReturners) {
            Body body = method.retrieveActiveBody();
            for (Unit unit : body.getUnits()) {
                if (unit instanceof ReturnStmt) {
                    ReturnStmt stmt = (ReturnStmt) unit;
                    final ValueBox box = stmt.getOpBox();
                    returnLocations.put(stmt, new MethodStatementContainer(
                            method, stmt));
                    stmt2box.put(stmt, box);
                }
            }
        }

        // add the plug statements
        for (Plugging plugging : pluggings) {
            final AssignStmt stmt = plugging.getStmt();
            final ValueBox box = stmt.getInvokeExprBox();
            stmt2box.put(stmt, box);
        }
        return stmt2box;
    }
View Full Code Here

Examples of soot.jimple.ReturnStmt

        Map<ReturnStmt, XMLGraph> ret2xg = new HashMap<ReturnStmt, XMLGraph>();
        for (Stmt stmt : stmt2box.keySet()) {
            if (!(stmt instanceof ReturnStmt)) // ignore plugs
                continue;

            ReturnStmt returnStmt = (ReturnStmt) stmt;

            AnalyzeStm analyzeStm = result.getHotspots().get(
                    stmt2box.get(returnStmt));
            if (analyzeStm == null) {
                final MethodStatementContainer container = returnLocations
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.