Skip to content

Commit 528afba

Browse files
committed
C++: Accept test changes.
1 parent 36aac3f commit 528afba

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
| 34 | j >= 10+0 when ... < ... is false |
4545
| 42 | 10 < j+1 when ... < ... is false |
4646
| 42 | 10 >= j+1 when ... < ... is true |
47+
| 42 | call to getABool != 0 when call to getABool is true |
48+
| 42 | call to getABool == 0 when call to getABool is false |
4749
| 42 | j < 10 when ... < ... is true |
4850
| 42 | j < 10+0 when ... < ... is true |
4951
| 42 | j >= 10 when ... < ... is false |
@@ -149,6 +151,13 @@
149151
| 111 | 0.0 == i+0 when ... != ... is false |
150152
| 111 | i != 0.0+0 when ... != ... is true |
151153
| 111 | i == 0.0+0 when ... != ... is false |
154+
| 122 | b != 0 when b is true |
155+
| 122 | b == 0 when b is false |
156+
| 125 | ! ... != 0 when ! ... is true |
157+
| 125 | ! ... == 0 when ! ... is false |
158+
| 125 | call to safe != 0 when ! ... is false |
159+
| 125 | call to safe != 0 when call to safe is true |
160+
| 125 | call to safe == 0 when call to safe is false |
152161
| 126 | 1 != 0 when 1 is true |
153162
| 126 | 1 != 0 when ... && ... is true |
154163
| 126 | 1 == 0 when 1 is false |

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,16 @@ unary
257257
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
258258
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 30 | 30 |
259259
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 31 | 32 |
260+
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | != | 0 | 43 | 45 |
261+
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | == | 0 | 53 | 53 |
260262
| test.cpp:61:10:61:10 | i | test.cpp:61:10:61:10 | i | == | 0 | 62 | 64 |
261263
| test.cpp:61:10:61:10 | i | test.cpp:61:10:61:10 | i | == | 1 | 65 | 66 |
262264
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | < | 11 | 75 | 77 |
263265
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | < | 21 | 78 | 79 |
264266
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 0 | 75 | 77 |
265267
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 11 | 78 | 79 |
266268
| test.cpp:93:6:93:6 | c | test.cpp:93:6:93:6 | c | != | 0 | 93 | 94 |
269+
| test.cpp:122:9:122:9 | b | test.cpp:122:9:122:9 | b | != | 0 | 123 | 125 |
270+
| test.cpp:122:9:122:9 | b | test.cpp:122:9:122:9 | b | != | 0 | 125 | 125 |
271+
| test.cpp:125:13:125:20 | ! ... | test.cpp:125:13:125:20 | ! ... | != | 0 | 125 | 125 |
272+
| test.cpp:125:14:125:17 | call to safe | test.cpp:125:14:125:17 | call to safe | == | 0 | 125 | 125 |

0 commit comments

Comments
 (0)