File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ struct XY {
4848void bg_stackstruct (XY s1, XY s2) {
4949 s1.x = source ();
5050 if (guarded (s1.x )) {
51- sink (s1.x ); // $ SPURIOUS: ast
51+ sink (s1.x ); // $ SPURIOUS: ast,ir
5252 } else if (guarded (s1.y )) {
5353 sink (s1.x ); // $ ast,ir
5454 } else if (guarded (s2.y )) {
@@ -59,7 +59,7 @@ void bg_stackstruct(XY s1, XY s2) {
5959void bg_structptr (XY *p1, XY *p2) { // $ ast-def=p1 ast-def=p2 ir-def=*p1 ir-def=*p2
6060 p1->x = source ();
6161 if (guarded (p1->x )) {
62- sink (p1->x ); // $ SPURIOUS: ast
62+ sink (p1->x ); // $ SPURIOUS: ast,ir
6363 } else if (guarded (p1->y )) {
6464 sink (p1->x ); // $ ast,ir
6565 } else if (guarded (p2->x )) {
Original file line number Diff line number Diff line change @@ -183,8 +183,10 @@ irFlow
183183| BarrierGuard.cpp:21:17:21:22 | source | BarrierGuard.cpp:25:10:25:15 | source |
184184| BarrierGuard.cpp:29:16:29:21 | source | BarrierGuard.cpp:31:10:31:15 | source |
185185| BarrierGuard.cpp:29:16:29:21 | source | BarrierGuard.cpp:33:10:33:15 | source |
186+ | BarrierGuard.cpp:49:10:49:15 | call to source | BarrierGuard.cpp:51:13:51:13 | x |
186187| BarrierGuard.cpp:49:10:49:15 | call to source | BarrierGuard.cpp:53:13:53:13 | x |
187188| BarrierGuard.cpp:49:10:49:15 | call to source | BarrierGuard.cpp:55:13:55:13 | x |
189+ | BarrierGuard.cpp:60:11:60:16 | call to source | BarrierGuard.cpp:62:14:62:14 | x |
188190| BarrierGuard.cpp:60:11:60:16 | call to source | BarrierGuard.cpp:64:14:64:14 | x |
189191| BarrierGuard.cpp:60:11:60:16 | call to source | BarrierGuard.cpp:66:14:66:14 | x |
190192| BarrierGuard.cpp:165:11:165:16 | call to source | BarrierGuard.cpp:170:10:170:10 | x |
You can’t perform that action at this time.
0 commit comments