Package org.candle.decompiler.intermediate.graph.edge

Examples of org.candle.decompiler.intermediate.graph.edge.IntermediateEdge


  public void redirectSuccessors(T source, T target) {
    List<T> successors = Graphs.successorListOf(this.graph, source);
   
    //remove edges between predecessor and source.
    for(T s : successors) {
      IntermediateEdge existing = graph.getEdge(source, s);
      redirectStart(existing, target);
    }
  }
View Full Code Here


          //then something is wrong.
          LOG.warn("This shouldn't be...");
          continue;
        }
       
        IntermediateEdge insEdge = igc.getGraph().getEdge(predecessor, ih);
       
        //add an edge to the intermediate graph.
        if(intermediateGraph.containsEdge(predIntermediate, nodeIntermediate)) {
          continue;
        }
         
        intermediateGraph.addEdge(predIntermediate, nodeIntermediate, (IntermediateEdge)insEdge.clone());
      }
     
      for(InstructionHandle successor : successors) {
        //find it's AbstractIntermediate.
        AbstractIntermediate successorIntermediate = nodeMapping.get(successor);
       
        if(successorIntermediate == null) {
          LOG.warn("This shouldn't be...");
          continue
        }
        if(intermediateGraph.containsEdge(nodeIntermediate, successorIntermediate)) {
          continue;
        }
        IntermediateEdge insEdge = igc.getGraph().getEdge(ih, successor);
       
        //add an edge to the intermediate graph.
        intermediateGraph.addEdge(nodeIntermediate, successorIntermediate, (IntermediateEdge)insEdge.clone());
      }
    }
   
    return new IntermediateGraphContext(intermediateGraph);
  }
View Full Code Here

TOP

Related Classes of org.candle.decompiler.intermediate.graph.edge.IntermediateEdge

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.