Skip to content

Commit a4be276

Browse files
committed
C++: Minor test case reformatting
1 parent 7d1b5ce commit a4be276

File tree

4 files changed

+208
-210
lines changed

4 files changed

+208
-210
lines changed

cpp/ql/test/library-tests/ir/ir/PrintAST.expected

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -61,74 +61,74 @@
6161
arm.cpp:
6262
# 6| [TopLevelFunction] uint8x8_t vadd_u8(uint8x8_t, uint8x8_t)
6363
# 6| <params>:
64-
# 6| getParameter(0): [Parameter] __a
64+
# 6| getParameter(0): [Parameter] a
6565
# 6| Type = [CTypedefType] uint8x8_t
66-
# 6| getParameter(1): [Parameter] __b
66+
# 6| getParameter(1): [Parameter] b
6767
# 6| Type = [CTypedefType] uint8x8_t
68-
# 7| getEntryPoint(): [BlockStmt] { ... }
69-
# 8| getStmt(0): [ReturnStmt] return ...
70-
# 8| getExpr(): [AddExpr] ... + ...
71-
# 8| Type = [GNUVectorType] __attribute((neon_vector_type(8))) unsigned char
72-
# 8| ValueCategory = prvalue
73-
# 8| getLeftOperand(): [VariableAccess] __a
74-
# 8| Type = [CTypedefType] uint8x8_t
75-
# 8| ValueCategory = prvalue(load)
76-
# 8| getRightOperand(): [VariableAccess] __b
77-
# 8| Type = [CTypedefType] uint8x8_t
78-
# 8| ValueCategory = prvalue(load)
79-
# 13| [TopLevelFunction] uint16x8_t __builtin_aarch64_uaddlv8qi_uuu(uint8x8_t, uint8x8_t)
80-
# 13| <params>:
81-
# 13| getParameter(0): [Parameter] (unnamed parameter 0)
82-
# 13| Type = [CTypedefType] uint8x8_t
83-
# 13| getParameter(1): [Parameter] (unnamed parameter 1)
84-
# 13| Type = [CTypedefType] uint8x8_t
85-
# 15| [TopLevelFunction] uint16x8_t vaddl_u8(uint8x8_t, uint8x8_t)
86-
# 15| <params>:
87-
# 15| getParameter(0): [Parameter] __a
88-
# 15| Type = [CTypedefType] uint8x8_t
89-
# 15| getParameter(1): [Parameter] __b
90-
# 15| Type = [CTypedefType] uint8x8_t
91-
# 16| getEntryPoint(): [BlockStmt] { ... }
92-
# 17| getStmt(0): [ReturnStmt] return ...
93-
# 17| getExpr(): [FunctionCall] call to __builtin_aarch64_uaddlv8qi_uuu
94-
# 17| Type = [CTypedefType] uint16x8_t
95-
# 17| ValueCategory = prvalue
96-
# 17| getArgument(0): [VariableAccess] __a
97-
# 17| Type = [CTypedefType] uint8x8_t
98-
# 17| ValueCategory = prvalue(load)
99-
# 17| getArgument(1): [VariableAccess] __b
100-
# 17| Type = [CTypedefType] uint8x8_t
101-
# 17| ValueCategory = prvalue(load)
102-
# 20| [TopLevelFunction] uint16x8_t arm_add(uint8x8_t, uint8x8_t)
103-
# 20| <params>:
104-
# 20| getParameter(0): [Parameter] a
105-
# 20| Type = [CTypedefType] uint8x8_t
106-
# 20| getParameter(1): [Parameter] b
107-
# 20| Type = [CTypedefType] uint8x8_t
108-
# 20| getEntryPoint(): [BlockStmt] { ... }
109-
# 21| getStmt(0): [DeclStmt] declaration
110-
# 21| getDeclarationEntry(0): [VariableDeclarationEntry] definition of c
111-
# 21| Type = [CTypedefType] uint8x8_t
112-
# 21| getVariable().getInitializer(): [Initializer] initializer for c
113-
# 21| getExpr(): [FunctionCall] call to vadd_u8
114-
# 21| Type = [CTypedefType] uint8x8_t
115-
# 21| ValueCategory = prvalue
116-
# 21| getArgument(0): [VariableAccess] a
117-
# 21| Type = [CTypedefType] uint8x8_t
118-
# 21| ValueCategory = prvalue(load)
119-
# 21| getArgument(1): [VariableAccess] b
120-
# 21| Type = [CTypedefType] uint8x8_t
121-
# 21| ValueCategory = prvalue(load)
122-
# 22| getStmt(1): [ReturnStmt] return ...
123-
# 22| getExpr(): [FunctionCall] call to vaddl_u8
124-
# 22| Type = [CTypedefType] uint16x8_t
125-
# 22| ValueCategory = prvalue
126-
# 22| getArgument(0): [VariableAccess] a
127-
# 22| Type = [CTypedefType] uint8x8_t
128-
# 22| ValueCategory = prvalue(load)
129-
# 22| getArgument(1): [VariableAccess] c
130-
# 22| Type = [CTypedefType] uint8x8_t
131-
# 22| ValueCategory = prvalue(load)
68+
# 6| getEntryPoint(): [BlockStmt] { ... }
69+
# 7| getStmt(0): [ReturnStmt] return ...
70+
# 7| getExpr(): [AddExpr] ... + ...
71+
# 7| Type = [GNUVectorType] __attribute((neon_vector_type(8))) unsigned char
72+
# 7| ValueCategory = prvalue
73+
# 7| getLeftOperand(): [VariableAccess] a
74+
# 7| Type = [CTypedefType] uint8x8_t
75+
# 7| ValueCategory = prvalue(load)
76+
# 7| getRightOperand(): [VariableAccess] b
77+
# 7| Type = [CTypedefType] uint8x8_t
78+
# 7| ValueCategory = prvalue(load)
79+
# 12| [TopLevelFunction] uint16x8_t __builtin_aarch64_uaddlv8qi_uuu(uint8x8_t, uint8x8_t)
80+
# 12| <params>:
81+
# 12| getParameter(0): [Parameter] (unnamed parameter 0)
82+
# 12| Type = [CTypedefType] uint8x8_t
83+
# 12| getParameter(1): [Parameter] (unnamed parameter 1)
84+
# 12| Type = [CTypedefType] uint8x8_t
85+
# 14| [TopLevelFunction] uint16x8_t vaddl_u8(uint8x8_t, uint8x8_t)
86+
# 14| <params>:
87+
# 14| getParameter(0): [Parameter] a
88+
# 14| Type = [CTypedefType] uint8x8_t
89+
# 14| getParameter(1): [Parameter] b
90+
# 14| Type = [CTypedefType] uint8x8_t
91+
# 14| getEntryPoint(): [BlockStmt] { ... }
92+
# 15| getStmt(0): [ReturnStmt] return ...
93+
# 15| getExpr(): [FunctionCall] call to __builtin_aarch64_uaddlv8qi_uuu
94+
# 15| Type = [CTypedefType] uint16x8_t
95+
# 15| ValueCategory = prvalue
96+
# 15| getArgument(0): [VariableAccess] a
97+
# 15| Type = [CTypedefType] uint8x8_t
98+
# 15| ValueCategory = prvalue(load)
99+
# 15| getArgument(1): [VariableAccess] b
100+
# 15| Type = [CTypedefType] uint8x8_t
101+
# 15| ValueCategory = prvalue(load)
102+
# 18| [TopLevelFunction] uint16x8_t arm_add(uint8x8_t, uint8x8_t)
103+
# 18| <params>:
104+
# 18| getParameter(0): [Parameter] a
105+
# 18| Type = [CTypedefType] uint8x8_t
106+
# 18| getParameter(1): [Parameter] b
107+
# 18| Type = [CTypedefType] uint8x8_t
108+
# 18| getEntryPoint(): [BlockStmt] { ... }
109+
# 19| getStmt(0): [DeclStmt] declaration
110+
# 19| getDeclarationEntry(0): [VariableDeclarationEntry] definition of c
111+
# 19| Type = [CTypedefType] uint8x8_t
112+
# 19| getVariable().getInitializer(): [Initializer] initializer for c
113+
# 19| getExpr(): [FunctionCall] call to vadd_u8
114+
# 19| Type = [CTypedefType] uint8x8_t
115+
# 19| ValueCategory = prvalue
116+
# 19| getArgument(0): [VariableAccess] a
117+
# 19| Type = [CTypedefType] uint8x8_t
118+
# 19| ValueCategory = prvalue(load)
119+
# 19| getArgument(1): [VariableAccess] b
120+
# 19| Type = [CTypedefType] uint8x8_t
121+
# 19| ValueCategory = prvalue(load)
122+
# 20| getStmt(1): [ReturnStmt] return ...
123+
# 20| getExpr(): [FunctionCall] call to vaddl_u8
124+
# 20| Type = [CTypedefType] uint16x8_t
125+
# 20| ValueCategory = prvalue
126+
# 20| getArgument(0): [VariableAccess] a
127+
# 20| Type = [CTypedefType] uint8x8_t
128+
# 20| ValueCategory = prvalue(load)
129+
# 20| getArgument(1): [VariableAccess] c
130+
# 20| Type = [CTypedefType] uint8x8_t
131+
# 20| ValueCategory = prvalue(load)
132132
bad_asts.cpp:
133133
# 5| [CopyAssignmentOperator] Bad::S& Bad::S::operator=(Bad::S const&)
134134
# 5| <params>:

0 commit comments

Comments
 (0)