Skip to content

Commit fbd877a

Browse files
committed
C++: Delete a test. This is no longer useful when every expression is a guard condition.
1 parent 2dc783d commit fbd877a

File tree

4 files changed

+0
-1628
lines changed

4 files changed

+0
-1628
lines changed

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

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
1-
astGuards
2-
| test.c:7:9:7:13 | ... > ... |
3-
| test.c:17:8:17:12 | ... < ... |
4-
| test.c:17:8:17:21 | ... && ... |
5-
| test.c:17:17:17:21 | ... > ... |
6-
| test.c:26:11:26:15 | ... > ... |
7-
| test.c:34:16:34:21 | ... < ... |
8-
| test.c:42:16:42:21 | ... < ... |
9-
| test.c:44:12:44:16 | ... > ... |
10-
| test.c:45:16:45:20 | ... > ... |
11-
| test.c:58:9:58:14 | ... == ... |
12-
| test.c:58:9:58:23 | ... \|\| ... |
13-
| test.c:58:19:58:23 | ... < ... |
14-
| test.c:75:9:75:14 | ... == ... |
15-
| test.c:85:8:85:13 | ... == ... |
16-
| test.c:85:8:85:23 | ... && ... |
17-
| test.c:85:18:85:23 | ... != ... |
18-
| test.c:94:11:94:16 | ... != ... |
19-
| test.c:102:16:102:21 | ... < ... |
20-
| test.c:109:9:109:14 | ... == ... |
21-
| test.c:109:9:109:23 | ... \|\| ... |
22-
| test.c:109:19:109:23 | ... < ... |
23-
| test.c:126:7:126:7 | 1 |
24-
| test.c:126:7:126:28 | ... && ... |
25-
| test.c:126:12:126:26 | call to test3_condition |
26-
| test.c:131:7:131:7 | b |
27-
| test.c:137:7:137:7 | 0 |
28-
| test.c:146:7:146:8 | ! ... |
29-
| test.c:146:8:146:8 | x |
30-
| test.c:152:10:152:10 | x |
31-
| test.c:152:10:152:15 | ... && ... |
32-
| test.c:152:15:152:15 | y |
33-
| test.c:156:9:156:19 | ... == ... |
34-
| test.c:159:9:159:19 | ... == ... |
35-
| test.c:162:9:162:18 | ... < ... |
36-
| test.c:165:9:165:18 | ... < ... |
37-
| test.c:175:13:175:32 | ... == ... |
38-
| test.c:181:9:181:9 | x |
39-
| test.cpp:18:8:18:10 | call to get |
40-
| test.cpp:31:7:31:13 | ... == ... |
41-
| test.cpp:42:13:42:20 | call to getABool |
421
astGuardsCompare
432
| 7 | 0 < x+0 when ... > ... is true |
443
| 7 | 0 >= x+0 when ... > ... is false |
@@ -901,40 +860,6 @@ astGuardsEnsure_const
901860
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:13 | ... == ... | == | 1 | 31 | 32 |
902861
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | != | 0 | 43 | 45 |
903862
| test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | == | 1 | 43 | 45 |
904-
irGuards
905-
| test.c:7:9:7:13 | CompareGT: ... > ... |
906-
| test.c:17:8:17:12 | CompareLT: ... < ... |
907-
| test.c:17:17:17:21 | CompareGT: ... > ... |
908-
| test.c:26:11:26:15 | CompareGT: ... > ... |
909-
| test.c:34:16:34:21 | CompareLT: ... < ... |
910-
| test.c:42:16:42:21 | CompareLT: ... < ... |
911-
| test.c:44:12:44:16 | CompareGT: ... > ... |
912-
| test.c:45:16:45:20 | CompareGT: ... > ... |
913-
| test.c:58:9:58:14 | CompareEQ: ... == ... |
914-
| test.c:58:19:58:23 | CompareLT: ... < ... |
915-
| test.c:75:9:75:14 | CompareEQ: ... == ... |
916-
| test.c:85:8:85:13 | CompareEQ: ... == ... |
917-
| test.c:85:18:85:23 | CompareNE: ... != ... |
918-
| test.c:94:11:94:16 | CompareNE: ... != ... |
919-
| test.c:102:16:102:21 | CompareLT: ... < ... |
920-
| test.c:109:9:109:14 | CompareEQ: ... == ... |
921-
| test.c:109:19:109:23 | CompareLT: ... < ... |
922-
| test.c:126:7:126:7 | CompareNE: 1 |
923-
| test.c:126:12:126:26 | CompareNE: call to test3_condition |
924-
| test.c:131:7:131:7 | CompareNE: b |
925-
| test.c:137:7:137:7 | CompareNE: 0 |
926-
| test.c:146:7:146:8 | CompareEQ: ! ... |
927-
| test.c:152:10:152:10 | CompareNE: x |
928-
| test.c:152:15:152:15 | CompareNE: y |
929-
| test.c:156:9:156:19 | CompareEQ: ... == ... |
930-
| test.c:159:9:159:19 | CompareEQ: ... == ... |
931-
| test.c:162:9:162:18 | CompareLT: ... < ... |
932-
| test.c:165:9:165:18 | CompareLT: ... < ... |
933-
| test.c:175:13:175:32 | CompareEQ: ... == ... |
934-
| test.c:181:9:181:9 | CompareNE: x |
935-
| test.cpp:18:8:18:12 | CompareNE: (bool)... |
936-
| test.cpp:31:7:31:13 | CompareEQ: ... == ... |
937-
| test.cpp:42:13:42:20 | Call: call to getABool |
938863
irGuardsCompare
939864
| 7 | 0 < x+0 when CompareGT: ... > ... is true |
940865
| 7 | 0 >= x+0 when CompareGT: ... > ... is false |

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import cpp
22
import semmle.code.cpp.controlflow.IRGuards
33

4-
query predicate astGuards(GuardCondition guard) { any() }
5-
64
query predicate astGuardsCompare(int startLine, string msg) {
75
exists(GuardCondition guard, Expr left, int k, string op |
86
exists(boolean sense, string which |
@@ -70,8 +68,6 @@ query predicate astGuardsEnsure_const(
7068
)
7169
}
7270

73-
query predicate irGuards(IRGuardCondition guard) { any() }
74-
7571
query predicate irGuardsCompare(int startLine, string msg) {
7672
exists(IRGuardCondition guard, Operand left, int k, string op |
7773
exists(boolean sense, string which |

0 commit comments

Comments
 (0)