File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -570,6 +570,9 @@ postWithInFlow
570
570
| test.cpp:481:24:481:30 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
571
571
| test.cpp:481:24:481:30 | content [post update] | PostUpdateNode should not be the target of local flow. |
572
572
| test.cpp:482:8:482:16 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
573
+ | test.cpp:489:7:489:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
574
+ | test.cpp:491:5:491:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
575
+ | test.cpp:494:5:494:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
573
576
| true_upon_entry.cpp:9:7:9:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
574
577
| true_upon_entry.cpp:10:12:10:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
575
578
| true_upon_entry.cpp:10:27:10:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
Original file line number Diff line number Diff line change @@ -481,4 +481,16 @@ void local_field_flow_def_by_ref_steps_with_local_flow(MyStruct * s) {
481
481
writes_to_content (s->content );
482
482
int * p_content = s->content ;
483
483
sink (*p_content);
484
- }
484
+ }
485
+
486
+ bool unknown ();
487
+
488
+ void regression_with_phi_flow (int clean1) {
489
+ int x = 0 ;
490
+ while (unknown ()) {
491
+ x = clean1;
492
+ if (unknown ()) { }
493
+ sink (x); // $ SPURIOUS: ir
494
+ x = source ();
495
+ }
496
+ }
You can’t perform that action at this time.
0 commit comments