Skip to content

Commit d18cdee

Browse files
committed
C++: Accept test changes.
1 parent b78537d commit d18cdee

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ astGuardsCompare
5656
| 17 | y < 1+1 when ... > ... is false |
5757
| 17 | y >= 1+1 when ... && ... is true |
5858
| 17 | y >= 1+1 when ... > ... is true |
59+
| 18 | call to get != 0 when call to get is true |
60+
| 18 | call to get == 0 when call to get is false |
5961
| 26 | 0 < x+0 when ... > ... is true |
6062
| 26 | 0 >= x+0 when ... > ... is false |
6163
| 26 | x < 0+1 when ... > ... is false |
@@ -487,6 +489,7 @@ astGuardsEnsure_const
487489
| test.c:109:9:109:23 | ... \|\| ... | test.c:109:9:109:9 | x | != | 0 | 113 | 113 |
488490
| test.c:175:13:175:32 | ... == ... | test.c:175:13:175:15 | call to foo | != | 0 | 175 | 175 |
489491
| test.c:175:13:175:32 | ... == ... | test.c:175:13:175:15 | call to foo | == | 0 | 175 | 175 |
492+
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | != | 0 | 19 | 19 |
490493
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 30 | 30 |
491494
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
492495
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 30 | 30 |
@@ -545,6 +548,8 @@ irGuardsCompare
545548
| 17 | y < 2 when CompareGT: ... > ... is false |
546549
| 17 | y >= 1+1 when CompareGT: ... > ... is true |
547550
| 17 | y >= 2 when CompareGT: ... > ... is true |
551+
| 18 | call to get != 0 when CompareNE: (bool)... is true |
552+
| 18 | call to get == 0 when CompareNE: (bool)... is false |
548553
| 26 | 0 < x+0 when CompareGT: ... > ... is true |
549554
| 26 | 0 >= x+0 when CompareGT: ... > ... is false |
550555
| 26 | x < 0+1 when CompareGT: ... > ... is false |
@@ -996,6 +1001,7 @@ irGuardsEnsure_const
9961001
| test.c:109:19:109:23 | CompareLT: ... < ... | test.c:109:19:109:19 | Load: y | >= | 0 | 113 | 113 |
9971002
| test.c:175:13:175:32 | CompareEQ: ... == ... | test.c:175:13:175:15 | Call: call to foo | != | 0 | 175 | 175 |
9981003
| test.c:175:13:175:32 | CompareEQ: ... == ... | test.c:175:13:175:15 | Call: call to foo | == | 0 | 175 | 175 |
1004+
| test.cpp:18:8:18:12 | CompareNE: (bool)... | test.cpp:18:8:18:10 | Call: call to get | != | 0 | 19 | 19 |
9991005
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | != | -1 | 34 | 34 |
10001006
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | == | -1 | 30 | 30 |
10011007
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | == | -1 | 32 | 32 |

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
| 17 | y >= 1+1 when ... > ... is true |
2323
| 17 | y >= 2 when ... && ... is true |
2424
| 17 | y >= 2 when ... > ... is true |
25+
| 18 | call to get != 0 when call to get is true |
26+
| 18 | call to get == 0 when call to get is false |
2527
| 26 | 0 < x+0 when ... > ... is true |
2628
| 26 | 0 >= x+0 when ... > ... is false |
2729
| 26 | x < 0+1 when ... > ... is false |
@@ -107,6 +109,8 @@
107109
| 85 | y != 0+0 when ... && ... is true |
108110
| 85 | y == 0 when ... != ... is false |
109111
| 85 | y == 0+0 when ... != ... is false |
112+
| 93 | c != 0 when c is true |
113+
| 93 | c == 0 when c is false |
110114
| 94 | 0 != x+0 when ... != ... is true |
111115
| 94 | 0 == x+0 when ... != ... is false |
112116
| 94 | x != 0 when ... != ... is true |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ unary
234234
| test.c:109:9:109:23 | ... \|\| ... | test.c:109:9:109:9 | x | != | 0 | 113 | 113 |
235235
| test.c:109:9:109:23 | ... \|\| ... | test.c:109:19:109:19 | y | >= | 0 | 113 | 113 |
236236
| test.c:109:19:109:23 | ... < ... | test.c:109:19:109:19 | y | >= | 0 | 113 | 113 |
237+
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | != | 0 | 19 | 19 |
237238
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 30 | 30 |
238239
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
239240
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 30 | 30 |
@@ -244,3 +245,4 @@ unary
244245
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | < | 21 | 78 | 79 |
245246
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 0 | 75 | 77 |
246247
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 11 | 78 | 79 |
248+
| test.cpp:93:6:93:6 | c | test.cpp:93:6:93:6 | c | != | 0 | 93 | 94 |

0 commit comments

Comments
 (0)