1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 03:56:15 +00:00
kickc/src/test/ref/struct-ptr-5.cfg

40 lines
2.2 KiB
INI

@begin: scope:[] from
[0] phi()
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
[4] *((struct Entry**)(const struct Entry*) ENTRIES#0+(const byte) OFFSET_STRUCT_ENTRY_NEXT) ← (const struct Entry*) main::entry2#0
[5] *((byte*)(const struct Entry*) ENTRIES#0) ← (byte) 1
[6] *((struct Entry**)(const struct Entry*) main::entry2#0+(const byte) OFFSET_STRUCT_ENTRY_NEXT) ← (const struct Entry*) main::entry1#0
[7] *((byte*)(const struct Entry*) main::entry2#0) ← (byte) 2
[8] *((struct Entry**)(const struct Entry*) main::entry1#0+(const byte) OFFSET_STRUCT_ENTRY_NEXT) ← (struct Entry*) 0
[9] *((byte*)(const struct Entry*) main::entry1#0) ← (byte) 3
to:main::@1
main::@1: scope:[main] from main main::@2
[10] (byte) main::idx#5 ← phi( main/(byte) 0 main::@2/(byte) main::idx#4 )
[10] (struct Entry*) main::entry#2 ← phi( main/(const struct Entry*) ENTRIES#0 main::@2/(struct Entry*) main::entry#1 )
[11] if((byte) 0!=(struct Entry*) main::entry#2) goto main::@2
to:main::@return
main::@return: scope:[main] from main::@1
[12] return
to:@return
main::@2: scope:[main] from main::@1
[13] (byte~) main::$2 ← (byte) '0' + *((byte*)(struct Entry*) main::entry#2)
[14] *((const byte*) main::SCREEN#0 + (byte) main::idx#5) ← (byte~) main::$2
[15] (byte) main::idx#1 ← ++ (byte) main::idx#5
[16] (byte~) main::$3 ← < *((struct Entry**)(struct Entry*) main::entry#2 + (const byte) OFFSET_STRUCT_ENTRY_NEXT)
[17] *((const byte*) main::SCREEN#0 + (byte) main::idx#1) ← (byte~) main::$3
[18] (byte) main::idx#2 ← ++ (byte) main::idx#1
[19] (byte~) main::$4 ← > *((struct Entry**)(struct Entry*) main::entry#2 + (const byte) OFFSET_STRUCT_ENTRY_NEXT)
[20] *((const byte*) main::SCREEN#0 + (byte) main::idx#2) ← (byte~) main::$4
[21] (byte) main::idx#3 ← ++ (byte) main::idx#2
[22] *((const byte*) main::SCREEN#0 + (byte) main::idx#3) ← (byte) ' '
[23] (byte) main::idx#4 ← ++ (byte) main::idx#3
[24] (struct Entry*) main::entry#1 ← *((struct Entry**)(struct Entry*) main::entry#2 + (const byte) OFFSET_STRUCT_ENTRY_NEXT)
to:main::@1