source: src/Tests/Expect-v/Initialization2.txt @ f60d997

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 f60d997 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: 25.3 KB
Line 
1a: signed int with initializer
2  Simple Initializer: constant expression 3 signed int
3struct __anonymous0
4    with members
5      x: signed int
6      y: signed int
7
8?=?: automatically generated inline static function
9    with parameters
10      _dst: pointer to instance of struct __anonymous0
11      _src: instance of struct __anonymous0
12    returning
13      instance of struct __anonymous0
14    with body
15      CompoundStmt
16                  Expression Statement:
17            Applying untyped:
18                Name: ?=?
19            ...to:
20                Address of:
21                  Member Expression, with field:
22                    x: signed int
23                  from aggregate:
24                    Applying untyped:
25                        Name: *?
26                    ...to:
27                        Variable Expression: _dst: pointer to instance of struct __anonymous0
28                Member Expression, with field:
29                  x: signed int
30                from aggregate:
31                  Variable Expression: _src: instance of struct __anonymous0
32
33                  Expression Statement:
34            Applying untyped:
35                Name: ?=?
36            ...to:
37                Address of:
38                  Member Expression, with field:
39                    y: signed int
40                  from aggregate:
41                    Applying untyped:
42                        Name: *?
43                    ...to:
44                        Variable Expression: _dst: pointer to instance of struct __anonymous0
45                Member Expression, with field:
46                  y: signed int
47                from aggregate:
48                  Variable Expression: _src: instance of struct __anonymous0
49
50                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous0
51
52
53
54z: instance of struct __anonymous0 with initializer
55  Compound initializer: 
56    Simple Initializer: constant expression 3 signed int
57    Simple Initializer: constant expression 7 signed int
58struct __anonymous1
59    with members
60      x: signed int
61      y: signed int
62
63?=?: automatically generated inline static function
64    with parameters
65      _dst: pointer to instance of struct __anonymous1
66      _src: instance of struct __anonymous1
67    returning
68      instance of struct __anonymous1
69    with body
70      CompoundStmt
71                  Expression Statement:
72            Applying untyped:
73                Name: ?=?
74            ...to:
75                Address of:
76                  Member Expression, with field:
77                    x: signed int
78                  from aggregate:
79                    Applying untyped:
80                        Name: *?
81                    ...to:
82                        Variable Expression: _dst: pointer to instance of struct __anonymous1
83                Member Expression, with field:
84                  x: signed int
85                from aggregate:
86                  Variable Expression: _src: instance of struct __anonymous1
87
88                  Expression Statement:
89            Applying untyped:
90                Name: ?=?
91            ...to:
92                Address of:
93                  Member Expression, with field:
94                    y: signed int
95                  from aggregate:
96                    Applying untyped:
97                        Name: *?
98                    ...to:
99                        Variable Expression: _dst: pointer to instance of struct __anonymous1
100                Member Expression, with field:
101                  y: signed int
102                from aggregate:
103                  Variable Expression: _src: instance of struct __anonymous1
104
105                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous1
106
107
108
109z1: instance of struct __anonymous1 with initializer
110  Compound initializer: 
111    Simple Initializer: constant expression 3 signed int
112      designated by:         Name: x
113        Name: y
114
115struct __anonymous2
116    with members
117      x: signed int
118      y: signed int
119
120?=?: automatically generated inline static function
121    with parameters
122      _dst: pointer to instance of struct __anonymous2
123      _src: instance of struct __anonymous2
124    returning
125      instance of struct __anonymous2
126    with body
127      CompoundStmt
128                  Expression Statement:
129            Applying untyped:
130                Name: ?=?
131            ...to:
132                Address of:
133                  Member Expression, with field:
134                    x: signed int
135                  from aggregate:
136                    Applying untyped:
137                        Name: *?
138                    ...to:
139                        Variable Expression: _dst: pointer to instance of struct __anonymous2
140                Member Expression, with field:
141                  x: signed int
142                from aggregate:
143                  Variable Expression: _src: instance of struct __anonymous2
144
145                  Expression Statement:
146            Applying untyped:
147                Name: ?=?
148            ...to:
149                Address of:
150                  Member Expression, with field:
151                    y: signed int
152                  from aggregate:
153                    Applying untyped:
154                        Name: *?
155                    ...to:
156                        Variable Expression: _dst: pointer to instance of struct __anonymous2
157                Member Expression, with field:
158                  y: signed int
159                from aggregate:
160                  Variable Expression: _src: instance of struct __anonymous2
161
162                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous2
163
164
165
166z2: instance of struct __anonymous2 with initializer
167  Compound initializer: 
168    Simple Initializer: constant expression 3 signed int
169      designated by:         Name: y
170
171    Simple Initializer: constant expression 4 signed int
172      designated by:         Name: x
173
174struct __anonymous3
175    with members
176      y1: signed int
177      y2: signed int
178
179?=?: automatically generated inline static function
180    with parameters
181      _dst: pointer to instance of struct __anonymous3
182      _src: instance of struct __anonymous3
183    returning
184      instance of struct __anonymous3
185    with body
186      CompoundStmt
187                  Expression Statement:
188            Applying untyped:
189                Name: ?=?
190            ...to:
191                Address of:
192                  Member Expression, with field:
193                    y1: signed int
194                  from aggregate:
195                    Applying untyped:
196                        Name: *?
197                    ...to:
198                        Variable Expression: _dst: pointer to instance of struct __anonymous3
199                Member Expression, with field:
200                  y1: signed int
201                from aggregate:
202                  Variable Expression: _src: instance of struct __anonymous3
203
204                  Expression Statement:
205            Applying untyped:
206                Name: ?=?
207            ...to:
208                Address of:
209                  Member Expression, with field:
210                    y2: signed int
211                  from aggregate:
212                    Applying untyped:
213                        Name: *?
214                    ...to:
215                        Variable Expression: _dst: pointer to instance of struct __anonymous3
216                Member Expression, with field:
217                  y2: signed int
218                from aggregate:
219                  Variable Expression: _src: instance of struct __anonymous3
220
221                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous3
222
223
224
225struct __anonymous4
226    with members
227      x: signed int
228      y: instance of struct __anonymous3
229
230?=?: automatically generated inline static function
231    with parameters
232      _dst: pointer to instance of struct __anonymous4
233      _src: instance of struct __anonymous4
234    returning
235      instance of struct __anonymous4
236    with body
237      CompoundStmt
238                  Expression Statement:
239            Applying untyped:
240                Name: ?=?
241            ...to:
242                Address of:
243                  Member Expression, with field:
244                    x: signed int
245                  from aggregate:
246                    Applying untyped:
247                        Name: *?
248                    ...to:
249                        Variable Expression: _dst: pointer to instance of struct __anonymous4
250                Member Expression, with field:
251                  x: signed int
252                from aggregate:
253                  Variable Expression: _src: instance of struct __anonymous4
254
255                  Expression Statement:
256            Applying untyped:
257                Name: ?=?
258            ...to:
259                Address of:
260                  Member Expression, with field:
261                    y: instance of struct __anonymous3
262                  from aggregate:
263                    Applying untyped:
264                        Name: *?
265                    ...to:
266                        Variable Expression: _dst: pointer to instance of struct __anonymous4
267                Member Expression, with field:
268                  y: instance of struct __anonymous3
269                from aggregate:
270                  Variable Expression: _src: instance of struct __anonymous4
271
272                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous4
273
274
275
276z3: instance of struct __anonymous4 with initializer
277  Compound initializer: 
278    Simple Initializer: constant expression 3 signed int
279      designated by:         Name: x
280
281    Compound initializer:        designated by: [        Name: y
282      ]
283      Simple Initializer: constant expression 4 signed int
284        designated by:           Name: y1
285
286      Simple Initializer: constant expression 5 signed int
287        designated by:           Name: y2
288
289struct __anonymous5
290    with members
291      y1: signed int
292      y2: signed int
293
294?=?: automatically generated inline static function
295    with parameters
296      _dst: pointer to instance of struct __anonymous5
297      _src: instance of struct __anonymous5
298    returning
299      instance of struct __anonymous5
300    with body
301      CompoundStmt
302                  Expression Statement:
303            Applying untyped:
304                Name: ?=?
305            ...to:
306                Address of:
307                  Member Expression, with field:
308                    y1: signed int
309                  from aggregate:
310                    Applying untyped:
311                        Name: *?
312                    ...to:
313                        Variable Expression: _dst: pointer to instance of struct __anonymous5
314                Member Expression, with field:
315                  y1: signed int
316                from aggregate:
317                  Variable Expression: _src: instance of struct __anonymous5
318
319                  Expression Statement:
320            Applying untyped:
321                Name: ?=?
322            ...to:
323                Address of:
324                  Member Expression, with field:
325                    y2: signed int
326                  from aggregate:
327                    Applying untyped:
328                        Name: *?
329                    ...to:
330                        Variable Expression: _dst: pointer to instance of struct __anonymous5
331                Member Expression, with field:
332                  y2: signed int
333                from aggregate:
334                  Variable Expression: _src: instance of struct __anonymous5
335
336                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous5
337
338
339
340struct __anonymous6
341    with members
342      x: signed int
343      y: instance of struct __anonymous5
344
345?=?: automatically generated inline static function
346    with parameters
347      _dst: pointer to instance of struct __anonymous6
348      _src: instance of struct __anonymous6
349    returning
350      instance of struct __anonymous6
351    with body
352      CompoundStmt
353                  Expression Statement:
354            Applying untyped:
355                Name: ?=?
356            ...to:
357                Address of:
358                  Member Expression, with field:
359                    x: signed int
360                  from aggregate:
361                    Applying untyped:
362                        Name: *?
363                    ...to:
364                        Variable Expression: _dst: pointer to instance of struct __anonymous6
365                Member Expression, with field:
366                  x: signed int
367                from aggregate:
368                  Variable Expression: _src: instance of struct __anonymous6
369
370                  Expression Statement:
371            Applying untyped:
372                Name: ?=?
373            ...to:
374                Address of:
375                  Member Expression, with field:
376                    y: instance of struct __anonymous5
377                  from aggregate:
378                    Applying untyped:
379                        Name: *?
380                    ...to:
381                        Variable Expression: _dst: pointer to instance of struct __anonymous6
382                Member Expression, with field:
383                  y: instance of struct __anonymous5
384                from aggregate:
385                  Variable Expression: _src: instance of struct __anonymous6
386
387                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous6
388
389
390
391z3: instance of struct __anonymous6 with initializer
392  Compound initializer: 
393    Compound initializer:        designated by: [        Name: y
394      ]
395      Simple Initializer: constant expression 9 signed int
396        designated by:           Name: y2
397
398      Simple Initializer: constant expression 8 signed int
399        designated by:           Name: y1
400
401    Simple Initializer: constant expression 7 signed int
402      designated by:         Name: x
403
404struct __anonymous7
405    with members
406      y1: signed int
407      y2: signed int
408
409?=?: automatically generated inline static function
410    with parameters
411      _dst: pointer to instance of struct __anonymous7
412      _src: instance of struct __anonymous7
413    returning
414      instance of struct __anonymous7
415    with body
416      CompoundStmt
417                  Expression Statement:
418            Applying untyped:
419                Name: ?=?
420            ...to:
421                Address of:
422                  Member Expression, with field:
423                    y1: signed int
424                  from aggregate:
425                    Applying untyped:
426                        Name: *?
427                    ...to:
428                        Variable Expression: _dst: pointer to instance of struct __anonymous7
429                Member Expression, with field:
430                  y1: signed int
431                from aggregate:
432                  Variable Expression: _src: instance of struct __anonymous7
433
434                  Expression Statement:
435            Applying untyped:
436                Name: ?=?
437            ...to:
438                Address of:
439                  Member Expression, with field:
440                    y2: signed int
441                  from aggregate:
442                    Applying untyped:
443                        Name: *?
444                    ...to:
445                        Variable Expression: _dst: pointer to instance of struct __anonymous7
446                Member Expression, with field:
447                  y2: signed int
448                from aggregate:
449                  Variable Expression: _src: instance of struct __anonymous7
450
451                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous7
452
453
454
455struct __anonymous8
456    with members
457      x: signed int
458      y: instance of struct __anonymous7
459
460?=?: automatically generated inline static function
461    with parameters
462      _dst: pointer to instance of struct __anonymous8
463      _src: instance of struct __anonymous8
464    returning
465      instance of struct __anonymous8
466    with body
467      CompoundStmt
468                  Expression Statement:
469            Applying untyped:
470                Name: ?=?
471            ...to:
472                Address of:
473                  Member Expression, with field:
474                    x: signed int
475                  from aggregate:
476                    Applying untyped:
477                        Name: *?
478                    ...to:
479                        Variable Expression: _dst: pointer to instance of struct __anonymous8
480                Member Expression, with field:
481                  x: signed int
482                from aggregate:
483                  Variable Expression: _src: instance of struct __anonymous8
484
485                  Expression Statement:
486            Applying untyped:
487                Name: ?=?
488            ...to:
489                Address of:
490                  Member Expression, with field:
491                    y: instance of struct __anonymous7
492                  from aggregate:
493                    Applying untyped:
494                        Name: *?
495                    ...to:
496                        Variable Expression: _dst: pointer to instance of struct __anonymous8
497                Member Expression, with field:
498                  y: instance of struct __anonymous7
499                from aggregate:
500                  Variable Expression: _src: instance of struct __anonymous8
501
502                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous8
503
504
505
506z3: instance of struct __anonymous8 with initializer
507  Compound initializer: 
508    Simple Initializer: constant expression 7 signed int
509      designated by:         Name: x
510
511    Compound initializer: 
512      Simple Initializer: constant expression 9 signed int
513        designated by:           Name: y2
514
515      Simple Initializer: constant expression 8 signed int
516        designated by:           Name: y1
517
518struct __anonymous9
519    with members
520      y1: signed int
521      y2: signed int
522
523?=?: automatically generated inline static function
524    with parameters
525      _dst: pointer to instance of struct __anonymous9
526      _src: instance of struct __anonymous9
527    returning
528      instance of struct __anonymous9
529    with body
530      CompoundStmt
531                  Expression Statement:
532            Applying untyped:
533                Name: ?=?
534            ...to:
535                Address of:
536                  Member Expression, with field:
537                    y1: signed int
538                  from aggregate:
539                    Applying untyped:
540                        Name: *?
541                    ...to:
542                        Variable Expression: _dst: pointer to instance of struct __anonymous9
543                Member Expression, with field:
544                  y1: signed int
545                from aggregate:
546                  Variable Expression: _src: instance of struct __anonymous9
547
548                  Expression Statement:
549            Applying untyped:
550                Name: ?=?
551            ...to:
552                Address of:
553                  Member Expression, with field:
554                    y2: signed int
555                  from aggregate:
556                    Applying untyped:
557                        Name: *?
558                    ...to:
559                        Variable Expression: _dst: pointer to instance of struct __anonymous9
560                Member Expression, with field:
561                  y2: signed int
562                from aggregate:
563                  Variable Expression: _src: instance of struct __anonymous9
564
565                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous9
566
567
568
569struct __anonymous10
570    with members
571      x: signed int
572      y: instance of struct __anonymous9
573
574?=?: automatically generated inline static function
575    with parameters
576      _dst: pointer to instance of struct __anonymous10
577      _src: instance of struct __anonymous10
578    returning
579      instance of struct __anonymous10
580    with body
581      CompoundStmt
582                  Expression Statement:
583            Applying untyped:
584                Name: ?=?
585            ...to:
586                Address of:
587                  Member Expression, with field:
588                    x: signed int
589                  from aggregate:
590                    Applying untyped:
591                        Name: *?
592                    ...to:
593                        Variable Expression: _dst: pointer to instance of struct __anonymous10
594                Member Expression, with field:
595                  x: signed int
596                from aggregate:
597                  Variable Expression: _src: instance of struct __anonymous10
598
599                  Expression Statement:
600            Applying untyped:
601                Name: ?=?
602            ...to:
603                Address of:
604                  Member Expression, with field:
605                    y: instance of struct __anonymous9
606                  from aggregate:
607                    Applying untyped:
608                        Name: *?
609                    ...to:
610                        Variable Expression: _dst: pointer to instance of struct __anonymous10
611                Member Expression, with field:
612                  y: instance of struct __anonymous9
613                from aggregate:
614                  Variable Expression: _src: instance of struct __anonymous10
615
616                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous10
617
618
619
620z3: instance of struct __anonymous10 with initializer
621  Compound initializer: 
622    Simple Initializer: constant expression 3 signed int
623    Compound initializer: 
624      Simple Initializer: constant expression 4 signed int
625      Simple Initializer: constant expression 5 signed int
626struct t
627    with members
628      a: signed int
629      b: signed int
630
631?=?: automatically generated inline static function
632    with parameters
633      _dst: pointer to instance of struct t
634      _src: instance of struct t
635    returning
636      instance of struct t
637    with body
638      CompoundStmt
639                  Expression Statement:
640            Applying untyped:
641                Name: ?=?
642            ...to:
643                Address of:
644                  Member Expression, with field:
645                    a: signed int
646                  from aggregate:
647                    Applying untyped:
648                        Name: *?
649                    ...to:
650                        Variable Expression: _dst: pointer to instance of struct t
651                Member Expression, with field:
652                  a: signed int
653                from aggregate:
654                  Variable Expression: _src: instance of struct t
655
656                  Expression Statement:
657            Applying untyped:
658                Name: ?=?
659            ...to:
660                Address of:
661                  Member Expression, with field:
662                    b: signed int
663                  from aggregate:
664                    Applying untyped:
665                        Name: *?
666                    ...to:
667                        Variable Expression: _dst: pointer to instance of struct t
668                Member Expression, with field:
669                  b: signed int
670                from aggregate:
671                  Variable Expression: _src: instance of struct t
672
673                  Return Statement, returning: Variable Expression: _src: instance of struct t
674
675
676
677x: instance of struct t with initializer
678  Compound initializer: 
679    Simple Initializer: constant expression 4 signed int
680      designated by:         Name: b
681
682    Simple Initializer: constant expression 3 signed int
683      designated by:         Name: a
684
685struct __anonymous11
686    with members
687      x: signed int
688      y: signed int
689
690?=?: automatically generated inline static function
691    with parameters
692      _dst: pointer to instance of struct __anonymous11
693      _src: instance of struct __anonymous11
694    returning
695      instance of struct __anonymous11
696    with body
697      CompoundStmt
698                  Expression Statement:
699            Applying untyped:
700                Name: ?=?
701            ...to:
702                Address of:
703                  Member Expression, with field:
704                    x: signed int
705                  from aggregate:
706                    Applying untyped:
707                        Name: *?
708                    ...to:
709                        Variable Expression: _dst: pointer to instance of struct __anonymous11
710                Member Expression, with field:
711                  x: signed int
712                from aggregate:
713                  Variable Expression: _src: instance of struct __anonymous11
714
715                  Expression Statement:
716            Applying untyped:
717                Name: ?=?
718            ...to:
719                Address of:
720                  Member Expression, with field:
721                    y: signed int
722                  from aggregate:
723                    Applying untyped:
724                        Name: *?
725                    ...to:
726                        Variable Expression: _dst: pointer to instance of struct __anonymous11
727                Member Expression, with field:
728                  y: signed int
729                from aggregate:
730                  Variable Expression: _src: instance of struct __anonymous11
731
732                  Return Statement, returning: Variable Expression: _src: instance of struct __anonymous11
733
734
735
736z6: instance of struct __anonymous11 with initializer
737  Compound initializer: 
738    Simple Initializer: constant expression 5 signed int
739    Simple Initializer: constant expression 6 signed int
740    Simple Initializer: constant expression 4 signed int
Note: See TracBrowser for help on using the repository browser.