Skip to content
Snippets Groups Projects
Commit 6c4cfa82 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

artificially inserted instructions are now stored in a NodeHashSet to improve equality checks.

parent 799323f3
No related branches found
No related tags found
1 merge request!58Object flow and trees
Pipeline #100 passed
......@@ -20,6 +20,7 @@ import es.upv.mist.slicing.nodes.GraphNode;
import es.upv.mist.slicing.nodes.VariableAction;
import es.upv.mist.slicing.nodes.io.MethodExitNode;
import es.upv.mist.slicing.utils.ASTUtils;
import es.upv.mist.slicing.utils.NodeHashSet;
import es.upv.mist.slicing.utils.NodeNotFoundException;
import java.util.HashSet;
......@@ -155,7 +156,7 @@ public class JSysCFG extends ESCFG {
protected ClassGraph classGraph;
/** List of implicit instructions inserted explicitly in this CFG.
* They should be included in the graph as ImplicitNodes. */
protected List<Node> methodInsertedInstructions = new LinkedList<>();
protected NodeHashSet<Node> methodInsertedInstructions = new NodeHashSet<>();
/** Whether we are building a CFG for an implicit method or not. */
protected boolean implicitDeclaration = false;
......
class Test {
int a;
Test(int a, boolean b, int c) {
......@@ -14,4 +15,4 @@ class Test {
int a = t.a;
System.out.println(a);
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment