Skip to content

Commit 7e71d9e

Browse files
committed
C++: Update expected test results after outputting less loads from the extractor
1 parent bec3e62 commit 7e71d9e

File tree

9 files changed

+115
-439
lines changed

9 files changed

+115
-439
lines changed

cpp/ql/test/examples/expressions/PrintAST.expected

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ArrayToPointer.c:
4949
# 9| getStmt(2): [ExprStmt] ExprStmt
5050
# 9| getExpr(): [AssignExpr] ... = ...
5151
# 9| Type = [CharPointerType] char *
52-
# 9| ValueCategory = prvalue(load)
52+
# 9| ValueCategory = prvalue
5353
# 9| getLValue(): [ValueFieldAccess] name
5454
# 9| Type = [CharPointerType] char *
5555
# 9| ValueCategory = lvalue
@@ -74,7 +74,7 @@ Cast.c:
7474
# 2| getStmt(0): [ExprStmt] ExprStmt
7575
# 2| getExpr(): [AssignExpr] ... = ...
7676
# 2| Type = [CharPointerType] char *
77-
# 2| ValueCategory = prvalue(load)
77+
# 2| ValueCategory = prvalue
7878
# 2| getLValue(): [VariableAccess] c
7979
# 2| Type = [CharPointerType] char *
8080
# 2| ValueCategory = lvalue
@@ -245,7 +245,7 @@ Conversion2.c:
245245
# 2| getStmt(0): [ExprStmt] ExprStmt
246246
# 2| getExpr(): [AssignExpr] ... = ...
247247
# 2| Type = [IntType] int
248-
# 2| ValueCategory = prvalue(load)
248+
# 2| ValueCategory = prvalue
249249
# 2| getLValue(): [VariableAccess] x
250250
# 2| Type = [IntType] int
251251
# 2| ValueCategory = lvalue
@@ -331,7 +331,7 @@ Conversion4.c:
331331
# 2| getStmt(0): [ExprStmt] ExprStmt
332332
# 2| getExpr(): [AssignExpr] ... = ...
333333
# 2| Type = [IntType] int
334-
# 2| ValueCategory = prvalue(load)
334+
# 2| ValueCategory = prvalue
335335
# 2| getLValue(): [VariableAccess] x
336336
# 2| Type = [IntType] int
337337
# 2| ValueCategory = lvalue
@@ -589,7 +589,7 @@ Parenthesis.c:
589589
# 2| getStmt(0): [ExprStmt] ExprStmt
590590
# 2| getExpr(): [AssignExpr] ... = ...
591591
# 2| Type = [IntType] int
592-
# 2| ValueCategory = prvalue(load)
592+
# 2| ValueCategory = prvalue
593593
# 2| getLValue(): [VariableAccess] i
594594
# 2| Type = [IntType] int
595595
# 2| ValueCategory = lvalue
@@ -625,7 +625,7 @@ PointerDereference.c:
625625
# 2| getStmt(0): [ExprStmt] ExprStmt
626626
# 2| getExpr(): [AssignExpr] ... = ...
627627
# 2| Type = [IntType] int
628-
# 2| ValueCategory = prvalue(load)
628+
# 2| ValueCategory = prvalue
629629
# 2| getLValue(): [VariableAccess] j
630630
# 2| Type = [IntType] int
631631
# 2| ValueCategory = lvalue
@@ -782,7 +782,7 @@ Subscript.c:
782782
# 2| getStmt(0): [ExprStmt] ExprStmt
783783
# 2| getExpr(): [AssignExpr] ... = ...
784784
# 2| Type = [IntType] int
785-
# 2| ValueCategory = prvalue(load)
785+
# 2| ValueCategory = prvalue
786786
# 2| getLValue(): [VariableAccess] j
787787
# 2| Type = [IntType] int
788788
# 2| ValueCategory = lvalue
@@ -1009,7 +1009,7 @@ macro_etc.c:
10091009
# 9| getStmt(1): [ExprStmt] ExprStmt
10101010
# 9| getExpr(): [AssignExpr] ... = ...
10111011
# 9| Type = [IntType] int
1012-
# 9| ValueCategory = prvalue(load)
1012+
# 9| ValueCategory = prvalue
10131013
# 9| getLValue(): [ValueFieldAccess] b
10141014
# 9| Type = [IntType] int
10151015
# 9| ValueCategory = lvalue
@@ -1079,7 +1079,7 @@ macro_etc.c:
10791079
# 27| getInitialization(): [ExprStmt] ExprStmt
10801080
# 27| getExpr(): [AssignExpr] ... = ...
10811081
# 27| Type = [PlainCharType] char
1082-
# 27| ValueCategory = prvalue(load)
1082+
# 27| ValueCategory = prvalue
10831083
# 27| getLValue(): [VariableAccess] i
10841084
# 27| Type = [PlainCharType] char
10851085
# 27| ValueCategory = lvalue
@@ -1108,15 +1108,15 @@ macro_etc.c:
11081108
# 27| ValueCategory = prvalue
11091109
# 27| getUpdate(): [PrefixIncrExpr] ++ ...
11101110
# 27| Type = [PlainCharType] char
1111-
# 27| ValueCategory = prvalue(load)
1111+
# 27| ValueCategory = prvalue
11121112
# 27| getOperand(): [VariableAccess] i
11131113
# 27| Type = [PlainCharType] char
11141114
# 27| ValueCategory = lvalue
11151115
# 27| getStmt(): [BlockStmt] { ... }
11161116
# 27| getStmt(0): [ExprStmt] ExprStmt
11171117
# 27| getExpr(): [AssignAddExpr] ... += ...
11181118
# 27| Type = [IntType] int
1119-
# 27| ValueCategory = prvalue(load)
1119+
# 27| ValueCategory = prvalue
11201120
# 27| getLValue(): [VariableAccess] t
11211121
# 27| Type = [IntType] int
11221122
# 27| ValueCategory = lvalue
@@ -1131,7 +1131,7 @@ macro_etc.c:
11311131
# 28| getInitialization(): [ExprStmt] ExprStmt
11321132
# 28| getExpr(): [AssignExpr] ... = ...
11331133
# 28| Type = [PlainCharType] char
1134-
# 28| ValueCategory = prvalue(load)
1134+
# 28| ValueCategory = prvalue
11351135
# 28| getLValue(): [VariableAccess] i
11361136
# 28| Type = [PlainCharType] char
11371137
# 28| ValueCategory = lvalue
@@ -1160,15 +1160,15 @@ macro_etc.c:
11601160
# 28| ValueCategory = prvalue
11611161
# 28| getUpdate(): [PrefixIncrExpr] ++ ...
11621162
# 28| Type = [PlainCharType] char
1163-
# 28| ValueCategory = prvalue(load)
1163+
# 28| ValueCategory = prvalue
11641164
# 28| getOperand(): [VariableAccess] i
11651165
# 28| Type = [PlainCharType] char
11661166
# 28| ValueCategory = lvalue
11671167
# 28| getStmt(): [BlockStmt] { ... }
11681168
# 28| getStmt(0): [ExprStmt] ExprStmt
11691169
# 28| getExpr(): [AssignAddExpr] ... += ...
11701170
# 28| Type = [IntType] int
1171-
# 28| ValueCategory = prvalue(load)
1171+
# 28| ValueCategory = prvalue
11721172
# 28| getLValue(): [VariableAccess] t
11731173
# 28| Type = [IntType] int
11741174
# 28| ValueCategory = lvalue
@@ -1182,7 +1182,7 @@ macro_etc.c:
11821182
# 29| getStmt(8): [ExprStmt] ExprStmt
11831183
# 29| getExpr(): [AssignExpr] ... = ...
11841184
# 29| Type = [CharPointerType] char *
1185-
# 29| ValueCategory = prvalue(load)
1185+
# 29| ValueCategory = prvalue
11861186
# 29| getLValue(): [VariableAccess] bt
11871187
# 29| Type = [CharPointerType] char *
11881188
# 29| ValueCategory = lvalue
@@ -1196,7 +1196,7 @@ macro_etc.c:
11961196
# 30| getStmt(9): [ExprStmt] ExprStmt
11971197
# 30| getExpr(): [AssignExpr] ... = ...
11981198
# 30| Type = [PlainCharType] char
1199-
# 30| ValueCategory = prvalue(load)
1199+
# 30| ValueCategory = prvalue
12001200
# 30| getLValue(): [ArrayExpr] access to array
12011201
# 30| Type = [PlainCharType] char
12021202
# 30| ValueCategory = lvalue
@@ -1220,7 +1220,7 @@ macro_etc.c:
12201220
# 31| getStmt(10): [ExprStmt] ExprStmt
12211221
# 31| getExpr(): [AssignExpr] ... = ...
12221222
# 31| Type = [FunctionPointerType] ..(*)(..)
1223-
# 31| ValueCategory = prvalue(load)
1223+
# 31| ValueCategory = prvalue
12241224
# 31| getLValue(): [VariableAccess] bp
12251225
# 31| Type = [FunctionPointerType] ..(*)(..)
12261226
# 31| ValueCategory = lvalue

0 commit comments

Comments
 (0)