Skip to content

Commit 9564ae1

Browse files
committed
C++: Accept more test changes.
1 parent 528afba commit 9564ae1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ astGuardsCompare
7474
| 34 | j >= 10+0 when ... < ... is false |
7575
| 42 | 10 < j+1 when ... < ... is false |
7676
| 42 | 10 >= j+1 when ... < ... is true |
77+
| 42 | call to getABool != 0 when call to getABool is true |
78+
| 42 | call to getABool == 0 when call to getABool is false |
7779
| 42 | j < 10+0 when ... < ... is true |
7880
| 42 | j >= 10+0 when ... < ... is false |
7981
| 44 | 0 < z+0 when ... > ... is true |
@@ -537,6 +539,8 @@ astGuardsEnsure_const
537539
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
538540
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 30 | 30 |
539541
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 31 | 32 |
542+
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | != | 0 | 43 | 45 |
543+
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | == | 0 | 53 | 53 |
540544
irGuards
541545
| test.c:7:9:7:13 | CompareGT: ... > ... |
542546
| test.c:17:8:17:12 | CompareLT: ... < ... |
@@ -613,6 +617,8 @@ irGuardsCompare
613617
| 34 | j >= 10+0 when CompareLT: ... < ... is false |
614618
| 42 | 10 < j+1 when CompareLT: ... < ... is false |
615619
| 42 | 10 >= j+1 when CompareLT: ... < ... is true |
620+
| 42 | call to getABool != 0 when Call: call to getABool is true |
621+
| 42 | call to getABool == 0 when Call: call to getABool is false |
616622
| 42 | j < 10 when CompareLT: ... < ... is true |
617623
| 42 | j < 10+0 when CompareLT: ... < ... is true |
618624
| 42 | j >= 10 when CompareLT: ... < ... is false |
@@ -1081,3 +1087,5 @@ irGuardsEnsure_const
10811087
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | != | -1 | 34 | 34 |
10821088
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | == | -1 | 30 | 30 |
10831089
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | == | -1 | 32 | 32 |
1090+
| test.cpp:42:13:42:20 | Call: call to getABool | test.cpp:42:13:42:20 | Call: call to getABool | != | 0 | 44 | 44 |
1091+
| test.cpp:42:13:42:20 | Call: call to getABool | test.cpp:42:13:42:20 | Call: call to getABool | == | 0 | 53 | 53 |

0 commit comments

Comments
 (0)