1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +00:00
kickc/src/test/ref/switch-0.cfg
2019-09-29 20:57:28 +02:00

47 lines
1.4 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()
(void()) main()
main: scope:[main] from @1
[4] phi()
to:main::@1
main::@1: scope:[main] from main main::@6
[5] (byte) main::i#10 ← phi( main/(byte) 0 main::@6/(byte) main::i#1 )
[6] if((byte) main::i#10==(byte) 1) goto main::@2
to:main::@7
main::@7: scope:[main] from main::@1
[7] if((byte) main::i#10==(byte) 2) goto main::@3
to:main::@8
main::@8: scope:[main] from main::@7
[8] if((byte) main::i#10==(byte) 3) goto main::@3
to:main::@9
main::@9: scope:[main] from main::@8
[9] if((byte) main::i#10==(byte) 4) goto main::@4
to:main::@5
main::@5: scope:[main] from main::@9
[10] *((const byte*) main::SCREEN + (byte) main::i#10) ← (byte) 'd'
to:main::@6
main::@6: scope:[main] from main::@2 main::@4 main::@5
[11] (byte) main::i#1 ← ++ (byte) main::i#10
[12] if((byte) main::i#1!=(byte) 6) goto main::@1
to:main::@return
main::@return: scope:[main] from main::@6
[13] return
to:@return
main::@4: scope:[main] from main::@3 main::@9
[14] *((const byte*) main::SCREEN + (byte) main::i#10) ← (byte) '4'
to:main::@6
main::@3: scope:[main] from main::@7 main::@8
[15] *((const byte*) main::SCREEN + (byte) main::i#10) ← (byte) '3'
to:main::@4
main::@2: scope:[main] from main::@1
[16] *((const byte*) main::SCREEN + (byte) main::i#10) ← (byte) '1'
to:main::@6