1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00
kickc/src/test/ref/robozzle64-label-problem.cfg
2019-05-31 01:56:59 +02:00

62 lines
2.5 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] phi()
to:main::@1
main::@1: scope:[main] from main main::@3
[5] (word*) main::screen#1 ← phi( main/(word*) 1024 main::@3/(word*) main::screen#2 )
[5] (byte) main::y#2 ← phi( main/(byte) 0 main::@3/(byte) main::y#1 )
[6] (byte) mul8u::a#1 ← (byte) main::y#2
[7] call mul8u
[8] (word) mul8u::return#2 ← (word) mul8u::res#2
to:main::@2
main::@2: scope:[main] from main::@1
[9] (word) main::z1#0 ← (word) mul8u::return#2
[10] *((word*) main::screen#1) ← (word) main::z1#0
[11] (byte) mul8u::a#2 ← (byte) main::y#2
[12] call mul8u
[13] (word) mul8u::return#3 ← (word) mul8u::res#2
to:main::@3
main::@3: scope:[main] from main::@2
[14] (word) main::z2#0 ← (word) mul8u::return#3
[15] *((word*) main::screen#1 + (const byte) SIZEOF_WORD) ← (word) main::z2#0
[16] (word*) main::screen#2 ← (word*) main::screen#1 + (const byte) SIZEOF_WORD+(const byte) SIZEOF_WORD
[17] (byte) main::y#1 ← ++ (byte) main::y#2
[18] if((byte) main::y#1!=(byte) 6) goto main::@1
to:main::@return
main::@return: scope:[main] from main::@3
[19] return
to:@return
mul8u: scope:[mul8u] from main::@1 main::@2
[20] (byte) mul8u::a#6 ← phi( main::@1/(byte) mul8u::a#1 main::@2/(byte) mul8u::a#2 )
[20] (word) mul8u::mb#0 ← phi( main::@1/(const byte) mul8u::b#0 main::@2/(const byte) mul8u::b#1 )
to:mul8u::@1
mul8u::@1: scope:[mul8u] from mul8u mul8u::@3
[21] (word) mul8u::mb#2 ← phi( mul8u/(word) mul8u::mb#0 mul8u::@3/(word) mul8u::mb#1 )
[21] (word) mul8u::res#2 ← phi( mul8u/(byte) 0 mul8u::@3/(word) mul8u::res#6 )
[21] (byte) mul8u::a#3 ← phi( mul8u/(byte) mul8u::a#6 mul8u::@3/(byte) mul8u::a#0 )
[22] if((byte) mul8u::a#3!=(byte) 0) goto mul8u::@2
to:mul8u::@return
mul8u::@return: scope:[mul8u] from mul8u::@1
[23] return
to:@return
mul8u::@2: scope:[mul8u] from mul8u::@1
[24] (byte~) mul8u::$1 ← (byte) mul8u::a#3 & (byte) 1
[25] if((byte~) mul8u::$1==(byte) 0) goto mul8u::@3
to:mul8u::@4
mul8u::@4: scope:[mul8u] from mul8u::@2
[26] (word) mul8u::res#1 ← (word) mul8u::res#2 + (word) mul8u::mb#2
to:mul8u::@3
mul8u::@3: scope:[mul8u] from mul8u::@2 mul8u::@4
[27] (word) mul8u::res#6 ← phi( mul8u::@2/(word) mul8u::res#2 mul8u::@4/(word) mul8u::res#1 )
[28] (byte) mul8u::a#0 ← (byte) mul8u::a#3 >> (byte) 1
[29] (word) mul8u::mb#1 ← (word) mul8u::mb#2 << (byte) 1
to:mul8u::@1