@@ -33,29 +33,23 @@ module TypeTracking<TypeTrackingInput I> {
33
33
* Holds if there is any node in a step relation that is unreachable from a
34
34
* `LocalSourceNode`.
35
35
*/
36
- query predicate unreachableNode ( string msg ) {
37
- exists ( int k , string kind |
38
- k = strictcount ( Node n | stepEntry ( n , kind ) and not flowsTo ( _, n ) ) and
39
- msg = "There are " + k + " unreachable nodes in steps of kind " + kind + "."
36
+ query predicate unreachableNode ( Node n , string msg ) {
37
+ exists ( string kind |
38
+ stepEntry ( n , kind ) and
39
+ not flowsTo ( _, n ) and
40
+ msg = "Unreachable node in step of kind " + kind + "."
40
41
)
41
42
}
42
43
43
44
/**
44
45
* Holds if there is a store target that isn't a `LocalSourceNode` and
45
46
* backtracking store target feature isn't enabled.
46
47
*/
47
- query predicate nonSourceStoreTarget ( string msg ) {
48
+ query predicate nonSourceStoreTarget ( Node n , string msg ) {
48
49
not hasFeatureBacktrackStoreTarget ( ) and
49
- exists ( int k |
50
- k =
51
- strictcount ( Node n |
52
- not n instanceof LocalSourceNode and
53
- ( storeStep ( _, n , _) or loadStoreStep ( _, n , _, _) )
54
- ) and
55
- msg =
56
- "There are " + k +
57
- " store targets that are not local source nodes and backtracking store targets is not enabled."
58
- )
50
+ not n instanceof LocalSourceNode and
51
+ ( storeStep ( _, n , _) or loadStoreStep ( _, n , _, _) ) and
52
+ msg = "Store target is not a local source nodes and backtracking store targets is disabled."
59
53
}
60
54
}
61
55
0 commit comments