source: src/Tests/Expect-e/Operators.txt@ 4c82a3c

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 4c82a3c was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs

  • Property mode set to 100644
File size: 6.4 KB
Line 
1?*?: function
2 with parameters
3 signed int
4 signed int
5 returning
6 signed int
7
8?(): function
9 with parameters
10 number1: signed int
11 number2: signed int
12 returning
13 signed int
14 with body
15 CompoundStmt
16 Return Statement, returning: Cast of:
17 Application of
18 Variable Expression: ?*?: function
19 with parameters
20 signed int
21 signed int
22 returning
23 signed int
24
25 to arguments
26 Variable Expression: number1: signed int
27
28 Variable Expression: number2: signed int
29
30
31to:
32 signed int
33with environment:
34 Types:
35 Non-types:
36
37
38
39?+?: function
40 with parameters
41 signed int
42 signed int
43 returning
44 signed int
45
46?=?: function
47 with parameters
48 pointer to signed int
49 signed int
50 returning
51 signed int
52
53struct accumulator
54 with members
55 total: signed int
56
57?=?: automatically generated inline static function
58 with parameters
59 _dst: pointer to instance of struct accumulator
60 _src: instance of struct accumulator
61 returning
62 instance of struct accumulator
63 with body
64 CompoundStmt
65 Expression Statement:
66 Application of
67 Variable Expression: ?=?: function
68 with parameters
69 pointer to signed int
70 signed int
71 returning
72 signed int
73
74 to arguments
75 Address of:
76 Member Expression, with field:
77 total: signed int
78 from aggregate:
79 Applying untyped:
80 Name: *?
81 ...to:
82 Variable Expression: _dst: pointer to instance of struct accumulator
83
84 Member Expression, with field:
85 total: signed int
86 from aggregate:
87 Variable Expression: _src: instance of struct accumulator
88
89 with environment:
90 Types:
91 Non-types:
92
93 Return Statement, returning: Cast of:
94 Variable Expression: _src: instance of struct accumulator
95
96to:
97 instance of struct accumulator
98with environment:
99 Types:
100 Non-types:
101
102
103
104?(): function
105 with parameters
106 a: instance of struct accumulator
107 number1: char
108 number2: char
109 returning
110 char
111
112f: function
113 returning
114 nothing
115 with body
116 CompoundStmt
117 Declaration of a: char
118 Declaration of b: char
119 Expression Statement:
120 Application of
121 Variable Expression: ?(): function
122 with parameters
123 number1: signed int
124 number2: signed int
125 returning
126 signed int
127
128 to arguments
129 Cast of:
130 Variable Expression: a: char
131
132 to:
133 signed int
134
135 Cast of:
136 Variable Expression: b: char
137
138 to:
139 signed int
140
141 with environment:
142 Types:
143 Non-types:
144
145 Expression Statement:
146 Application of
147 Variable Expression: ?(): function
148 with parameters
149 number1: signed int
150 number2: signed int
151 returning
152 signed int
153
154 to arguments
155 Cast of:
156 Variable Expression: a: char
157
158 to:
159 signed int
160
161 Cast of:
162 Variable Expression: b: char
163
164 to:
165 signed int
166
167 with environment:
168 Types:
169 Non-types:
170
171 Expression Statement:
172 Application of
173 Variable Expression: ?+?: function
174 with parameters
175 signed int
176 signed int
177 returning
178 signed int
179
180 to arguments
181 Cast of:
182 Variable Expression: a: char
183
184 to:
185 signed int
186
187 Cast of:
188 Variable Expression: b: char
189
190 to:
191 signed int
192
193 with environment:
194 Types:
195 Non-types:
196
197 Declaration of ?+?: instance of struct accumulator
198 Expression Statement:
199 Application of
200 Variable Expression: ?(): function
201 with parameters
202 a: instance of struct accumulator
203 number1: char
204 number2: char
205 returning
206 char
207
208 to arguments
209 Variable Expression: ?+?: instance of struct accumulator
210
211 Variable Expression: a: char
212
213 Variable Expression: b: char
214
215 with environment:
216 Types:
217 Non-types:
218
219
220int ___operator_multiply__Fi_ii_(int , int );
221int ___operator_call__Fi_ii_(int __number1__i, int __number2__i){
222 return ___operator_multiply__Fi_ii_(__number1__i, __number2__i);
223}
224int ___operator_add__Fi_ii_(int , int );
225int ___operator_assign__Fi_Pii_(int *, int );
226struct accumulator
227{
228 int __total__i;
229};
230static inline struct accumulator ___operator_assign__F12saccumulator_P12saccumulator12saccumulator_(struct accumulator *___dst__P12saccumulator, struct accumulator ___src__12saccumulator){
231 ___operator_assign__Fi_Pii_((&(*___dst__P12saccumulator).__total__i), ___src__12saccumulator.__total__i);
232 return ___src__12saccumulator;
233}
234char ___operator_call__Fc_12saccumulatorcc_(struct accumulator __a__12saccumulator, char __number1__c, char __number2__c);
235void __f__F__(void){
236 char __a__c;
237 char __b__c;
238 ___operator_call__Fi_ii_(((int )__a__c), ((int )__b__c));
239 ___operator_call__Fi_ii_(((int )__a__c), ((int )__b__c));
240 ___operator_add__Fi_ii_(((int )__a__c), ((int )__b__c));
241 struct accumulator ___operator_add__12saccumulator;
242 ___operator_call__Fc_12saccumulatorcc_(___operator_add__12saccumulator, __a__c, __b__c);
243}
Note: See TracBrowser for help on using the repository browser.