Skip to content

Commit 542579d

Browse files
author
Dave Bartolomeo
committed
C++: Accept dataflow test changes due to new alias analysis
1 parent dda3235 commit 542579d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/BarrierGuard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ void bg_structptr(XY *p1, XY *p2) {
6161
if (guarded(p1->x)) {
6262
sink(p1->x); // no flow [FALSE POSITIVE in AST]
6363
} else if (guarded(p1->y)) {
64-
sink(p1->x); // flow [NOT DETECTED in IR]
64+
sink(p1->x); // flow
6565
} else if (guarded(p2->x)) {
66-
sink(p1->x); // flow [NOT DETECTED in IR]
66+
sink(p1->x); // flow
6767
}
6868
}

cpp/ql/test/library-tests/dataflow/dataflow-tests/test_diff.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
| BarrierGuard.cpp:60:11:60:16 | BarrierGuard.cpp:62:14:62:14 | AST only |
2-
| BarrierGuard.cpp:60:11:60:16 | BarrierGuard.cpp:64:14:64:14 | AST only |
3-
| BarrierGuard.cpp:60:11:60:16 | BarrierGuard.cpp:66:14:66:14 | AST only |
42
| clang.cpp:12:9:12:20 | clang.cpp:22:8:22:20 | AST only |
5-
| clang.cpp:28:27:28:32 | clang.cpp:29:27:29:28 | AST only |
63
| clang.cpp:28:27:28:32 | clang.cpp:30:27:30:34 | AST only |
74
| clang.cpp:39:42:39:47 | clang.cpp:41:18:41:19 | IR only |
85
| dispatch.cpp:16:37:16:42 | dispatch.cpp:32:16:32:24 | IR only |

cpp/ql/test/library-tests/dataflow/dataflow-tests/test_ir.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
| BarrierGuard.cpp:33:10:33:15 | source | BarrierGuard.cpp:29:16:29:21 | source |
66
| BarrierGuard.cpp:53:13:53:13 | x | BarrierGuard.cpp:49:10:49:15 | call to source |
77
| BarrierGuard.cpp:55:13:55:13 | x | BarrierGuard.cpp:49:10:49:15 | call to source |
8+
| BarrierGuard.cpp:64:14:64:14 | x | BarrierGuard.cpp:60:11:60:16 | call to source |
9+
| BarrierGuard.cpp:66:14:66:14 | x | BarrierGuard.cpp:60:11:60:16 | call to source |
810
| acrossLinkTargets.cpp:12:8:12:8 | (int)... | acrossLinkTargets.cpp:19:27:19:32 | call to source |
911
| acrossLinkTargets.cpp:12:8:12:8 | x | acrossLinkTargets.cpp:19:27:19:32 | call to source |
1012
| clang.cpp:18:8:18:19 | (const int *)... | clang.cpp:12:9:12:20 | sourceArray1 |
1113
| clang.cpp:18:8:18:19 | sourceArray1 | clang.cpp:12:9:12:20 | sourceArray1 |
14+
| clang.cpp:29:27:29:28 | m1 | clang.cpp:28:27:28:32 | call to source |
1215
| clang.cpp:37:10:37:11 | m2 | clang.cpp:34:32:34:37 | call to source |
1316
| clang.cpp:41:18:41:19 | m2 | clang.cpp:39:42:39:47 | call to source |
1417
| clang.cpp:45:17:45:18 | m2 | clang.cpp:43:35:43:40 | call to source |

0 commit comments

Comments
 (0)