@@ -52,10 +52,6 @@ module ProductFlow {
52
52
override predicate isSink ( DataFlow:: Node sink ) {
53
53
exists ( Configuration conf | conf .isSinkPair ( _, sink ) )
54
54
}
55
-
56
- override int explorationLimit ( ) {
57
- result = 10
58
- }
59
55
}
60
56
61
57
predicate reachablePair1 (
@@ -67,7 +63,7 @@ module ProductFlow {
67
63
exists ( DataFlow:: PathNode mid1 |
68
64
reachablePair1 ( conf , source1 , source2 , mid1 , node2 ) and
69
65
mid1 .getASuccessor ( ) = node1 and
70
- mid1 .getNode ( ) .getFunction ( ) = node1 .getNode ( ) .getFunction ( )
66
+ mid1 .getNode ( ) .getEnclosingCallable ( ) = node1 .getNode ( ) .getEnclosingCallable ( )
71
67
)
72
68
}
73
69
@@ -80,7 +76,7 @@ module ProductFlow {
80
76
exists ( DataFlow2:: PathNode mid2 |
81
77
reachablePair2 ( conf , source1 , source2 , node1 , mid2 ) and
82
78
mid2 .getASuccessor ( ) = node2 and
83
- mid2 .getNode ( ) .getFunction ( ) = node2 .getNode ( ) .getFunction ( )
79
+ mid2 .getNode ( ) .getEnclosingCallable ( ) = node2 .getNode ( ) .getEnclosingCallable ( )
84
80
)
85
81
}
86
82
@@ -92,10 +88,10 @@ module ProductFlow {
92
88
reachablePair2 ( conf , source1 , source2 , mid1 , mid2 ) and
93
89
mid1 .getASuccessor ( ) = node1 and
94
90
mid2 .getASuccessor ( ) = node2 and
95
- mid1 .getNode ( ) .getFunction ( ) = funcMid and // TODO: recursive function weirdness?
96
- mid2 .getNode ( ) .getFunction ( ) = funcMid and
97
- node1 .getNode ( ) .getFunction ( ) = func and
98
- node2 .getNode ( ) .getFunction ( ) = func and
91
+ mid1 .getNode ( ) .getEnclosingCallable ( ) = funcMid and // TODO: recursive function weirdness?
92
+ mid2 .getNode ( ) .getEnclosingCallable ( ) = funcMid and
93
+ node1 .getNode ( ) .getEnclosingCallable ( ) = func and
94
+ node2 .getNode ( ) .getEnclosingCallable ( ) = func and
99
95
funcMid != func
100
96
)
101
97
}
0 commit comments