Commit 8c03d7d6 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

fix: change comparison between call nodes when looking up call and return nodes.

parent c12046bf
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -349,11 +349,11 @@ public class ICFG extends Graph implements Buildable<NodeList<CompilationUnit>>
                // Nodes to be paired up
                GraphNode<?> callNode  = vertexSet().stream()
                        .filter(n -> n instanceof CallNode)
                        .filter(n -> n.getAstNode().equals(call.getCall()))
                        .filter(n -> ASTUtils.equalsWithRange(n.getAstNode(), call.getCall()))
                        .collect(toSingleton());
                GraphNode<?> returnNode = vertexSet().stream()
                        .filter(n -> n instanceof CallNode.Return)
                        .filter(n -> n.getAstNode().equals(call.getCall()))
                        .filter(n -> ASTUtils.equalsWithRange(n.getAstNode(), call.getCall()))
                        .collect(toSingleton());
                GraphNode<?> enterNode = cfgMap.get(callGraph.getEdgeTarget(call).getDeclaration()).getRootNode();
                GraphNode<?> exitNode  = cfgMap.get(callGraph.getEdgeTarget(call).getDeclaration()).getExitNode();