
CONTROL FLOW GRAPH SSA
@begin: scope:[]  from
  (byte*) print_screen#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024
  (byte*) print_line_cursor#0 ← (byte*) print_screen#0
  (byte*) print_char_cursor#0 ← (byte*) print_line_cursor#0
  to:@12
print_ln: scope:[print_ln]  from main::@16
  (byte*) print_char_cursor#64 ← phi( main::@16/(byte*) print_char_cursor#29 )
  (byte*) print_line_cursor#17 ← phi( main::@16/(byte*) print_line_cursor#19 )
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  (byte*) print_char_cursor#33 ← phi( print_ln/(byte*) print_char_cursor#64 print_ln::@1/(byte*) print_char_cursor#33 )
  (byte*) print_line_cursor#9 ← phi( print_ln/(byte*) print_line_cursor#17 print_ln::@1/(byte*) print_line_cursor#1 )
  (byte*~) print_ln::$0 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*) print_line_cursor#1 ← (byte*~) print_ln::$0
  (bool~) print_ln::$1 ← (byte*) print_line_cursor#1 < (byte*) print_char_cursor#33
  if((bool~) print_ln::$1) goto print_ln::@1
  to:print_ln::@2
print_ln::@2: scope:[print_ln]  from print_ln::@1
  (byte*) print_line_cursor#10 ← phi( print_ln::@1/(byte*) print_line_cursor#1 )
  (byte*) print_char_cursor#1 ← (byte*) print_line_cursor#10
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@2
  (byte*) print_char_cursor#34 ← phi( print_ln::@2/(byte*) print_char_cursor#1 )
  (byte*) print_line_cursor#11 ← phi( print_ln::@2/(byte*) print_line_cursor#10 )
  (byte*) print_line_cursor#2 ← (byte*) print_line_cursor#11
  (byte*) print_char_cursor#2 ← (byte*) print_char_cursor#34
  return 
  to:@return
print_word: scope:[print_word]  from main::@5 main::@7 print_dword print_dword::@1
  (byte*) print_char_cursor#65 ← phi( main::@5/(byte*) print_char_cursor#18 main::@7/(byte*) print_char_cursor#20 print_dword/(byte*) print_char_cursor#66 print_dword::@1/(byte*) print_char_cursor#6 )
  (word) print_word::w#4 ← phi( main::@5/(word) print_word::w#2 main::@7/(word) print_word::w#3 print_dword/(word) print_word::w#0 print_dword::@1/(word) print_word::w#1 )
  (byte~) print_word::$0 ← > (word) print_word::w#4
  (byte) print_byte::b#0 ← (byte~) print_word::$0
  call print_byte 
  to:print_word::@1
print_word::@1: scope:[print_word]  from print_word
  (word) print_word::w#5 ← phi( print_word/(word) print_word::w#4 )
  (byte*) print_char_cursor#35 ← phi( print_word/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#3 ← (byte*) print_char_cursor#35
  (byte~) print_word::$2 ← < (word) print_word::w#5
  (byte) print_byte::b#1 ← (byte~) print_word::$2
  call print_byte 
  to:print_word::@2
print_word::@2: scope:[print_word]  from print_word::@1
  (byte*) print_char_cursor#36 ← phi( print_word::@1/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#4 ← (byte*) print_char_cursor#36
  to:print_word::@return
print_word::@return: scope:[print_word]  from print_word::@2
  (byte*) print_char_cursor#37 ← phi( print_word::@2/(byte*) print_char_cursor#4 )
  (byte*) print_char_cursor#5 ← (byte*) print_char_cursor#37
  return 
  to:@return
print_dword: scope:[print_dword]  from main::@1
  (byte*) print_char_cursor#66 ← phi( main::@1/(byte*) print_char_cursor#69 )
  (dword) print_dword::dw#1 ← phi( main::@1/(dword) print_dword::dw#0 )
  (word~) print_dword::$0 ← > (dword) print_dword::dw#1
  (word) print_word::w#0 ← (word~) print_dword::$0
  call print_word 
  to:print_dword::@1
print_dword::@1: scope:[print_dword]  from print_dword
  (dword) print_dword::dw#2 ← phi( print_dword/(dword) print_dword::dw#1 )
  (byte*) print_char_cursor#38 ← phi( print_dword/(byte*) print_char_cursor#5 )
  (byte*) print_char_cursor#6 ← (byte*) print_char_cursor#38
  (word~) print_dword::$2 ← < (dword) print_dword::dw#2
  (word) print_word::w#1 ← (word~) print_dword::$2
  call print_word 
  to:print_dword::@2
print_dword::@2: scope:[print_dword]  from print_dword::@1
  (byte*) print_char_cursor#39 ← phi( print_dword::@1/(byte*) print_char_cursor#5 )
  (byte*) print_char_cursor#7 ← (byte*) print_char_cursor#39
  to:print_dword::@return
print_dword::@return: scope:[print_dword]  from print_dword::@2
  (byte*) print_char_cursor#40 ← phi( print_dword::@2/(byte*) print_char_cursor#7 )
  (byte*) print_char_cursor#8 ← (byte*) print_char_cursor#40
  return 
  to:@return
@12: scope:[]  from @begin
  (byte*) print_screen#6 ← phi( @begin/(byte*) print_screen#0 )
  (byte*) print_char_cursor#71 ← phi( @begin/(byte*) print_char_cursor#0 )
  (byte*) print_line_cursor#22 ← phi( @begin/(byte*) print_line_cursor#0 )
  (byte[]) print_hextab#0 ← (const string) $0
  to:@20
