
void __start()
__start: scope:[__start]  from
  [0] phi()
  to:__start::__init1
__start::__init1: scope:[__start]  from __start
  [1] conio_cursor_x = 0
  [2] conio_cursor_y = 0
  [3] conio_line_text = DEFAULT_SCREEN
  [4] conio_line_color = COLORRAM
  [5] call conio_c64_init
  to:__start::@1
__start::@1: scope:[__start]  from __start::__init1
  [6] phi()
  [7] call main
  to:__start::@return
__start::@return: scope:[__start]  from __start::@1
  [8] return 
  to:@return

void conio_c64_init()
conio_c64_init: scope:[conio_c64_init]  from __start::__init1
  [9] conio_c64_init::line#0 = *conio_c64_init::BASIC_CURSOR_LINE
  [10] if(conio_c64_init::line#0<$19) goto conio_c64_init::@2
  to:conio_c64_init::@1
conio_c64_init::@2: scope:[conio_c64_init]  from conio_c64_init
  [11] phi()
  to:conio_c64_init::@1
conio_c64_init::@1: scope:[conio_c64_init]  from conio_c64_init conio_c64_init::@2
  [12] conio_c64_init::line#2 = phi( conio_c64_init::@2/conio_c64_init::line#0, conio_c64_init/$19-1 )
  [13] gotoxy::y#2 = conio_c64_init::line#2
  [14] call gotoxy
  to:conio_c64_init::@return
conio_c64_init::@return: scope:[conio_c64_init]  from conio_c64_init::@1
  [15] return 
  to:@return

__stackcall void cputc(char c)
cputc: scope:[cputc]  from printf_padding::@2 printf_str::@2
  [16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C)
  [17] if(cputc::c#0=='
') goto cputc::@1
  to:cputc::@2
cputc::@2: scope:[cputc]  from cputc
  [18] conio_line_text[conio_cursor_x] = cputc::c#0
  [19] conio_line_color[conio_cursor_x] = LIGHT_BLUE
  [20] conio_cursor_x = ++ conio_cursor_x
  [21] if(conio_cursor_x!=$28) goto cputc::@return
  to:cputc::@3
cputc::@3: scope:[cputc]  from cputc::@2
  [22] phi()
  [23] call cputln
  to:cputc::@return
cputc::@return: scope:[cputc]  from cputc::@1 cputc::@2 cputc::@3
  [24] return 
  to:@return
cputc::@1: scope:[cputc]  from cputc
  [25] phi()
  [26] call cputln
  to:cputc::@return

void main()
main: scope:[main]  from __start::@1
  [27] phi()
  [28] call clrscr
  to:main::@1
main::@1: scope:[main]  from main
  [29] phi()
  [30] call printf_string
  to:main::@2
main::@2: scope:[main]  from main::@1
  [31] phi()
  [32] call cputln
  to:main::@3
main::@3: scope:[main]  from main::@2
  [33] phi()
  [34] call printf_string
  to:main::@4
main::@4: scope:[main]  from main::@3
  [35] phi()
  [36] call cputln
  to:main::@5
main::@5: scope:[main]  from main::@4
  [37] phi()
  [38] call printf_string
  to:main::@6
main::@6: scope:[main]  from main::@5
  [39] phi()
  [40] call cputln
  to:main::@7
main::@7: scope:[main]  from main::@6
  [41] phi()
  [42] call printf_string
  to:main::@return
main::@return: scope:[main]  from main::@7
  [43] return 
  to:@return

void gotoxy(char x , char y)
gotoxy: scope:[gotoxy]  from conio_c64_init::@1
  [44] if(gotoxy::y#2<$19+1) goto gotoxy::@3
  to:gotoxy::@1
gotoxy::@3: scope:[gotoxy]  from gotoxy
  [45] phi()
  to:gotoxy::@1
gotoxy::@1: scope:[gotoxy]  from gotoxy gotoxy::@3
  [46] gotoxy::y#4 = phi( gotoxy::@3/gotoxy::y#2, gotoxy/0 )
  to:gotoxy::@2
gotoxy::@2: scope:[gotoxy]  from gotoxy::@1
  [47] conio_cursor_x = gotoxy::x#2
  [48] conio_cursor_y = gotoxy::y#4
  [49] gotoxy::$7 = (unsigned int)gotoxy::y#4
  [50] gotoxy::$8 = gotoxy::$7 << 2
  [51] gotoxy::$9 = gotoxy::$8 + gotoxy::$7
  [52] gotoxy::line_offset#0 = gotoxy::$9 << 3
  [53] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0
  [54] conio_line_text = gotoxy::$5
  [55] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0
  [56] conio_line_color = gotoxy::$6
  to:gotoxy::@return
gotoxy::@return: scope:[gotoxy]  from gotoxy::@2
  [57] return 
  to:@return

void cputln()
cputln: scope:[cputln]  from cputc::@1 cputc::@3 main::@2 main::@4 main::@6
  [58] conio_line_text = conio_line_text + $28
  [59] conio_line_color = conio_line_color + $28
  [60] conio_cursor_x = 0
  [61] conio_cursor_y = ++ conio_cursor_y
  [62] call cscroll
  to:cputln::@return
cputln::@return: scope:[cputln]  from cputln
  [63] return 
  to:@return

void clrscr()
clrscr: scope:[clrscr]  from main
  [64] phi()
  to:clrscr::@1
clrscr::@1: scope:[clrscr]  from clrscr clrscr::@5
  [65] clrscr::line_cols#5 = phi( clrscr/COLORRAM, clrscr::@5/clrscr::line_cols#1 )
  [65] clrscr::line_text#5 = phi( clrscr/DEFAULT_SCREEN, clrscr::@5/clrscr::line_text#1 )
  [65] clrscr::l#2 = phi( clrscr/0, clrscr::@5/clrscr::l#1 )
  [66] if(clrscr::l#2<$19) goto clrscr::@3
  to:clrscr::@2
clrscr::@2: scope:[clrscr]  from clrscr::@1
  [67] conio_cursor_x = 0
  [68] conio_cursor_y = 0
  [69] conio_line_text = DEFAULT_SCREEN
  [70] conio_line_color = COLORRAM
  to:clrscr::@return
clrscr::@return: scope:[clrscr]  from clrscr::@2
  [71] return 
  to:@return
clrscr::@3: scope:[clrscr]  from clrscr::@1 clrscr::@4
  [72] clrscr::c#2 = phi( clrscr::@1/0, clrscr::@4/clrscr::c#1 )
  [73] if(clrscr::c#2<$28) goto clrscr::@4
  to:clrscr::@5
clrscr::@5: scope:[clrscr]  from clrscr::@3
  [74] clrscr::line_text#1 = clrscr::line_text#5 + $28
  [75] clrscr::line_cols#1 = clrscr::line_cols#5 + $28
  [76] clrscr::l#1 = ++ clrscr::l#2
  to:clrscr::@1
clrscr::@4: scope:[clrscr]  from clrscr::@3
  [77] clrscr::line_text#5[clrscr::c#2] = ' '
  [78] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE
  [79] clrscr::c#1 = ++ clrscr::c#2
  to:clrscr::@3

void printf_string(void (*putc)(char) , char *str , char format_min_length , char format_justify_left)
printf_string: scope:[printf_string]  from main::@1 main::@3 main::@5 main::@7
  [80] printf_string::str#10 = phi( main::@1/main::str, main::@3/main::str1, main::@5/main::str, main::@7/main::str1 )
  [80] printf_string::format_justify_left#10 = phi( main::@1/0, main::@3/0, main::@5/1, main::@7/1 )
  to:printf_string::@3
printf_string::@3: scope:[printf_string]  from printf_string
  [81] strlen::str#1 = printf_string::str#10
  [82] call strlen
  [83] strlen::return#2 = strlen::len#2
  to:printf_string::@6
printf_string::@6: scope:[printf_string]  from printf_string::@3
  [84] printf_string::$9 = strlen::return#2
  [85] printf_string::len#0 = (signed char)printf_string::$9
  [86] printf_string::padding#1 = $a - printf_string::len#0
  [87] if(printf_string::padding#1>=0) goto printf_string::@10
  to:printf_string::@1
printf_string::@10: scope:[printf_string]  from printf_string::@6
  [88] phi()
  to:printf_string::@1
printf_string::@1: scope:[printf_string]  from printf_string::@10 printf_string::@6
  [89] printf_string::padding#3 = phi( printf_string::@6/0, printf_string::@10/printf_string::padding#1 )
  [90] if(0!=printf_string::format_justify_left#10) goto printf_string::@2
  to:printf_string::@8
printf_string::@8: scope:[printf_string]  from printf_string::@1
  [91] if(0!=printf_string::padding#3) goto printf_string::@4
  to:printf_string::@2
printf_string::@4: scope:[printf_string]  from printf_string::@8
  [92] printf_padding::length#0 = (char)printf_string::padding#3
  [93] call printf_padding
  to:printf_string::@2
printf_string::@2: scope:[printf_string]  from printf_string::@1 printf_string::@4 printf_string::@8
  [94] printf_str::s#1 = printf_string::str#10
  [95] call printf_str
  to:printf_string::@7
printf_string::@7: scope:[printf_string]  from printf_string::@2
  [96] if(0==printf_string::format_justify_left#10) goto printf_string::@return
  to:printf_string::@9
printf_string::@9: scope:[printf_string]  from printf_string::@7
  [97] if(0!=printf_string::padding#3) goto printf_string::@5
  to:printf_string::@return
printf_string::@5: scope:[printf_string]  from printf_string::@9
  [98] printf_padding::length#1 = (char)printf_string::padding#3
  [99] call printf_padding
  to:printf_string::@return
printf_string::@return: scope:[printf_string]  from printf_string::@5 printf_string::@7 printf_string::@9
  [100] return 
  to:@return

void cscroll()
cscroll: scope:[cscroll]  from cputln
  [101] if(conio_cursor_y!=$19) goto cscroll::@return
  to:cscroll::@1
cscroll::@1: scope:[cscroll]  from cscroll
  [102] phi()
  [103] call memcpy
  to:cscroll::@2
cscroll::@2: scope:[cscroll]  from cscroll::@1
  [104] phi()
  [105] call memcpy
  to:cscroll::@3
cscroll::@3: scope:[cscroll]  from cscroll::@2
  [106] phi()
  [107] call memset
  to:cscroll::@4
cscroll::@4: scope:[cscroll]  from cscroll::@3
  [108] phi()
  [109] call memset
  to:cscroll::@5
cscroll::@5: scope:[cscroll]  from cscroll::@4
  [110] conio_line_text = conio_line_text - $28
  [111] conio_line_color = conio_line_color - $28
  [112] conio_cursor_y = -- conio_cursor_y
  to:cscroll::@return
cscroll::@return: scope:[cscroll]  from cscroll cscroll::@5
  [113] return 
  to:@return

unsigned int strlen(char *str)
strlen: scope:[strlen]  from printf_string::@3
  [114] phi()
  to:strlen::@1
strlen::@1: scope:[strlen]  from strlen strlen::@2
  [115] strlen::len#2 = phi( strlen/0, strlen::@2/strlen::len#1 )
  [115] strlen::str#2 = phi( strlen/strlen::str#1, strlen::@2/strlen::str#0 )
  [116] if(0!=*strlen::str#2) goto strlen::@2
  to:strlen::@return
strlen::@return: scope:[strlen]  from strlen::@1
  [117] return 
  to:@return
strlen::@2: scope:[strlen]  from strlen::@1
  [118] strlen::len#1 = ++ strlen::len#2
  [119] strlen::str#0 = ++ strlen::str#2
  to:strlen::@1

void printf_padding(void (*putc)(char) , char pad , char length)
printf_padding: scope:[printf_padding]  from printf_string::@4 printf_string::@5
  [120] printf_padding::pad#4 = phi( printf_string::@4/' ', printf_string::@5/' ' )
  [120] printf_padding::length#3 = phi( printf_string::@4/printf_padding::length#0, printf_string::@5/printf_padding::length#1 )
  to:printf_padding::@1
printf_padding::@1: scope:[printf_padding]  from printf_padding printf_padding::@3
  [121] printf_padding::i#2 = phi( printf_padding/0, printf_padding::@3/printf_padding::i#1 )
  [122] if(printf_padding::i#2<printf_padding::length#3) goto printf_padding::@2
  to:printf_padding::@return
printf_padding::@return: scope:[printf_padding]  from printf_padding::@1
  [123] return 
  to:@return
printf_padding::@2: scope:[printf_padding]  from printf_padding::@1
  [124] stackpush(char) = printf_padding::pad#4
  [125] callexecute cputc 
  sideeffect stackpullbytes(1)
  to:printf_padding::@3
printf_padding::@3: scope:[printf_padding]  from printf_padding::@2
  [127] printf_padding::i#1 = ++ printf_padding::i#2
  to:printf_padding::@1

void printf_str(void (*putc)(char) , const char *s)
printf_str: scope:[printf_str]  from printf_string::@2
  [128] phi()
  to:printf_str::@1
printf_str::@1: scope:[printf_str]  from printf_str printf_str::@2
  [129] printf_str::s#2 = phi( printf_str/printf_str::s#1, printf_str::@2/printf_str::s#0 )
  [130] printf_str::c#1 = *printf_str::s#2
  [131] printf_str::s#0 = ++ printf_str::s#2
  [132] if(0!=printf_str::c#1) goto printf_str::@2
  to:printf_str::@return
printf_str::@return: scope:[printf_str]  from printf_str::@1
  [133] return 
  to:@return
printf_str::@2: scope:[printf_str]  from printf_str::@1
  [134] stackpush(char) = printf_str::c#1
  [135] callexecute cputc 
  sideeffect stackpullbytes(1)
  to:printf_str::@1

void * memcpy(void *destination , void *source , unsigned int num)
memcpy: scope:[memcpy]  from cscroll::@1 cscroll::@2
  [137] memcpy::destination#2 = phi( cscroll::@1/(void *)DEFAULT_SCREEN, cscroll::@2/(void *)COLORRAM )
  [137] memcpy::source#2 = phi( cscroll::@1/(void *)DEFAULT_SCREEN+$28, cscroll::@2/(void *)COLORRAM+$28 )
  [138] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28
  [139] memcpy::src#4 = (char *)memcpy::source#2
  [140] memcpy::dst#4 = (char *)memcpy::destination#2
  to:memcpy::@1
memcpy::@1: scope:[memcpy]  from memcpy memcpy::@2
  [141] memcpy::dst#2 = phi( memcpy/memcpy::dst#4, memcpy::@2/memcpy::dst#1 )
  [141] memcpy::src#2 = phi( memcpy/memcpy::src#4, memcpy::@2/memcpy::src#1 )
  [142] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2
  to:memcpy::@return
memcpy::@return: scope:[memcpy]  from memcpy::@1
  [143] return 
  to:@return
memcpy::@2: scope:[memcpy]  from memcpy::@1
  [144] *memcpy::dst#2 = *memcpy::src#2
  [145] memcpy::dst#1 = ++ memcpy::dst#2
  [146] memcpy::src#1 = ++ memcpy::src#2
  to:memcpy::@1

void * memset(void *str , char c , unsigned int num)
memset: scope:[memset]  from cscroll::@3 cscroll::@4
  [147] memset::c#4 = phi( cscroll::@3/' ', cscroll::@4/LIGHT_BLUE )
  [147] memset::str#3 = phi( cscroll::@3/(void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28, cscroll::@4/(void *)COLORRAM+(unsigned int)$19*$28-$28 )
  to:memset::@1
memset::@1: scope:[memset]  from memset
  [148] memset::end#0 = (char *)memset::str#3 + $28
  [149] memset::dst#4 = (char *)memset::str#3
  to:memset::@2
memset::@2: scope:[memset]  from memset::@1 memset::@3
  [150] memset::dst#2 = phi( memset::@1/memset::dst#4, memset::@3/memset::dst#1 )
  [151] if(memset::dst#2!=memset::end#0) goto memset::@3
  to:memset::@return
memset::@return: scope:[memset]  from memset::@2
  [152] return 
  to:@return
memset::@3: scope:[memset]  from memset::@2
  [153] *memset::dst#2 = memset::c#4
  [154] memset::dst#1 = ++ memset::dst#2
  to:memset::@2
