Skip to content

Commit 6decc7f

Browse files
committed
C++: Accept changes in controlflow/guards following removal of aliased SSA
1 parent bf10623 commit 6decc7f

3 files changed

Lines changed: 30 additions & 147 deletions

File tree

cpp/ql/test/library-tests/controlflow/guards/GuardsCompare.expected

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -628,50 +628,22 @@
628628
| test.cpp:145:23:145:29 | ... != ... | a == 42+0 when ... != ... is false |
629629
| test.cpp:151:8:151:13 | ... < ... | 10 < a+1 when ... < ... is false |
630630
| test.cpp:151:8:151:13 | ... < ... | 10 >= a+1 when ... < ... is true |
631-
| test.cpp:151:8:151:13 | ... < ... | ... < ... != 0 when ... < ... is true |
632-
| test.cpp:151:8:151:13 | ... < ... | ... < ... != 1 when ... < ... is false |
633-
| test.cpp:151:8:151:13 | ... < ... | ... < ... == 0 when ... < ... is false |
634-
| test.cpp:151:8:151:13 | ... < ... | ... < ... == 1 when ... < ... is true |
635631
| test.cpp:151:8:151:13 | ... < ... | a < 10 when ... < ... is true |
636632
| test.cpp:151:8:151:13 | ... < ... | a < 10+0 when ... < ... is true |
637633
| test.cpp:151:8:151:13 | ... < ... | a >= 10 when ... < ... is false |
638634
| test.cpp:151:8:151:13 | ... < ... | a >= 10+0 when ... < ... is false |
639-
| test.cpp:151:8:151:13 | ... < ... | b != 0 when ... < ... is true |
640-
| test.cpp:151:8:151:13 | ... < ... | b != 1 when ... < ... is false |
641-
| test.cpp:151:8:151:13 | ... < ... | b == 0 when ... < ... is false |
642-
| test.cpp:151:8:151:13 | ... < ... | b == 1 when ... < ... is true |
643-
| test.cpp:152:7:152:8 | ! ... | 10 < a+1 when ! ... is true |
644-
| test.cpp:152:7:152:8 | ! ... | 10 >= a+1 when ! ... is false |
645635
| test.cpp:152:7:152:8 | ! ... | ! ... != 0 when ! ... is true |
646636
| test.cpp:152:7:152:8 | ! ... | ! ... != 1 when ! ... is false |
647637
| test.cpp:152:7:152:8 | ! ... | ! ... == 0 when ! ... is false |
648638
| test.cpp:152:7:152:8 | ! ... | ! ... == 1 when ! ... is true |
649-
| test.cpp:152:7:152:8 | ! ... | ... < ... != 0 when ! ... is false |
650-
| test.cpp:152:7:152:8 | ! ... | ... < ... != 1 when ! ... is true |
651-
| test.cpp:152:7:152:8 | ! ... | ... < ... == 0 when ! ... is true |
652-
| test.cpp:152:7:152:8 | ! ... | ... < ... == 1 when ! ... is false |
653-
| test.cpp:152:7:152:8 | ! ... | a < 10 when ! ... is false |
654-
| test.cpp:152:7:152:8 | ! ... | a < 10+0 when ! ... is false |
655-
| test.cpp:152:7:152:8 | ! ... | a >= 10 when ! ... is true |
656-
| test.cpp:152:7:152:8 | ! ... | a >= 10+0 when ! ... is true |
657639
| test.cpp:152:7:152:8 | ! ... | b != 0 when ! ... is false |
658640
| test.cpp:152:7:152:8 | ! ... | b != 1 when ! ... is true |
659641
| test.cpp:152:7:152:8 | ! ... | b == 0 when ! ... is true |
660642
| test.cpp:152:7:152:8 | ! ... | b == 1 when ! ... is false |
661-
| test.cpp:152:8:152:8 | b | 10 < a+1 when b is false |
662-
| test.cpp:152:8:152:8 | b | 10 >= a+1 when b is true |
663643
| test.cpp:152:8:152:8 | b | ! ... != 0 when b is false |
664644
| test.cpp:152:8:152:8 | b | ! ... != 1 when b is true |
665645
| test.cpp:152:8:152:8 | b | ! ... == 0 when b is true |
666646
| test.cpp:152:8:152:8 | b | ! ... == 1 when b is false |
667-
| test.cpp:152:8:152:8 | b | ... < ... != 0 when b is true |
668-
| test.cpp:152:8:152:8 | b | ... < ... != 1 when b is false |
669-
| test.cpp:152:8:152:8 | b | ... < ... == 0 when b is false |
670-
| test.cpp:152:8:152:8 | b | ... < ... == 1 when b is true |
671-
| test.cpp:152:8:152:8 | b | a < 10 when b is true |
672-
| test.cpp:152:8:152:8 | b | a < 10+0 when b is true |
673-
| test.cpp:152:8:152:8 | b | a >= 10 when b is false |
674-
| test.cpp:152:8:152:8 | b | a >= 10+0 when b is false |
675647
| test.cpp:152:8:152:8 | b | b != 0 when b is true |
676648
| test.cpp:152:8:152:8 | b | b != 1 when b is false |
677649
| test.cpp:152:8:152:8 | b | b == 0 when b is false |

cpp/ql/test/library-tests/controlflow/guards/GuardsControl.expected

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
| test.c:26:11:26:15 | ... > ... | false | test.c:42:29:44:16 | { ... } |
1515
| test.c:26:11:26:15 | ... > ... | false | test.c:45:13:45:20 | if (...) ... |
1616
| test.c:26:11:26:15 | ... > ... | false | test.c:45:23:47:22 | { ... } |
17+
| test.c:26:11:26:15 | ... > ... | false | test.c:48:20:55:13 | { ... } |
1718
| test.c:26:11:26:15 | ... > ... | false | test.c:51:14:53:21 | { ... } |
1819
| test.c:26:11:26:15 | ... > ... | false | test.c:56:5:58:14 | label ...: |
1920
| test.c:26:11:26:15 | ... > ... | false | test.c:58:19:58:23 | y |
@@ -27,6 +28,7 @@
2728
| test.c:34:16:34:21 | ... < ... | false | test.c:42:29:44:16 | { ... } |
2829
| test.c:34:16:34:21 | ... < ... | false | test.c:45:13:45:20 | if (...) ... |
2930
| test.c:34:16:34:21 | ... < ... | false | test.c:45:23:47:22 | { ... } |
31+
| test.c:34:16:34:21 | ... < ... | false | test.c:48:20:55:13 | { ... } |
3032
| test.c:34:16:34:21 | ... < ... | false | test.c:51:14:53:21 | { ... } |
3133
| test.c:34:16:34:21 | ... < ... | false | test.c:56:5:58:14 | label ...: |
3234
| test.c:34:16:34:21 | ... < ... | false | test.c:58:19:58:23 | y |
@@ -37,11 +39,13 @@
3739
| test.c:42:16:42:21 | ... < ... | true | test.c:42:29:44:16 | { ... } |
3840
| test.c:42:16:42:21 | ... < ... | true | test.c:45:13:45:20 | if (...) ... |
3941
| test.c:42:16:42:21 | ... < ... | true | test.c:45:23:47:22 | { ... } |
42+
| test.c:42:16:42:21 | ... < ... | true | test.c:48:20:55:13 | { ... } |
4043
| test.c:42:16:42:21 | ... < ... | true | test.c:51:14:53:21 | { ... } |
41-
| test.c:44:12:44:16 | ... > ... | false | test.c:42:5:42:26 | label ...: |
4244
| test.c:44:12:44:16 | ... > ... | false | test.c:51:14:53:21 | { ... } |
4345
| test.c:44:12:44:16 | ... > ... | true | test.c:45:13:45:20 | if (...) ... |
4446
| test.c:44:12:44:16 | ... > ... | true | test.c:45:23:47:22 | { ... } |
47+
| test.c:44:12:44:16 | ... > ... | true | test.c:48:20:55:13 | { ... } |
48+
| test.c:45:16:45:20 | ... > ... | false | test.c:48:20:55:13 | { ... } |
4549
| test.c:45:16:45:20 | ... > ... | true | test.c:45:23:47:22 | { ... } |
4650
| test.c:58:9:58:9 | x | not 0 | test.c:58:19:58:23 | y |
4751
| test.c:58:9:58:9 | x | not 0 | test.c:62:9:62:16 | return ... |

0 commit comments

Comments
 (0)