print_byte: scope:[print_byte]  from main::@11 main::@13 main::@15 main::@9 print_word print_word::@1
  (byte*) print_char_cursor#67 ← phi( main::@11/(byte*) print_char_cursor#24 main::@13/(byte*) print_char_cursor#26 main::@15/(byte*) print_char_cursor#28 main::@9/(byte*) print_char_cursor#22 print_word/(byte*) print_char_cursor#65 print_word::@1/(byte*) print_char_cursor#3 )
  (byte) print_byte::b#6 ← phi( main::@11/(byte) print_byte::b#3 main::@13/(byte) print_byte::b#4 main::@15/(byte) print_byte::b#5 main::@9/(byte) print_byte::b#2 print_word/(byte) print_byte::b#0 print_word::@1/(byte) print_byte::b#1 )
  (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4
  (byte) print_char::ch#0 ← *((byte[]) print_hextab#0 + (byte~) print_byte::$0)
  call print_char 
  to:print_byte::@1
print_byte::@1: scope:[print_byte]  from print_byte
  (byte) print_byte::b#7 ← phi( print_byte/(byte) print_byte::b#6 )
  (byte*) print_char_cursor#41 ← phi( print_byte/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#9 ← (byte*) print_char_cursor#41
  (byte~) print_byte::$2 ← (byte) print_byte::b#7 & (byte/signed byte/word/signed word/dword/signed dword) 15
  (byte) print_char::ch#1 ← *((byte[]) print_hextab#0 + (byte~) print_byte::$2)
  call print_char 
  to:print_byte::@2
print_byte::@2: scope:[print_byte]  from print_byte::@1
  (byte*) print_char_cursor#42 ← phi( print_byte::@1/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#10 ← (byte*) print_char_cursor#42
  to:print_byte::@return
print_byte::@return: scope:[print_byte]  from print_byte::@2
  (byte*) print_char_cursor#43 ← phi( print_byte::@2/(byte*) print_char_cursor#10 )
  (byte*) print_char_cursor#11 ← (byte*) print_char_cursor#43
  return 
  to:@return
print_char: scope:[print_char]  from main::@10 main::@12 main::@14 main::@4 main::@6 main::@8 print_byte print_byte::@1
  (byte*) print_char_cursor#44 ← phi( main::@10/(byte*) print_char_cursor#23 main::@12/(byte*) print_char_cursor#25 main::@14/(byte*) print_char_cursor#27 main::@4/(byte*) print_char_cursor#17 main::@6/(byte*) print_char_cursor#19 main::@8/(byte*) print_char_cursor#21 print_byte/(byte*) print_char_cursor#67 print_byte::@1/(byte*) print_char_cursor#9 )
  (byte) print_char::ch#8 ← phi( main::@10/(byte) print_char::ch#5 main::@12/(byte) print_char::ch#6 main::@14/(byte) print_char::ch#7 main::@4/(byte) print_char::ch#2 main::@6/(byte) print_char::ch#3 main::@8/(byte) print_char::ch#4 print_byte/(byte) print_char::ch#0 print_byte::@1/(byte) print_char::ch#1 )
  *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8
  (byte*) print_char_cursor#12 ← ++ (byte*) print_char_cursor#44
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  (byte*) print_char_cursor#45 ← phi( print_char/(byte*) print_char_cursor#12 )
  (byte*) print_char_cursor#13 ← (byte*) print_char_cursor#45
  return 
  to:@return
print_cls: scope:[print_cls]  from main
  (byte*) print_screen#1 ← phi( main/(byte*) print_screen#4 )
  (byte*) print_cls::sc#0 ← (byte*) print_screen#1
  to:print_cls::@1
print_cls::@1: scope:[print_cls]  from print_cls print_cls::@1
  (byte*) print_screen#2 ← phi( print_cls/(byte*) print_screen#1 print_cls::@1/(byte*) print_screen#2 )
  (byte*) print_cls::sc#2 ← phi( print_cls/(byte*) print_cls::sc#0 print_cls::@1/(byte*) print_cls::sc#1 )
  *((byte*) print_cls::sc#2) ← (byte) ' '
  (byte*) print_cls::sc#1 ← ++ (byte*) print_cls::sc#2
  (byte*~) print_cls::$0 ← (byte*) print_screen#2 + (word/signed word/dword/signed dword) 1000
  (bool~) print_cls::$1 ← (byte*) print_cls::sc#1 != (byte*~) print_cls::$0
  if((bool~) print_cls::$1) goto print_cls::@1
  to:print_cls::@2
print_cls::@2: scope:[print_cls]  from print_cls::@1
  (byte*) print_screen#3 ← phi( print_cls::@1/(byte*) print_screen#2 )
  (byte*) print_line_cursor#3 ← (byte*) print_screen#3
  (byte*) print_char_cursor#14 ← (byte*) print_line_cursor#3
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls::@2
  (byte*) print_char_cursor#46 ← phi( print_cls::@2/(byte*) print_char_cursor#14 )
  (byte*) print_line_cursor#12 ← phi( print_cls::@2/(byte*) print_line_cursor#3 )
  (byte*) print_line_cursor#4 ← (byte*) print_line_cursor#12
  (byte*) print_char_cursor#15 ← (byte*) print_char_cursor#46
  return 
  to:@return
main: scope:[main]  from @20
  (byte*) print_char_cursor#68 ← phi( @20/(byte*) print_char_cursor#70 )
  (byte*) print_line_cursor#18 ← phi( @20/(byte*) print_line_cursor#20 )
  (byte*) print_screen#4 ← phi( @20/(byte*) print_screen#5 )
  call print_cls 
  to:main::@3
main::@3: scope:[main]  from main
  (byte*) print_char_cursor#47 ← phi( main/(byte*) print_char_cursor#15 )
  (byte*) print_line_cursor#13 ← phi( main/(byte*) print_line_cursor#4 )
  (byte*) print_line_cursor#5 ← (byte*) print_line_cursor#13
  (byte*) print_char_cursor#16 ← (byte*) print_char_cursor#47
  (dword) main::dw#0 ← (dword/signed dword) 305419896
  to:main::@1
main::@1: scope:[main]  from main::@17 main::@3
  (byte*) print_line_cursor#34 ← phi( main::@17/(byte*) print_line_cursor#6 main::@3/(byte*) print_line_cursor#5 )
  (byte*) print_char_cursor#69 ← phi( main::@17/(byte*) print_char_cursor#30 main::@3/(byte*) print_char_cursor#16 )
  (dword) main::dw#2 ← phi( main::@17/(dword) main::dw#1 main::@3/(dword) main::dw#0 )
  (dword) main::dw2#0 ← (dword) main::dw#2
  (word~) main::$2 ← > (dword) main::dw#2
  (word/signed dword/dword~) main::$3 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369
  (word/signed dword/dword~) main::$32 ← (word/signed dword/dword~) main::$3
  (dword) main::dw2#1 ← (dword) main::dw2#0 hi= (word/signed dword/dword~) main::$32
  (word~) main::$5 ← < (dword) main::dw#2
  (word/signed dword/dword~) main::$6 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369
  (word/signed dword/dword~) main::$33 ← (word/signed dword/dword~) main::$6
  (dword) main::dw2#2 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33
  (dword) print_dword::dw#0 ← (dword) main::dw2#2
  call print_dword 
  to:main::@4
main::@4: scope:[main]  from main::@1
  (dword) main::dw#16 ← phi( main::@1/(dword) main::dw#2 )
  (byte*) print_line_cursor#33 ← phi( main::@1/(byte*) print_line_cursor#34 )
  (dword) main::dw2#9 ← phi( main::@1/(dword) main::dw2#2 )
  (byte*) print_char_cursor#48 ← phi( main::@1/(byte*) print_char_cursor#8 )
  (byte*) print_char_cursor#17 ← (byte*) print_char_cursor#48
  (byte) print_char::ch#2 ← (byte) ' '
  call print_char 
  to:main::@5
main::@5: scope:[main]  from main::@4
  (dword) main::dw#15 ← phi( main::@4/(dword) main::dw#16 )
  (byte*) print_line_cursor#32 ← phi( main::@4/(byte*) print_line_cursor#33 )
  (dword) main::dw2#3 ← phi( main::@4/(dword) main::dw2#9 )
  (byte*) print_char_cursor#49 ← phi( main::@4/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#18 ← (byte*) print_char_cursor#49
  (word~) main::$9 ← > (dword) main::dw2#3
  (word) print_word::w#2 ← (word~) main::$9
  call print_word 
  to:main::@6
main::@6: scope:[main]  from main::@5
  (dword) main::dw#14 ← phi( main::@5/(dword) main::dw#15 )
  (byte*) print_line_cursor#31 ← phi( main::@5/(byte*) print_line_cursor#32 )
  (dword) main::dw2#10 ← phi( main::@5/(dword) main::dw2#3 )
  (byte*) print_char_cursor#50 ← phi( main::@5/(byte*) print_char_cursor#5 )
  (byte*) print_char_cursor#19 ← (byte*) print_char_cursor#50
  (byte) print_char::ch#3 ← (byte) ' '
  call print_char 
  to:main::@7
main::@7: scope:[main]  from main::@6
  (dword) main::dw#13 ← phi( main::@6/(dword) main::dw#14 )
  (byte*) print_line_cursor#30 ← phi( main::@6/(byte*) print_line_cursor#31 )
  (dword) main::dw2#4 ← phi( main::@6/(dword) main::dw2#10 )
  (byte*) print_char_cursor#51 ← phi( main::@6/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#20 ← (byte*) print_char_cursor#51
  (word~) main::$12 ← < (dword) main::dw2#4
  (word) print_word::w#3 ← (word~) main::$12
  call print_word 
  to:main::@8
main::@8: scope:[main]  from main::@7
  (dword) main::dw#12 ← phi( main::@7/(dword) main::dw#13 )
  (byte*) print_line_cursor#29 ← phi( main::@7/(byte*) print_line_cursor#30 )
  (dword) main::dw2#11 ← phi( main::@7/(dword) main::dw2#4 )
  (byte*) print_char_cursor#52 ← phi( main::@7/(byte*) print_char_cursor#5 )
  (byte*) print_char_cursor#21 ← (byte*) print_char_cursor#52
  (byte) print_char::ch#4 ← (byte) ' '
  call print_char 
  to:main::@9
main::@9: scope:[main]  from main::@8
  (dword) main::dw#11 ← phi( main::@8/(dword) main::dw#12 )
  (byte*) print_line_cursor#28 ← phi( main::@8/(byte*) print_line_cursor#29 )
  (dword) main::dw2#5 ← phi( main::@8/(dword) main::dw2#11 )
  (byte*) print_char_cursor#53 ← phi( main::@8/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#22 ← (byte*) print_char_cursor#53
  (word~) main::$15 ← > (dword) main::dw2#5
  (byte~) main::$16 ← > (word~) main::$15
  (byte) print_byte::b#2 ← (byte~) main::$16
  call print_byte 
  to:main::@10
main::@10: scope:[main]  from main::@9
  (dword) main::dw#10 ← phi( main::@9/(dword) main::dw#11 )
  (byte*) print_line_cursor#27 ← phi( main::@9/(byte*) print_line_cursor#28 )
  (dword) main::dw2#12 ← phi( main::@9/(dword) main::dw2#5 )
  (byte*) print_char_cursor#54 ← phi( main::@9/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#23 ← (byte*) print_char_cursor#54
  (byte) print_char::ch#5 ← (byte) ' '
  call print_char 
  to:main::@11
main::@11: scope:[main]  from main::@10
  (dword) main::dw#9 ← phi( main::@10/(dword) main::dw#10 )
  (byte*) print_line_cursor#26 ← phi( main::@10/(byte*) print_line_cursor#27 )
  (dword) main::dw2#6 ← phi( main::@10/(dword) main::dw2#12 )
  (byte*) print_char_cursor#55 ← phi( main::@10/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#24 ← (byte*) print_char_cursor#55
  (word~) main::$19 ← > (dword) main::dw2#6
  (byte~) main::$20 ← < (word~) main::$19
  (byte) print_byte::b#3 ← (byte~) main::$20
  call print_byte 
  to:main::@12
main::@12: scope:[main]  from main::@11
  (dword) main::dw#8 ← phi( main::@11/(dword) main::dw#9 )
  (byte*) print_line_cursor#25 ← phi( main::@11/(byte*) print_line_cursor#26 )
  (dword) main::dw2#13 ← phi( main::@11/(dword) main::dw2#6 )
  (byte*) print_char_cursor#56 ← phi( main::@11/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#25 ← (byte*) print_char_cursor#56
  (byte) print_char::ch#6 ← (byte) ' '
  call print_char 
  to:main::@13
main::@13: scope:[main]  from main::@12
  (dword) main::dw#7 ← phi( main::@12/(dword) main::dw#8 )
  (byte*) print_line_cursor#24 ← phi( main::@12/(byte*) print_line_cursor#25 )
  (dword) main::dw2#7 ← phi( main::@12/(dword) main::dw2#13 )
  (byte*) print_char_cursor#57 ← phi( main::@12/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#26 ← (byte*) print_char_cursor#57
  (word~) main::$23 ← < (dword) main::dw2#7
  (byte~) main::$24 ← > (word~) main::$23
  (byte) print_byte::b#4 ← (byte~) main::$24
  call print_byte 
  to:main::@14
main::@14: scope:[main]  from main::@13
  (dword) main::dw#6 ← phi( main::@13/(dword) main::dw#7 )
  (byte*) print_line_cursor#23 ← phi( main::@13/(byte*) print_line_cursor#24 )
  (dword) main::dw2#14 ← phi( main::@13/(dword) main::dw2#7 )
  (byte*) print_char_cursor#58 ← phi( main::@13/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#27 ← (byte*) print_char_cursor#58
  (byte) print_char::ch#7 ← (byte) ' '
  call print_char 
  to:main::@15
main::@15: scope:[main]  from main::@14
  (dword) main::dw#5 ← phi( main::@14/(dword) main::dw#6 )
  (byte*) print_line_cursor#21 ← phi( main::@14/(byte*) print_line_cursor#23 )
  (dword) main::dw2#8 ← phi( main::@14/(dword) main::dw2#14 )
  (byte*) print_char_cursor#59 ← phi( main::@14/(byte*) print_char_cursor#13 )
  (byte*) print_char_cursor#28 ← (byte*) print_char_cursor#59
  (word~) main::$27 ← < (dword) main::dw2#8
  (byte~) main::$28 ← < (word~) main::$27
  (byte) print_byte::b#5 ← (byte~) main::$28
  call print_byte 
  to:main::@16
main::@16: scope:[main]  from main::@15
  (dword) main::dw#4 ← phi( main::@15/(dword) main::dw#5 )
  (byte*) print_line_cursor#19 ← phi( main::@15/(byte*) print_line_cursor#21 )
  (byte*) print_char_cursor#60 ← phi( main::@15/(byte*) print_char_cursor#11 )
  (byte*) print_char_cursor#29 ← (byte*) print_char_cursor#60
  call print_ln 
  to:main::@17
main::@17: scope:[main]  from main::@16
  (dword) main::dw#3 ← phi( main::@16/(dword) main::dw#4 )
  (byte*) print_char_cursor#61 ← phi( main::@16/(byte*) print_char_cursor#2 )
  (byte*) print_line_cursor#14 ← phi( main::@16/(byte*) print_line_cursor#2 )
  (byte*) print_line_cursor#6 ← (byte*) print_line_cursor#14
  (byte*) print_char_cursor#30 ← (byte*) print_char_cursor#61
  (dword) main::dw#1 ← ++ (dword) main::dw#3
  (bool~) main::$31 ← (dword) main::dw#1 != (dword/signed dword) 305419920
  if((bool~) main::$31) goto main::@1
  to:main::@return
main::@return: scope:[main]  from main::@17
  (byte*) print_char_cursor#62 ← phi( main::@17/(byte*) print_char_cursor#30 )
  (byte*) print_line_cursor#15 ← phi( main::@17/(byte*) print_line_cursor#6 )
  (byte*) print_line_cursor#7 ← (byte*) print_line_cursor#15
  (byte*) print_char_cursor#31 ← (byte*) print_char_cursor#62
  return 
  to:@return
@20: scope:[]  from @12
  (byte*) print_screen#5 ← phi( @12/(byte*) print_screen#6 )
  (byte*) print_char_cursor#70 ← phi( @12/(byte*) print_char_cursor#71 )
  (byte*) print_line_cursor#20 ← phi( @12/(byte*) print_line_cursor#22 )
  call main 
  to:@21
@21: scope:[]  from @20
  (byte*) print_char_cursor#63 ← phi( @20/(byte*) print_char_cursor#31 )
  (byte*) print_line_cursor#16 ← phi( @20/(byte*) print_line_cursor#7 )
  (byte*) print_line_cursor#8 ← (byte*) print_line_cursor#16
  (byte*) print_char_cursor#32 ← (byte*) print_char_cursor#63
  to:@end
@end: scope:[]  from @21

SYMBOL TABLE SSA
(const string) $0 = (string) "0123456789abcdef"
(label) @12
(label) @20
(label) @21
(label) @begin
(label) @end
(void()) main()
(word~) main::$12
(word~) main::$15
(byte~) main::$16
(word~) main::$19
(word~) main::$2
(byte~) main::$20
(word~) main::$23
(byte~) main::$24
(word~) main::$27
(byte~) main::$28
(word/signed dword/dword~) main::$3
(bool~) main::$31
(word/signed dword/dword~) main::$32
(word/signed dword/dword~) main::$33
(word~) main::$5
(word/signed dword/dword~) main::$6
(word~) main::$9
(label) main::@1
(label) main::@10
(label) main::@11
(label) main::@12
(label) main::@13
(label) main::@14
(label) main::@15
(label) main::@16
(label) main::@17
(label) main::@3
(label) main::@4
(label) main::@5
(label) main::@6
(label) main::@7
(label) main::@8
(label) main::@9
(label) main::@return
(dword) main::dw
(dword) main::dw#0
(dword) main::dw#1
(dword) main::dw#10
(dword) main::dw#11
(dword) main::dw#12
(dword) main::dw#13
(dword) main::dw#14
(dword) main::dw#15
(dword) main::dw#16
(dword) main::dw#2
(dword) main::dw#3
(dword) main::dw#4
(dword) main::dw#5
(dword) main::dw#6
(dword) main::dw#7
(dword) main::dw#8
(dword) main::dw#9
(dword) main::dw2
(dword) main::dw2#0
(dword) main::dw2#1
(dword) main::dw2#10
(dword) main::dw2#11
(dword) main::dw2#12
(dword) main::dw2#13
(dword) main::dw2#14
(dword) main::dw2#2
(dword) main::dw2#3
(dword) main::dw2#4
(dword) main::dw2#5
(dword) main::dw2#6
(dword) main::dw2#7
(dword) main::dw2#8
(dword) main::dw2#9
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0
(byte~) print_byte::$2
(label) print_byte::@1
(label) print_byte::@2
(label) print_byte::@return
(byte) print_byte::b
(byte) print_byte::b#0
(byte) print_byte::b#1
(byte) print_byte::b#2
(byte) print_byte::b#3
(byte) print_byte::b#4
(byte) print_byte::b#5
(byte) print_byte::b#6
(byte) print_byte::b#7
(void()) print_char((byte) print_char::ch)
(label) print_char::@return
(byte) print_char::ch
(byte) print_char::ch#0
(byte) print_char::ch#1
(byte) print_char::ch#2
(byte) print_char::ch#3
(byte) print_char::ch#4
(byte) print_char::ch#5
(byte) print_char::ch#6
(byte) print_char::ch#7
(byte) print_char::ch#8
(byte*) print_char_cursor
(byte*) print_char_cursor#0
(byte*) print_char_cursor#1
(byte*) print_char_cursor#10
(byte*) print_char_cursor#11
(byte*) print_char_cursor#12
(byte*) print_char_cursor#13
(byte*) print_char_cursor#14
(byte*) print_char_cursor#15
(byte*) print_char_cursor#16
(byte*) print_char_cursor#17
(byte*) print_char_cursor#18
(byte*) print_char_cursor#19
(byte*) print_char_cursor#2
(byte*) print_char_cursor#20
(byte*) print_char_cursor#21
(byte*) print_char_cursor#22
(byte*) print_char_cursor#23
(byte*) print_char_cursor#24
(byte*) print_char_cursor#25
(byte*) print_char_cursor#26
(byte*) print_char_cursor#27
(byte*) print_char_cursor#28
(byte*) print_char_cursor#29
(byte*) print_char_cursor#3
(byte*) print_char_cursor#30
(byte*) print_char_cursor#31
(byte*) print_char_cursor#32
(byte*) print_char_cursor#33
(byte*) print_char_cursor#34
(byte*) print_char_cursor#35
(byte*) print_char_cursor#36
(byte*) print_char_cursor#37
(byte*) print_char_cursor#38
(byte*) print_char_cursor#39
(byte*) print_char_cursor#4
(byte*) print_char_cursor#40
(byte*) print_char_cursor#41
(byte*) print_char_cursor#42
(byte*) print_char_cursor#43
(byte*) print_char_cursor#44
(byte*) print_char_cursor#45
(byte*) print_char_cursor#46
(byte*) print_char_cursor#47
(byte*) print_char_cursor#48
(byte*) print_char_cursor#49
(byte*) print_char_cursor#5
(byte*) print_char_cursor#50
(byte*) print_char_cursor#51
(byte*) print_char_cursor#52
(byte*) print_char_cursor#53
(byte*) print_char_cursor#54
(byte*) print_char_cursor#55
(byte*) print_char_cursor#56
(byte*) print_char_cursor#57
(byte*) print_char_cursor#58
(byte*) print_char_cursor#59
(byte*) print_char_cursor#6
(byte*) print_char_cursor#60
(byte*) print_char_cursor#61
(byte*) print_char_cursor#62
(byte*) print_char_cursor#63
(byte*) print_char_cursor#64
(byte*) print_char_cursor#65
(byte*) print_char_cursor#66
(byte*) print_char_cursor#67
(byte*) print_char_cursor#68
(byte*) print_char_cursor#69
(byte*) print_char_cursor#7
(byte*) print_char_cursor#70
(byte*) print_char_cursor#71
(byte*) print_char_cursor#8
(byte*) print_char_cursor#9
(void()) print_cls()
(byte*~) print_cls::$0
(bool~) print_cls::$1
(label) print_cls::@1
(label) print_cls::@2
(label) print_cls::@return
(byte*) print_cls::sc
(byte*) print_cls::sc#0
(byte*) print_cls::sc#1
(byte*) print_cls::sc#2
(void()) print_dword((dword) print_dword::dw)
(word~) print_dword::$0
(word~) print_dword::$2
(label) print_dword::@1
(label) print_dword::@2
(label) print_dword::@return
(dword) print_dword::dw
(dword) print_dword::dw#0
(dword) print_dword::dw#1
(dword) print_dword::dw#2
(byte[]) print_hextab
(byte[]) print_hextab#0
(byte*) print_line_cursor
(byte*) print_line_cursor#0
(byte*) print_line_cursor#1
(byte*) print_line_cursor#10
(byte*) print_line_cursor#11
(byte*) print_line_cursor#12
(byte*) print_line_cursor#13
(byte*) print_line_cursor#14
(byte*) print_line_cursor#15
(byte*) print_line_cursor#16
(byte*) print_line_cursor#17
(byte*) print_line_cursor#18
(byte*) print_line_cursor#19
(byte*) print_line_cursor#2
(byte*) print_line_cursor#20
(byte*) print_line_cursor#21
(byte*) print_line_cursor#22
(byte*) print_line_cursor#23
(byte*) print_line_cursor#24
(byte*) print_line_cursor#25
(byte*) print_line_cursor#26
(byte*) print_line_cursor#27
(byte*) print_line_cursor#28
(byte*) print_line_cursor#29
(byte*) print_line_cursor#3
(byte*) print_line_cursor#30
(byte*) print_line_cursor#31
(byte*) print_line_cursor#32
(byte*) print_line_cursor#33
(byte*) print_line_cursor#34
(byte*) print_line_cursor#4
(byte*) print_line_cursor#5
(byte*) print_line_cursor#6
(byte*) print_line_cursor#7
(byte*) print_line_cursor#8
(byte*) print_line_cursor#9
(void()) print_ln()
(byte*~) print_ln::$0
(bool~) print_ln::$1
(label) print_ln::@1
(label) print_ln::@2
(label) print_ln::@return
(byte*) print_screen
(byte*) print_screen#0
(byte*) print_screen#1
(byte*) print_screen#2
(byte*) print_screen#3
(byte*) print_screen#4
(byte*) print_screen#5
(byte*) print_screen#6
(void()) print_word((word) print_word::w)
(byte~) print_word::$0
(byte~) print_word::$2
(label) print_word::@1
(label) print_word::@2
(label) print_word::@return
(word) print_word::w
(word) print_word::w#0
(word) print_word::w#1
(word) print_word::w#2
(word) print_word::w#3
(word) print_word::w#4
(word) print_word::w#5

Alias (byte*) print_line_cursor#0 = (byte*) print_screen#0 (byte*) print_char_cursor#0 (byte*) print_line_cursor#22 (byte*) print_char_cursor#71 (byte*) print_screen#6 (byte*) print_line_cursor#20 (byte*) print_char_cursor#70 (byte*) print_screen#5 
Alias (byte*) print_line_cursor#1 = (byte*~) print_ln::$0 (byte*) print_line_cursor#10 (byte*) print_char_cursor#1 (byte*) print_line_cursor#11 (byte*) print_char_cursor#34 (byte*) print_line_cursor#2 (byte*) print_char_cursor#2 
Alias (byte) print_byte::b#0 = (byte~) print_word::$0 
Alias (word) print_word::w#4 = (word) print_word::w#5 
Alias (byte*) print_char_cursor#3 = (byte*) print_char_cursor#35 
Alias (byte) print_byte::b#1 = (byte~) print_word::$2 
Alias (byte*) print_char_cursor#36 = (byte*) print_char_cursor#4 (byte*) print_char_cursor#37 (byte*) print_char_cursor#5 
Alias (word) print_word::w#0 = (word~) print_dword::$0 
Alias (dword) print_dword::dw#1 = (dword) print_dword::dw#2 
Alias (byte*) print_char_cursor#38 = (byte*) print_char_cursor#6 
Alias (word) print_word::w#1 = (word~) print_dword::$2 
Alias (byte*) print_char_cursor#39 = (byte*) print_char_cursor#7 (byte*) print_char_cursor#40 (byte*) print_char_cursor#8 
Alias (byte) print_byte::b#6 = (byte) print_byte::b#7 
Alias (byte*) print_char_cursor#41 = (byte*) print_char_cursor#9 
Alias (byte*) print_char_cursor#10 = (byte*) print_char_cursor#42 (byte*) print_char_cursor#43 (byte*) print_char_cursor#11 
Alias (byte*) print_char_cursor#12 = (byte*) print_char_cursor#45 (byte*) print_char_cursor#13 
Alias (byte*) print_line_cursor#12 = (byte*) print_screen#3 (byte*) print_screen#2 (byte*) print_line_cursor#3 (byte*) print_char_cursor#14 (byte*) print_char_cursor#46 (byte*) print_line_cursor#4 (byte*) print_char_cursor#15 
Alias (byte*) print_line_cursor#13 = (byte*) print_line_cursor#5 
Alias (byte*) print_char_cursor#16 = (byte*) print_char_cursor#47 
Alias (dword) main::dw#10 = (dword) main::dw2#0 (dword) main::dw#2 (dword) main::dw#16 (dword) main::dw#15 (dword) main::dw#14 (dword) main::dw#13 (dword) main::dw#12 (dword) main::dw#11 (dword) main::dw#9 (dword) main::dw#8 (dword) main::dw#7 (dword) main::dw#6 (dword) main::dw#5 (dword) main::dw#4 (dword) main::dw#3 
Alias (word/signed dword/dword~) main::$32 = (word/signed dword/dword~) main::$3 
Alias (word/signed dword/dword~) main::$33 = (word/signed dword/dword~) main::$6 
Alias (dword) main::dw2#10 = (dword) main::dw2#9 (dword) main::dw2#2 (dword) main::dw2#3 (dword) main::dw2#4 (dword) main::dw2#11 (dword) main::dw2#5 (dword) main::dw2#12 (dword) main::dw2#6 (dword) main::dw2#13 (dword) main::dw2#7 (dword) main::dw2#14 (dword) main::dw2#8 
Alias (byte*) print_line_cursor#19 = (byte*) print_line_cursor#33 (byte*) print_line_cursor#34 (byte*) print_line_cursor#32 (byte*) print_line_cursor#31 (byte*) print_line_cursor#30 (byte*) print_line_cursor#29 (byte*) print_line_cursor#28 (byte*) print_line_cursor#27 (byte*) print_line_cursor#26 (byte*) print_line_cursor#25 (byte*) print_line_cursor#24 (byte*) print_line_cursor#23 (byte*) print_line_cursor#21 
Alias (byte*) print_char_cursor#17 = (byte*) print_char_cursor#48 
Alias (byte*) print_char_cursor#18 = (byte*) print_char_cursor#49 
Alias (word) print_word::w#2 = (word~) main::$9 
Alias (byte*) print_char_cursor#19 = (byte*) print_char_cursor#50 
Alias (byte*) print_char_cursor#20 = (byte*) print_char_cursor#51 
Alias (word) print_word::w#3 = (word~) main::$12 
Alias (byte*) print_char_cursor#21 = (byte*) print_char_cursor#52 
Alias (byte*) print_char_cursor#22 = (byte*) print_char_cursor#53 
Alias (byte) print_byte::b#2 = (byte~) main::$16 
Alias (byte*) print_char_cursor#23 = (byte*) print_char_cursor#54 
Alias (byte*) print_char_cursor#24 = (byte*) print_char_cursor#55 
Alias (byte) print_byte::b#3 = (byte~) main::$20 
Alias (byte*) print_char_cursor#25 = (byte*) print_char_cursor#56 
Alias (byte*) print_char_cursor#26 = (byte*) print_char_cursor#57 
Alias (byte) print_byte::b#4 = (byte~) main::$24 
Alias (byte*) print_char_cursor#27 = (byte*) print_char_cursor#58 
Alias (byte*) print_char_cursor#28 = (byte*) print_char_cursor#59 
Alias (byte) print_byte::b#5 = (byte~) main::$28 
Alias (byte*) print_char_cursor#29 = (byte*) print_char_cursor#60 
Alias (byte*) print_line_cursor#14 = (byte*) print_line_cursor#6 (byte*) print_line_cursor#15 (byte*) print_line_cursor#7 
Alias (byte*) print_char_cursor#30 = (byte*) print_char_cursor#61 (byte*) print_char_cursor#62 (byte*) print_char_cursor#31 
Alias (byte*) print_line_cursor#16 = (byte*) print_line_cursor#8 
Alias (byte*) print_char_cursor#32 = (byte*) print_char_cursor#63 
Successful SSA optimization Pass2AliasElimination
Self Phi Eliminated (byte*) print_char_cursor#33
Self Phi Eliminated (byte*) print_line_cursor#12
Successful SSA optimization Pass2SelfPhiElimination
Redundant Phi (byte*) print_line_cursor#17 (byte*) print_line_cursor#19
Redundant Phi (byte*) print_char_cursor#64 (byte*) print_char_cursor#29
Redundant Phi (byte*) print_char_cursor#33 (byte*) print_char_cursor#64
Redundant Phi (byte*) print_char_cursor#3 (byte*) print_char_cursor#10
Redundant Phi (byte*) print_char_cursor#36 (byte*) print_char_cursor#10
Redundant Phi (dword) print_dword::dw#1 (dword) print_dword::dw#0
Redundant Phi (byte*) print_char_cursor#66 (byte*) print_char_cursor#69
Redundant Phi (byte*) print_char_cursor#38 (byte*) print_char_cursor#36
Redundant Phi (byte*) print_char_cursor#39 (byte*) print_char_cursor#36
Redundant Phi (byte*) print_char_cursor#41 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#10 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_screen#1 (byte*) print_screen#4
Redundant Phi (byte*) print_line_cursor#12 (byte*) print_screen#1
Redundant Phi (byte*) print_screen#4 (byte*) print_line_cursor#0
Redundant Phi (byte*) print_line_cursor#18 (byte*) print_line_cursor#0
Redundant Phi (byte*) print_char_cursor#68 (byte*) print_line_cursor#0
Redundant Phi (byte*) print_line_cursor#13 (byte*) print_line_cursor#12
Redundant Phi (byte*) print_char_cursor#16 (byte*) print_line_cursor#12
Redundant Phi (byte*) print_char_cursor#17 (byte*) print_char_cursor#39
Redundant Phi (byte*) print_char_cursor#18 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#19 (byte*) print_char_cursor#36
Redundant Phi (byte*) print_char_cursor#20 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#21 (byte*) print_char_cursor#36
Redundant Phi (byte*) print_char_cursor#22 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#23 (byte*) print_char_cursor#10
Redundant Phi (byte*) print_char_cursor#24 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#25 (byte*) print_char_cursor#10
Redundant Phi (byte*) print_char_cursor#26 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#27 (byte*) print_char_cursor#10
Redundant Phi (byte*) print_char_cursor#28 (byte*) print_char_cursor#12
Redundant Phi (byte*) print_char_cursor#29 (byte*) print_char_cursor#10
Redundant Phi (byte*) print_line_cursor#14 (byte*) print_line_cursor#1
Redundant Phi (byte*) print_char_cursor#30 (byte*) print_line_cursor#1
Redundant Phi (byte*) print_line_cursor#16 (byte*) print_line_cursor#14
Redundant Phi (byte*) print_char_cursor#32 (byte*) print_char_cursor#30
Successful SSA optimization Pass2RedundantPhiElimination
Simple Condition (bool~) print_ln::$1 [8] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1
Simple Condition (bool~) print_cls::$1 [72] if((byte*) print_cls::sc#1!=(byte*~) print_cls::$0) goto print_cls::@1
Simple Condition (bool~) main::$31 [164] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Constant (const byte*) print_line_cursor#0 = ((byte*))1024
Constant (const byte[]) print_hextab#0 = $0
Constant (const dword) main::dw#0 = 305419896
Constant (const byte) print_char::ch#2 = ' '
Constant (const byte) print_char::ch#3 = ' '
Constant (const byte) print_char::ch#4 = ' '
Constant (const byte) print_char::ch#5 = ' '
Constant (const byte) print_char::ch#6 = ' '
Constant (const byte) print_char::ch#7 = ' '
Successful SSA optimization Pass2ConstantIdentification
Constant (const byte*) print_cls::sc#0 = print_line_cursor#0
Constant (const byte*) print_cls::$0 = print_line_cursor#0+1000
Successful SSA optimization Pass2ConstantIdentification
Culled Empty Block (label) print_ln::@2
Culled Empty Block (label) print_word::@2
Culled Empty Block (label) print_dword::@2
Culled Empty Block (label) @12
Culled Empty Block (label) print_byte::@2
Culled Empty Block (label) print_cls::@2
Culled Empty Block (label) main::@3
Culled Empty Block (label) @21
Successful SSA optimization Pass2CullEmptyBlocks
Inlining constant with var siblings (const byte) print_char::ch#2
Inlining constant with var siblings (const byte) print_char::ch#3
Inlining constant with var siblings (const byte) print_char::ch#4
Inlining constant with var siblings (const byte) print_char::ch#5
Inlining constant with var siblings (const byte) print_char::ch#6
Inlining constant with var siblings (const byte) print_char::ch#7
Inlining constant with var siblings (const byte*) print_cls::sc#0
Inlining constant with var siblings (const dword) main::dw#0
Inlining constant with var siblings (const byte*) print_line_cursor#0
Constant inlined print_char::ch#3 = (byte) ' '
Constant inlined print_char::ch#2 = (byte) ' '
Constant inlined print_char::ch#5 = (byte) ' '
Constant inlined print_char::ch#4 = (byte) ' '
Constant inlined print_cls::$0 = ((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000
Constant inlined print_line_cursor#0 = ((byte*))(word/signed word/dword/signed dword) 1024
Constant inlined print_cls::sc#0 = ((byte*))(word/signed word/dword/signed dword) 1024
Constant inlined $0 = (const byte[]) print_hextab#0
Constant inlined print_char::ch#7 = (byte) ' '
Constant inlined main::dw#0 = (dword/signed dword) 305419896
Constant inlined print_char::ch#6 = (byte) ' '
Successful SSA optimization Pass2ConstantInlining
Added new block during phi lifting main::@18(between main::@17 and main::@1)
Added new block during phi lifting print_ln::@3(between print_ln::@1 and print_ln::@1)
Added new block during phi lifting print_cls::@3(between print_cls::@1 and print_cls::@1)
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @20
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@16
Adding NOP phi() at start of print_cls
CALL GRAPH
Calls in [] to main:2 
Calls in [main] to print_cls:5 print_dword:14 print_char:16 print_word:20 print_char:22 print_word:26 print_char:28 print_byte:33 print_char:35 print_byte:40 print_char:42 print_byte:47 print_char:49 print_byte:54 print_ln:56 
Calls in [print_byte] to print_char:74 print_char:79 
Calls in [print_word] to print_byte:89 print_byte:93 
Calls in [print_dword] to print_word:98 print_word:102 

Created 11 initial phi equivalence classes
Coalesced [15] print_char_cursor#82 ← print_char_cursor#12
Coalesced [18] print_word::w#6 ← print_word::w#2
Coalesced [19] print_char_cursor#87 ← print_char_cursor#12
Coalesced (already) [21] print_char_cursor#83 ← print_char_cursor#12
Coalesced [24] print_word::w#7 ← print_word::w#3
Coalesced (already) [25] print_char_cursor#88 ← print_char_cursor#12
Coalesced (already) [27] print_char_cursor#84 ← print_char_cursor#12
Coalesced [31] print_byte::b#11 ← print_byte::b#2
Coalesced [32] print_char_cursor#76 ← print_char_cursor#12
Coalesced (already) [34] print_char_cursor#79 ← print_char_cursor#12
Coalesced [38] print_byte::b#8 ← print_byte::b#3
Coalesced (already) [39] print_char_cursor#73 ← print_char_cursor#12
Coalesced (already) [41] print_char_cursor#80 ← print_char_cursor#12
Coalesced [45] print_byte::b#9 ← print_byte::b#4
Coalesced (already) [46] print_char_cursor#74 ← print_char_cursor#12
Coalesced (already) [48] print_char_cursor#81 ← print_char_cursor#12
Coalesced [52] print_byte::b#10 ← print_byte::b#5
Coalesced (already) [53] print_char_cursor#75 ← print_char_cursor#12
Coalesced [60] main::dw#17 ← main::dw#1
Not coalescing [61] print_char_cursor#72 ← print_line_cursor#1
Coalesced [62] print_line_cursor#35 ← print_line_cursor#1
Coalesced [63] print_line_cursor#36 ← print_line_cursor#19
Coalesced (already) [68] print_line_cursor#37 ← print_line_cursor#1
Coalesced [72] print_char::ch#9 ← print_char::ch#0
Coalesced (already) [73] print_char_cursor#85 ← print_char_cursor#67
Coalesced [77] print_char::ch#10 ← print_char::ch#1
Coalesced (already) [78] print_char_cursor#86 ← print_char_cursor#12
Coalesced [87] print_byte::b#12 ← print_byte::b#0
Coalesced (already) [88] print_char_cursor#77 ← print_char_cursor#65
Coalesced [91] print_byte::b#13 ← print_byte::b#1
Coalesced (already) [92] print_char_cursor#78 ← print_char_cursor#12
Coalesced [96] print_word::w#8 ← print_word::w#0
Coalesced [97] print_char_cursor#89 ← print_char_cursor#69
Coalesced [100] print_word::w#9 ← print_word::w#1
Coalesced (already) [101] print_char_cursor#90 ← print_char_cursor#12
Coalesced [110] print_cls::sc#3 ← print_cls::sc#1
Coalesced down to 7 phi equivalence classes
Culled Empty Block (label) print_ln::@3
Culled Empty Block (label) print_cls::@3
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @20
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@4
Adding NOP phi() at start of main::@6
Adding NOP phi() at start of main::@8
Adding NOP phi() at start of main::@10
Adding NOP phi() at start of main::@12
Adding NOP phi() at start of main::@14
Adding NOP phi() at start of main::@16
Adding NOP phi() at start of print_ln
Adding NOP phi() at start of print_cls

FINAL CONTROL FLOW GRAPH
@begin: scope:[]  from
  [0] phi()
  to:@20
@20: scope:[]  from @begin
  [1] phi()
  [2] call main 
  to:@end
@end: scope:[]  from @20
  [3] phi()
main: scope:[main]  from @20
  [4] phi()
  [5] call print_cls 
  to:main::@1
main::@1: scope:[main]  from main main::@18
  [6] (byte*) print_line_cursor#19 ← phi( main::@18/(byte*) print_line_cursor#1 main/((byte*))(word/signed word/dword/signed dword) 1024 )
  [6] (byte*) print_char_cursor#69 ← phi( main::@18/(byte*~) print_char_cursor#72 main/((byte*))(word/signed word/dword/signed dword) 1024 )
  [6] (dword) main::dw#10 ← phi( main::@18/(dword) main::dw#1 main/(dword/signed dword) 305419896 )
  [7] (word~) main::$2 ← > (dword) main::dw#10
  [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369
  [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32
  [10] (word~) main::$5 ← < (dword) main::dw#10
  [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369
  [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33
  [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10
  [14] call print_dword 
  to:main::@4
main::@4: scope:[main]  from main::@1
  [15] phi()
  [16] call print_char 
  to:main::@5
main::@5: scope:[main]  from main::@4
  [17] (word) print_word::w#2 ← > (dword) main::dw2#10
  [18] call print_word 
  to:main::@6
main::@6: scope:[main]  from main::@5
  [19] phi()
  [20] call print_char 
  to:main::@7
main::@7: scope:[main]  from main::@6
  [21] (word) print_word::w#3 ← < (dword) main::dw2#10
  [22] call print_word 
  to:main::@8
main::@8: scope:[main]  from main::@7
  [23] phi()
  [24] call print_char 
  to:main::@9
main::@9: scope:[main]  from main::@8
  [25] (word~) main::$15 ← > (dword) main::dw2#10
  [26] (byte) print_byte::b#2 ← > (word~) main::$15
  [27] call print_byte 
  to:main::@10
main::@10: scope:[main]  from main::@9
  [28] phi()
  [29] call print_char 
  to:main::@11
main::@11: scope:[main]  from main::@10
  [30] (word~) main::$19 ← > (dword) main::dw2#10
  [31] (byte) print_byte::b#3 ← < (word~) main::$19
  [32] call print_byte 
  to:main::@12
main::@12: scope:[main]  from main::@11
  [33] phi()
  [34] call print_char 
  to:main::@13
main::@13: scope:[main]  from main::@12
  [35] (word~) main::$23 ← < (dword) main::dw2#10
  [36] (byte) print_byte::b#4 ← > (word~) main::$23
  [37] call print_byte 
  to:main::@14
main::@14: scope:[main]  from main::@13
  [38] phi()
  [39] call print_char 
  to:main::@15
main::@15: scope:[main]  from main::@14
  [40] (word~) main::$27 ← < (dword) main::dw2#10
  [41] (byte) print_byte::b#5 ← < (word~) main::$27
  [42] call print_byte 
  to:main::@16
main::@16: scope:[main]  from main::@15
  [43] phi()
  [44] call print_ln 
  to:main::@17
main::@17: scope:[main]  from main::@16
  [45] (dword) main::dw#1 ← ++ (dword) main::dw#10
  [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18
  to:main::@return
main::@return: scope:[main]  from main::@17
  [47] return 
  to:@return
main::@18: scope:[main]  from main::@17
  [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1
  to:main::@1
print_ln: scope:[print_ln]  from main::@16
  [49] phi()
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  [50] (byte*) print_line_cursor#9 ← phi( print_ln/(byte*) print_line_cursor#19 print_ln::@1/(byte*) print_line_cursor#1 )
  [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40
  [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@1
  [53] return 
  to:@return
print_byte: scope:[print_byte]  from main::@11 main::@13 main::@15 main::@9 print_word print_word::@1
  [54] (byte*) print_char_cursor#67 ← phi( main::@11/(byte*) print_char_cursor#12 main::@13/(byte*) print_char_cursor#12 main::@15/(byte*) print_char_cursor#12 main::@9/(byte*) print_char_cursor#12 print_word/(byte*) print_char_cursor#65 print_word::@1/(byte*) print_char_cursor#12 )
  [54] (byte) print_byte::b#6 ← phi( main::@11/(byte) print_byte::b#3 main::@13/(byte) print_byte::b#4 main::@15/(byte) print_byte::b#5 main::@9/(byte) print_byte::b#2 print_word/(byte) print_byte::b#0 print_word::@1/(byte) print_byte::b#1 )
  [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4
  [56] (byte) print_char::ch#0 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$0)
  [57] call print_char 
  to:print_byte::@1
print_byte::@1: scope:[print_byte]  from print_byte
  [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15
  [59] (byte) print_char::ch#1 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$2)
  [60] call print_char 
  to:print_byte::@return
print_byte::@return: scope:[print_byte]  from print_byte::@1
  [61] return 
  to:@return
print_char: scope:[print_char]  from main::@10 main::@12 main::@14 main::@4 main::@6 main::@8 print_byte print_byte::@1
  [62] (byte*) print_char_cursor#44 ← phi( main::@10/(byte*) print_char_cursor#12 main::@12/(byte*) print_char_cursor#12 main::@14/(byte*) print_char_cursor#12 main::@4/(byte*) print_char_cursor#12 main::@6/(byte*) print_char_cursor#12 main::@8/(byte*) print_char_cursor#12 print_byte/(byte*) print_char_cursor#67 print_byte::@1/(byte*) print_char_cursor#12 )
  [62] (byte) print_char::ch#8 ← phi( main::@10/(byte) ' ' main::@12/(byte) ' ' main::@14/(byte) ' ' main::@4/(byte) ' ' main::@6/(byte) ' ' main::@8/(byte) ' ' print_byte/(byte) print_char::ch#0 print_byte::@1/(byte) print_char::ch#1 )
  [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8
  [64] (byte*) print_char_cursor#12 ← ++ (byte*) print_char_cursor#44
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  [65] return 
  to:@return
print_word: scope:[print_word]  from main::@5 main::@7 print_dword print_dword::@1
  [66] (byte*) print_char_cursor#65 ← phi( main::@5/(byte*) print_char_cursor#12 main::@7/(byte*) print_char_cursor#12 print_dword/(byte*) print_char_cursor#69 print_dword::@1/(byte*) print_char_cursor#12 )
  [66] (word) print_word::w#4 ← phi( main::@5/(word) print_word::w#2 main::@7/(word) print_word::w#3 print_dword/(word) print_word::w#0 print_dword::@1/(word) print_word::w#1 )
  [67] (byte) print_byte::b#0 ← > (word) print_word::w#4
  [68] call print_byte 
  to:print_word::@1
print_word::@1: scope:[print_word]  from print_word
  [69] (byte) print_byte::b#1 ← < (word) print_word::w#4
  [70] call print_byte 
  to:print_word::@return
print_word::@return: scope:[print_word]  from print_word::@1
  [71] return 
  to:@return
print_dword: scope:[print_dword]  from main::@1
  [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0
  [73] call print_word 
  to:print_dword::@1
print_dword::@1: scope:[print_dword]  from print_dword
  [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0
  [75] call print_word 
  to:print_dword::@return
print_dword::@return: scope:[print_dword]  from print_dword::@1
  [76] return 
  to:@return
print_cls: scope:[print_cls]  from main
  [77] phi()
  to:print_cls::@1
print_cls::@1: scope:[print_cls]  from print_cls print_cls::@1
  [78] (byte*) print_cls::sc#2 ← phi( print_cls/((byte*))(word/signed word/dword/signed dword) 1024 print_cls::@1/(byte*) print_cls::sc#1 )
  [79] *((byte*) print_cls::sc#2) ← (byte) ' '
  [80] (byte*) print_cls::sc#1 ← ++ (byte*) print_cls::sc#2
  [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls::@1
  [82] return 
  to:@return


VARIABLE REGISTER WEIGHTS
(void()) main()
(word~) main::$15 22.0
(word~) main::$19 22.0
(word~) main::$2 22.0
(word~) main::$23 22.0
(word~) main::$27 22.0
(word/signed dword/dword~) main::$32 22.0
(word/signed dword/dword~) main::$33 22.0
(word~) main::$5 22.0
(dword) main::dw
(dword) main::dw#1 11.0
(dword) main::dw#10 1.4102564102564101
(dword) main::dw2
(dword) main::dw2#1 7.333333333333333
(dword) main::dw2#10 3.142857142857143
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0 4.0
(byte~) print_byte::$2 4.0
(byte) print_byte::b
(byte) print_byte::b#0 4.0
(byte) print_byte::b#1 4.0
(byte) print_byte::b#2 22.0
(byte) print_byte::b#3 22.0
(byte) print_byte::b#4 22.0
(byte) print_byte::b#5 22.0
(byte) print_byte::b#6 13.0
(void()) print_char((byte) print_char::ch)
(byte) print_char::ch
(byte) print_char::ch#0 4.0
(byte) print_char::ch#1 4.0
(byte) print_char::ch#8 6.0
(byte*) print_char_cursor
(byte*) print_char_cursor#12 4.918367346938773
(byte*) print_char_cursor#44 37.0
(byte*) print_char_cursor#65 14.0
(byte*) print_char_cursor#67 16.666666666666664
(byte*) print_char_cursor#69 1.4444444444444446
(byte*~) print_char_cursor#72 22.0
(void()) print_cls()
(byte*) print_cls::sc
(byte*) print_cls::sc#1 16.5
(byte*) print_cls::sc#2 16.5
(void()) print_dword((dword) print_dword::dw)
(dword) print_dword::dw
(dword) print_dword::dw#0 5.0
(byte[]) print_hextab
(byte*) print_line_cursor
(byte*) print_line_cursor#1 46.42857142857143
(byte*) print_line_cursor#19 0.3333333333333333
(byte*) print_line_cursor#9 204.0
(void()) print_ln()
(byte*) print_screen
(void()) print_word((word) print_word::w)
(word) print_word::w
(word) print_word::w#0 4.0
(word) print_word::w#1 4.0
(word) print_word::w#2 22.0
(word) print_word::w#3 22.0
(word) print_word::w#4 9.999999999999998

Initial phi equivalence classes
[ main::dw#10 main::dw#1 ]
[ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ]
[ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
[ print_char::ch#8 print_char::ch#0 print_char::ch#1 ]
[ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ]
[ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ]
[ print_cls::sc#2 print_cls::sc#1 ]
Added variable main::$2 to zero page equivalence class [ main::$2 ]
Added variable main::$32 to zero page equivalence class [ main::$32 ]
Added variable main::dw2#1 to zero page equivalence class [ main::dw2#1 ]
Added variable main::$5 to zero page equivalence class [ main::$5 ]
Added variable main::$33 to zero page equivalence class [ main::$33 ]
Added variable main::dw2#10 to zero page equivalence class [ main::dw2#10 ]
Added variable print_dword::dw#0 to zero page equivalence class [ print_dword::dw#0 ]
Added variable main::$15 to zero page equivalence class [ main::$15 ]
Added variable main::$19 to zero page equivalence class [ main::$19 ]
Added variable main::$23 to zero page equivalence class [ main::$23 ]
Added variable main::$27 to zero page equivalence class [ main::$27 ]
Added variable print_byte::$0 to zero page equivalence class [ print_byte::$0 ]
Added variable print_byte::$2 to zero page equivalence class [ print_byte::$2 ]
Complete equivalence classes
[ main::dw#10 main::dw#1 ]
[ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ]
[ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
[ print_char::ch#8 print_char::ch#0 print_char::ch#1 ]
[ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ]
[ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ]
[ print_cls::sc#2 print_cls::sc#1 ]
[ main::$2 ]
[ main::$32 ]
[ main::dw2#1 ]
[ main::$5 ]
[ main::$33 ]
[ main::dw2#10 ]
[ print_dword::dw#0 ]
[ main::$15 ]
[ main::$19 ]
[ main::$23 ]
[ main::$27 ]
[ print_byte::$0 ]
[ print_byte::$2 ]
Allocated zp ZP_DWORD:2 [ main::dw#10 main::dw#1 ]
Allocated zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ]
Allocated zp ZP_BYTE:8 [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Allocated zp ZP_BYTE:9 [ print_char::ch#8 print_char::ch#0 print_char::ch#1 ]
Allocated zp ZP_WORD:10 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ]
Allocated zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ]
Allocated zp ZP_WORD:14 [ print_cls::sc#2 print_cls::sc#1 ]
Allocated zp ZP_WORD:16 [ main::$2 ]
Allocated zp ZP_WORD:18 [ main::$32 ]
Allocated zp ZP_DWORD:20 [ main::dw2#1 ]
Allocated zp ZP_WORD:24 [ main::$5 ]
Allocated zp ZP_WORD:26 [ main::$33 ]
Allocated zp ZP_DWORD:28 [ main::dw2#10 ]
Allocated zp ZP_DWORD:32 [ print_dword::dw#0 ]
Allocated zp ZP_WORD:36 [ main::$15 ]
Allocated zp ZP_WORD:38 [ main::$19 ]
Allocated zp ZP_WORD:40 [ main::$23 ]
Allocated zp ZP_WORD:42 [ main::$27 ]
Allocated zp ZP_BYTE:44 [ print_byte::$0 ]
Allocated zp ZP_BYTE:45 [ print_byte::$2 ]

INITIAL ASM
//SEG0 File Comments
//SEG1 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
//SEG2 Global Constants & labels
  .label print_line_cursor = 6
  .label print_char_cursor = $a
//SEG3 @begin
bbegin:
//SEG4 [1] phi from @begin to @20 [phi:@begin->@20]
b20_from_bbegin:
  jmp b20
//SEG5 @20
b20:
//SEG6 [2] call main 
//SEG7 [4] phi from @20 to main [phi:@20->main]
main_from_b20:
  jsr main
//SEG8 [3] phi from @20 to @end [phi:@20->@end]
bend_from_b20:
  jmp bend
//SEG9 @end
bend:
//SEG10 main
main: {
    .label _2 = $10
    .label _5 = $18
    .label _15 = $24
    .label _19 = $26
    .label _23 = $28
    .label _27 = $2a
    .label _32 = $12
    .label _33 = $1a
    .label dw2 = $14
    .label dw = 2
    .label dw2_10 = $1c
  //SEG11 [5] call print_cls 
  //SEG12 [77] phi from main to print_cls [phi:main->print_cls]
  print_cls_from_main:
    jsr print_cls
  //SEG13 [6] phi from main to main::@1 [phi:main->main::@1]
  b1_from_main:
  //SEG14 [6] phi (byte*) print_line_cursor#19 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta print_line_cursor
    lda #>$400
    sta print_line_cursor+1
  //SEG15 [6] phi (byte*) print_char_cursor#69 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta print_char_cursor
    lda #>$400
    sta print_char_cursor+1
  //SEG16 [6] phi (dword) main::dw#10 = (dword/signed dword) 305419896 [phi:main->main::@1#2] -- vduz1=vduc1 
    lda #<$12345678
    sta dw
    lda #>$12345678
    sta dw+1
    lda #<$12345678>>$10
    sta dw+2
    lda #>$12345678>>$10
    sta dw+3
    jmp b1
  //SEG17 main::@1
  b1:
  //SEG18 [7] (word~) main::$2 ← > (dword) main::dw#10 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta _2
    lda dw+3
    sta _2+1
  //SEG19 [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz2_plus_vwuc1 
    lda _2
    clc
    adc #<$1111
    sta _32
    lda _2+1
    adc #>$1111
    sta _32+1
  //SEG20 [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32 -- vduz1=vduz2_sethi_vwuz3 
    lda dw
    sta dw2
    lda dw+1
    sta dw2+1
    lda _32
    sta dw2+2
    lda _32+1
    sta dw2+3
  //SEG21 [10] (word~) main::$5 ← < (dword) main::dw#10 -- vwuz1=_lo_vduz2 
    lda dw
    sta _5
    lda dw+1
    sta _5+1
  //SEG22 [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz2_plus_vwuc1 
    lda _5
    clc
    adc #<$1111
    sta _33
    lda _5+1
    adc #>$1111
    sta _33+1
  //SEG23 [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33 -- vduz1=vduz2_setlo_vwuz3 
    lda _33
    sta dw2_10
    lda _33+1
    sta dw2_10+1
    lda dw2+2
    sta dw2_10+2
    lda dw2+3
    sta dw2_10+3
  //SEG24 [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10 -- vduz1=vduz2 
    lda dw2_10
    sta print_dword.dw
    lda dw2_10+1
    sta print_dword.dw+1
    lda dw2_10+2
    sta print_dword.dw+2
    lda dw2_10+3
    sta print_dword.dw+3
  //SEG25 [14] call print_dword 
    jsr print_dword
  //SEG26 [15] phi from main::@1 to main::@4 [phi:main::@1->main::@4]
  b4_from_b1:
    jmp b4
  //SEG27 main::@4
  b4:
  //SEG28 [16] call print_char 
  //SEG29 [62] phi from main::@4 to print_char [phi:main::@4->print_char]
  print_char_from_b4:
  //SEG30 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@4->print_char#0] -- register_copy 
  //SEG31 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@4->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b5
  //SEG32 main::@5
  b5:
  //SEG33 [17] (word) print_word::w#2 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2_10+2
    sta print_word.w
    lda dw2_10+3
    sta print_word.w+1
  //SEG34 [18] call print_word 
  //SEG35 [66] phi from main::@5 to print_word [phi:main::@5->print_word]
  print_word_from_b5:
  //SEG36 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@5->print_word#0] -- register_copy 
  //SEG37 [66] phi (word) print_word::w#4 = (word) print_word::w#2 [phi:main::@5->print_word#1] -- register_copy 
    jsr print_word
  //SEG38 [19] phi from main::@5 to main::@6 [phi:main::@5->main::@6]
  b6_from_b5:
    jmp b6
  //SEG39 main::@6
  b6:
  //SEG40 [20] call print_char 
  //SEG41 [62] phi from main::@6 to print_char [phi:main::@6->print_char]
  print_char_from_b6:
  //SEG42 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@6->print_char#0] -- register_copy 
  //SEG43 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@6->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b7
  //SEG44 main::@7
  b7:
  //SEG45 [21] (word) print_word::w#3 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2_10
    sta print_word.w
    lda dw2_10+1
    sta print_word.w+1
  //SEG46 [22] call print_word 
  //SEG47 [66] phi from main::@7 to print_word [phi:main::@7->print_word]
  print_word_from_b7:
  //SEG48 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@7->print_word#0] -- register_copy 
  //SEG49 [66] phi (word) print_word::w#4 = (word) print_word::w#3 [phi:main::@7->print_word#1] -- register_copy 
    jsr print_word
  //SEG50 [23] phi from main::@7 to main::@8 [phi:main::@7->main::@8]
  b8_from_b7:
    jmp b8
  //SEG51 main::@8
  b8:
  //SEG52 [24] call print_char 
  //SEG53 [62] phi from main::@8 to print_char [phi:main::@8->print_char]
  print_char_from_b8:
  //SEG54 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@8->print_char#0] -- register_copy 
  //SEG55 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@8->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b9
  //SEG56 main::@9
  b9:
  //SEG57 [25] (word~) main::$15 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2_10+2
    sta _15
    lda dw2_10+3
    sta _15+1
  //SEG58 [26] (byte) print_byte::b#2 ← > (word~) main::$15 -- vbuz1=_hi_vwuz2 
    lda _15+1
    sta print_byte.b
  //SEG59 [27] call print_byte 
  //SEG60 [54] phi from main::@9 to print_byte [phi:main::@9->print_byte]
  print_byte_from_b9:
  //SEG61 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@9->print_byte#0] -- register_copy 
  //SEG62 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#2 [phi:main::@9->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG63 [28] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
  b10_from_b9:
    jmp b10
  //SEG64 main::@10
  b10:
  //SEG65 [29] call print_char 
  //SEG66 [62] phi from main::@10 to print_char [phi:main::@10->print_char]
  print_char_from_b10:
  //SEG67 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@10->print_char#0] -- register_copy 
  //SEG68 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@10->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b11
  //SEG69 main::@11
  b11:
  //SEG70 [30] (word~) main::$19 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2_10+2
    sta _19
    lda dw2_10+3
    sta _19+1
  //SEG71 [31] (byte) print_byte::b#3 ← < (word~) main::$19 -- vbuz1=_lo_vwuz2 
    lda _19
    sta print_byte.b
  //SEG72 [32] call print_byte 
  //SEG73 [54] phi from main::@11 to print_byte [phi:main::@11->print_byte]
  print_byte_from_b11:
  //SEG74 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@11->print_byte#0] -- register_copy 
  //SEG75 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#3 [phi:main::@11->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG76 [33] phi from main::@11 to main::@12 [phi:main::@11->main::@12]
  b12_from_b11:
    jmp b12
  //SEG77 main::@12
  b12:
  //SEG78 [34] call print_char 
  //SEG79 [62] phi from main::@12 to print_char [phi:main::@12->print_char]
  print_char_from_b12:
  //SEG80 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@12->print_char#0] -- register_copy 
  //SEG81 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@12->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b13
  //SEG82 main::@13
  b13:
  //SEG83 [35] (word~) main::$23 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2_10
    sta _23
    lda dw2_10+1
    sta _23+1
  //SEG84 [36] (byte) print_byte::b#4 ← > (word~) main::$23 -- vbuz1=_hi_vwuz2 
    lda _23+1
    sta print_byte.b
  //SEG85 [37] call print_byte 
  //SEG86 [54] phi from main::@13 to print_byte [phi:main::@13->print_byte]
  print_byte_from_b13:
  //SEG87 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@13->print_byte#0] -- register_copy 
  //SEG88 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#4 [phi:main::@13->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG89 [38] phi from main::@13 to main::@14 [phi:main::@13->main::@14]
  b14_from_b13:
    jmp b14
  //SEG90 main::@14
  b14:
  //SEG91 [39] call print_char 
  //SEG92 [62] phi from main::@14 to print_char [phi:main::@14->print_char]
  print_char_from_b14:
  //SEG93 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@14->print_char#0] -- register_copy 
  //SEG94 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@14->print_char#1] -- vbuz1=vbuc1 
    lda #' '
    sta print_char.ch
    jsr print_char
    jmp b15
  //SEG95 main::@15
  b15:
  //SEG96 [40] (word~) main::$27 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2_10
    sta _27
    lda dw2_10+1
    sta _27+1
  //SEG97 [41] (byte) print_byte::b#5 ← < (word~) main::$27 -- vbuz1=_lo_vwuz2 
    lda _27
    sta print_byte.b
  //SEG98 [42] call print_byte 
  //SEG99 [54] phi from main::@15 to print_byte [phi:main::@15->print_byte]
  print_byte_from_b15:
  //SEG100 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@15->print_byte#0] -- register_copy 
  //SEG101 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#5 [phi:main::@15->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG102 [43] phi from main::@15 to main::@16 [phi:main::@15->main::@16]
  b16_from_b15:
    jmp b16
  //SEG103 main::@16
  b16:
  //SEG104 [44] call print_ln 
  //SEG105 [49] phi from main::@16 to print_ln [phi:main::@16->print_ln]
  print_ln_from_b16:
    jsr print_ln
    jmp b17
  //SEG106 main::@17
  b17:
  //SEG107 [45] (dword) main::dw#1 ← ++ (dword) main::dw#10 -- vduz1=_inc_vduz1 
    inc dw
    bne !+
    inc dw+1
    bne !+
    inc dw+2
    bne !+
    inc dw+3
  !:
  //SEG108 [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18 -- vduz1_neq_vduc1_then_la1 
    lda dw+3
    cmp #>$12345690>>$10
    bne b18
    lda dw+2
    cmp #<$12345690>>$10
    bne b18
    lda dw+1
    cmp #>$12345690
    bne b18
    lda dw
    cmp #<$12345690
    bne b18
    jmp breturn
  //SEG109 main::@return
  breturn:
  //SEG110 [47] return 
    rts
  //SEG111 main::@18
  b18:
  //SEG112 [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
  //SEG113 [6] phi from main::@18 to main::@1 [phi:main::@18->main::@1]
  b1_from_b18:
  //SEG114 [6] phi (byte*) print_line_cursor#19 = (byte*) print_line_cursor#1 [phi:main::@18->main::@1#0] -- register_copy 
  //SEG115 [6] phi (byte*) print_char_cursor#69 = (byte*~) print_char_cursor#72 [phi:main::@18->main::@1#1] -- register_copy 
  //SEG116 [6] phi (dword) main::dw#10 = (dword) main::dw#1 [phi:main::@18->main::@1#2] -- register_copy 
    jmp b1
}
//SEG117 print_ln
// Print a newline
print_ln: {
  //SEG118 [50] phi from print_ln print_ln::@1 to print_ln::@1 [phi:print_ln/print_ln::@1->print_ln::@1]
  b1_from_print_ln:
  b1_from_b1:
  //SEG119 [50] phi (byte*) print_line_cursor#9 = (byte*) print_line_cursor#19 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    jmp b1
  //SEG120 print_ln::@1
  b1:
  //SEG121 [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 
    lda print_line_cursor
    clc
    adc #$28
    sta print_line_cursor
    bcc !+
    inc print_line_cursor+1
  !:
  //SEG122 [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1 -- pbuz1_lt_pbuz2_then_la1 
    lda print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1_from_b1
    bne !+
    lda print_line_cursor
    cmp print_char_cursor
    bcc b1_from_b1
  !:
    jmp breturn
  //SEG123 print_ln::@return
  breturn:
  //SEG124 [53] return 
    rts
}
//SEG125 print_byte
// Print a byte as HEX
// print_byte(byte zeropage(8) b)
print_byte: {
    .label _0 = $2c
    .label _2 = $2d
    .label b = 8
  //SEG126 [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz2_ror_4 
    lda b
    lsr
    lsr
    lsr
    lsr
    sta _0
  //SEG127 [56] (byte) print_char::ch#0 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$0) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy _0
    lda print_hextab,y
    sta print_char.ch
  //SEG128 [57] call print_char 
  //SEG129 [62] phi from print_byte to print_char [phi:print_byte->print_char]
  print_char_from_print_byte:
  //SEG130 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#67 [phi:print_byte->print_char#0] -- register_copy 
  //SEG131 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
    jmp b1
  //SEG132 print_byte::@1
  b1:
  //SEG133 [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15 -- vbuz1=vbuz2_band_vbuc1 
    lda #$f
    and b
    sta _2
  //SEG134 [59] (byte) print_char::ch#1 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$2) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy _2
    lda print_hextab,y
    sta print_char.ch
  //SEG135 [60] call print_char 
  //SEG136 [62] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
  print_char_from_b1:
  //SEG137 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:print_byte::@1->print_char#0] -- register_copy 
  //SEG138 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
    jmp breturn
  //SEG139 print_byte::@return
  breturn:
  //SEG140 [61] return 
    rts
}
//SEG141 print_char
// Print a single char
// print_char(byte zeropage(9) ch)
print_char: {
    .label ch = 9
  //SEG142 [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8 -- _deref_pbuz1=vbuz2 
    lda ch
    ldy #0
    sta (print_char_cursor),y
  //SEG143 [64] (byte*) print_char_cursor#12 ← ++ (byte*) print_char_cursor#44 -- pbuz1=_inc_pbuz1 
    inc print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    jmp breturn
  //SEG144 print_char::@return
  breturn:
  //SEG145 [65] return 
    rts
}
//SEG146 print_word
// Print a word as HEX
// print_word(word zeropage($c) w)
print_word: {
    .label w = $c
  //SEG147 [67] (byte) print_byte::b#0 ← > (word) print_word::w#4 -- vbuz1=_hi_vwuz2 
    lda w+1
    sta print_byte.b
  //SEG148 [68] call print_byte 
  //SEG149 [54] phi from print_word to print_byte [phi:print_word->print_byte]
  print_byte_from_print_word:
  //SEG150 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#65 [phi:print_word->print_byte#0] -- register_copy 
  //SEG151 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#0 [phi:print_word->print_byte#1] -- register_copy 
    jsr print_byte
    jmp b1
  //SEG152 print_word::@1
  b1:
  //SEG153 [69] (byte) print_byte::b#1 ← < (word) print_word::w#4 -- vbuz1=_lo_vwuz2 
    lda w
    sta print_byte.b
  //SEG154 [70] call print_byte 
  //SEG155 [54] phi from print_word::@1 to print_byte [phi:print_word::@1->print_byte]
  print_byte_from_b1:
  //SEG156 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:print_word::@1->print_byte#0] -- register_copy 
  //SEG157 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#1 [phi:print_word::@1->print_byte#1] -- register_copy 
    jsr print_byte
    jmp breturn
  //SEG158 print_word::@return
  breturn:
  //SEG159 [71] return 
    rts
}
//SEG160 print_dword
// Print a dword as HEX
// print_dword(dword zeropage($20) dw)
print_dword: {
    .label dw = $20
  //SEG161 [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta print_word.w
    lda dw+3
    sta print_word.w+1
  //SEG162 [73] call print_word 
  //SEG163 [66] phi from print_dword to print_word [phi:print_dword->print_word]
  print_word_from_print_dword:
  //SEG164 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#69 [phi:print_dword->print_word#0] -- register_copy 
  //SEG165 [66] phi (word) print_word::w#4 = (word) print_word::w#0 [phi:print_dword->print_word#1] -- register_copy 
    jsr print_word
    jmp b1
  //SEG166 print_dword::@1
  b1:
  //SEG167 [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0 -- vwuz1=_lo_vduz2 
    lda dw
    sta print_word.w
    lda dw+1
    sta print_word.w+1
  //SEG168 [75] call print_word 
  //SEG169 [66] phi from print_dword::@1 to print_word [phi:print_dword::@1->print_word]
  print_word_from_b1:
  //SEG170 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:print_dword::@1->print_word#0] -- register_copy 
  //SEG171 [66] phi (word) print_word::w#4 = (word) print_word::w#1 [phi:print_dword::@1->print_word#1] -- register_copy 
    jsr print_word
    jmp breturn
  //SEG172 print_dword::@return
  breturn:
  //SEG173 [76] return 
    rts
}
//SEG174 print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    .label sc = $e
  //SEG175 [78] phi from print_cls to print_cls::@1 [phi:print_cls->print_cls::@1]
  b1_from_print_cls:
  //SEG176 [78] phi (byte*) print_cls::sc#2 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:print_cls->print_cls::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta sc
    lda #>$400
    sta sc+1
    jmp b1
  //SEG177 [78] phi from print_cls::@1 to print_cls::@1 [phi:print_cls::@1->print_cls::@1]
  b1_from_b1:
  //SEG178 [78] phi (byte*) print_cls::sc#2 = (byte*) print_cls::sc#1 [phi:print_cls::@1->print_cls::@1#0] -- register_copy 
    jmp b1
  //SEG179 print_cls::@1
  b1:
  //SEG180 [79] *((byte*) print_cls::sc#2) ← (byte) ' ' -- _deref_pbuz1=vbuc1 
    lda #' '
    ldy #0
    sta (sc),y
  //SEG181 [80] (byte*) print_cls::sc#1 ← ++ (byte*) print_cls::sc#2 -- pbuz1=_inc_pbuz1 
    inc sc
    bne !+
    inc sc+1
  !:
  //SEG182 [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda sc+1
    cmp #>$400+$3e8
    bne b1_from_b1
    lda sc
    cmp #<$400+$3e8
    bne b1_from_b1
    jmp breturn
  //SEG183 print_cls::@return
  breturn:
  //SEG184 [82] return 
    rts
}
  print_hextab: .text "0123456789abcdef"

REGISTER UPLIFT POTENTIAL REGISTERS
Equivalence Class zp ZP_WORD:16 [ main::$2 ] has ALU potential.
Equivalence Class zp ZP_WORD:24 [ main::$5 ] has ALU potential.
Statement [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::$32 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::$32 ] ) always clobbers reg byte a 
Statement [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 ] ) always clobbers reg byte a 
Statement [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 main::$33 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 main::$33 ] ) always clobbers reg byte a 
Statement [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 ] ) always clobbers reg byte a 
Statement [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 print_dword::dw#0 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 print_dword::dw#0 ] ) always clobbers reg byte a 
Statement [17] (word) print_word::w#2 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#2 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#2 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [21] (word) print_word::w#3 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#3 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#3 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [25] (word~) main::$15 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$15 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$15 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [26] (byte) print_byte::b#2 ← > (word~) main::$15 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#2 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#2 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [30] (word~) main::$19 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$19 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$19 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [31] (byte) print_byte::b#3 ← < (word~) main::$19 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#3 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#3 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [35] (word~) main::$23 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$23 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$23 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [36] (byte) print_byte::b#4 ← > (word~) main::$23 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#4 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#4 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [40] (word~) main::$27 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::$27 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::$27 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [41] (byte) print_byte::b#5 ← < (word~) main::$27 [ main::dw#10 print_line_cursor#19 print_byte::b#5 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 print_byte::b#5 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18 [ main::dw#1 print_line_cursor#1 ] ( main:2 [ main::dw#1 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1 [ main::dw#1 print_char_cursor#72 print_line_cursor#1 ] ( main:2 [ main::dw#1 print_char_cursor#72 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ print_line_cursor#1 print_char_cursor#12 ] ( main:2::print_ln:44 [ main::dw#10 print_line_cursor#1 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1 [ print_line_cursor#1 print_char_cursor#12 ] ( main:2::print_ln:44 [ main::dw#10 print_line_cursor#1 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4 [ print_byte::b#6 print_char_cursor#67 print_byte::$0 ] ( main:2::print_byte:27 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:32 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:37 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:42 [ main::dw#10 print_line_cursor#19 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:18::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:22::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:73::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:75::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:18::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:22::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:73::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:75::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:8 [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Statement [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15 [ print_char_cursor#12 print_byte::$2 ] ( main:2::print_byte:27 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:32 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:37 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:42 [ main::dw#10 print_line_cursor#19 print_char_cursor#12 print_byte::$2 ] main:2::print_word:18::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_word:22::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:73::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:75::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_word:18::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_word:22::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:73::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:75::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] ) always clobbers reg byte a 
Statement [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8 [ print_char_cursor#44 ] ( main:2::print_char:16 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:20 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:24 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:29 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:34 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:39 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:27::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:32::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:37::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:42::print_char:57 [ main::dw#10 print_line_cursor#19 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:18::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:22::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:18::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:22::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:27::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:32::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:37::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:42::print_char:60 [ main::dw#10 print_line_cursor#19 print_char_cursor#44 ] main:2::print_word:18::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_word:22::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_word:18::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_word:22::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] ) always clobbers reg byte y 
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:8 [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Statement [67] (byte) print_byte::b#0 ← > (word) print_word::w#4 [ print_byte::b#0 print_char_cursor#65 print_word::w#4 ] ( main:2::print_word:18 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_word:22 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_dword:14::print_word:73 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_dword:14::print_word:75 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] ) always clobbers reg byte a 
Statement [69] (byte) print_byte::b#1 ← < (word) print_word::w#4 [ print_char_cursor#12 print_byte::b#1 ] ( main:2::print_word:18 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] main:2::print_word:22 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] main:2::print_dword:14::print_word:73 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#12 print_byte::b#1 ] main:2::print_dword:14::print_word:75 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] ) always clobbers reg byte a 
Statement [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0 [ print_char_cursor#69 print_dword::dw#0 print_word::w#0 ] ( main:2::print_dword:14 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#69 print_dword::dw#0 print_word::w#0 ] ) always clobbers reg byte a 
Statement [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0 [ print_char_cursor#12 print_word::w#1 ] ( main:2::print_dword:14 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_word::w#1 ] ) always clobbers reg byte a 
Statement [79] *((byte*) print_cls::sc#2) ← (byte) ' ' [ print_cls::sc#2 ] ( main:2::print_cls:5 [ print_cls::sc#2 ] ) always clobbers reg byte a reg byte y 
Statement [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1 [ print_cls::sc#1 ] ( main:2::print_cls:5 [ print_cls::sc#1 ] ) always clobbers reg byte a 
Statement [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::$32 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::$32 ] ) always clobbers reg byte a 
Statement [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 ] ) always clobbers reg byte a 
Statement [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 main::$33 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#1 main::$33 ] ) always clobbers reg byte a 
Statement [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 ] ) always clobbers reg byte a 
Statement [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 print_dword::dw#0 ] ( main:2 [ main::dw#10 print_char_cursor#69 print_line_cursor#19 main::dw2#10 print_dword::dw#0 ] ) always clobbers reg byte a 
Statement [17] (word) print_word::w#2 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#2 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#2 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [21] (word) print_word::w#3 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#3 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#3 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [25] (word~) main::$15 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$15 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$15 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [26] (byte) print_byte::b#2 ← > (word~) main::$15 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#2 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#2 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [30] (word~) main::$19 ← > (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$19 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$19 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [31] (byte) print_byte::b#3 ← < (word~) main::$19 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#3 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#3 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [35] (word~) main::$23 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$23 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 main::$23 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [36] (byte) print_byte::b#4 ← > (word~) main::$23 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#4 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#4 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [40] (word~) main::$27 ← < (dword) main::dw2#10 [ main::dw#10 print_line_cursor#19 main::$27 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 main::$27 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [41] (byte) print_byte::b#5 ← < (word~) main::$27 [ main::dw#10 print_line_cursor#19 print_byte::b#5 print_char_cursor#12 ] ( main:2 [ main::dw#10 print_line_cursor#19 print_byte::b#5 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18 [ main::dw#1 print_line_cursor#1 ] ( main:2 [ main::dw#1 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1 [ main::dw#1 print_char_cursor#72 print_line_cursor#1 ] ( main:2 [ main::dw#1 print_char_cursor#72 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ print_line_cursor#1 print_char_cursor#12 ] ( main:2::print_ln:44 [ main::dw#10 print_line_cursor#1 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1 [ print_line_cursor#1 print_char_cursor#12 ] ( main:2::print_ln:44 [ main::dw#10 print_line_cursor#1 print_char_cursor#12 ] ) always clobbers reg byte a 
Statement [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4 [ print_byte::b#6 print_char_cursor#67 print_byte::$0 ] ( main:2::print_byte:27 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:32 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:37 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_byte:42 [ main::dw#10 print_line_cursor#19 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:18::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:22::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:73::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:75::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:18::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_word:22::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:73::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] main:2::print_dword:14::print_word:75::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#67 print_byte::$0 ] ) always clobbers reg byte a 
Statement [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15 [ print_char_cursor#12 print_byte::$2 ] ( main:2::print_byte:27 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:32 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:37 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_byte:42 [ main::dw#10 print_line_cursor#19 print_char_cursor#12 print_byte::$2 ] main:2::print_word:18::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_word:22::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:73::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:75::print_byte:68 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#12 print_byte::$2 ] main:2::print_word:18::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_word:22::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:73::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#12 print_byte::$2 ] main:2::print_dword:14::print_word:75::print_byte:70 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::$2 ] ) always clobbers reg byte a 
Statement [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8 [ print_char_cursor#44 ] ( main:2::print_char:16 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:20 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:24 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:29 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:34 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_char:39 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:27::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:32::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:37::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:42::print_char:57 [ main::dw#10 print_line_cursor#19 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:18::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:22::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:68::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:18::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_word:22::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#6 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:70::print_char:57 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#6 print_char_cursor#44 ] main:2::print_byte:27::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:32::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:37::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_byte:42::print_char:60 [ main::dw#10 print_line_cursor#19 print_char_cursor#44 ] main:2::print_word:18::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_word:22::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_word::w#4 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:68::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_word::w#4 print_char_cursor#44 ] main:2::print_word:18::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_word:22::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] main:2::print_dword:14::print_word:73::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#44 ] main:2::print_dword:14::print_word:75::print_byte:70::print_char:60 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#44 ] ) always clobbers reg byte y 
Statement [67] (byte) print_byte::b#0 ← > (word) print_word::w#4 [ print_byte::b#0 print_char_cursor#65 print_word::w#4 ] ( main:2::print_word:18 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_word:22 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_dword:14::print_word:73 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] main:2::print_dword:14::print_word:75 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_byte::b#0 print_char_cursor#65 print_word::w#4 ] ) always clobbers reg byte a 
Statement [69] (byte) print_byte::b#1 ← < (word) print_word::w#4 [ print_char_cursor#12 print_byte::b#1 ] ( main:2::print_word:18 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] main:2::print_word:22 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] main:2::print_dword:14::print_word:73 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_dword::dw#0 print_char_cursor#12 print_byte::b#1 ] main:2::print_dword:14::print_word:75 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_byte::b#1 ] ) always clobbers reg byte a 
Statement [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0 [ print_char_cursor#69 print_dword::dw#0 print_word::w#0 ] ( main:2::print_dword:14 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#69 print_dword::dw#0 print_word::w#0 ] ) always clobbers reg byte a 
Statement [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0 [ print_char_cursor#12 print_word::w#1 ] ( main:2::print_dword:14 [ main::dw#10 print_line_cursor#19 main::dw2#10 print_char_cursor#12 print_word::w#1 ] ) always clobbers reg byte a 
Statement [79] *((byte*) print_cls::sc#2) ← (byte) ' ' [ print_cls::sc#2 ] ( main:2::print_cls:5 [ print_cls::sc#2 ] ) always clobbers reg byte a reg byte y 
Statement [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1 [ print_cls::sc#1 ] ( main:2::print_cls:5 [ print_cls::sc#1 ] ) always clobbers reg byte a 
Potential registers zp ZP_DWORD:2 [ main::dw#10 main::dw#1 ] : zp ZP_DWORD:2 , 
Potential registers zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ] : zp ZP_WORD:6 , 
Potential registers zp ZP_BYTE:8 [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ] : zp ZP_BYTE:8 , reg byte x , 
Potential registers zp ZP_BYTE:9 [ print_char::ch#8 print_char::ch#0 print_char::ch#1 ] : zp ZP_BYTE:9 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:10 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ] : zp ZP_WORD:10 , 
Potential registers zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ] : zp ZP_WORD:12 , 
Potential registers zp ZP_WORD:14 [ print_cls::sc#2 print_cls::sc#1 ] : zp ZP_WORD:14 , 
Potential registers zp ZP_WORD:16 [ main::$2 ] : zp ZP_WORD:16 , reg byte alu , 
Potential registers zp ZP_WORD:18 [ main::$32 ] : zp ZP_WORD:18 , 
Potential registers zp ZP_DWORD:20 [ main::dw2#1 ] : zp ZP_DWORD:20 , 
Potential registers zp ZP_WORD:24 [ main::$5 ] : zp ZP_WORD:24 , reg byte alu , 
Potential registers zp ZP_WORD:26 [ main::$33 ] : zp ZP_WORD:26 , 
Potential registers zp ZP_DWORD:28 [ main::dw2#10 ] : zp ZP_DWORD:28 , 
Potential registers zp ZP_DWORD:32 [ print_dword::dw#0 ] : zp ZP_DWORD:32 , 
Potential registers zp ZP_WORD:36 [ main::$15 ] : zp ZP_WORD:36 , 
Potential registers zp ZP_WORD:38 [ main::$19 ] : zp ZP_WORD:38 , 
Potential registers zp ZP_WORD:40 [ main::$23 ] : zp ZP_WORD:40 , 
Potential registers zp ZP_WORD:42 [ main::$27 ] : zp ZP_WORD:42 , 
Potential registers zp ZP_BYTE:44 [ print_byte::$0 ] : zp ZP_BYTE:44 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:45 [ print_byte::$2 ] : zp ZP_BYTE:45 , reg byte a , reg byte x , reg byte y , 

REGISTER UPLIFT SCOPES
Uplift Scope [] 250.76: zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ] 96.03: zp ZP_WORD:10 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ] 
Uplift Scope [main] 22: zp ZP_WORD:16 [ main::$2 ] 22: zp ZP_WORD:18 [ main::$32 ] 22: zp ZP_WORD:24 [ main::$5 ] 22: zp ZP_WORD:26 [ main::$33 ] 22: zp ZP_WORD:36 [ main::$15 ] 22: zp ZP_WORD:38 [ main::$19 ] 22: zp ZP_WORD:40 [ main::$23 ] 22: zp ZP_WORD:42 [ main::$27 ] 12.41: zp ZP_DWORD:2 [ main::dw#10 main::dw#1 ] 7.33: zp ZP_DWORD:20 [ main::dw2#1 ] 3.14: zp ZP_DWORD:28 [ main::dw2#10 ] 
Uplift Scope [print_byte] 109: zp ZP_BYTE:8 [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ] 4: zp ZP_BYTE:44 [ print_byte::$0 ] 4: zp ZP_BYTE:45 [ print_byte::$2 ] 
Uplift Scope [print_word] 62: zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ] 
Uplift Scope [print_cls] 33: zp ZP_WORD:14 [ print_cls::sc#2 print_cls::sc#1 ] 
Uplift Scope [print_char] 14: zp ZP_BYTE:9 [ print_char::ch#8 print_char::ch#0 print_char::ch#1 ] 
Uplift Scope [print_dword] 5: zp ZP_DWORD:32 [ print_dword::dw#0 ] 
Uplift Scope [print_ln] 

Uplifting [] best 8947 combination zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ] zp ZP_WORD:10 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ] 
Uplifting [main] best 8947 combination zp ZP_WORD:16 [ main::$2 ] zp ZP_WORD:18 [ main::$32 ] zp ZP_WORD:24 [ main::$5 ] zp ZP_WORD:26 [ main::$33 ] zp ZP_WORD:36 [ main::$15 ] zp ZP_WORD:38 [ main::$19 ] zp ZP_WORD:40 [ main::$23 ] zp ZP_WORD:42 [ main::$27 ] zp ZP_DWORD:2 [ main::dw#10 main::dw#1 ] zp ZP_DWORD:20 [ main::dw2#1 ] zp ZP_DWORD:28 [ main::dw2#10 ] 
Uplifting [print_byte] best 8895 combination reg byte x [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ] reg byte a [ print_byte::$0 ] reg byte a [ print_byte::$2 ] 
Uplifting [print_word] best 8895 combination zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ] 
Uplifting [print_cls] best 8895 combination zp ZP_WORD:14 [ print_cls::sc#2 print_cls::sc#1 ] 
Uplifting [print_char] best 8868 combination reg byte a [ print_char::ch#8 print_char::ch#0 print_char::ch#1 ] 
Uplifting [print_dword] best 8868 combination zp ZP_DWORD:32 [ print_dword::dw#0 ] 
Uplifting [print_ln] best 8868 combination 
Coalescing zero page register with common assignment [ zp ZP_WORD:16 [ main::$2 ] ] with [ zp ZP_WORD:18 [ main::$32 ] ] - score: 1
Coalescing zero page register with common assignment [ zp ZP_DWORD:20 [ main::dw2#1 ] ] with [ zp ZP_DWORD:28 [ main::dw2#10 ] ] - score: 1
Coalescing zero page register with common assignment [ zp ZP_WORD:24 [ main::$5 ] ] with [ zp ZP_WORD:26 [ main::$33 ] ] - score: 1
Coalescing zero page register with common assignment [ zp ZP_DWORD:20 [ main::dw2#1 main::dw2#10 ] ] with [ zp ZP_DWORD:32 [ print_dword::dw#0 ] ] - score: 1
Coalescing zero page register [ zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 ] ] with [ zp ZP_WORD:14 [ print_cls::sc#2 print_cls::sc#1 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 ] ] with [ zp ZP_WORD:16 [ main::$2 main::$32 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 ] ] with [ zp ZP_WORD:24 [ main::$5 main::$33 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 ] ] with [ zp ZP_WORD:36 [ main::$15 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 main::$15 ] ] with [ zp ZP_WORD:38 [ main::$19 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 main::$15 main::$19 ] ] with [ zp ZP_WORD:40 [ main::$23 ] ]
Coalescing zero page register [ zp ZP_WORD:12 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 main::$15 main::$19 main::$23 ] ] with [ zp ZP_WORD:42 [ main::$27 ] ]
Allocated (was zp ZP_WORD:10) zp ZP_WORD:8 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ]
Allocated (was zp ZP_WORD:12) zp ZP_WORD:10 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 main::$15 main::$19 main::$23 main::$27 ]
Allocated (was zp ZP_DWORD:20) zp ZP_DWORD:12 [ main::dw2#1 main::dw2#10 print_dword::dw#0 ]

ASSEMBLER BEFORE OPTIMIZATION
//SEG0 File Comments
//SEG1 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(bbegin)
.pc = $80d "Program"
//SEG2 Global Constants & labels
  .label print_line_cursor = 6
  .label print_char_cursor = 8
//SEG3 @begin
bbegin:
//SEG4 [1] phi from @begin to @20 [phi:@begin->@20]
b20_from_bbegin:
  jmp b20
//SEG5 @20
b20:
//SEG6 [2] call main 
//SEG7 [4] phi from @20 to main [phi:@20->main]
main_from_b20:
  jsr main
//SEG8 [3] phi from @20 to @end [phi:@20->@end]
bend_from_b20:
  jmp bend
//SEG9 @end
bend:
//SEG10 main
main: {
    .label _2 = $a
    .label _5 = $a
    .label _15 = $a
    .label _19 = $a
    .label _23 = $a
    .label _27 = $a
    .label _32 = $a
    .label _33 = $a
    .label dw2 = $c
    .label dw = 2
  //SEG11 [5] call print_cls 
  //SEG12 [77] phi from main to print_cls [phi:main->print_cls]
  print_cls_from_main:
    jsr print_cls
  //SEG13 [6] phi from main to main::@1 [phi:main->main::@1]
  b1_from_main:
  //SEG14 [6] phi (byte*) print_line_cursor#19 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta print_line_cursor
    lda #>$400
    sta print_line_cursor+1
  //SEG15 [6] phi (byte*) print_char_cursor#69 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta print_char_cursor
    lda #>$400
    sta print_char_cursor+1
  //SEG16 [6] phi (dword) main::dw#10 = (dword/signed dword) 305419896 [phi:main->main::@1#2] -- vduz1=vduc1 
    lda #<$12345678
    sta dw
    lda #>$12345678
    sta dw+1
    lda #<$12345678>>$10
    sta dw+2
    lda #>$12345678>>$10
    sta dw+3
    jmp b1
  //SEG17 main::@1
  b1:
  //SEG18 [7] (word~) main::$2 ← > (dword) main::dw#10 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta _2
    lda dw+3
    sta _2+1
  //SEG19 [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz1_plus_vwuc1 
    clc
    lda _32
    adc #<$1111
    sta _32
    lda _32+1
    adc #>$1111
    sta _32+1
  //SEG20 [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32 -- vduz1=vduz2_sethi_vwuz3 
    lda dw
    sta dw2
    lda dw+1
    sta dw2+1
    lda _32
    sta dw2+2
    lda _32+1
    sta dw2+3
  //SEG21 [10] (word~) main::$5 ← < (dword) main::dw#10 -- vwuz1=_lo_vduz2 
    lda dw
    sta _5
    lda dw+1
    sta _5+1
  //SEG22 [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz1_plus_vwuc1 
    clc
    lda _33
    adc #<$1111
    sta _33
    lda _33+1
    adc #>$1111
    sta _33+1
  //SEG23 [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33 -- vduz1=vduz1_setlo_vwuz2 
    lda _33
    sta dw2
    lda _33+1
    sta dw2+1
  //SEG24 [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10
  //SEG25 [14] call print_dword 
    jsr print_dword
  //SEG26 [15] phi from main::@1 to main::@4 [phi:main::@1->main::@4]
  b4_from_b1:
    jmp b4
  //SEG27 main::@4
  b4:
  //SEG28 [16] call print_char 
  //SEG29 [62] phi from main::@4 to print_char [phi:main::@4->print_char]
  print_char_from_b4:
  //SEG30 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@4->print_char#0] -- register_copy 
  //SEG31 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@4->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b5
  //SEG32 main::@5
  b5:
  //SEG33 [17] (word) print_word::w#2 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta print_word.w
    lda dw2+3
    sta print_word.w+1
  //SEG34 [18] call print_word 
  //SEG35 [66] phi from main::@5 to print_word [phi:main::@5->print_word]
  print_word_from_b5:
  //SEG36 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@5->print_word#0] -- register_copy 
  //SEG37 [66] phi (word) print_word::w#4 = (word) print_word::w#2 [phi:main::@5->print_word#1] -- register_copy 
    jsr print_word
  //SEG38 [19] phi from main::@5 to main::@6 [phi:main::@5->main::@6]
  b6_from_b5:
    jmp b6
  //SEG39 main::@6
  b6:
  //SEG40 [20] call print_char 
  //SEG41 [62] phi from main::@6 to print_char [phi:main::@6->print_char]
  print_char_from_b6:
  //SEG42 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@6->print_char#0] -- register_copy 
  //SEG43 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@6->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b7
  //SEG44 main::@7
  b7:
  //SEG45 [21] (word) print_word::w#3 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta print_word.w
    lda dw2+1
    sta print_word.w+1
  //SEG46 [22] call print_word 
  //SEG47 [66] phi from main::@7 to print_word [phi:main::@7->print_word]
  print_word_from_b7:
  //SEG48 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@7->print_word#0] -- register_copy 
  //SEG49 [66] phi (word) print_word::w#4 = (word) print_word::w#3 [phi:main::@7->print_word#1] -- register_copy 
    jsr print_word
  //SEG50 [23] phi from main::@7 to main::@8 [phi:main::@7->main::@8]
  b8_from_b7:
    jmp b8
  //SEG51 main::@8
  b8:
  //SEG52 [24] call print_char 
  //SEG53 [62] phi from main::@8 to print_char [phi:main::@8->print_char]
  print_char_from_b8:
  //SEG54 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@8->print_char#0] -- register_copy 
  //SEG55 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@8->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b9
  //SEG56 main::@9
  b9:
  //SEG57 [25] (word~) main::$15 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta _15
    lda dw2+3
    sta _15+1
  //SEG58 [26] (byte) print_byte::b#2 ← > (word~) main::$15 -- vbuxx=_hi_vwuz1 
    lda _15+1
    tax
  //SEG59 [27] call print_byte 
  //SEG60 [54] phi from main::@9 to print_byte [phi:main::@9->print_byte]
  print_byte_from_b9:
  //SEG61 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@9->print_byte#0] -- register_copy 
  //SEG62 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#2 [phi:main::@9->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG63 [28] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
  b10_from_b9:
    jmp b10
  //SEG64 main::@10
  b10:
  //SEG65 [29] call print_char 
  //SEG66 [62] phi from main::@10 to print_char [phi:main::@10->print_char]
  print_char_from_b10:
  //SEG67 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@10->print_char#0] -- register_copy 
  //SEG68 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@10->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b11
  //SEG69 main::@11
  b11:
  //SEG70 [30] (word~) main::$19 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta _19
    lda dw2+3
    sta _19+1
  //SEG71 [31] (byte) print_byte::b#3 ← < (word~) main::$19 -- vbuxx=_lo_vwuz1 
    lda _19
    tax
  //SEG72 [32] call print_byte 
  //SEG73 [54] phi from main::@11 to print_byte [phi:main::@11->print_byte]
  print_byte_from_b11:
  //SEG74 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@11->print_byte#0] -- register_copy 
  //SEG75 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#3 [phi:main::@11->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG76 [33] phi from main::@11 to main::@12 [phi:main::@11->main::@12]
  b12_from_b11:
    jmp b12
  //SEG77 main::@12
  b12:
  //SEG78 [34] call print_char 
  //SEG79 [62] phi from main::@12 to print_char [phi:main::@12->print_char]
  print_char_from_b12:
  //SEG80 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@12->print_char#0] -- register_copy 
  //SEG81 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@12->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b13
  //SEG82 main::@13
  b13:
  //SEG83 [35] (word~) main::$23 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta _23
    lda dw2+1
    sta _23+1
  //SEG84 [36] (byte) print_byte::b#4 ← > (word~) main::$23 -- vbuxx=_hi_vwuz1 
    lda _23+1
    tax
  //SEG85 [37] call print_byte 
  //SEG86 [54] phi from main::@13 to print_byte [phi:main::@13->print_byte]
  print_byte_from_b13:
  //SEG87 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@13->print_byte#0] -- register_copy 
  //SEG88 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#4 [phi:main::@13->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG89 [38] phi from main::@13 to main::@14 [phi:main::@13->main::@14]
  b14_from_b13:
    jmp b14
  //SEG90 main::@14
  b14:
  //SEG91 [39] call print_char 
  //SEG92 [62] phi from main::@14 to print_char [phi:main::@14->print_char]
  print_char_from_b14:
  //SEG93 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@14->print_char#0] -- register_copy 
  //SEG94 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@14->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp b15
  //SEG95 main::@15
  b15:
  //SEG96 [40] (word~) main::$27 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta _27
    lda dw2+1
    sta _27+1
  //SEG97 [41] (byte) print_byte::b#5 ← < (word~) main::$27 -- vbuxx=_lo_vwuz1 
    lda _27
    tax
  //SEG98 [42] call print_byte 
  //SEG99 [54] phi from main::@15 to print_byte [phi:main::@15->print_byte]
  print_byte_from_b15:
  //SEG100 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@15->print_byte#0] -- register_copy 
  //SEG101 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#5 [phi:main::@15->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG102 [43] phi from main::@15 to main::@16 [phi:main::@15->main::@16]
  b16_from_b15:
    jmp b16
  //SEG103 main::@16
  b16:
  //SEG104 [44] call print_ln 
  //SEG105 [49] phi from main::@16 to print_ln [phi:main::@16->print_ln]
  print_ln_from_b16:
    jsr print_ln
    jmp b17
  //SEG106 main::@17
  b17:
  //SEG107 [45] (dword) main::dw#1 ← ++ (dword) main::dw#10 -- vduz1=_inc_vduz1 
    inc dw
    bne !+
    inc dw+1
    bne !+
    inc dw+2
    bne !+
    inc dw+3
  !:
  //SEG108 [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18 -- vduz1_neq_vduc1_then_la1 
    lda dw+3
    cmp #>$12345690>>$10
    bne b18
    lda dw+2
    cmp #<$12345690>>$10
    bne b18
    lda dw+1
    cmp #>$12345690
    bne b18
    lda dw
    cmp #<$12345690
    bne b18
    jmp breturn
  //SEG109 main::@return
  breturn:
  //SEG110 [47] return 
    rts
  //SEG111 main::@18
  b18:
  //SEG112 [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
  //SEG113 [6] phi from main::@18 to main::@1 [phi:main::@18->main::@1]
  b1_from_b18:
  //SEG114 [6] phi (byte*) print_line_cursor#19 = (byte*) print_line_cursor#1 [phi:main::@18->main::@1#0] -- register_copy 
  //SEG115 [6] phi (byte*) print_char_cursor#69 = (byte*~) print_char_cursor#72 [phi:main::@18->main::@1#1] -- register_copy 
  //SEG116 [6] phi (dword) main::dw#10 = (dword) main::dw#1 [phi:main::@18->main::@1#2] -- register_copy 
    jmp b1
}
//SEG117 print_ln
// Print a newline
print_ln: {
  //SEG118 [50] phi from print_ln print_ln::@1 to print_ln::@1 [phi:print_ln/print_ln::@1->print_ln::@1]
  b1_from_print_ln:
  b1_from_b1:
  //SEG119 [50] phi (byte*) print_line_cursor#9 = (byte*) print_line_cursor#19 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    jmp b1
  //SEG120 print_ln::@1
  b1:
  //SEG121 [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 
    lda print_line_cursor
    clc
    adc #$28
    sta print_line_cursor
    bcc !+
    inc print_line_cursor+1
  !:
  //SEG122 [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1 -- pbuz1_lt_pbuz2_then_la1 
    lda print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1_from_b1
    bne !+
    lda print_line_cursor
    cmp print_char_cursor
    bcc b1_from_b1
  !:
    jmp breturn
  //SEG123 print_ln::@return
  breturn:
  //SEG124 [53] return 
    rts
}
//SEG125 print_byte
// Print a byte as HEX
// print_byte(byte register(X) b)
print_byte: {
  //SEG126 [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
  //SEG127 [56] (byte) print_char::ch#0 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$0) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
  //SEG128 [57] call print_char 
  //SEG129 [62] phi from print_byte to print_char [phi:print_byte->print_char]
  print_char_from_print_byte:
  //SEG130 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#67 [phi:print_byte->print_char#0] -- register_copy 
  //SEG131 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
    jmp b1
  //SEG132 print_byte::@1
  b1:
  //SEG133 [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15 -- vbuaa=vbuxx_band_vbuc1 
    txa
    and #$f
  //SEG134 [59] (byte) print_char::ch#1 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$2) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
  //SEG135 [60] call print_char 
  //SEG136 [62] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
  print_char_from_b1:
  //SEG137 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:print_byte::@1->print_char#0] -- register_copy 
  //SEG138 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
    jmp breturn
  //SEG139 print_byte::@return
  breturn:
  //SEG140 [61] return 
    rts
}
//SEG141 print_char
// Print a single char
// print_char(byte register(A) ch)
print_char: {
  //SEG142 [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
  //SEG143 [64] (byte*) print_char_cursor#12 ← ++ (byte*) print_char_cursor#44 -- pbuz1=_inc_pbuz1 
    inc print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    jmp breturn
  //SEG144 print_char::@return
  breturn:
  //SEG145 [65] return 
    rts
}
//SEG146 print_word
// Print a word as HEX
// print_word(word zeropage($a) w)
print_word: {
    .label w = $a
  //SEG147 [67] (byte) print_byte::b#0 ← > (word) print_word::w#4 -- vbuxx=_hi_vwuz1 
    lda w+1
    tax
  //SEG148 [68] call print_byte 
  //SEG149 [54] phi from print_word to print_byte [phi:print_word->print_byte]
  print_byte_from_print_word:
  //SEG150 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#65 [phi:print_word->print_byte#0] -- register_copy 
  //SEG151 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#0 [phi:print_word->print_byte#1] -- register_copy 
    jsr print_byte
    jmp b1
  //SEG152 print_word::@1
  b1:
  //SEG153 [69] (byte) print_byte::b#1 ← < (word) print_word::w#4 -- vbuxx=_lo_vwuz1 
    lda w
    tax
  //SEG154 [70] call print_byte 
  //SEG155 [54] phi from print_word::@1 to print_byte [phi:print_word::@1->print_byte]
  print_byte_from_b1:
  //SEG156 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:print_word::@1->print_byte#0] -- register_copy 
  //SEG157 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#1 [phi:print_word::@1->print_byte#1] -- register_copy 
    jsr print_byte
    jmp breturn
  //SEG158 print_word::@return
  breturn:
  //SEG159 [71] return 
    rts
}
//SEG160 print_dword
// Print a dword as HEX
// print_dword(dword zeropage($c) dw)
print_dword: {
    .label dw = $c
  //SEG161 [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta print_word.w
    lda dw+3
    sta print_word.w+1
  //SEG162 [73] call print_word 
  //SEG163 [66] phi from print_dword to print_word [phi:print_dword->print_word]
  print_word_from_print_dword:
  //SEG164 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#69 [phi:print_dword->print_word#0] -- register_copy 
  //SEG165 [66] phi (word) print_word::w#4 = (word) print_word::w#0 [phi:print_dword->print_word#1] -- register_copy 
    jsr print_word
    jmp b1
  //SEG166 print_dword::@1
  b1:
  //SEG167 [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0 -- vwuz1=_lo_vduz2 
    lda dw
    sta print_word.w
    lda dw+1
    sta print_word.w+1
  //SEG168 [75] call print_word 
  //SEG169 [66] phi from print_dword::@1 to print_word [phi:print_dword::@1->print_word]
  print_word_from_b1:
  //SEG170 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:print_dword::@1->print_word#0] -- register_copy 
  //SEG171 [66] phi (word) print_word::w#4 = (word) print_word::w#1 [phi:print_dword::@1->print_word#1] -- register_copy 
    jsr print_word
    jmp breturn
  //SEG172 print_dword::@return
  breturn:
  //SEG173 [76] return 
    rts
}
//SEG174 print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    .label sc = 6
  //SEG175 [78] phi from print_cls to print_cls::@1 [phi:print_cls->print_cls::@1]
  b1_from_print_cls:
  //SEG176 [78] phi (byte*) print_cls::sc#2 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:print_cls->print_cls::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta sc
    lda #>$400
    sta sc+1
    jmp b1
  //SEG177 [78] phi from print_cls::@1 to print_cls::@1 [phi:print_cls::@1->print_cls::@1]
  b1_from_b1:
  //SEG178 [78] phi (byte*) print_cls::sc#2 = (byte*) print_cls::sc#1 [phi:print_cls::@1->print_cls::@1#0] -- register_copy 
    jmp b1
  //SEG179 print_cls::@1
  b1:
  //SEG180 [79] *((byte*) print_cls::sc#2) ← (byte) ' ' -- _deref_pbuz1=vbuc1 
    lda #' '
    ldy #0
    sta (sc),y
  //SEG181 [80] (byte*) print_cls::sc#1 ← ++ (byte*) print_cls::sc#2 -- pbuz1=_inc_pbuz1 
    inc sc
    bne !+
    inc sc+1
  !:
  //SEG182 [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda sc+1
    cmp #>$400+$3e8
    bne b1_from_b1
    lda sc
    cmp #<$400+$3e8
    bne b1_from_b1
    jmp breturn
  //SEG183 print_cls::@return
  breturn:
  //SEG184 [82] return 
    rts
}
  print_hextab: .text "0123456789abcdef"

ASSEMBLER OPTIMIZATIONS
Removing instruction jmp b20
Removing instruction jmp bend
Removing instruction jmp b1
Removing instruction jmp b4
Removing instruction jmp b5
Removing instruction jmp b6
Removing instruction jmp b7
Removing instruction jmp b8
Removing instruction jmp b9
Removing instruction jmp b10
Removing instruction jmp b11
Removing instruction jmp b12
Removing instruction jmp b13
Removing instruction jmp b14
Removing instruction jmp b15
Removing instruction jmp b16
Removing instruction jmp b17
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction lda _15+1
Removing instruction lda _23+1
Succesful ASM optimization Pass5UnnecesaryLoadElimination
Replacing label b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Removing instruction b20_from_bbegin:
Removing instruction b20:
Removing instruction main_from_b20:
Removing instruction bend_from_b20:
Removing instruction b4_from_b1:
Removing instruction print_char_from_b4:
Removing instruction b6_from_b5:
Removing instruction print_char_from_b6:
Removing instruction b8_from_b7:
Removing instruction print_char_from_b8:
Removing instruction b10_from_b9:
Removing instruction print_char_from_b10:
Removing instruction b12_from_b11:
Removing instruction print_char_from_b12:
Removing instruction b14_from_b13:
Removing instruction print_char_from_b14:
Removing instruction b16_from_b15:
Removing instruction print_ln_from_b16:
Removing instruction b1_from_print_ln:
Removing instruction b1_from_b1:
Removing instruction b1_from_b1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction bend:
Removing instruction print_cls_from_main:
Removing instruction b1_from_main:
Removing instruction b4:
Removing instruction b5:
Removing instruction print_word_from_b5:
Removing instruction b6:
Removing instruction b7:
Removing instruction print_word_from_b7:
Removing instruction b8:
Removing instruction b9:
Removing instruction print_byte_from_b9:
Removing instruction b10:
Removing instruction b11:
Removing instruction print_byte_from_b11:
Removing instruction b12:
Removing instruction b13:
Removing instruction print_byte_from_b13:
Removing instruction b14:
Removing instruction b15:
Removing instruction print_byte_from_b15:
Removing instruction b16:
Removing instruction b17:
Removing instruction breturn:
Removing instruction b1_from_b18:
Removing instruction breturn:
Removing instruction print_char_from_print_byte:
Removing instruction b1:
Removing instruction print_char_from_b1:
Removing instruction breturn:
Removing instruction breturn:
Removing instruction print_byte_from_print_word:
Removing instruction b1:
Removing instruction print_byte_from_b1:
Removing instruction breturn:
Removing instruction print_word_from_print_dword:
Removing instruction b1:
Removing instruction print_word_from_b1:
Removing instruction breturn:
Removing instruction b1_from_print_cls:
Removing instruction breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Updating BasicUpstart to call main directly
Removing instruction jsr main
Succesful ASM optimization Pass5SkipBegin
Removing instruction jmp b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction bbegin:
Succesful ASM optimization Pass5UnusedLabelElimination

FINAL SYMBOL TABLE
(label) @20
(label) @begin
(label) @end
(void()) main()
(word~) main::$15 $15 zp ZP_WORD:10 22.0
(word~) main::$19 $19 zp ZP_WORD:10 22.0
(word~) main::$2 $2 zp ZP_WORD:10 22.0
(word~) main::$23 $23 zp ZP_WORD:10 22.0
(word~) main::$27 $27 zp ZP_WORD:10 22.0
(word/signed dword/dword~) main::$32 $32 zp ZP_WORD:10 22.0
(word/signed dword/dword~) main::$33 $33 zp ZP_WORD:10 22.0
(word~) main::$5 $5 zp ZP_WORD:10 22.0
(label) main::@1
(label) main::@10
(label) main::@11
(label) main::@12
(label) main::@13
(label) main::@14
(label) main::@15
(label) main::@16
(label) main::@17
(label) main::@18
(label) main::@4
(label) main::@5
(label) main::@6
(label) main::@7
(label) main::@8
(label) main::@9
(label) main::@return
(dword) main::dw
(dword) main::dw#1 dw zp ZP_DWORD:2 11.0
(dword) main::dw#10 dw zp ZP_DWORD:2 1.4102564102564101
(dword) main::dw2
(dword) main::dw2#1 dw2 zp ZP_DWORD:12 7.333333333333333
(dword) main::dw2#10 dw2 zp ZP_DWORD:12 3.142857142857143
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0 reg byte a 4.0
(byte~) print_byte::$2 reg byte a 4.0
(label) print_byte::@1
(label) print_byte::@return
(byte) print_byte::b
(byte) print_byte::b#0 reg byte x 4.0
(byte) print_byte::b#1 reg byte x 4.0
(byte) print_byte::b#2 reg byte x 22.0
(byte) print_byte::b#3 reg byte x 22.0
(byte) print_byte::b#4 reg byte x 22.0
(byte) print_byte::b#5 reg byte x 22.0
(byte) print_byte::b#6 reg byte x 13.0
(void()) print_char((byte) print_char::ch)
(label) print_char::@return
(byte) print_char::ch
(byte) print_char::ch#0 reg byte a 4.0
(byte) print_char::ch#1 reg byte a 4.0
(byte) print_char::ch#8 reg byte a 6.0
(byte*) print_char_cursor
(byte*) print_char_cursor#12 print_char_cursor zp ZP_WORD:8 4.918367346938773
(byte*) print_char_cursor#44 print_char_cursor zp ZP_WORD:8 37.0
(byte*) print_char_cursor#65 print_char_cursor zp ZP_WORD:8 14.0
(byte*) print_char_cursor#67 print_char_cursor zp ZP_WORD:8 16.666666666666664
(byte*) print_char_cursor#69 print_char_cursor zp ZP_WORD:8 1.4444444444444446
(byte*~) print_char_cursor#72 print_char_cursor zp ZP_WORD:8 22.0
(void()) print_cls()
(label) print_cls::@1
(label) print_cls::@return
(byte*) print_cls::sc
(byte*) print_cls::sc#1 sc zp ZP_WORD:6 16.5
(byte*) print_cls::sc#2 sc zp ZP_WORD:6 16.5
(void()) print_dword((dword) print_dword::dw)
(label) print_dword::@1
(label) print_dword::@return
(dword) print_dword::dw
(dword) print_dword::dw#0 dw zp ZP_DWORD:12 5.0
(byte[]) print_hextab
(const byte[]) print_hextab#0 print_hextab = (string) "0123456789abcdef"
(byte*) print_line_cursor
(byte*) print_line_cursor#1 print_line_cursor zp ZP_WORD:6 46.42857142857143
(byte*) print_line_cursor#19 print_line_cursor zp ZP_WORD:6 0.3333333333333333
(byte*) print_line_cursor#9 print_line_cursor zp ZP_WORD:6 204.0
(void()) print_ln()
(label) print_ln::@1
(label) print_ln::@return
(byte*) print_screen
(void()) print_word((word) print_word::w)
(label) print_word::@1
(label) print_word::@return
(word) print_word::w
(word) print_word::w#0 w zp ZP_WORD:10 4.0
(word) print_word::w#1 w zp ZP_WORD:10 4.0
(word) print_word::w#2 w zp ZP_WORD:10 22.0
(word) print_word::w#3 w zp ZP_WORD:10 22.0
(word) print_word::w#4 w zp ZP_WORD:10 9.999999999999998

zp ZP_DWORD:2 [ main::dw#10 main::dw#1 ]
zp ZP_WORD:6 [ print_line_cursor#9 print_line_cursor#19 print_line_cursor#1 print_cls::sc#2 print_cls::sc#1 ]
reg byte x [ print_byte::b#6 print_byte::b#3 print_byte::b#4 print_byte::b#5 print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
reg byte a [ print_char::ch#8 print_char::ch#0 print_char::ch#1 ]
zp ZP_WORD:8 [ print_char_cursor#44 print_char_cursor#67 print_char_cursor#12 print_char_cursor#65 print_char_cursor#69 print_char_cursor#72 ]
zp ZP_WORD:10 [ print_word::w#4 print_word::w#2 print_word::w#3 print_word::w#0 print_word::w#1 main::$2 main::$32 main::$5 main::$33 main::$15 main::$19 main::$23 main::$27 ]
zp ZP_DWORD:12 [ main::dw2#1 main::dw2#10 print_dword::dw#0 ]
reg byte a [ print_byte::$0 ]
reg byte a [ print_byte::$2 ]


FINAL ASSEMBLER
Score: 7434

//SEG0 File Comments
//SEG1 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
//SEG2 Global Constants & labels
  .label print_line_cursor = 6
  .label print_char_cursor = 8
//SEG3 @begin
//SEG4 [1] phi from @begin to @20 [phi:@begin->@20]
//SEG5 @20
//SEG6 [2] call main 
//SEG7 [4] phi from @20 to main [phi:@20->main]
//SEG8 [3] phi from @20 to @end [phi:@20->@end]
//SEG9 @end
//SEG10 main
main: {
    .label _2 = $a
    .label _5 = $a
    .label _15 = $a
    .label _19 = $a
    .label _23 = $a
    .label _27 = $a
    .label _32 = $a
    .label _33 = $a
    .label dw2 = $c
    .label dw = 2
  //SEG11 [5] call print_cls 
  //SEG12 [77] phi from main to print_cls [phi:main->print_cls]
    jsr print_cls
  //SEG13 [6] phi from main to main::@1 [phi:main->main::@1]
  //SEG14 [6] phi (byte*) print_line_cursor#19 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta print_line_cursor
    lda #>$400
    sta print_line_cursor+1
  //SEG15 [6] phi (byte*) print_char_cursor#69 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:main->main::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta print_char_cursor
    lda #>$400
    sta print_char_cursor+1
  //SEG16 [6] phi (dword) main::dw#10 = (dword/signed dword) 305419896 [phi:main->main::@1#2] -- vduz1=vduc1 
    lda #<$12345678
    sta dw
    lda #>$12345678
    sta dw+1
    lda #<$12345678>>$10
    sta dw+2
    lda #>$12345678>>$10
    sta dw+3
  //SEG17 main::@1
  b1:
  //SEG18 [7] (word~) main::$2 ← > (dword) main::dw#10 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta _2
    lda dw+3
    sta _2+1
  //SEG19 [8] (word/signed dword/dword~) main::$32 ← (word~) main::$2 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz1_plus_vwuc1 
    clc
    lda _32
    adc #<$1111
    sta _32
    lda _32+1
    adc #>$1111
    sta _32+1
  //SEG20 [9] (dword) main::dw2#1 ← (dword) main::dw#10 hi= (word/signed dword/dword~) main::$32 -- vduz1=vduz2_sethi_vwuz3 
    lda dw
    sta dw2
    lda dw+1
    sta dw2+1
    lda _32
    sta dw2+2
    lda _32+1
    sta dw2+3
  //SEG21 [10] (word~) main::$5 ← < (dword) main::dw#10 -- vwuz1=_lo_vduz2 
    lda dw
    sta _5
    lda dw+1
    sta _5+1
  //SEG22 [11] (word/signed dword/dword~) main::$33 ← (word~) main::$5 + (word/signed word/dword/signed dword) 4369 -- vwuz1=vwuz1_plus_vwuc1 
    clc
    lda _33
    adc #<$1111
    sta _33
    lda _33+1
    adc #>$1111
    sta _33+1
  //SEG23 [12] (dword) main::dw2#10 ← (dword) main::dw2#1 lo= (word/signed dword/dword~) main::$33 -- vduz1=vduz1_setlo_vwuz2 
    lda _33
    sta dw2
    lda _33+1
    sta dw2+1
  //SEG24 [13] (dword) print_dword::dw#0 ← (dword) main::dw2#10
  //SEG25 [14] call print_dword 
    jsr print_dword
  //SEG26 [15] phi from main::@1 to main::@4 [phi:main::@1->main::@4]
  //SEG27 main::@4
  //SEG28 [16] call print_char 
  //SEG29 [62] phi from main::@4 to print_char [phi:main::@4->print_char]
  //SEG30 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@4->print_char#0] -- register_copy 
  //SEG31 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@4->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG32 main::@5
  //SEG33 [17] (word) print_word::w#2 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta print_word.w
    lda dw2+3
    sta print_word.w+1
  //SEG34 [18] call print_word 
  //SEG35 [66] phi from main::@5 to print_word [phi:main::@5->print_word]
  //SEG36 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@5->print_word#0] -- register_copy 
  //SEG37 [66] phi (word) print_word::w#4 = (word) print_word::w#2 [phi:main::@5->print_word#1] -- register_copy 
    jsr print_word
  //SEG38 [19] phi from main::@5 to main::@6 [phi:main::@5->main::@6]
  //SEG39 main::@6
  //SEG40 [20] call print_char 
  //SEG41 [62] phi from main::@6 to print_char [phi:main::@6->print_char]
  //SEG42 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@6->print_char#0] -- register_copy 
  //SEG43 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@6->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG44 main::@7
  //SEG45 [21] (word) print_word::w#3 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta print_word.w
    lda dw2+1
    sta print_word.w+1
  //SEG46 [22] call print_word 
  //SEG47 [66] phi from main::@7 to print_word [phi:main::@7->print_word]
  //SEG48 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:main::@7->print_word#0] -- register_copy 
  //SEG49 [66] phi (word) print_word::w#4 = (word) print_word::w#3 [phi:main::@7->print_word#1] -- register_copy 
    jsr print_word
  //SEG50 [23] phi from main::@7 to main::@8 [phi:main::@7->main::@8]
  //SEG51 main::@8
  //SEG52 [24] call print_char 
  //SEG53 [62] phi from main::@8 to print_char [phi:main::@8->print_char]
  //SEG54 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@8->print_char#0] -- register_copy 
  //SEG55 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@8->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG56 main::@9
  //SEG57 [25] (word~) main::$15 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta _15
    lda dw2+3
    sta _15+1
  //SEG58 [26] (byte) print_byte::b#2 ← > (word~) main::$15 -- vbuxx=_hi_vwuz1 
    tax
  //SEG59 [27] call print_byte 
  //SEG60 [54] phi from main::@9 to print_byte [phi:main::@9->print_byte]
  //SEG61 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@9->print_byte#0] -- register_copy 
  //SEG62 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#2 [phi:main::@9->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG63 [28] phi from main::@9 to main::@10 [phi:main::@9->main::@10]
  //SEG64 main::@10
  //SEG65 [29] call print_char 
  //SEG66 [62] phi from main::@10 to print_char [phi:main::@10->print_char]
  //SEG67 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@10->print_char#0] -- register_copy 
  //SEG68 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@10->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG69 main::@11
  //SEG70 [30] (word~) main::$19 ← > (dword) main::dw2#10 -- vwuz1=_hi_vduz2 
    lda dw2+2
    sta _19
    lda dw2+3
    sta _19+1
  //SEG71 [31] (byte) print_byte::b#3 ← < (word~) main::$19 -- vbuxx=_lo_vwuz1 
    lda _19
    tax
  //SEG72 [32] call print_byte 
  //SEG73 [54] phi from main::@11 to print_byte [phi:main::@11->print_byte]
  //SEG74 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@11->print_byte#0] -- register_copy 
  //SEG75 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#3 [phi:main::@11->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG76 [33] phi from main::@11 to main::@12 [phi:main::@11->main::@12]
  //SEG77 main::@12
  //SEG78 [34] call print_char 
  //SEG79 [62] phi from main::@12 to print_char [phi:main::@12->print_char]
  //SEG80 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@12->print_char#0] -- register_copy 
  //SEG81 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@12->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG82 main::@13
  //SEG83 [35] (word~) main::$23 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta _23
    lda dw2+1
    sta _23+1
  //SEG84 [36] (byte) print_byte::b#4 ← > (word~) main::$23 -- vbuxx=_hi_vwuz1 
    tax
  //SEG85 [37] call print_byte 
  //SEG86 [54] phi from main::@13 to print_byte [phi:main::@13->print_byte]
  //SEG87 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@13->print_byte#0] -- register_copy 
  //SEG88 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#4 [phi:main::@13->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG89 [38] phi from main::@13 to main::@14 [phi:main::@13->main::@14]
  //SEG90 main::@14
  //SEG91 [39] call print_char 
  //SEG92 [62] phi from main::@14 to print_char [phi:main::@14->print_char]
  //SEG93 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:main::@14->print_char#0] -- register_copy 
  //SEG94 [62] phi (byte) print_char::ch#8 = (byte) ' ' [phi:main::@14->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
  //SEG95 main::@15
  //SEG96 [40] (word~) main::$27 ← < (dword) main::dw2#10 -- vwuz1=_lo_vduz2 
    lda dw2
    sta _27
    lda dw2+1
    sta _27+1
  //SEG97 [41] (byte) print_byte::b#5 ← < (word~) main::$27 -- vbuxx=_lo_vwuz1 
    lda _27
    tax
  //SEG98 [42] call print_byte 
  //SEG99 [54] phi from main::@15 to print_byte [phi:main::@15->print_byte]
  //SEG100 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:main::@15->print_byte#0] -- register_copy 
  //SEG101 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#5 [phi:main::@15->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG102 [43] phi from main::@15 to main::@16 [phi:main::@15->main::@16]
  //SEG103 main::@16
  //SEG104 [44] call print_ln 
  //SEG105 [49] phi from main::@16 to print_ln [phi:main::@16->print_ln]
    jsr print_ln
  //SEG106 main::@17
  //SEG107 [45] (dword) main::dw#1 ← ++ (dword) main::dw#10 -- vduz1=_inc_vduz1 
    inc dw
    bne !+
    inc dw+1
    bne !+
    inc dw+2
    bne !+
    inc dw+3
  !:
  //SEG108 [46] if((dword) main::dw#1!=(dword/signed dword) 305419920) goto main::@18 -- vduz1_neq_vduc1_then_la1 
    lda dw+3
    cmp #>$12345690>>$10
    bne b18
    lda dw+2
    cmp #<$12345690>>$10
    bne b18
    lda dw+1
    cmp #>$12345690
    bne b18
    lda dw
    cmp #<$12345690
    bne b18
  //SEG109 main::@return
  //SEG110 [47] return 
    rts
  //SEG111 main::@18
  b18:
  //SEG112 [48] (byte*~) print_char_cursor#72 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
  //SEG113 [6] phi from main::@18 to main::@1 [phi:main::@18->main::@1]
  //SEG114 [6] phi (byte*) print_line_cursor#19 = (byte*) print_line_cursor#1 [phi:main::@18->main::@1#0] -- register_copy 
  //SEG115 [6] phi (byte*) print_char_cursor#69 = (byte*~) print_char_cursor#72 [phi:main::@18->main::@1#1] -- register_copy 
  //SEG116 [6] phi (dword) main::dw#10 = (dword) main::dw#1 [phi:main::@18->main::@1#2] -- register_copy 
    jmp b1
}
//SEG117 print_ln
// Print a newline
print_ln: {
  //SEG118 [50] phi from print_ln print_ln::@1 to print_ln::@1 [phi:print_ln/print_ln::@1->print_ln::@1]
  //SEG119 [50] phi (byte*) print_line_cursor#9 = (byte*) print_line_cursor#19 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
  //SEG120 print_ln::@1
  b1:
  //SEG121 [51] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#9 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 
    lda print_line_cursor
    clc
    adc #$28
    sta print_line_cursor
    bcc !+
    inc print_line_cursor+1
  !:
  //SEG122 [52] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#12) goto print_ln::@1 -- pbuz1_lt_pbuz2_then_la1 
    lda print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1
    bne !+
    lda print_line_cursor
    cmp print_char_cursor
    bcc b1
  !:
  //SEG123 print_ln::@return
  //SEG124 [53] return 
    rts
}
//SEG125 print_byte
// Print a byte as HEX
// print_byte(byte register(X) b)
print_byte: {
  //SEG126 [55] (byte~) print_byte::$0 ← (byte) print_byte::b#6 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
  //SEG127 [56] (byte) print_char::ch#0 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$0) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
  //SEG128 [57] call print_char 
  //SEG129 [62] phi from print_byte to print_char [phi:print_byte->print_char]
  //SEG130 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#67 [phi:print_byte->print_char#0] -- register_copy 
  //SEG131 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
  //SEG132 print_byte::@1
  //SEG133 [58] (byte~) print_byte::$2 ← (byte) print_byte::b#6 & (byte/signed byte/word/signed word/dword/signed dword) 15 -- vbuaa=vbuxx_band_vbuc1 
    txa
    and #$f
  //SEG134 [59] (byte) print_char::ch#1 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$2) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
  //SEG135 [60] call print_char 
  //SEG136 [62] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
  //SEG137 [62] phi (byte*) print_char_cursor#44 = (byte*) print_char_cursor#12 [phi:print_byte::@1->print_char#0] -- register_copy 
  //SEG138 [62] phi (byte) print_char::ch#8 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
  //SEG139 print_byte::@return
  //SEG140 [61] return 
    rts
}
//SEG141 print_char
// Print a single char
// print_char(byte register(A) ch)
print_char: {
  //SEG142 [63] *((byte*) print_char_cursor#44) ← (byte) print_char::ch#8 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
  //SEG143 [64] (byte*) print_char_cursor#12 ← ++ (byte*) print_char_cursor#44 -- pbuz1=_inc_pbuz1 
    inc print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
  //SEG144 print_char::@return
  //SEG145 [65] return 
    rts
}
//SEG146 print_word
// Print a word as HEX
// print_word(word zeropage($a) w)
print_word: {
    .label w = $a
  //SEG147 [67] (byte) print_byte::b#0 ← > (word) print_word::w#4 -- vbuxx=_hi_vwuz1 
    lda w+1
    tax
  //SEG148 [68] call print_byte 
  //SEG149 [54] phi from print_word to print_byte [phi:print_word->print_byte]
  //SEG150 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#65 [phi:print_word->print_byte#0] -- register_copy 
  //SEG151 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#0 [phi:print_word->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG152 print_word::@1
  //SEG153 [69] (byte) print_byte::b#1 ← < (word) print_word::w#4 -- vbuxx=_lo_vwuz1 
    lda w
    tax
  //SEG154 [70] call print_byte 
  //SEG155 [54] phi from print_word::@1 to print_byte [phi:print_word::@1->print_byte]
  //SEG156 [54] phi (byte*) print_char_cursor#67 = (byte*) print_char_cursor#12 [phi:print_word::@1->print_byte#0] -- register_copy 
  //SEG157 [54] phi (byte) print_byte::b#6 = (byte) print_byte::b#1 [phi:print_word::@1->print_byte#1] -- register_copy 
    jsr print_byte
  //SEG158 print_word::@return
  //SEG159 [71] return 
    rts
}
//SEG160 print_dword
// Print a dword as HEX
// print_dword(dword zeropage($c) dw)
print_dword: {
    .label dw = $c
  //SEG161 [72] (word) print_word::w#0 ← > (dword) print_dword::dw#0 -- vwuz1=_hi_vduz2 
    lda dw+2
    sta print_word.w
    lda dw+3
    sta print_word.w+1
  //SEG162 [73] call print_word 
  //SEG163 [66] phi from print_dword to print_word [phi:print_dword->print_word]
  //SEG164 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#69 [phi:print_dword->print_word#0] -- register_copy 
  //SEG165 [66] phi (word) print_word::w#4 = (word) print_word::w#0 [phi:print_dword->print_word#1] -- register_copy 
    jsr print_word
  //SEG166 print_dword::@1
  //SEG167 [74] (word) print_word::w#1 ← < (dword) print_dword::dw#0 -- vwuz1=_lo_vduz2 
    lda dw
    sta print_word.w
    lda dw+1
    sta print_word.w+1
  //SEG168 [75] call print_word 
  //SEG169 [66] phi from print_dword::@1 to print_word [phi:print_dword::@1->print_word]
  //SEG170 [66] phi (byte*) print_char_cursor#65 = (byte*) print_char_cursor#12 [phi:print_dword::@1->print_word#0] -- register_copy 
  //SEG171 [66] phi (word) print_word::w#4 = (word) print_word::w#1 [phi:print_dword::@1->print_word#1] -- register_copy 
    jsr print_word
  //SEG172 print_dword::@return
  //SEG173 [76] return 
    rts
}
//SEG174 print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    .label sc = 6
  //SEG175 [78] phi from print_cls to print_cls::@1 [phi:print_cls->print_cls::@1]
  //SEG176 [78] phi (byte*) print_cls::sc#2 = ((byte*))(word/signed word/dword/signed dword) 1024 [phi:print_cls->print_cls::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta sc
    lda #>$400
    sta sc+1
  //SEG177 [78] phi from print_cls::@1 to print_cls::@1 [phi:print_cls::@1->print_cls::@1]
  //SEG178 [78] phi (byte*) print_cls::sc#2 = (byte*) print_cls::sc#1 [phi:print_cls::@1->print_cls::@1#0] -- register_copy 
  //SEG179 print_cls::@1
  b1:
  //SEG180 [79] *((byte*) print_cls::sc#2) ← (byte) ' ' -- _deref_pbuz1=vbuc1 
    lda #' '
    ldy #0
    sta (sc),y
  //SEG181 [80] (byte*) print_cls::sc#1 ← ++ (byte*) print_cls::sc#2 -- pbuz1=_inc_pbuz1 
    inc sc
    bne !+
    inc sc+1
  !:
  //SEG182 [81] if((byte*) print_cls::sc#1!=((byte*))(word/signed word/dword/signed dword) 1024+(word/signed word/dword/signed dword) 1000) goto print_cls::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda sc+1
    cmp #>$400+$3e8
    bne b1
    lda sc
    cmp #<$400+$3e8
    bne b1
  //SEG183 print_cls::@return
  //SEG184 [82] return 
    rts
}
  print_hextab: .text "0123456789abcdef"

