Package soot.toolkits.graph

Examples of soot.toolkits.graph.BlockGraph


    }

    protected void internalTransform(Body body, String phaseName, Map options) {
        /*Chain units = */body.getUnits();

        BlockGraph graph = new CompleteBlockGraph(body);
        //CompleteUnitGraph unitGraph = new CompleteUnitGraph(body);

        // this will help us figure out where locals are defined.
        //SimpleLocalDefs localDefs = new SimpleLocalDefs(unitGraph);
        //SimpleLiveLocals liveLocals = new SimpleLiveLocals(unitGraph);

        for (Iterator blocks = graph.iterator(); blocks.hasNext();) {
            Block block = (Block) blocks.next();

            // filter out anything that doesn't look like a loop block.
            if ((block.getPreds().size() != 1)
                    || (block.getSuccs().size() != 1)) {
View Full Code Here


        for (Iterator methods = theClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();
            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            BlockGraph graph = new CompleteBlockGraph(body);

            for (Iterator blocks = graph.iterator(); blocks.hasNext();) {
                Block block = (Block) blocks.next();

                // System.out.println("body = " + block);
                // filter out anything that doesn't look like a loop body.
                if ((block.getPreds().size() != 1)
View Full Code Here

TOP

Related Classes of soot.toolkits.graph.BlockGraph

Copyright © 2018 www.massapicom. 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.