Skip to content

Commit 0140cd2

Browse files
C++: Accept correct test output
1 parent 283c1d4 commit 0140cd2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ astGuards
2525
| test.c:126:12:126:26 | call to test3_condition |
2626
| test.c:131:7:131:7 | b |
2727
| test.c:137:7:137:7 | 0 |
28-
| test.c:138:9:138:9 | i |
2928
| test.c:146:7:146:8 | ! ... |
3029
| test.c:146:8:146:8 | x |
3130
| test.c:152:10:152:10 | x |
@@ -164,6 +163,7 @@ astGuardsControl
164163
| test.c:42:16:42:21 | ... < ... | true | 45 | 47 |
165164
| test.c:42:16:42:21 | ... < ... | true | 48 | 55 |
166165
| test.c:42:16:42:21 | ... < ... | true | 51 | 53 |
166+
| test.c:44:12:44:16 | ... > ... | false | 42 | 42 |
167167
| test.c:44:12:44:16 | ... > ... | false | 51 | 53 |
168168
| test.c:44:12:44:16 | ... > ... | true | 45 | 45 |
169169
| test.c:44:12:44:16 | ... > ... | true | 45 | 47 |
@@ -203,9 +203,8 @@ astGuardsControl
203203
| test.c:126:7:126:28 | ... && ... | true | 126 | 128 |
204204
| test.c:126:12:126:26 | call to test3_condition | true | 126 | 128 |
205205
| test.c:131:7:131:7 | b | true | 131 | 132 |
206+
| test.c:137:7:137:7 | 0 | false | 142 | 136 |
206207
| test.c:137:7:137:7 | 0 | true | 137 | 138 |
207-
| test.c:137:7:137:7 | 0 | true | 138 | 139 |
208-
| test.c:138:9:138:9 | i | true | 138 | 139 |
209208
| test.c:146:7:146:8 | ! ... | true | 146 | 147 |
210209
| test.c:146:8:146:8 | x | false | 146 | 147 |
211210
| test.c:152:10:152:10 | x | true | 151 | 152 |
@@ -302,13 +301,15 @@ astGuardsEnsure
302301
| test.c:42:16:42:21 | ... < ... | test.c:42:20:42:21 | 10 | >= | test.c:42:16:42:16 | j | 1 | 45 | 47 |
303302
| test.c:42:16:42:21 | ... < ... | test.c:42:20:42:21 | 10 | >= | test.c:42:16:42:16 | j | 1 | 48 | 55 |
304303
| test.c:42:16:42:21 | ... < ... | test.c:42:20:42:21 | 10 | >= | test.c:42:16:42:16 | j | 1 | 51 | 53 |
304+
| test.c:44:12:44:16 | ... > ... | test.c:44:12:44:12 | z | < | test.c:44:16:44:16 | 0 | 1 | 42 | 42 |
305305
| test.c:44:12:44:16 | ... > ... | test.c:44:12:44:12 | z | < | test.c:44:16:44:16 | 0 | 1 | 51 | 53 |
306306
| test.c:44:12:44:16 | ... > ... | test.c:44:12:44:12 | z | >= | test.c:44:16:44:16 | 0 | 1 | 45 | 45 |
307307
| test.c:44:12:44:16 | ... > ... | test.c:44:12:44:12 | z | >= | test.c:44:16:44:16 | 0 | 1 | 45 | 47 |
308308
| test.c:44:12:44:16 | ... > ... | test.c:44:12:44:12 | z | >= | test.c:44:16:44:16 | 0 | 1 | 48 | 55 |
309309
| test.c:44:12:44:16 | ... > ... | test.c:44:16:44:16 | 0 | < | test.c:44:12:44:12 | z | 0 | 45 | 45 |
310310
| test.c:44:12:44:16 | ... > ... | test.c:44:16:44:16 | 0 | < | test.c:44:12:44:12 | z | 0 | 45 | 47 |
311311
| test.c:44:12:44:16 | ... > ... | test.c:44:16:44:16 | 0 | < | test.c:44:12:44:12 | z | 0 | 48 | 55 |
312+
| test.c:44:12:44:16 | ... > ... | test.c:44:16:44:16 | 0 | >= | test.c:44:12:44:12 | z | 0 | 42 | 42 |
312313
| test.c:44:12:44:16 | ... > ... | test.c:44:16:44:16 | 0 | >= | test.c:44:12:44:12 | z | 0 | 51 | 53 |
313314
| test.c:45:16:45:20 | ... > ... | test.c:45:16:45:16 | y | < | test.c:45:20:45:20 | 0 | 1 | 48 | 55 |
314315
| test.c:45:16:45:20 | ... > ... | test.c:45:16:45:16 | y | >= | test.c:45:20:45:20 | 0 | 1 | 45 | 47 |
@@ -406,7 +407,6 @@ irGuards
406407
| test.c:126:12:126:26 | Call: call to test3_condition |
407408
| test.c:131:7:131:7 | Load: b |
408409
| test.c:137:7:137:7 | Constant: 0 |
409-
| test.c:138:9:138:9 | Load: i |
410410
| test.c:146:8:146:8 | Load: x |
411411
| test.c:152:10:152:10 | Load: x |
412412
| test.c:152:15:152:15 | Load: y |
@@ -521,7 +521,6 @@ irGuardsControl
521521
| test.c:34:16:34:21 | CompareLT: ... < ... | false | 59 | 59 |
522522
| test.c:34:16:34:21 | CompareLT: ... < ... | false | 62 | 62 |
523523
| test.c:34:16:34:21 | CompareLT: ... < ... | true | 35 | 35 |
524-
| test.c:42:16:42:21 | CompareLT: ... < ... | true | 42 | 42 |
525524
| test.c:42:16:42:21 | CompareLT: ... < ... | true | 43 | 43 |
526525
| test.c:42:16:42:21 | CompareLT: ... < ... | true | 45 | 45 |
527526
| test.c:42:16:42:21 | CompareLT: ... < ... | true | 46 | 46 |
@@ -563,9 +562,8 @@ irGuardsControl
563562
| test.c:126:7:126:7 | Constant: 1 | true | 127 | 127 |
564563
| test.c:126:12:126:26 | Call: call to test3_condition | true | 127 | 127 |
565564
| test.c:131:7:131:7 | Load: b | true | 132 | 132 |
565+
| test.c:137:7:137:7 | Constant: 0 | false | 142 | 142 |
566566
| test.c:137:7:137:7 | Constant: 0 | true | 138 | 138 |
567-
| test.c:137:7:137:7 | Constant: 0 | true | 139 | 139 |
568-
| test.c:138:9:138:9 | Load: i | true | 139 | 139 |
569567
| test.c:146:8:146:8 | Load: x | false | 147 | 147 |
570568
| test.c:152:10:152:10 | Load: x | true | 152 | 152 |
571569
| test.c:152:15:152:15 | Load: y | true | 152 | 152 |
@@ -644,13 +642,11 @@ irGuardsEnsure
644642
| test.c:34:16:34:21 | CompareLT: ... < ... | test.c:34:20:34:21 | Constant: 10 | < | test.c:34:16:34:16 | Load: j | 1 | 59 | 59 |
645643
| test.c:34:16:34:21 | CompareLT: ... < ... | test.c:34:20:34:21 | Constant: 10 | < | test.c:34:16:34:16 | Load: j | 1 | 62 | 62 |
646644
| test.c:34:16:34:21 | CompareLT: ... < ... | test.c:34:20:34:21 | Constant: 10 | >= | test.c:34:16:34:16 | Load: j | 1 | 35 | 35 |
647-
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 42 | 42 |
648645
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 43 | 43 |
649646
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 45 | 45 |
650647
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 46 | 46 |
651648
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 49 | 49 |
652649
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:16:42:16 | Load: j | < | test.c:42:20:42:21 | Constant: 10 | 0 | 52 | 52 |
653-
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:20:42:21 | Constant: 10 | >= | test.c:42:16:42:16 | Load: j | 1 | 42 | 42 |
654650
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:20:42:21 | Constant: 10 | >= | test.c:42:16:42:16 | Load: j | 1 | 43 | 43 |
655651
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:20:42:21 | Constant: 10 | >= | test.c:42:16:42:16 | Load: j | 1 | 45 | 45 |
656652
| test.c:42:16:42:21 | CompareLT: ... < ... | test.c:42:20:42:21 | Constant: 10 | >= | test.c:42:16:42:16 | Load: j | 1 | 46 | 46 |

0 commit comments

Comments
 (0)