Commit 9dca4cfc authored by Sarah Grebing's avatar Sarah Grebing

started to include edges from controlflowgraph

parent dabdebca
Pipeline #14974 failed with stage
in 2 minutes
......@@ -285,14 +285,14 @@ public class StateGraphWrapper<T> {
Collection<Pair<ControlFlowNode, EdgeTypes>> predecessorsAndTheirEdges = cfgVisitor.getPredecessorsAndTheirEdges(newStateNode.getScriptStmt());
for (Pair<ControlFlowNode, EdgeTypes> predecessorsAndTheirEdge : predecessorsAndTheirEdges) {
if (predecessorsAndTheirEdge.getKey().equals(lastNode.getScriptStmt())) {
if (predecessorsAndTheirEdge.getKey().getScriptstmt().equals(lastNode.getScriptStmt())) {
stateGraph.putEdgeValue(lastNode, newStateNode, predecessorsAndTheirEdge.getValue());
}
}
Collection<Pair<ControlFlowNode, EdgeTypes>> predecessorsAsTarget = cfgVisitor.getPredecessorsAsTarget(node);
for (Pair<ControlFlowNode, EdgeTypes> predecessorAsTarget : predecessorsAsTarget) {
if (predecessorAsTarget.getKey().equals(lastNode.getScriptStmt())) {
if (predecessorAsTarget.getKey().getScriptstmt().equals(lastNode.getScriptStmt())) {
stateGraph.putEdgeValue(newStateNode, lastNode, predecessorAsTarget.getValue());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment