source: src/Tests/Expect-r/Expression.txt @ b1d6dd5

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since b1d6dd5 was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 9 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: 11.1 KB
Line 
1nameExpr is ?=?
2decl is ?=?: automatically generated inline function
3  with parameters
4    _dst: pointer to instance of struct s
5    _src: instance of struct s
6  returning
7    instance of struct s
8  with body
9    CompoundStmt
10              Expression Statement:
11          Applying untyped:
12              Name: ?=?
13          ...to:
14              Address of:
15                Member Expression, with field:
16                  i: signed int
17                from aggregate:
18                  Applying untyped:
19                      Name: *?
20                  ...to:
21                      Variable Expression: _dst: pointer to instance of struct s
22              Member Expression, with field:
23                i: signed int
24              from aggregate:
25                Variable Expression: _src: instance of struct s
26
27              Return Statement, returning: Variable Expression: _src: instance of struct s
28
29
30
31newExpr is Variable Expression: ?=?: inline function
32    with parameters
33      _dst: pointer to instance of struct s
34      _src: instance of struct s
35    returning
36      instance of struct s
37
38
39alternatives before prune:
40Cost ( 0, 0, 0 ): Variable Expression: ?=?: inline function
41    with parameters
42      _dst: pointer to instance of struct s
43      _src: instance of struct s
44    returning
45      instance of struct s
46
47(types:
48    pointer to function
49        with parameters
50          _dst: pointer to instance of struct s
51          _src: instance of struct s
52        returning
53          instance of struct s
54
55)
56Environment:
57
58there are 1 alternatives before elimination
59there are 1 alternatives after elimination
60alternatives before prune:
61Cost ( 0, 0, 0 ): Member Expression, with field:
62  i: signed int
63from aggregate:
64  Applying untyped:
65      Name: *?
66  ...to:
67      Variable Expression: _dst: pointer to instance of struct s
68(types:
69    lvalue signed int
70)
71Environment:
72
73there are 1 alternatives before elimination
74there are 1 alternatives after elimination
75alternatives before prune:
76Cost ( 0, 0, 0 ): Address of:
77  Member Expression, with field:
78    i: signed int
79  from aggregate:
80    Applying untyped:
81        Name: *?
82    ...to:
83        Variable Expression: _dst: pointer to instance of struct s
84(types:
85    pointer to signed int
86)
87Environment:
88
89there are 1 alternatives before elimination
90there are 1 alternatives after elimination
91findSubExprs
92Cost ( 0, 0, 0 ): Address of:
93  Member Expression, with field:
94    i: signed int
95  from aggregate:
96    Applying untyped:
97        Name: *?
98    ...to:
99        Variable Expression: _dst: pointer to instance of struct s
100(types:
101    pointer to signed int
102)
103Environment:
104
105alternatives before prune:
106Cost ( 0, 0, 0 ): Member Expression, with field:
107  i: signed int
108from aggregate:
109  Variable Expression: _src: instance of struct s
110(types:
111    lvalue signed int
112)
113Environment:
114
115there are 1 alternatives before elimination
116there are 1 alternatives after elimination
117findSubExprs
118Cost ( 0, 0, 0 ): Member Expression, with field:
119  i: signed int
120from aggregate:
121  Variable Expression: _src: instance of struct s
122(types:
123    lvalue signed int
124)
125Environment:
126
127working on alternative:
128        Cost ( 0, 0, 0 ):         Variable Expression: ?=?: inline function
129            with parameters
130              _dst: pointer to instance of struct s
131              _src: instance of struct s
132            returning
133              instance of struct s
134
135(types:
136            pointer to function
137                with parameters
138                  _dst: pointer to instance of struct s
139                  _src: instance of struct s
140                returning
141                  instance of struct s
142
143)
144        Environment:
145formal type is pointer to instance of struct s
146actual type is pointer to signed int
147alternatives before prune:
148Cost ( 0, 0, 0 ): Variable Expression: _src: instance of struct s
149(types:
150    lvalue instance of struct s
151)
152Environment:
153
154there are 1 alternatives before elimination
155there are 1 alternatives after elimination
156alternatives before prune:
157Cost ( 0, 0, 0 ): Cast of:
158  Variable Expression: _src: instance of struct s
159
160to:
161  instance of struct s
162(types:
163    instance of struct s
164)
165Environment:
166
167there are 1 alternatives before elimination
168there are 1 alternatives after elimination
169nameExpr is !?
170nameExpr is ~?
171nameExpr is +?
172nameExpr is -?
173nameExpr is *?
174nameExpr is ++?
175nameExpr is --?
176nameExpr is ?++
177nameExpr is ?--
178nameExpr is ?+?
179nameExpr is ?-?
180nameExpr is ?*?
181nameExpr is ?/?
182nameExpr is ?%?
183nameExpr is ?^?
184nameExpr is ?&?
185nameExpr is ?|?
186nameExpr is ?<?
187nameExpr is ?>?
188nameExpr is ?=?
189decl is ?=?: automatically generated inline function
190  with parameters
191    _dst: pointer to instance of struct s
192    _src: instance of struct s
193  returning
194    instance of struct s
195  with body
196    CompoundStmt
197              Expression Statement:
198          Applying untyped:
199              Name: ?=?
200          ...to:
201              Address of:
202                Member Expression, with field:
203                  i: signed int
204                from aggregate:
205                  Applying untyped:
206                      Name: *?
207                  ...to:
208                      Variable Expression: _dst: pointer to instance of struct s
209              Member Expression, with field:
210                i: signed int
211              from aggregate:
212                Variable Expression: _src: instance of struct s
213
214              Return Statement, returning: Cast of:
215  Variable Expression: _src: instance of struct s
216
217to:
218  instance of struct s
219with environment:
220  Types:
221  Non-types:
222
223
224
225newExpr is Variable Expression: ?=?: inline function
226    with parameters
227      _dst: pointer to instance of struct s
228      _src: instance of struct s
229    returning
230      instance of struct s
231
232
233alternatives before prune:
234Cost ( 0, 0, 0 ): Variable Expression: ?=?: inline function
235    with parameters
236      _dst: pointer to instance of struct s
237      _src: instance of struct s
238    returning
239      instance of struct s
240
241(types:
242    pointer to function
243        with parameters
244          _dst: pointer to instance of struct s
245          _src: instance of struct s
246        returning
247          instance of struct s
248
249)
250Environment:
251
252there are 1 alternatives before elimination
253there are 1 alternatives after elimination
254nameExpr is i
255decl is i: signed int
256newExpr is Variable Expression: i: signed int
257
258alternatives before prune:
259Cost ( 0, 0, 0 ): Variable Expression: i: signed int
260(types:
261    lvalue signed int
262)
263Environment:
264
265there are 1 alternatives before elimination
266there are 1 alternatives after elimination
267alternatives before prune:
268Cost ( 0, 0, 0 ): Address of:
269  Variable Expression: i: signed int
270(types:
271    pointer to signed int
272)
273Environment:
274
275there are 1 alternatives before elimination
276there are 1 alternatives after elimination
277findSubExprs
278Cost ( 0, 0, 0 ): Address of:
279  Variable Expression: i: signed int
280(types:
281    pointer to signed int
282)
283Environment:
284
285nameExpr is i
286decl is i: signed int
287newExpr is Variable Expression: i: signed int
288
289alternatives before prune:
290Cost ( 0, 0, 0 ): Variable Expression: i: signed int
291(types:
292    lvalue signed int
293)
294Environment:
295
296there are 1 alternatives before elimination
297there are 1 alternatives after elimination
298findSubExprs
299Cost ( 0, 0, 0 ): Variable Expression: i: signed int
300(types:
301    lvalue signed int
302)
303Environment:
304
305working on alternative:
306        Cost ( 0, 0, 0 ):         Variable Expression: ?=?: inline function
307            with parameters
308              _dst: pointer to instance of struct s
309              _src: instance of struct s
310            returning
311              instance of struct s
312
313(types:
314            pointer to function
315                with parameters
316                  _dst: pointer to instance of struct s
317                  _src: instance of struct s
318                returning
319                  instance of struct s
320
321)
322        Environment:
323formal type is pointer to instance of struct s
324actual type is pointer to signed int
325nameExpr is ?==?
326nameExpr is ?!=?
327nameExpr is ?<<?
328nameExpr is ?>>?
329nameExpr is ?<=?
330nameExpr is ?>=?
331nameExpr is ?!=?
332nameExpr is ?!=?
333nameExpr is *?
334nameExpr is ?+=?
335nameExpr is ?-=?
336nameExpr is ?*=?
337nameExpr is ?/=?
338nameExpr is ?%=?
339nameExpr is ?&=?
340nameExpr is ?|=?
341nameExpr is ?^=?
342nameExpr is ?<<=?
343nameExpr is ?>>=?
344nameExpr is ?!=?
345Error: No reasonable alternatives for expression Applying untyped:
346    Name: ?=?
347...to:
348    Address of:
349      Member Expression, with field:
350        i: signed int
351      from aggregate:
352        Applying untyped:
353            Name: *?
354        ...to:
355            Variable Expression: _dst: pointer to instance of struct s
356    Member Expression, with field:
357      i: signed int
358    from aggregate:
359      Variable Expression: _src: instance of struct s
360
361Error: No reasonable alternatives for expression Name: !?
362
363Error: No reasonable alternatives for expression Name: ~?
364
365Error: No reasonable alternatives for expression Name: +?
366
367Error: No reasonable alternatives for expression Name: -?
368
369Error: No reasonable alternatives for expression Name: *?
370
371Error: No reasonable alternatives for expression Name: ++?
372
373Error: No reasonable alternatives for expression Name: --?
374
375Error: No reasonable alternatives for expression Name: ?++
376
377Error: No reasonable alternatives for expression Name: ?--
378
379Error: No reasonable alternatives for expression Name: ?+?
380
381Error: No reasonable alternatives for expression Name: ?-?
382
383Error: No reasonable alternatives for expression Name: ?*?
384
385Error: No reasonable alternatives for expression Name: ?/?
386
387Error: No reasonable alternatives for expression Name: ?%?
388
389Error: No reasonable alternatives for expression Name: ?^?
390
391Error: No reasonable alternatives for expression Name: ?&?
392
393Error: No reasonable alternatives for expression Name: ?|?
394
395Error: No reasonable alternatives for expression Name: ?<?
396
397Error: No reasonable alternatives for expression Name: ?>?
398
399Error: No reasonable alternatives for expression Applying untyped:
400    Name: ?=?
401...to:
402    Address of:
403      Name: i
404    Name: i
405
406Error: No reasonable alternatives for expression Name: ?==?
407
408Error: No reasonable alternatives for expression Name: ?!=?
409
410Error: No reasonable alternatives for expression Name: ?<<?
411
412Error: No reasonable alternatives for expression Name: ?>>?
413
414Error: No reasonable alternatives for expression Name: ?<=?
415
416Error: No reasonable alternatives for expression Name: ?>=?
417
418Error: No reasonable alternatives for expression Name: ?!=?
419
420Error: No reasonable alternatives for expression Name: ?!=?
421
422Error: No reasonable alternatives for expression Name: *?
423
424Error: No reasonable alternatives for expression Name: ?+=?
425
426Error: No reasonable alternatives for expression Name: ?-=?
427
428Error: No reasonable alternatives for expression Name: ?*=?
429
430Error: No reasonable alternatives for expression Name: ?/=?
431
432Error: No reasonable alternatives for expression Name: ?%=?
433
434Error: No reasonable alternatives for expression Name: ?&=?
435
436Error: No reasonable alternatives for expression Name: ?|=?
437
438Error: No reasonable alternatives for expression Name: ?^=?
439
440Error: No reasonable alternatives for expression Name: ?<<=?
441
442Error: No reasonable alternatives for expression Name: ?>>=?
443
444Error: No reasonable alternatives for expression Name: ?!=?
445
Note: See TracBrowser for help on using the repository browser.