mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-26 03:32:23 +00:00
Added output
This commit is contained in:
parent
4af6d88907
commit
61a6e29f4d
@ -12,6 +12,79 @@ Culled Empty Block (label) @3
|
||||
Culled Empty Block (label) @4
|
||||
Culled Empty Block (label) @5
|
||||
Culled Empty Block (label) main::@4
|
||||
PROCEDURE PARAMETERS
|
||||
@begin: scope:[] from
|
||||
to:@6
|
||||
|
||||
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
|
||||
memset: scope:[memset] from main
|
||||
(bool~) memset::$0 ← (word) memset::num > (number) 0
|
||||
(bool~) memset::$1 ← ! (bool~) memset::$0
|
||||
if((bool~) memset::$1) goto memset::@1
|
||||
to:memset::@2
|
||||
memset::@1: scope:[memset] from memset memset::@4
|
||||
(void*) memset::return ← (void*) memset::str
|
||||
to:memset::@return
|
||||
memset::@2: scope:[memset] from memset
|
||||
(byte*~) memset::$2 ← ((byte*)) (void*) memset::str
|
||||
(byte*~) memset::$3 ← (byte*~) memset::$2 + (word) memset::num
|
||||
(byte*) memset::end ← (byte*~) memset::$3
|
||||
(byte*) memset::dst ← ((byte*)) (void*) memset::str
|
||||
to:memset::@4
|
||||
memset::@4: scope:[memset] from memset::@2 memset::@5
|
||||
(bool~) memset::$4 ← (byte*) memset::dst != (byte*) memset::end
|
||||
if((bool~) memset::$4) goto memset::@5
|
||||
to:memset::@1
|
||||
memset::@5: scope:[memset] from memset::@4
|
||||
*((byte*) memset::dst) ← (byte) memset::c
|
||||
(byte*) memset::dst ← ++ (byte*) memset::dst
|
||||
to:memset::@4
|
||||
memset::@return: scope:[memset] from memset::@1
|
||||
(void*) memset::return ← (void*) memset::return
|
||||
return (void*) memset::return
|
||||
to:@return
|
||||
|
||||
(void()) main()
|
||||
main: scope:[main] from @6
|
||||
(void*) memset::str ← (void*)(const byte*) SCREEN
|
||||
(byte) memset::c ← (byte) ' '
|
||||
(word) memset::num ← (number) $3e8
|
||||
(void*) memset::return ← call memset
|
||||
to:main::@5
|
||||
main::@5: scope:[main] from main
|
||||
(byte*~) main::$1 ← (const byte*) SCREEN + (number) $28
|
||||
(byte*~) main::$2 ← (byte*~) main::$1 + (number) 1
|
||||
(byte*) main::screen ← (byte*~) main::$2
|
||||
(byte) main::ch ← (byte) 0
|
||||
(byte) main::x ← (byte) 0
|
||||
to:main::@1
|
||||
main::@1: scope:[main] from main::@3 main::@5
|
||||
(byte) main::y ← (byte) 0
|
||||
to:main::@2
|
||||
main::@2: scope:[main] from main::@1 main::@2
|
||||
*((byte*) main::screen) ← (byte) main::ch
|
||||
(byte*) main::screen ← ++ (byte*) main::screen
|
||||
(byte) main::ch ← ++ (byte) main::ch
|
||||
(byte) main::y ← (byte) main::y + rangenext(0,$f)
|
||||
(bool~) main::$3 ← (byte) main::y != rangelast(0,$f)
|
||||
if((bool~) main::$3) goto main::@2
|
||||
to:main::@3
|
||||
main::@3: scope:[main] from main::@2
|
||||
(byte*) main::screen ← (byte*) main::screen + (number) $28-(number) $10
|
||||
(byte) main::x ← (byte) main::x + rangenext(0,$f)
|
||||
(bool~) main::$4 ← (byte) main::x != rangelast(0,$f)
|
||||
if((bool~) main::$4) goto main::@1
|
||||
to:main::@return
|
||||
main::@return: scope:[main] from main::@3
|
||||
return
|
||||
to:@return
|
||||
@6: scope:[] from @begin
|
||||
call main
|
||||
to:@7
|
||||
@7: scope:[] from @6
|
||||
to:@end
|
||||
@end: scope:[] from @7
|
||||
|
||||
|
||||
CONTROL FLOW GRAPH SSA
|
||||
@begin: scope:[] from
|
||||
|
Loading…
Reference in New Issue
Block a user