Inlined call vicSelectGfxBank::$0 = call toDd00(vicSelectGfxBank::gfx)
Inlined call call __init
Eliminating unused variable with no statement memset::$2

CONTROL FLOW GRAPH SSA

void print_str(char *str)
print_str: scope:[print_str]  from compare::@25
  print_char_cursor#63 = phi( compare::@25/print_char_cursor#18 )
  print_str::str#5 = phi( compare::@25/print_str::str#1 )
  to:print_str::@1
print_str::@1: scope:[print_str]  from print_str print_str::@3
  print_char_cursor#53 = phi( print_str/print_char_cursor#63, print_str::@3/print_char_cursor#0 )
  print_str::str#2 = phi( print_str/print_str::str#5, print_str::@3/print_str::str#0 )
  print_str::$1 = 0 != *print_str::str#2
  if(print_str::$1) goto print_str::@2
  to:print_str::@return
print_str::@2: scope:[print_str]  from print_str::@1
  print_char_cursor#52 = phi( print_str::@1/print_char_cursor#53 )
  print_str::str#3 = phi( print_str::@1/print_str::str#2 )
  print_char::ch#0 = *print_str::str#3
  call print_char
  to:print_str::@3
print_str::@3: scope:[print_str]  from print_str::@2
  print_str::str#4 = phi( print_str::@2/print_str::str#3 )
  print_char_cursor#27 = phi( print_str::@2/print_char_cursor#11 )
  print_char_cursor#0 = print_char_cursor#27
  print_str::str#0 = ++ print_str::str#4
  to:print_str::@1
print_str::@return: scope:[print_str]  from print_str::@1
  print_char_cursor#28 = phi( print_str::@1/print_char_cursor#53 )
  print_char_cursor#1 = print_char_cursor#28
  return 
  to:@return

void print_ln()
print_ln: scope:[print_ln]  from main::@5
  print_char_cursor#54 = phi( main::@5/print_char_cursor#59 )
  print_line_cursor#19 = phi( main::@5/print_line_cursor#21 )
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  print_char_cursor#29 = phi( print_ln/print_char_cursor#54, print_ln::@1/print_char_cursor#29 )
  print_line_cursor#10 = phi( print_ln/print_line_cursor#19, print_ln::@1/print_line_cursor#0 )
  print_ln::$0 = print_line_cursor#10 + $28
  print_line_cursor#0 = print_ln::$0
  print_ln::$1 = print_line_cursor#0 < print_char_cursor#29
  if(print_ln::$1) goto print_ln::@1
  to:print_ln::@2
print_ln::@2: scope:[print_ln]  from print_ln::@1
  print_line_cursor#11 = phi( print_ln::@1/print_line_cursor#0 )
  print_char_cursor#2 = print_line_cursor#11
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@2
  print_char_cursor#30 = phi( print_ln::@2/print_char_cursor#2 )
  print_line_cursor#12 = phi( print_ln::@2/print_line_cursor#11 )
  print_line_cursor#1 = print_line_cursor#12
  print_char_cursor#3 = print_char_cursor#30
  return 
  to:@return

void print_uint(unsigned int w)
print_uint: scope:[print_uint]  from compare::@26 compare::@6
  print_char_cursor#55 = phi( compare::@26/print_char_cursor#19, compare::@6/print_char_cursor#61 )
  print_uint::w#2 = phi( compare::@26/print_uint::w#1, compare::@6/print_uint::w#0 )
  print_uint::$0 = byte1  print_uint::w#2
  print_uchar::b#0 = print_uint::$0
  call print_uchar
  to:print_uint::@1
print_uint::@1: scope:[print_uint]  from print_uint
  print_uint::w#3 = phi( print_uint/print_uint::w#2 )
  print_char_cursor#31 = phi( print_uint/print_char_cursor#9 )
  print_char_cursor#4 = print_char_cursor#31
  print_uint::$2 = byte0  print_uint::w#3
  print_uchar::b#1 = print_uint::$2
  call print_uchar
  to:print_uint::@2
print_uint::@2: scope:[print_uint]  from print_uint::@1
  print_char_cursor#32 = phi( print_uint::@1/print_char_cursor#9 )
  print_char_cursor#5 = print_char_cursor#32
  to:print_uint::@return
print_uint::@return: scope:[print_uint]  from print_uint::@2
  print_char_cursor#33 = phi( print_uint::@2/print_char_cursor#5 )
  print_char_cursor#6 = print_char_cursor#33
  return 
  to:@return

void print_uchar(char b)
print_uchar: scope:[print_uchar]  from print_uint print_uint::@1
  print_char_cursor#56 = phi( print_uint/print_char_cursor#55, print_uint::@1/print_char_cursor#4 )
  print_uchar::b#2 = phi( print_uint/print_uchar::b#0, print_uint::@1/print_uchar::b#1 )
  print_uchar::$0 = print_uchar::b#2 >> 4
  print_char::ch#1 = print_hextab[print_uchar::$0]
  call print_char
  to:print_uchar::@1
print_uchar::@1: scope:[print_uchar]  from print_uchar
  print_uchar::b#3 = phi( print_uchar/print_uchar::b#2 )
  print_char_cursor#34 = phi( print_uchar/print_char_cursor#11 )
  print_char_cursor#7 = print_char_cursor#34
  print_uchar::$2 = print_uchar::b#3 & $f
  print_char::ch#2 = print_hextab[print_uchar::$2]
  call print_char
  to:print_uchar::@2
print_uchar::@2: scope:[print_uchar]  from print_uchar::@1
  print_char_cursor#35 = phi( print_uchar::@1/print_char_cursor#11 )
  print_char_cursor#8 = print_char_cursor#35
  to:print_uchar::@return
print_uchar::@return: scope:[print_uchar]  from print_uchar::@2
  print_char_cursor#36 = phi( print_uchar::@2/print_char_cursor#8 )
  print_char_cursor#9 = print_char_cursor#36
  return 
  to:@return

void print_char(char ch)
print_char: scope:[print_char]  from compare::@27 compare::@28 print_str::@2 print_uchar print_uchar::@1
  print_char_cursor#37 = phi( compare::@27/print_char_cursor#20, compare::@28/print_char_cursor#21, print_str::@2/print_char_cursor#52, print_uchar/print_char_cursor#56, print_uchar::@1/print_char_cursor#7 )
  print_char::ch#5 = phi( compare::@27/print_char::ch#3, compare::@28/print_char::ch#4, print_str::@2/print_char::ch#0, print_uchar/print_char::ch#1, print_uchar::@1/print_char::ch#2 )
  *print_char_cursor#37 = print_char::ch#5
  print_char_cursor#10 = ++ print_char_cursor#37
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  print_char_cursor#38 = phi( print_char/print_char_cursor#10 )
  print_char_cursor#11 = print_char_cursor#38
  return 
  to:@return

void print_cls()
print_cls: scope:[print_cls]  from main
  print_screen#2 = phi( main/print_screen#5 )
  memset::str#0 = (void *)print_screen#2
  memset::c#0 = ' '
  memset::num#0 = $3e8
  call memset
  memset::return#0 = memset::return#2
  to:print_cls::@1
print_cls::@1: scope:[print_cls]  from print_cls
  print_screen#3 = phi( print_cls/print_screen#2 )
  print_line_cursor#2 = print_screen#3
  print_char_cursor#12 = print_line_cursor#2
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls::@1
  print_char_cursor#39 = phi( print_cls::@1/print_char_cursor#12 )
  print_line_cursor#13 = phi( print_cls::@1/print_line_cursor#2 )
  print_line_cursor#3 = print_line_cursor#13
  print_char_cursor#13 = print_char_cursor#39
  return 
  to:@return

void * memset(void *str , char c , unsigned int num)
memset: scope:[memset]  from print_cls
  memset::c#4 = phi( print_cls/memset::c#0 )
  memset::str#3 = phi( print_cls/memset::str#0 )
  memset::num#1 = phi( print_cls/memset::num#0 )
  memset::$0 = memset::num#1 > 0
  memset::$1 = ! memset::$0
  if(memset::$1) goto memset::@1
  to:memset::@2
memset::@1: scope:[memset]  from memset memset::@3
  memset::str#1 = phi( memset/memset::str#3, memset::@3/memset::str#4 )
  memset::return#1 = memset::str#1
  to:memset::@return
memset::@2: scope:[memset]  from memset
  memset::c#3 = phi( memset/memset::c#4 )
  memset::num#2 = phi( memset/memset::num#1 )
  memset::str#2 = phi( memset/memset::str#3 )
  memset::$4 = (char *)memset::str#2
  memset::end#0 = memset::$4 + memset::num#2
  memset::dst#0 = ((char *)) memset::str#2
  to:memset::@3
memset::@3: scope:[memset]  from memset::@2 memset::@4
  memset::c#2 = phi( memset::@2/memset::c#3, memset::@4/memset::c#1 )
  memset::str#4 = phi( memset::@2/memset::str#2, memset::@4/memset::str#5 )
  memset::end#1 = phi( memset::@2/memset::end#0, memset::@4/memset::end#2 )
  memset::dst#2 = phi( memset::@2/memset::dst#0, memset::@4/memset::dst#1 )
  memset::$3 = memset::dst#2 != memset::end#1
  if(memset::$3) goto memset::@4
  to:memset::@1
memset::@4: scope:[memset]  from memset::@3
  memset::str#5 = phi( memset::@3/memset::str#4 )
  memset::end#2 = phi( memset::@3/memset::end#1 )
  memset::dst#3 = phi( memset::@3/memset::dst#2 )
  memset::c#1 = phi( memset::@3/memset::c#2 )
  *memset::dst#3 = memset::c#1
  memset::dst#1 = ++ memset::dst#3
  to:memset::@3
memset::@return: scope:[memset]  from memset::@1
  memset::return#3 = phi( memset::@1/memset::return#1 )
  memset::return#2 = memset::return#3
  return 
  to:@return

void main()
main: scope:[main]  from __start::@1
  print_char_cursor#57 = phi( __start::@1/print_char_cursor#62 )
  print_line_cursor#20 = phi( __start::@1/print_line_cursor#23 )
  print_screen#5 = phi( __start::@1/print_screen#7 )
  call print_cls
  to:main::@9
main::@9: scope:[main]  from main
  print_char_cursor#40 = phi( main/print_char_cursor#13 )
  print_line_cursor#14 = phi( main/print_line_cursor#3 )
  print_line_cursor#4 = print_line_cursor#14
  print_char_cursor#14 = print_char_cursor#40
  main::s#0 = 0
  main::i#0 = 0
  to:main::@1
main::@1: scope:[main]  from main::@7 main::@9
  print_line_cursor#30 = phi( main::@7/print_line_cursor#25, main::@9/print_line_cursor#4 )
  main::s#7 = phi( main::@7/main::s#10, main::@9/main::s#0 )
  print_char_cursor#74 = phi( main::@7/print_char_cursor#66, main::@9/print_char_cursor#14 )
  main::i#2 = phi( main::@7/main::i#1, main::@9/main::i#0 )
  main::$8 = main::i#2 * SIZEOF_UNSIGNED_INT
  main::w1#0 = words[main::$8]
  main::j#0 = 0
  to:main::@2
main::@2: scope:[main]  from main::@1 main::@6
  main::i#10 = phi( main::@1/main::i#2, main::@6/main::i#4 )
  print_line_cursor#28 = phi( main::@1/print_line_cursor#30, main::@6/print_line_cursor#27 )
  main::s#5 = phi( main::@1/main::s#7, main::@6/main::s#8 )
  print_char_cursor#64 = phi( main::@1/print_char_cursor#74, main::@6/print_char_cursor#75 )
  main::w1#2 = phi( main::@1/main::w1#0, main::@6/main::w1#4 )
  main::j#2 = phi( main::@1/main::j#0, main::@6/main::j#1 )
  main::$9 = main::j#2 * SIZEOF_UNSIGNED_INT
  main::w2#0 = words[main::$9]
  main::op#0 = 0
  to:main::@3
main::@3: scope:[main]  from main::@2 main::@4
  main::i#8 = phi( main::@2/main::i#10, main::@4/main::i#5 )
  print_line_cursor#26 = phi( main::@2/print_line_cursor#28, main::@4/print_line_cursor#29 )
  main::j#7 = phi( main::@2/main::j#2, main::@4/main::j#4 )
  main::s#4 = phi( main::@2/main::s#5, main::@4/main::s#6 )
  print_char_cursor#58 = phi( main::@2/print_char_cursor#64, main::@4/print_char_cursor#65 )
  main::op#2 = phi( main::@2/main::op#0, main::@4/main::op#1 )
  main::w2#1 = phi( main::@2/main::w2#0, main::@4/main::w2#2 )
  main::w1#1 = phi( main::@2/main::w1#2, main::@4/main::w1#3 )
  compare::w1#0 = main::w1#1
  compare::w2#0 = main::w2#1
  compare::op#0 = main::op#2
  call compare
  to:main::@10
main::@10: scope:[main]  from main::@3
  main::i#6 = phi( main::@3/main::i#8 )
  print_line_cursor#24 = phi( main::@3/print_line_cursor#26 )
  main::j#5 = phi( main::@3/main::j#7 )
  main::w2#3 = phi( main::@3/main::w2#1 )
  main::w1#5 = phi( main::@3/main::w1#1 )
  main::op#4 = phi( main::@3/main::op#2 )
  main::s#3 = phi( main::@3/main::s#4 )
  print_char_cursor#41 = phi( main::@3/print_char_cursor#23 )
  print_char_cursor#15 = print_char_cursor#41
  main::s#1 = ++ main::s#3
  main::$2 = main::s#1 == 3
  main::$3 = ! main::$2
  if(main::$3) goto main::@4
  to:main::@5
main::@4: scope:[main]  from main::@10 main::@11
  print_line_cursor#29 = phi( main::@10/print_line_cursor#24, main::@11/print_line_cursor#5 )
  main::i#5 = phi( main::@10/main::i#6, main::@11/main::i#7 )
  main::s#6 = phi( main::@10/main::s#1, main::@11/main::s#9 )
  print_char_cursor#65 = phi( main::@10/print_char_cursor#15, main::@11/print_char_cursor#16 )
  main::j#4 = phi( main::@10/main::j#5, main::@11/main::j#6 )
  main::w2#2 = phi( main::@10/main::w2#3, main::@11/main::w2#4 )
  main::w1#3 = phi( main::@10/main::w1#5, main::@11/main::w1#6 )
  main::op#3 = phi( main::@10/main::op#4, main::@11/main::op#5 )
  main::op#1 = main::op#3 + rangenext(0,5)
  main::$5 = main::op#1 != rangelast(0,5)
  if(main::$5) goto main::@3
  to:main::@6
main::@5: scope:[main]  from main::@10
  main::i#9 = phi( main::@10/main::i#6 )
  main::j#8 = phi( main::@10/main::j#5 )
  main::w2#5 = phi( main::@10/main::w2#3 )
  main::w1#7 = phi( main::@10/main::w1#5 )
  main::op#6 = phi( main::@10/main::op#4 )
  print_char_cursor#59 = phi( main::@10/print_char_cursor#15 )
  print_line_cursor#21 = phi( main::@10/print_line_cursor#24 )
  main::s#2 = 0
  call print_ln
  to:main::@11
main::@11: scope:[main]  from main::@5
  main::i#7 = phi( main::@5/main::i#9 )
  main::s#9 = phi( main::@5/main::s#2 )
  main::j#6 = phi( main::@5/main::j#8 )
  main::w2#4 = phi( main::@5/main::w2#5 )
  main::w1#6 = phi( main::@5/main::w1#7 )
  main::op#5 = phi( main::@5/main::op#6 )
  print_char_cursor#42 = phi( main::@5/print_char_cursor#3 )
  print_line_cursor#15 = phi( main::@5/print_line_cursor#1 )
  print_line_cursor#5 = print_line_cursor#15
  print_char_cursor#16 = print_char_cursor#42
  to:main::@4
main::@6: scope:[main]  from main::@4
  print_line_cursor#27 = phi( main::@4/print_line_cursor#29 )
  main::s#8 = phi( main::@4/main::s#6 )
  print_char_cursor#75 = phi( main::@4/print_char_cursor#65 )
  main::w1#4 = phi( main::@4/main::w1#3 )
  main::i#4 = phi( main::@4/main::i#5 )
  main::j#3 = phi( main::@4/main::j#4 )
  main::j#1 = main::j#3 + rangenext(0,2)
  main::$6 = main::j#1 != rangelast(0,2)
  if(main::$6) goto main::@2
  to:main::@7
main::@7: scope:[main]  from main::@6
  main::s#10 = phi( main::@6/main::s#8 )
  print_char_cursor#66 = phi( main::@6/print_char_cursor#75 )
  print_line_cursor#25 = phi( main::@6/print_line_cursor#27 )
  main::i#3 = phi( main::@6/main::i#4 )
  main::i#1 = main::i#3 + rangenext(0,2)
  main::$7 = main::i#1 != rangelast(0,2)
  if(main::$7) goto main::@1
  to:main::@8
main::@8: scope:[main]  from main::@7 main::@8
  print_char_cursor#60 = phi( main::@7/print_char_cursor#66, main::@8/print_char_cursor#60 )
  print_line_cursor#22 = phi( main::@7/print_line_cursor#25, main::@8/print_line_cursor#22 )
  if(true) goto main::@8
  to:main::@return
main::@return: scope:[main]  from main::@8
  print_char_cursor#43 = phi( main::@8/print_char_cursor#60 )
  print_line_cursor#16 = phi( main::@8/print_line_cursor#22 )
  print_line_cursor#6 = print_line_cursor#16
  print_char_cursor#17 = print_char_cursor#43
  return 
  to:@return

void compare(unsigned int w1 , unsigned int w2 , char op)
compare: scope:[compare]  from main::@3
  print_char_cursor#89 = phi( main::@3/print_char_cursor#58 )
  compare::w2#8 = phi( main::@3/compare::w2#0 )
  compare::w1#8 = phi( main::@3/compare::w1#0 )
  compare::op#1 = phi( main::@3/compare::op#0 )
  compare::r#0 = FF
  compare::ops#0 = (char *) 0
  compare::$0 = compare::op#1 == 0
  if(compare::$0) goto compare::@1
  to:compare::@7
compare::@1: scope:[compare]  from compare
  compare::r#24 = phi( compare/compare::r#0 )
  print_char_cursor#87 = phi( compare/print_char_cursor#89 )
  compare::w2#1 = phi( compare/compare::w2#8 )
  compare::w1#1 = phi( compare/compare::w1#8 )
  compare::$22 = compare::w1#1 < compare::w2#1
  compare::$23 = ! compare::$22
  if(compare::$23) goto compare::@24
  to:compare::@18
compare::@7: scope:[compare]  from compare
  compare::ops#13 = phi( compare/compare::ops#0 )
  compare::r#25 = phi( compare/compare::r#0 )
  print_char_cursor#90 = phi( compare/print_char_cursor#89 )
  compare::w2#9 = phi( compare/compare::w2#8 )
  compare::w1#9 = phi( compare/compare::w1#8 )
  compare::op#2 = phi( compare/compare::op#1 )
  compare::$1 = compare::op#2 == 1
  if(compare::$1) goto compare::@2
  to:compare::@8
compare::@2: scope:[compare]  from compare::@7
  compare::r#23 = phi( compare::@7/compare::r#25 )
  print_char_cursor#86 = phi( compare::@7/print_char_cursor#90 )
  compare::w2#2 = phi( compare::@7/compare::w2#9 )
  compare::w1#2 = phi( compare::@7/compare::w1#9 )
  compare::$20 = compare::w1#2 <= compare::w2#2
  compare::$21 = ! compare::$20
  if(compare::$21) goto compare::@23
  to:compare::@17
compare::@8: scope:[compare]  from compare::@7
  compare::r#26 = phi( compare::@7/compare::r#25 )
  compare::ops#12 = phi( compare::@7/compare::ops#13 )
  print_char_cursor#91 = phi( compare::@7/print_char_cursor#90 )
  compare::w2#10 = phi( compare::@7/compare::w2#9 )
  compare::w1#10 = phi( compare::@7/compare::w1#9 )
  compare::op#3 = phi( compare::@7/compare::op#2 )
  compare::$2 = compare::op#3 == 2
  if(compare::$2) goto compare::@3
  to:compare::@9
compare::@3: scope:[compare]  from compare::@8
  compare::r#22 = phi( compare::@8/compare::r#26 )
  print_char_cursor#84 = phi( compare::@8/print_char_cursor#91 )
  compare::w2#3 = phi( compare::@8/compare::w2#10 )
  compare::w1#3 = phi( compare::@8/compare::w1#10 )
  compare::$18 = compare::w1#3 > compare::w2#3
  compare::$19 = ! compare::$18
  if(compare::$19) goto compare::@22
  to:compare::@16
compare::@9: scope:[compare]  from compare::@8
  compare::r#27 = phi( compare::@8/compare::r#26 )
  compare::ops#11 = phi( compare::@8/compare::ops#12 )
  print_char_cursor#92 = phi( compare::@8/print_char_cursor#91 )
  compare::w2#11 = phi( compare::@8/compare::w2#10 )
  compare::w1#11 = phi( compare::@8/compare::w1#10 )
  compare::op#4 = phi( compare::@8/compare::op#3 )
  compare::$3 = compare::op#4 == 3
  if(compare::$3) goto compare::@4
  to:compare::@10
compare::@4: scope:[compare]  from compare::@9
  compare::r#21 = phi( compare::@9/compare::r#27 )
  print_char_cursor#82 = phi( compare::@9/print_char_cursor#92 )
  compare::w2#4 = phi( compare::@9/compare::w2#11 )
  compare::w1#4 = phi( compare::@9/compare::w1#11 )
  compare::$16 = compare::w1#4 >= compare::w2#4
  compare::$17 = ! compare::$16
  if(compare::$17) goto compare::@21
  to:compare::@15
compare::@10: scope:[compare]  from compare::@9
  compare::r#18 = phi( compare::@9/compare::r#27 )
  compare::ops#10 = phi( compare::@9/compare::ops#11 )
  print_char_cursor#76 = phi( compare::@9/print_char_cursor#92 )
  compare::w2#12 = phi( compare::@9/compare::w2#11 )
  compare::w1#12 = phi( compare::@9/compare::w1#11 )
  compare::op#5 = phi( compare::@9/compare::op#4 )
  compare::$4 = compare::op#5 == 4
  if(compare::$4) goto compare::@5
  to:compare::@11
compare::@5: scope:[compare]  from compare::@10
  compare::r#20 = phi( compare::@10/compare::r#18 )
  print_char_cursor#80 = phi( compare::@10/print_char_cursor#76 )
  compare::w2#5 = phi( compare::@10/compare::w2#12 )
  compare::w1#5 = phi( compare::@10/compare::w1#12 )
  compare::$14 = compare::w1#5 == compare::w2#5
  compare::$15 = ! compare::$14
  if(compare::$15) goto compare::@20
  to:compare::@14
compare::@11: scope:[compare]  from compare::@10
  compare::r#11 = phi( compare::@10/compare::r#18 )
  compare::ops#9 = phi( compare::@10/compare::ops#10 )
  print_char_cursor#67 = phi( compare::@10/print_char_cursor#76 )
  compare::w2#13 = phi( compare::@10/compare::w2#12 )
  compare::w1#13 = phi( compare::@10/compare::w1#12 )
  compare::op#6 = phi( compare::@10/compare::op#5 )
  compare::$5 = compare::op#6 == 5
  compare::$6 = ! compare::$5
  if(compare::$6) goto compare::@6
  to:compare::@12
compare::@12: scope:[compare]  from compare::@11
  compare::r#19 = phi( compare::@11/compare::r#11 )
  print_char_cursor#77 = phi( compare::@11/print_char_cursor#67 )
  compare::w2#6 = phi( compare::@11/compare::w2#13 )
  compare::w1#6 = phi( compare::@11/compare::w1#13 )
  compare::$12 = compare::w1#6 != compare::w2#6
  compare::$13 = ! compare::$12
  if(compare::$13) goto compare::@19
  to:compare::@13
compare::@19: scope:[compare]  from compare::@12 compare::@13
  compare::r#12 = phi( compare::@12/compare::r#19, compare::@13/compare::r#1 )
  compare::w2#16 = phi( compare::@12/compare::w2#6, compare::@13/compare::w2#22 )
  print_char_cursor#68 = phi( compare::@12/print_char_cursor#77, compare::@13/print_char_cursor#78 )
  compare::w1#14 = phi( compare::@12/compare::w1#6, compare::@13/compare::w1#20 )
  compare::ops#1 = compare::$24
  to:compare::@6
compare::@13: scope:[compare]  from compare::@12
  compare::w2#22 = phi( compare::@12/compare::w2#6 )
  print_char_cursor#78 = phi( compare::@12/print_char_cursor#77 )
  compare::w1#20 = phi( compare::@12/compare::w1#6 )
  compare::r#1 = TT
  to:compare::@19
compare::@20: scope:[compare]  from compare::@14 compare::@5
  compare::r#13 = phi( compare::@14/compare::r#2, compare::@5/compare::r#20 )
  compare::w2#17 = phi( compare::@14/compare::w2#23, compare::@5/compare::w2#5 )
  print_char_cursor#69 = phi( compare::@14/print_char_cursor#79, compare::@5/print_char_cursor#80 )
  compare::w1#15 = phi( compare::@14/compare::w1#21, compare::@5/compare::w1#5 )
  compare::ops#2 = compare::$25
  to:compare::@6
compare::@14: scope:[compare]  from compare::@5
  compare::w2#23 = phi( compare::@5/compare::w2#5 )
  print_char_cursor#79 = phi( compare::@5/print_char_cursor#80 )
  compare::w1#21 = phi( compare::@5/compare::w1#5 )
  compare::r#2 = TT
  to:compare::@20
compare::@21: scope:[compare]  from compare::@15 compare::@4
  compare::r#14 = phi( compare::@15/compare::r#3, compare::@4/compare::r#21 )
  compare::w2#18 = phi( compare::@15/compare::w2#24, compare::@4/compare::w2#4 )
  print_char_cursor#70 = phi( compare::@15/print_char_cursor#81, compare::@4/print_char_cursor#82 )
  compare::w1#16 = phi( compare::@15/compare::w1#22, compare::@4/compare::w1#4 )
  compare::ops#3 = compare::$26
  to:compare::@6
compare::@15: scope:[compare]  from compare::@4
  compare::w2#24 = phi( compare::@4/compare::w2#4 )
  print_char_cursor#81 = phi( compare::@4/print_char_cursor#82 )
  compare::w1#22 = phi( compare::@4/compare::w1#4 )
  compare::r#3 = TT
  to:compare::@21
compare::@22: scope:[compare]  from compare::@16 compare::@3
  compare::r#15 = phi( compare::@16/compare::r#4, compare::@3/compare::r#22 )
  compare::w2#19 = phi( compare::@16/compare::w2#25, compare::@3/compare::w2#3 )
  print_char_cursor#71 = phi( compare::@16/print_char_cursor#83, compare::@3/print_char_cursor#84 )
  compare::w1#17 = phi( compare::@16/compare::w1#23, compare::@3/compare::w1#3 )
  compare::ops#4 = compare::$27
  to:compare::@6
compare::@16: scope:[compare]  from compare::@3
  compare::w2#25 = phi( compare::@3/compare::w2#3 )
  print_char_cursor#83 = phi( compare::@3/print_char_cursor#84 )
  compare::w1#23 = phi( compare::@3/compare::w1#3 )
  compare::r#4 = TT
  to:compare::@22
compare::@23: scope:[compare]  from compare::@17 compare::@2
  compare::r#16 = phi( compare::@17/compare::r#5, compare::@2/compare::r#23 )
  compare::w2#20 = phi( compare::@17/compare::w2#26, compare::@2/compare::w2#2 )
  print_char_cursor#72 = phi( compare::@17/print_char_cursor#85, compare::@2/print_char_cursor#86 )
  compare::w1#18 = phi( compare::@17/compare::w1#24, compare::@2/compare::w1#2 )
  compare::ops#5 = compare::$28
  to:compare::@6
compare::@17: scope:[compare]  from compare::@2
  compare::w2#26 = phi( compare::@2/compare::w2#2 )
  print_char_cursor#85 = phi( compare::@2/print_char_cursor#86 )
  compare::w1#24 = phi( compare::@2/compare::w1#2 )
  compare::r#5 = TT
  to:compare::@23
compare::@6: scope:[compare]  from compare::@11 compare::@19 compare::@20 compare::@21 compare::@22 compare::@23 compare::@24
  compare::r#10 = phi( compare::@11/compare::r#11, compare::@19/compare::r#12, compare::@20/compare::r#13, compare::@21/compare::r#14, compare::@22/compare::r#15, compare::@23/compare::r#16, compare::@24/compare::r#17 )
  compare::w2#15 = phi( compare::@11/compare::w2#13, compare::@19/compare::w2#16, compare::@20/compare::w2#17, compare::@21/compare::w2#18, compare::@22/compare::w2#19, compare::@23/compare::w2#20, compare::@24/compare::w2#21 )
  compare::ops#8 = phi( compare::@11/compare::ops#9, compare::@19/compare::ops#1, compare::@20/compare::ops#2, compare::@21/compare::ops#3, compare::@22/compare::ops#4, compare::@23/compare::ops#5, compare::@24/compare::ops#6 )
  print_char_cursor#61 = phi( compare::@11/print_char_cursor#67, compare::@19/print_char_cursor#68, compare::@20/print_char_cursor#69, compare::@21/print_char_cursor#70, compare::@22/print_char_cursor#71, compare::@23/print_char_cursor#72, compare::@24/print_char_cursor#73 )
  compare::w1#7 = phi( compare::@11/compare::w1#13, compare::@19/compare::w1#14, compare::@20/compare::w1#15, compare::@21/compare::w1#16, compare::@22/compare::w1#17, compare::@23/compare::w1#18, compare::@24/compare::w1#19 )
  print_uint::w#0 = compare::w1#7
  call print_uint
  to:compare::@25
compare::@25: scope:[compare]  from compare::@6
  compare::r#9 = phi( compare::@6/compare::r#10 )
  compare::w2#14 = phi( compare::@6/compare::w2#15 )
  compare::ops#7 = phi( compare::@6/compare::ops#8 )
  print_char_cursor#44 = phi( compare::@6/print_char_cursor#6 )
  print_char_cursor#18 = print_char_cursor#44
  print_str::str#1 = compare::ops#7
  call print_str
  to:compare::@26
compare::@26: scope:[compare]  from compare::@25
  compare::r#8 = phi( compare::@25/compare::r#9 )
  compare::w2#7 = phi( compare::@25/compare::w2#14 )
  print_char_cursor#45 = phi( compare::@25/print_char_cursor#1 )
  print_char_cursor#19 = print_char_cursor#45
  print_uint::w#1 = compare::w2#7
  call print_uint
  to:compare::@27
compare::@27: scope:[compare]  from compare::@26
  compare::r#7 = phi( compare::@26/compare::r#8 )
  print_char_cursor#46 = phi( compare::@26/print_char_cursor#6 )
  print_char_cursor#20 = print_char_cursor#46
  print_char::ch#3 = compare::r#7
  call print_char
  to:compare::@28
compare::@28: scope:[compare]  from compare::@27
  print_char_cursor#47 = phi( compare::@27/print_char_cursor#11 )
  print_char_cursor#21 = print_char_cursor#47
  print_char::ch#4 = ' '
  call print_char
  to:compare::@29
compare::@29: scope:[compare]  from compare::@28
  print_char_cursor#48 = phi( compare::@28/print_char_cursor#11 )
  print_char_cursor#22 = print_char_cursor#48
  to:compare::@return
compare::@24: scope:[compare]  from compare::@1 compare::@18
  compare::r#17 = phi( compare::@1/compare::r#24, compare::@18/compare::r#6 )
  compare::w2#21 = phi( compare::@1/compare::w2#1, compare::@18/compare::w2#27 )
  print_char_cursor#73 = phi( compare::@1/print_char_cursor#87, compare::@18/print_char_cursor#88 )
  compare::w1#19 = phi( compare::@1/compare::w1#1, compare::@18/compare::w1#25 )
  compare::ops#6 = compare::$29
  to:compare::@6
compare::@18: scope:[compare]  from compare::@1
  compare::w2#27 = phi( compare::@1/compare::w2#1 )
  print_char_cursor#88 = phi( compare::@1/print_char_cursor#87 )
  compare::w1#25 = phi( compare::@1/compare::w1#1 )
  compare::r#6 = TT
  to:compare::@24
compare::@return: scope:[compare]  from compare::@29
  print_char_cursor#49 = phi( compare::@29/print_char_cursor#22 )
  print_char_cursor#23 = print_char_cursor#49
  return 
  to:@return

void __start()
__start: scope:[__start]  from
  to:__start::__init1
__start::__init1: scope:[__start]  from __start
  print_screen#0 = (char *)$400
  print_line_cursor#7 = print_screen#0
  print_char_cursor#24 = print_line_cursor#7
  to:__start::@1
__start::@1: scope:[__start]  from __start::__init1
  print_screen#7 = phi( __start::__init1/print_screen#0 )
  print_char_cursor#62 = phi( __start::__init1/print_char_cursor#24 )
  print_line_cursor#23 = phi( __start::__init1/print_line_cursor#7 )
  call main
  to:__start::@2
__start::@2: scope:[__start]  from __start::@1
  print_screen#6 = phi( __start::@1/print_screen#7 )
  print_char_cursor#50 = phi( __start::@1/print_char_cursor#17 )
  print_line_cursor#17 = phi( __start::@1/print_line_cursor#6 )
  print_line_cursor#8 = print_line_cursor#17
  print_char_cursor#25 = print_char_cursor#50
  to:__start::@return
__start::@return: scope:[__start]  from __start::@2
  print_char_cursor#51 = phi( __start::@2/print_char_cursor#25 )
  print_line_cursor#18 = phi( __start::@2/print_line_cursor#8 )
  print_screen#4 = phi( __start::@2/print_screen#6 )
  print_screen#1 = print_screen#4
  print_line_cursor#9 = print_line_cursor#18
  print_char_cursor#26 = print_char_cursor#51
  return 
  to:@return

SYMBOL TABLE SSA
__constant const char FF = $57
__constant char RADIX::BINARY = 2
__constant char RADIX::DECIMAL = $a
__constant char RADIX::HEXADECIMAL = $10
__constant char RADIX::OCTAL = 8
__constant char SIZEOF_UNSIGNED_INT = 2
__constant const char TT = $51
void __start()
void compare(unsigned int w1 , unsigned int w2 , char op)
bool compare::$0
bool compare::$1
bool compare::$12
bool compare::$13
bool compare::$14
bool compare::$15
bool compare::$16
bool compare::$17
bool compare::$18
bool compare::$19
bool compare::$2
bool compare::$20
bool compare::$21
bool compare::$22
bool compare::$23
__constant char compare::$24[3] = "!="
__constant char compare::$25[3] = "=="
__constant char compare::$26[3] = ">="
__constant char compare::$27[3] = "> "
__constant char compare::$28[3] = "<="
__constant char compare::$29[3] = "< "
bool compare::$3
bool compare::$4
bool compare::$5
bool compare::$6
char compare::op
char compare::op#0
char compare::op#1
char compare::op#2
char compare::op#3
char compare::op#4
char compare::op#5
char compare::op#6
char *compare::ops
char *compare::ops#0
char *compare::ops#1
char *compare::ops#10
char *compare::ops#11
char *compare::ops#12
char *compare::ops#13
char *compare::ops#2
char *compare::ops#3
char *compare::ops#4
char *compare::ops#5
char *compare::ops#6
char *compare::ops#7
char *compare::ops#8
char *compare::ops#9
char compare::r
char compare::r#0
char compare::r#1
char compare::r#10
char compare::r#11
char compare::r#12
char compare::r#13
char compare::r#14
char compare::r#15
char compare::r#16
char compare::r#17
char compare::r#18
char compare::r#19
char compare::r#2
char compare::r#20
char compare::r#21
char compare::r#22
char compare::r#23
char compare::r#24
char compare::r#25
char compare::r#26
char compare::r#27
char compare::r#3
char compare::r#4
char compare::r#5
char compare::r#6
char compare::r#7
char compare::r#8
char compare::r#9
unsigned int compare::w1
unsigned int compare::w1#0
unsigned int compare::w1#1
unsigned int compare::w1#10
unsigned int compare::w1#11
unsigned int compare::w1#12
unsigned int compare::w1#13
unsigned int compare::w1#14
unsigned int compare::w1#15
unsigned int compare::w1#16
unsigned int compare::w1#17
unsigned int compare::w1#18
unsigned int compare::w1#19
unsigned int compare::w1#2
unsigned int compare::w1#20
unsigned int compare::w1#21
unsigned int compare::w1#22
unsigned int compare::w1#23
unsigned int compare::w1#24
unsigned int compare::w1#25
unsigned int compare::w1#3
unsigned int compare::w1#4
unsigned int compare::w1#5
unsigned int compare::w1#6
unsigned int compare::w1#7
unsigned int compare::w1#8
unsigned int compare::w1#9
unsigned int compare::w2
unsigned int compare::w2#0
unsigned int compare::w2#1
unsigned int compare::w2#10
unsigned int compare::w2#11
unsigned int compare::w2#12
unsigned int compare::w2#13
unsigned int compare::w2#14
unsigned int compare::w2#15
unsigned int compare::w2#16
unsigned int compare::w2#17
unsigned int compare::w2#18
unsigned int compare::w2#19
unsigned int compare::w2#2
unsigned int compare::w2#20
unsigned int compare::w2#21
unsigned int compare::w2#22
unsigned int compare::w2#23
unsigned int compare::w2#24
unsigned int compare::w2#25
unsigned int compare::w2#26
unsigned int compare::w2#27
unsigned int compare::w2#3
unsigned int compare::w2#4
unsigned int compare::w2#5
unsigned int compare::w2#6
unsigned int compare::w2#7
unsigned int compare::w2#8
unsigned int compare::w2#9
void main()
bool main::$2
bool main::$3
bool main::$5
bool main::$6
bool main::$7
char main::$8
char main::$9
char main::i
char main::i#0
char main::i#1
char main::i#10
char main::i#2
char main::i#3
char main::i#4
char main::i#5
char main::i#6
char main::i#7
char main::i#8
char main::i#9
char main::j
char main::j#0
char main::j#1
char main::j#2
char main::j#3
char main::j#4
char main::j#5
char main::j#6
char main::j#7
char main::j#8
char main::op
char main::op#0
char main::op#1
char main::op#2
char main::op#3
char main::op#4
char main::op#5
char main::op#6
char main::s
char main::s#0
char main::s#1
char main::s#10
char main::s#2
char main::s#3
char main::s#4
char main::s#5
char main::s#6
char main::s#7
char main::s#8
char main::s#9
unsigned int main::w1
unsigned int main::w1#0
unsigned int main::w1#1
unsigned int main::w1#2
unsigned int main::w1#3
unsigned int main::w1#4
unsigned int main::w1#5
unsigned int main::w1#6
unsigned int main::w1#7
unsigned int main::w2
unsigned int main::w2#0
unsigned int main::w2#1
unsigned int main::w2#2
unsigned int main::w2#3
unsigned int main::w2#4
unsigned int main::w2#5
void * memset(void *str , char c , unsigned int num)
bool memset::$0
bool memset::$1
bool memset::$3
char *memset::$4
char memset::c
char memset::c#0
char memset::c#1
char memset::c#2
char memset::c#3
char memset::c#4
char *memset::dst
char *memset::dst#0
char *memset::dst#1
char *memset::dst#2
char *memset::dst#3
char *memset::end
char *memset::end#0
char *memset::end#1
char *memset::end#2
unsigned int memset::num
unsigned int memset::num#0
unsigned int memset::num#1
unsigned int memset::num#2
void *memset::return
void *memset::return#0
void *memset::return#1
void *memset::return#2
void *memset::return#3
void *memset::str
void *memset::str#0
void *memset::str#1
void *memset::str#2
void *memset::str#3
void *memset::str#4
void *memset::str#5
void print_char(char ch)
char print_char::ch
char print_char::ch#0
char print_char::ch#1
char print_char::ch#2
char print_char::ch#3
char print_char::ch#4
char print_char::ch#5
char *print_char_cursor
char *print_char_cursor#0
char *print_char_cursor#1
char *print_char_cursor#10
char *print_char_cursor#11
char *print_char_cursor#12
char *print_char_cursor#13
char *print_char_cursor#14
char *print_char_cursor#15
char *print_char_cursor#16
char *print_char_cursor#17
char *print_char_cursor#18
char *print_char_cursor#19
char *print_char_cursor#2
char *print_char_cursor#20
char *print_char_cursor#21
char *print_char_cursor#22
char *print_char_cursor#23
char *print_char_cursor#24
char *print_char_cursor#25
char *print_char_cursor#26
char *print_char_cursor#27
char *print_char_cursor#28
char *print_char_cursor#29
char *print_char_cursor#3
char *print_char_cursor#30
char *print_char_cursor#31
char *print_char_cursor#32
char *print_char_cursor#33
char *print_char_cursor#34
char *print_char_cursor#35
char *print_char_cursor#36
char *print_char_cursor#37
char *print_char_cursor#38
char *print_char_cursor#39
char *print_char_cursor#4
char *print_char_cursor#40
char *print_char_cursor#41
char *print_char_cursor#42
char *print_char_cursor#43
char *print_char_cursor#44
char *print_char_cursor#45
char *print_char_cursor#46
char *print_char_cursor#47
char *print_char_cursor#48
char *print_char_cursor#49
char *print_char_cursor#5
char *print_char_cursor#50
char *print_char_cursor#51
char *print_char_cursor#52
char *print_char_cursor#53
char *print_char_cursor#54
char *print_char_cursor#55
char *print_char_cursor#56
char *print_char_cursor#57
char *print_char_cursor#58
char *print_char_cursor#59
char *print_char_cursor#6
char *print_char_cursor#60
char *print_char_cursor#61
char *print_char_cursor#62
char *print_char_cursor#63
char *print_char_cursor#64
char *print_char_cursor#65
char *print_char_cursor#66
char *print_char_cursor#67
char *print_char_cursor#68
char *print_char_cursor#69
char *print_char_cursor#7
char *print_char_cursor#70
char *print_char_cursor#71
char *print_char_cursor#72
char *print_char_cursor#73
char *print_char_cursor#74
char *print_char_cursor#75
char *print_char_cursor#76
char *print_char_cursor#77
char *print_char_cursor#78
char *print_char_cursor#79
char *print_char_cursor#8
char *print_char_cursor#80
char *print_char_cursor#81
char *print_char_cursor#82
char *print_char_cursor#83
char *print_char_cursor#84
char *print_char_cursor#85
char *print_char_cursor#86
char *print_char_cursor#87
char *print_char_cursor#88
char *print_char_cursor#89
char *print_char_cursor#9
char *print_char_cursor#90
char *print_char_cursor#91
char *print_char_cursor#92
void print_cls()
__constant const char print_hextab[] = "0123456789abcdef"z
char *print_line_cursor
char *print_line_cursor#0
char *print_line_cursor#1
char *print_line_cursor#10
char *print_line_cursor#11
char *print_line_cursor#12
char *print_line_cursor#13
char *print_line_cursor#14
char *print_line_cursor#15
char *print_line_cursor#16
char *print_line_cursor#17
char *print_line_cursor#18
char *print_line_cursor#19
char *print_line_cursor#2
char *print_line_cursor#20
char *print_line_cursor#21
char *print_line_cursor#22
char *print_line_cursor#23
char *print_line_cursor#24
char *print_line_cursor#25
char *print_line_cursor#26
char *print_line_cursor#27
char *print_line_cursor#28
char *print_line_cursor#29
char *print_line_cursor#3
char *print_line_cursor#30
char *print_line_cursor#4
char *print_line_cursor#5
char *print_line_cursor#6
char *print_line_cursor#7
char *print_line_cursor#8
char *print_line_cursor#9
void print_ln()
char *print_ln::$0
bool print_ln::$1
char *print_screen
char *print_screen#0
char *print_screen#1
char *print_screen#2
char *print_screen#3
char *print_screen#4
char *print_screen#5
char *print_screen#6
char *print_screen#7
void print_str(char *str)
bool print_str::$1
char *print_str::str
char *print_str::str#0
char *print_str::str#1
char *print_str::str#2
char *print_str::str#3
char *print_str::str#4
char *print_str::str#5
void print_uchar(char b)
char print_uchar::$0
number print_uchar::$2
char print_uchar::b
char print_uchar::b#0
char print_uchar::b#1
char print_uchar::b#2
char print_uchar::b#3
void print_uint(unsigned int w)
char print_uint::$0
char print_uint::$2
unsigned int print_uint::w
unsigned int print_uint::w#0
unsigned int print_uint::w#1
unsigned int print_uint::w#2
unsigned int print_uint::w#3
__constant unsigned int words[] = { $12, $3f34, $cfed }

Adding number conversion cast (unumber) 0 in print_str::$1 = 0 != *print_str::str#2
Adding number conversion cast (unumber) $28 in print_ln::$0 = print_line_cursor#10 + $28
Adding number conversion cast (unumber) 4 in print_uchar::$0 = print_uchar::b#2 >> 4
Adding number conversion cast (unumber) $f in print_uchar::$2 = print_uchar::b#3 & $f
Adding number conversion cast (unumber) print_uchar::$2 in print_uchar::$2 = print_uchar::b#3 & (unumber)$f
Adding number conversion cast (unumber) $3e8 in memset::num#0 = $3e8
Adding number conversion cast (unumber) 0 in memset::$0 = memset::num#1 > 0
Adding number conversion cast (unumber) 3 in main::$2 = main::s#1 == 3
Adding number conversion cast (unumber) 0 in main::s#2 = 0
Adding number conversion cast (unumber) 0 in compare::$0 = compare::op#1 == 0
Adding number conversion cast (unumber) 1 in compare::$1 = compare::op#2 == 1
Adding number conversion cast (unumber) 2 in compare::$2 = compare::op#3 == 2
Adding number conversion cast (unumber) 3 in compare::$3 = compare::op#4 == 3
Adding number conversion cast (unumber) 4 in compare::$4 = compare::op#5 == 4
Adding number conversion cast (unumber) 5 in compare::$5 = compare::op#6 == 5
Successful SSA optimization PassNAddNumberTypeConversions
Inlining cast memset::num#0 = (unumber)$3e8
Inlining cast memset::dst#0 = (char *)memset::str#2
Inlining cast main::s#2 = (unumber)0
Successful SSA optimization Pass2InlineCast
Simplifying constant integer cast 0
Simplifying constant integer cast $28
Simplifying constant integer cast 4
Simplifying constant integer cast $f
Simplifying constant integer cast $3e8
Simplifying constant integer cast 0
Simplifying constant integer cast 3
Simplifying constant integer cast 0
Simplifying constant integer cast 0
Simplifying constant integer cast 1
Simplifying constant integer cast 2
Simplifying constant integer cast 3
Simplifying constant integer cast 4
Simplifying constant integer cast 5
Simplifying constant pointer cast (char *) 1024
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (char) 0
Finalized unsigned number type (char) $28
Finalized unsigned number type (char) 4
Finalized unsigned number type (char) $f
Finalized unsigned number type (unsigned int) $3e8
Finalized unsigned number type (char) 0
Finalized unsigned number type (char) 3
Finalized unsigned number type (char) 0
Finalized unsigned number type (char) 0
Finalized unsigned number type (char) 1
Finalized unsigned number type (char) 2
Finalized unsigned number type (char) 3
Finalized unsigned number type (char) 4
Finalized unsigned number type (char) 5
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inferred type updated to char in print_uchar::$2 = print_uchar::b#3 & $f
Inversing boolean not [74] memset::$1 = memset::num#1 <= 0 from [73] memset::$0 = memset::num#1 > 0
Inversing boolean not [115] main::$3 = main::s#1 != 3 from [114] main::$2 = main::s#1 == 3
Inversing boolean not [148] compare::$23 = compare::w1#1 >= compare::w2#1 from [147] compare::$22 = compare::w1#1 < compare::w2#1
Inversing boolean not [155] compare::$21 = compare::w1#2 > compare::w2#2 from [154] compare::$20 = compare::w1#2 <= compare::w2#2
Inversing boolean not [162] compare::$19 = compare::w1#3 <= compare::w2#3 from [161] compare::$18 = compare::w1#3 > compare::w2#3
Inversing boolean not [169] compare::$17 = compare::w1#4 < compare::w2#4 from [168] compare::$16 = compare::w1#4 >= compare::w2#4
Inversing boolean not [176] compare::$15 = compare::w1#5 != compare::w2#5 from [175] compare::$14 = compare::w1#5 == compare::w2#5
Inversing boolean not [180] compare::$6 = compare::op#6 != 5 from [179] compare::$5 = compare::op#6 == 5
Inversing boolean not [184] compare::$13 = compare::w1#6 == compare::w2#6 from [183] compare::$12 = compare::w1#6 != compare::w2#6
Successful SSA optimization Pass2UnaryNotSimplification
Alias print_str::str#2 = print_str::str#3 print_str::str#4 
Alias print_char_cursor#1 = print_char_cursor#52 print_char_cursor#53 print_char_cursor#28 
Alias print_char_cursor#0 = print_char_cursor#27 
Alias print_line_cursor#0 = print_ln::$0 print_line_cursor#11 print_char_cursor#2 print_line_cursor#12 print_char_cursor#30 print_line_cursor#1 print_char_cursor#3 
Alias print_uchar::b#0 = print_uint::$0 
Alias print_uint::w#2 = print_uint::w#3 
Alias print_char_cursor#31 = print_char_cursor#4 
Alias print_uchar::b#1 = print_uint::$2 
Alias print_char_cursor#32 = print_char_cursor#5 print_char_cursor#33 print_char_cursor#6 
Alias print_uchar::b#2 = print_uchar::b#3 
Alias print_char_cursor#34 = print_char_cursor#7 
Alias print_char_cursor#35 = print_char_cursor#8 print_char_cursor#36 print_char_cursor#9 
Alias print_char_cursor#10 = print_char_cursor#38 print_char_cursor#11 
Alias print_line_cursor#13 = print_screen#3 print_screen#2 print_line_cursor#2 print_char_cursor#12 print_char_cursor#39 print_line_cursor#3 print_char_cursor#13 
Alias memset::return#1 = memset::str#1 memset::return#3 memset::return#2 
Alias memset::str#2 = memset::str#3 
Alias memset::num#1 = memset::num#2 
Alias memset::c#3 = memset::c#4 
Alias memset::c#1 = memset::c#2 
Alias memset::dst#2 = memset::dst#3 
Alias memset::end#1 = memset::end#2 
Alias memset::str#4 = memset::str#5 
Alias print_line_cursor#14 = print_line_cursor#4 
Alias print_char_cursor#14 = print_char_cursor#40 
Alias main::s#3 = main::s#4 
Alias main::op#2 = main::op#4 main::op#6 main::op#5 
Alias main::w1#1 = main::w1#5 main::w1#7 main::w1#6 
Alias main::w2#1 = main::w2#3 main::w2#5 main::w2#4 
Alias main::j#5 = main::j#7 main::j#8 main::j#6 
Alias print_line_cursor#21 = print_line_cursor#24 print_line_cursor#26 
Alias main::i#6 = main::i#8 main::i#9 main::i#7 
Alias print_char_cursor#15 = print_char_cursor#41 print_char_cursor#59 
Alias main::s#2 = main::s#9 
Alias print_line_cursor#15 = print_line_cursor#5 
Alias print_char_cursor#16 = print_char_cursor#42 
Alias main::j#3 = main::j#4 
Alias main::i#3 = main::i#4 main::i#5 
Alias main::w1#3 = main::w1#4 
Alias print_char_cursor#65 = print_char_cursor#75 print_char_cursor#66 
Alias main::s#10 = main::s#8 main::s#6 
Alias print_line_cursor#25 = print_line_cursor#27 print_line_cursor#29 
Alias print_line_cursor#16 = print_line_cursor#22 print_line_cursor#6 
Alias print_char_cursor#17 = print_char_cursor#43 print_char_cursor#60 
Alias compare::w1#1 = compare::w1#8 compare::w1#9 compare::w1#2 compare::w1#10 compare::w1#3 compare::w1#11 compare::w1#4 compare::w1#12 compare::w1#5 compare::w1#13 compare::w1#6 compare::w1#20 compare::w1#21 compare::w1#22 compare::w1#23 compare::w1#24 compare::w1#25 
Alias compare::w2#1 = compare::w2#8 compare::w2#9 compare::w2#2 compare::w2#10 compare::w2#3 compare::w2#11 compare::w2#4 compare::w2#12 compare::w2#5 compare::w2#13 compare::w2#6 compare::w2#22 compare::w2#23 compare::w2#24 compare::w2#25 compare::w2#26 compare::w2#27 
Alias print_char_cursor#67 = print_char_cursor#87 print_char_cursor#89 print_char_cursor#90 print_char_cursor#86 print_char_cursor#91 print_char_cursor#84 print_char_cursor#92 print_char_cursor#82 print_char_cursor#76 print_char_cursor#80 print_char_cursor#77 print_char_cursor#78 print_char_cursor#79 print_char_cursor#81 print_char_cursor#83 print_char_cursor#85 print_char_cursor#88 
Alias compare::r#0 = compare::r#24 compare::r#25 compare::r#23 compare::r#26 compare::r#22 compare::r#27 compare::r#21 compare::r#18 compare::r#20 compare::r#11 compare::r#19 
Alias compare::op#1 = compare::op#2 compare::op#3 compare::op#4 compare::op#5 compare::op#6 
Alias compare::ops#0 = compare::ops#13 compare::ops#12 compare::ops#11 compare::ops#10 compare::ops#9 
Alias compare::ops#7 = compare::ops#8 
Alias compare::w2#14 = compare::w2#15 compare::w2#7 
Alias compare::r#10 = compare::r#9 compare::r#8 compare::r#7 
Alias print_char_cursor#18 = print_char_cursor#44 
Alias print_char_cursor#19 = print_char_cursor#45 
Alias print_char_cursor#20 = print_char_cursor#46 
Alias print_char_cursor#21 = print_char_cursor#47 
Alias print_char_cursor#22 = print_char_cursor#48 print_char_cursor#49 print_char_cursor#23 
Alias print_screen#0 = print_line_cursor#7 print_char_cursor#24 print_line_cursor#23 print_char_cursor#62 print_screen#7 print_screen#6 print_screen#4 print_screen#1 
Alias print_line_cursor#17 = print_line_cursor#8 print_line_cursor#18 print_line_cursor#9 
Alias print_char_cursor#25 = print_char_cursor#50 print_char_cursor#51 print_char_cursor#26 
Successful SSA optimization Pass2AliasElimination
Alias main::op#2 = main::op#3 
Alias main::w1#1 = main::w1#3 
Alias main::w2#1 = main::w2#2 
Alias main::j#3 = main::j#5 
Alias main::i#3 = main::i#6 
Alias compare::w1#1 = compare::w1#14 compare::w1#15 compare::w1#16 compare::w1#17 compare::w1#18 compare::w1#19 
Alias print_char_cursor#67 = print_char_cursor#68 print_char_cursor#69 print_char_cursor#70 print_char_cursor#71 print_char_cursor#72 print_char_cursor#73 
Alias compare::w2#1 = compare::w2#16 compare::w2#17 compare::w2#18 compare::w2#19 compare::w2#20 compare::w2#21 
Successful SSA optimization Pass2AliasElimination
Alias compare::w1#1 = compare::w1#7 
Alias print_char_cursor#61 = print_char_cursor#67 
Alias compare::w2#1 = compare::w2#14 
Successful SSA optimization Pass2AliasElimination
Identical Phi Values print_str::str#5 print_str::str#1
Identical Phi Values print_char_cursor#63 print_char_cursor#18
Identical Phi Values print_char_cursor#0 print_char_cursor#10
Identical Phi Values print_line_cursor#19 print_line_cursor#21
Identical Phi Values print_char_cursor#54 print_char_cursor#15
Identical Phi Values print_char_cursor#29 print_char_cursor#54
Identical Phi Values print_char_cursor#31 print_char_cursor#35
Identical Phi Values print_char_cursor#32 print_char_cursor#35
Identical Phi Values print_char_cursor#34 print_char_cursor#10
Identical Phi Values print_char_cursor#35 print_char_cursor#10
Identical Phi Values print_line_cursor#13 print_screen#5
Identical Phi Values memset::num#1 memset::num#0
Identical Phi Values memset::str#2 memset::str#0
Identical Phi Values memset::c#3 memset::c#0
Identical Phi Values memset::end#1 memset::end#0
Identical Phi Values memset::str#4 memset::str#2
Identical Phi Values memset::c#1 memset::c#3
Identical Phi Values print_screen#5 print_screen#0
Identical Phi Values print_line_cursor#20 print_screen#0
Identical Phi Values print_char_cursor#57 print_screen#0
Identical Phi Values print_line_cursor#14 print_line_cursor#13
Identical Phi Values print_char_cursor#14 print_line_cursor#13
Identical Phi Values main::w1#1 main::w1#2
Identical Phi Values main::w2#1 main::w2#0
Identical Phi Values main::j#3 main::j#2
Identical Phi Values main::i#3 main::i#10
Identical Phi Values print_char_cursor#15 print_char_cursor#22
Identical Phi Values print_line_cursor#15 print_line_cursor#0
Identical Phi Values print_char_cursor#16 print_line_cursor#0
Identical Phi Values print_line_cursor#16 print_line_cursor#25
Identical Phi Values print_char_cursor#17 print_char_cursor#65
Identical Phi Values compare::op#1 compare::op#0
Identical Phi Values compare::w1#1 compare::w1#0
Identical Phi Values compare::w2#1 compare::w2#0
Identical Phi Values print_char_cursor#61 print_char_cursor#58
Identical Phi Values print_char_cursor#18 print_char_cursor#32
Identical Phi Values print_char_cursor#19 print_char_cursor#1
Identical Phi Values print_char_cursor#20 print_char_cursor#32
Identical Phi Values print_char_cursor#21 print_char_cursor#10
Identical Phi Values print_char_cursor#22 print_char_cursor#10
Identical Phi Values print_line_cursor#17 print_line_cursor#16
Identical Phi Values print_char_cursor#25 print_char_cursor#17
Successful SSA optimization Pass2IdenticalPhiElimination
Identical Phi Values print_char_cursor#1 print_char_cursor#10
Identical Phi Values memset::return#1 memset::str#0
Identical Phi Values main::w1#2 main::w1#0
Identical Phi Values main::i#10 main::i#2
Successful SSA optimization Pass2IdenticalPhiElimination
Simple Condition print_str::$1 [3] if(0!=*print_str::str#2) goto print_str::@2
Simple Condition print_ln::$1 [13] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1
Simple Condition memset::$1 [46] if(memset::num#0<=0) goto memset::@1
Simple Condition memset::$3 [53] if(memset::dst#2!=memset::end#0) goto memset::@4
Simple Condition main::$3 [78] if(main::s#1!=3) goto main::@4
Simple Condition main::$5 [82] if(main::op#1!=rangelast(0,5)) goto main::@3
Simple Condition main::$6 [88] if(main::j#1!=rangelast(0,2)) goto main::@2
Simple Condition main::$7 [91] if(main::i#1!=rangelast(0,2)) goto main::@1
Simple Condition compare::$0 [99] if(compare::op#0==0) goto compare::@1
Simple Condition compare::$23 [101] if(compare::w1#0>=compare::w2#0) goto compare::@24
Simple Condition compare::$1 [103] if(compare::op#0==1) goto compare::@2
Simple Condition compare::$21 [105] if(compare::w1#0>compare::w2#0) goto compare::@23
Simple Condition compare::$2 [107] if(compare::op#0==2) goto compare::@3
Simple Condition compare::$19 [109] if(compare::w1#0<=compare::w2#0) goto compare::@22
Simple Condition compare::$3 [111] if(compare::op#0==3) goto compare::@4
Simple Condition compare::$17 [113] if(compare::w1#0<compare::w2#0) goto compare::@21
Simple Condition compare::$4 [115] if(compare::op#0==4) goto compare::@5
Simple Condition compare::$15 [117] if(compare::w1#0!=compare::w2#0) goto compare::@20
Simple Condition compare::$6 [119] if(compare::op#0!=5) goto compare::@6
Simple Condition compare::$13 [121] if(compare::w1#0==compare::w2#0) goto compare::@19
Successful SSA optimization Pass2ConditionalJumpSimplification
Constant memset::c#0 = ' '
Constant memset::num#0 = $3e8
Constant main::s#0 = 0
Constant main::i#0 = 0
Constant main::j#0 = 0
Constant main::op#0 = 0
Constant main::s#2 = 0
Constant compare::r#0 = FF
Constant compare::ops#0 = (char *) 0
Constant compare::ops#1 = compare::$24
Constant compare::r#1 = TT
Constant compare::ops#2 = compare::$25
Constant compare::r#2 = TT
Constant compare::ops#3 = compare::$26
Constant compare::r#3 = TT
Constant compare::ops#4 = compare::$27
Constant compare::r#4 = TT
Constant compare::ops#5 = compare::$28
Constant compare::r#5 = TT
Constant print_char::ch#4 = ' '
Constant compare::ops#6 = compare::$29
Constant compare::r#6 = TT
Constant print_screen#0 = (char *) 1024
Successful SSA optimization Pass2ConstantIdentification
Constant memset::str#0 = (void *)print_screen#0
Successful SSA optimization Pass2ConstantIdentification
Constant memset::return#0 = memset::str#0
Constant memset::$4 = (char *)memset::str#0
Constant memset::dst#0 = (char *)memset::str#0
Successful SSA optimization Pass2ConstantIdentification
if() condition always false - eliminating [46] if(memset::num#0<=0) goto memset::@1
if() condition always true - replacing block destination [93] if(true) goto main::@8
Successful SSA optimization Pass2ConstantIfs
Resolved ranged next value [80] main::op#1 = ++ main::op#2 to ++
Resolved ranged comparison value [82] if(main::op#1!=rangelast(0,5)) goto main::@3 to 6
Resolved ranged next value [86] main::j#1 = ++ main::j#2 to ++
Resolved ranged comparison value [88] if(main::j#1!=rangelast(0,2)) goto main::@2 to 3
Resolved ranged next value [89] main::i#1 = ++ main::i#2 to ++
Resolved ranged comparison value [91] if(main::i#1!=rangelast(0,2)) goto main::@1 to 3
Removing unused block main::@return
Successful SSA optimization Pass2EliminateUnusedBlocks
Eliminating unused constant memset::return#0
Successful SSA optimization PassNEliminateUnusedVars
Removing unused procedure __start
Removing unused procedure block __start
Removing unused procedure block __start::__init1
Removing unused procedure block __start::@1
Removing unused procedure block __start::@2
Removing unused procedure block __start::@return
Successful SSA optimization PassNEliminateEmptyStart
Adding number conversion cast (unumber) 6 in [52] if(main::op#1!=6) goto main::@3
Adding number conversion cast (unumber) 3 in [55] if(main::j#1!=3) goto main::@2
Adding number conversion cast (unumber) 3 in [57] if(main::i#1!=3) goto main::@1
Successful SSA optimization PassNAddNumberTypeConversions
Simplifying constant integer cast 6
Simplifying constant integer cast 3
Simplifying constant integer cast 3
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (char) 6
Finalized unsigned number type (char) 3
Finalized unsigned number type (char) 3
Successful SSA optimization PassNFinalizeNumberTypeConversions
Constant right-side identified [30] memset::end#0 = memset::$4 + memset::num#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant memset::end#0 = memset::$4+memset::num#0
Successful SSA optimization Pass2ConstantIdentification
Rewriting multiplication to use shift [37] main::$8 = main::i#2 * SIZEOF_UNSIGNED_INT
Rewriting multiplication to use shift [40] main::$9 = main::j#2 * SIZEOF_UNSIGNED_INT
Successful SSA optimization Pass2MultiplyToShiftRewriting
Inlining constant with var siblings print_char::ch#4
Inlining constant with var siblings memset::dst#0
Inlining constant with var siblings main::s#0
Inlining constant with var siblings main::i#0
Inlining constant with var siblings main::j#0
Inlining constant with var siblings main::op#0
Inlining constant with var siblings main::s#2
Inlining constant with var siblings compare::r#0
Inlining constant with var siblings compare::ops#0
Inlining constant with var siblings compare::ops#1
Inlining constant with var siblings compare::r#1
Inlining constant with var siblings compare::ops#2
Inlining constant with var siblings compare::r#2
Inlining constant with var siblings compare::ops#3
Inlining constant with var siblings compare::r#3
Inlining constant with var siblings compare::ops#4
Inlining constant with var siblings compare::r#4
Inlining constant with var siblings compare::ops#5
Inlining constant with var siblings compare::r#5
Inlining constant with var siblings compare::ops#6
Inlining constant with var siblings compare::r#6
Constant inlined compare::ops#0 = (char *) 0
Constant inlined compare::r#1 = TT
Constant inlined compare::r#0 = FF
Constant inlined compare::r#3 = TT
Constant inlined compare::r#2 = TT
Constant inlined compare::r#5 = TT
Constant inlined compare::r#4 = TT
Constant inlined memset::$4 = (char *)memset::str#0
Constant inlined main::i#0 = 0
Constant inlined main::j#0 = 0
Constant inlined main::op#0 = 0
Constant inlined main::s#0 = 0
Constant inlined main::s#2 = 0
Constant inlined compare::$24 = compare::ops#1
Constant inlined compare::r#6 = TT
Constant inlined compare::$25 = compare::ops#2
Constant inlined compare::$26 = compare::ops#3
Constant inlined print_char::ch#4 = ' '
Constant inlined compare::$27 = compare::ops#4
Constant inlined compare::$28 = compare::ops#5
Constant inlined compare::$29 = compare::ops#6
Constant inlined memset::dst#0 = (char *)memset::str#0
Successful SSA optimization Pass2ConstantInlining
Inlining constant with var siblings compare::ops#1
Inlining constant with var siblings compare::ops#2
Inlining constant with var siblings compare::ops#3
Inlining constant with var siblings compare::ops#4
Inlining constant with var siblings compare::ops#5
Inlining constant with var siblings compare::ops#6
Eliminating unused constant SIZEOF_UNSIGNED_INT
Successful SSA optimization PassNEliminateUnusedVars
Inlining constant with var siblings compare::ops#1
Inlining constant with var siblings compare::ops#2
Inlining constant with var siblings compare::ops#3
Inlining constant with var siblings compare::ops#4
Inlining constant with var siblings compare::ops#5
Inlining constant with var siblings compare::ops#6
Finalized unsigned number type (char) 2
Finalized unsigned number type (char) 8
Finalized unsigned number type (char) $a
Finalized unsigned number type (char) $10
Successful SSA optimization PassNFinalizeNumberTypeConversions
Added new block during phi lifting print_ln::@3(between print_ln::@1 and print_ln::@1)
Added new block during phi lifting main::@12(between main::@7 and main::@1)
Added new block during phi lifting main::@13(between main::@6 and main::@2)
Added new block during phi lifting main::@14(between main::@4 and main::@3)
Added new block during phi lifting main::@15(between main::@10 and main::@4)
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@9
Adding NOP phi() at start of main::@5
Adding NOP phi() at start of main::@8
Adding NOP phi() at start of print_cls
Adding NOP phi() at start of print_cls::@1
Adding NOP phi() at start of compare::@13
Adding NOP phi() at start of compare::@29
Adding NOP phi() at start of compare::@14
Adding NOP phi() at start of compare::@15
Adding NOP phi() at start of compare::@16
Adding NOP phi() at start of compare::@17
Adding NOP phi() at start of compare::@18
Adding NOP phi() at start of print_ln::@2
Adding NOP phi() at start of memset
Adding NOP phi() at start of memset::@2
Adding NOP phi() at start of memset::@1
Adding NOP phi() at start of print_uint::@2
Adding NOP phi() at start of print_uchar::@2
CALL GRAPH
Calls in [main] to print_cls:1 compare:19 print_ln:23 
Calls in [print_cls] to memset:50 
Calls in [compare] to print_uint:67 print_str:69 print_uint:73 print_char:77 print_char:79 
Calls in [print_uint] to print_uchar:122 print_uchar:126 
Calls in [print_str] to print_char:136 
Calls in [print_uchar] to print_char:148 print_char:153 

Created 32 initial phi equivalence classes
Coalesced [6] print_char_cursor#103 = print_char_cursor#74
Coalesced [7] main::s#12 = main::s#7
Coalesced [8] print_line_cursor#34 = print_line_cursor#30
Coalesced [12] print_char_cursor#105 = print_char_cursor#64
Coalesced [13] main::s#14 = main::s#5
Coalesced [14] print_line_cursor#36 = print_line_cursor#28
Not coalescing [24] print_char_cursor#108 = print_line_cursor#0
Coalesced [25] print_line_cursor#39 = print_line_cursor#0
Coalesced [34] main::i#11 = main::i#1
Coalesced [35] print_char_cursor#102 = print_char_cursor#65
Coalesced [36] main::s#11 = main::s#10
Coalesced [37] print_line_cursor#33 = print_line_cursor#25
Coalesced [38] main::j#9 = main::j#1
Coalesced (already) [39] print_char_cursor#104 = print_char_cursor#65
Coalesced (already) [40] main::s#13 = main::s#10
Coalesced (already) [41] print_line_cursor#35 = print_line_cursor#25
Coalesced [42] main::op#7 = main::op#1
Coalesced (already) [43] print_char_cursor#106 = print_char_cursor#65
Coalesced (already) [44] main::s#15 = main::s#10
Coalesced (already) [45] print_line_cursor#37 = print_line_cursor#25
Coalesced [46] print_char_cursor#107 = print_char_cursor#10
Coalesced [47] main::s#16 = main::s#1
Coalesced (already) [48] print_line_cursor#38 = print_line_cursor#21
Coalesced [62] compare::r#28 = compare::r#12
Coalesced [65] print_uint::w#5 = print_uint::w#0
Coalesced [66] print_char_cursor#94 = print_char_cursor#58
Coalesced [71] print_uint::w#4 = print_uint::w#1
Coalesced (already) [72] print_char_cursor#93 = print_char_cursor#10
Coalesced [75] print_char::ch#6 = print_char::ch#3
Coalesced [76] print_char_cursor#97 = print_char_cursor#10
Coalesced (already) [78] print_char_cursor#98 = print_char_cursor#10
Coalesced [85] compare::r#29 = compare::r#13
Coalesced [89] compare::r#30 = compare::r#14
Coalesced [93] compare::r#31 = compare::r#15
Coalesced [97] compare::r#32 = compare::r#16
Coalesced [101] compare::r#33 = compare::r#17
Coalesced [102] print_line_cursor#31 = print_line_cursor#21
Coalesced (already) [108] print_line_cursor#32 = print_line_cursor#0
Coalesced [117] memset::dst#4 = memset::dst#1
Coalesced [120] print_uchar::b#4 = print_uchar::b#0
Coalesced [121] print_char_cursor#95 = print_char_cursor#55
Coalesced [124] print_uchar::b#5 = print_uchar::b#1
Coalesced (already) [125] print_char_cursor#96 = print_char_cursor#10
Coalesced [129] print_str::str#6 = print_str::str#1
Coalesced [134] print_char::ch#7 = print_char::ch#0
Coalesced (already) [135] print_char_cursor#99 = print_char_cursor#10
Coalesced [138] print_str::str#7 = print_str::str#0
Coalesced [146] print_char::ch#8 = print_char::ch#1
Coalesced (already) [147] print_char_cursor#100 = print_char_cursor#56
Coalesced [151] print_char::ch#9 = print_char::ch#2
Coalesced (already) [152] print_char_cursor#101 = print_char_cursor#10
Coalesced down to 13 phi equivalence classes
Culled Empty Block label main::@9
Culled Empty Block label main::@12
Culled Empty Block label main::@13
Culled Empty Block label main::@14
Culled Empty Block label main::@15
Culled Empty Block label print_cls::@1
Culled Empty Block label compare::@29
Culled Empty Block label print_ln::@2
Culled Empty Block label print_ln::@3
Culled Empty Block label memset::@2
Culled Empty Block label memset::@1
Culled Empty Block label print_uint::@2
Culled Empty Block label print_uchar::@2
Renumbering block memset::@3 to memset::@1
Renumbering block memset::@4 to memset::@2
Renumbering block main::@10 to main::@9
Renumbering block main::@11 to main::@10
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@5
Adding NOP phi() at start of main::@8
Adding NOP phi() at start of print_cls
Adding NOP phi() at start of compare::@13
Adding NOP phi() at start of compare::@28
Adding NOP phi() at start of compare::@14
Adding NOP phi() at start of compare::@15
Adding NOP phi() at start of compare::@16
Adding NOP phi() at start of compare::@17
Adding NOP phi() at start of compare::@18
Adding NOP phi() at start of print_ln
Adding NOP phi() at start of memset
Adding NOP phi() at start of print_str

FINAL CONTROL FLOW GRAPH

void main()
main: scope:[main]  from
  [0] phi()
  [1] call print_cls
  to:main::@1
main::@1: scope:[main]  from main main::@7
  [2] print_line_cursor#30 = phi( main::@7/print_line_cursor#25, main/print_screen#0 )
  [2] main::s#7 = phi( main::@7/main::s#10, main/0 )
  [2] print_char_cursor#74 = phi( main::@7/print_char_cursor#65, main/print_screen#0 )
  [2] main::i#2 = phi( main::@7/main::i#1, main/0 )
  [3] main::$8 = main::i#2 << 1
  [4] main::w1#0 = words[main::$8]
  to:main::@2
main::@2: scope:[main]  from main::@1 main::@6
  [5] print_line_cursor#28 = phi( main::@1/print_line_cursor#30, main::@6/print_line_cursor#25 )
  [5] main::s#5 = phi( main::@1/main::s#7, main::@6/main::s#10 )
  [5] print_char_cursor#64 = phi( main::@1/print_char_cursor#74, main::@6/print_char_cursor#65 )
  [5] main::j#2 = phi( main::@1/0, main::@6/main::j#1 )
  [6] main::$9 = main::j#2 << 1
  [7] main::w2#0 = words[main::$9]
  to:main::@3
main::@3: scope:[main]  from main::@2 main::@4
  [8] print_line_cursor#21 = phi( main::@2/print_line_cursor#28, main::@4/print_line_cursor#25 )
  [8] main::s#3 = phi( main::@2/main::s#5, main::@4/main::s#10 )
  [8] print_char_cursor#58 = phi( main::@2/print_char_cursor#64, main::@4/print_char_cursor#65 )
  [8] main::op#2 = phi( main::@2/0, main::@4/main::op#1 )
  [9] compare::w1#0 = main::w1#0
  [10] compare::w2#0 = main::w2#0
  [11] compare::op#0 = main::op#2
  [12] call compare
  to:main::@9
main::@9: scope:[main]  from main::@3
  [13] main::s#1 = ++ main::s#3
  [14] if(main::s#1!=3) goto main::@4
  to:main::@5
main::@5: scope:[main]  from main::@9
  [15] phi()
  [16] call print_ln
  to:main::@10
main::@10: scope:[main]  from main::@5
  [17] print_char_cursor#108 = print_line_cursor#0
  to:main::@4
main::@4: scope:[main]  from main::@10 main::@9
  [18] print_line_cursor#25 = phi( main::@9/print_line_cursor#21, main::@10/print_line_cursor#0 )
  [18] main::s#10 = phi( main::@9/main::s#1, main::@10/0 )
  [18] print_char_cursor#65 = phi( main::@9/print_char_cursor#10, main::@10/print_char_cursor#108 )
  [19] main::op#1 = ++ main::op#2
  [20] if(main::op#1!=6) goto main::@3
  to:main::@6
main::@6: scope:[main]  from main::@4
  [21] main::j#1 = ++ main::j#2
  [22] if(main::j#1!=3) goto main::@2
  to:main::@7
main::@7: scope:[main]  from main::@6
  [23] main::i#1 = ++ main::i#2
  [24] if(main::i#1!=3) goto main::@1
  to:main::@8
main::@8: scope:[main]  from main::@7 main::@8
  [25] phi()
  to:main::@8

void print_cls()
print_cls: scope:[print_cls]  from main
  [26] phi()
  [27] call memset
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls
  [28] return 
  to:@return

void compare(unsigned int w1 , unsigned int w2 , char op)
compare: scope:[compare]  from main::@3
  [29] if(compare::op#0==0) goto compare::@1
  to:compare::@7
compare::@7: scope:[compare]  from compare
  [30] if(compare::op#0==1) goto compare::@2
  to:compare::@8
compare::@8: scope:[compare]  from compare::@7
  [31] if(compare::op#0==2) goto compare::@3
  to:compare::@9
compare::@9: scope:[compare]  from compare::@8
  [32] if(compare::op#0==3) goto compare::@4
  to:compare::@10
compare::@10: scope:[compare]  from compare::@9
  [33] if(compare::op#0==4) goto compare::@5
  to:compare::@11
compare::@11: scope:[compare]  from compare::@10
  [34] if(compare::op#0!=5) goto compare::@6
  to:compare::@12
compare::@12: scope:[compare]  from compare::@11
  [35] if(compare::w1#0==compare::w2#0) goto compare::@19
  to:compare::@13
compare::@13: scope:[compare]  from compare::@12
  [36] phi()
  to:compare::@19
compare::@19: scope:[compare]  from compare::@12 compare::@13
  [37] compare::r#12 = phi( compare::@12/FF, compare::@13/TT )
  to:compare::@6
compare::@6: scope:[compare]  from compare::@11 compare::@19 compare::@20 compare::@21 compare::@22 compare::@23 compare::@24
  [38] compare::r#10 = phi( compare::@11/FF, compare::@19/compare::r#12, compare::@20/compare::r#13, compare::@21/compare::r#14, compare::@22/compare::r#15, compare::@23/compare::r#16, compare::@24/compare::r#17 )
  [38] compare::ops#7 = phi( compare::@11/(char *) 0, compare::@19/compare::ops#1, compare::@20/compare::ops#2, compare::@21/compare::ops#3, compare::@22/compare::ops#4, compare::@23/compare::ops#5, compare::@24/compare::ops#6 )
  [39] print_uint::w#0 = compare::w1#0
  [40] call print_uint
  to:compare::@25
compare::@25: scope:[compare]  from compare::@6
  [41] print_str::str#1 = compare::ops#7
  [42] call print_str
  to:compare::@26
compare::@26: scope:[compare]  from compare::@25
  [43] print_uint::w#1 = compare::w2#0
  [44] call print_uint
  to:compare::@27
compare::@27: scope:[compare]  from compare::@26
  [45] print_char::ch#3 = compare::r#10
  [46] call print_char
  to:compare::@28
compare::@28: scope:[compare]  from compare::@27
  [47] phi()
  [48] call print_char
  to:compare::@return
compare::@return: scope:[compare]  from compare::@28
  [49] return 
  to:@return
compare::@5: scope:[compare]  from compare::@10
  [50] if(compare::w1#0!=compare::w2#0) goto compare::@20
  to:compare::@14
compare::@14: scope:[compare]  from compare::@5
  [51] phi()
  to:compare::@20
compare::@20: scope:[compare]  from compare::@14 compare::@5
  [52] compare::r#13 = phi( compare::@14/TT, compare::@5/FF )
  to:compare::@6
compare::@4: scope:[compare]  from compare::@9
  [53] if(compare::w1#0<compare::w2#0) goto compare::@21
  to:compare::@15
compare::@15: scope:[compare]  from compare::@4
  [54] phi()
  to:compare::@21
compare::@21: scope:[compare]  from compare::@15 compare::@4
  [55] compare::r#14 = phi( compare::@15/TT, compare::@4/FF )
  to:compare::@6
compare::@3: scope:[compare]  from compare::@8
  [56] if(compare::w1#0<=compare::w2#0) goto compare::@22
  to:compare::@16
compare::@16: scope:[compare]  from compare::@3
  [57] phi()
  to:compare::@22
compare::@22: scope:[compare]  from compare::@16 compare::@3
  [58] compare::r#15 = phi( compare::@16/TT, compare::@3/FF )
  to:compare::@6
compare::@2: scope:[compare]  from compare::@7
  [59] if(compare::w1#0>compare::w2#0) goto compare::@23
  to:compare::@17
compare::@17: scope:[compare]  from compare::@2
  [60] phi()
  to:compare::@23
compare::@23: scope:[compare]  from compare::@17 compare::@2
  [61] compare::r#16 = phi( compare::@17/TT, compare::@2/FF )
  to:compare::@6
compare::@1: scope:[compare]  from compare
  [62] if(compare::w1#0>=compare::w2#0) goto compare::@24
  to:compare::@18
compare::@18: scope:[compare]  from compare::@1
  [63] phi()
  to:compare::@24
compare::@24: scope:[compare]  from compare::@1 compare::@18
  [64] compare::r#17 = phi( compare::@1/FF, compare::@18/TT )
  to:compare::@6

void print_ln()
print_ln: scope:[print_ln]  from main::@5
  [65] phi()
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  [66] print_line_cursor#10 = phi( print_ln/print_line_cursor#21, print_ln::@1/print_line_cursor#0 )
  [67] print_line_cursor#0 = print_line_cursor#10 + $28
  [68] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@1
  [69] return 
  to:@return

void * memset(void *str , char c , unsigned int num)
memset: scope:[memset]  from print_cls
  [70] phi()
  to:memset::@1
memset::@1: scope:[memset]  from memset memset::@2
  [71] memset::dst#2 = phi( memset/(char *)memset::str#0, memset::@2/memset::dst#1 )
  [72] if(memset::dst#2!=memset::end#0) goto memset::@2
  to:memset::@return
memset::@return: scope:[memset]  from memset::@1
  [73] return 
  to:@return
memset::@2: scope:[memset]  from memset::@1
  [74] *memset::dst#2 = memset::c#0
  [75] memset::dst#1 = ++ memset::dst#2
  to:memset::@1

void print_uint(unsigned int w)
print_uint: scope:[print_uint]  from compare::@26 compare::@6
  [76] print_char_cursor#55 = phi( compare::@26/print_char_cursor#10, compare::@6/print_char_cursor#58 )
  [76] print_uint::w#2 = phi( compare::@26/print_uint::w#1, compare::@6/print_uint::w#0 )
  [77] print_uchar::b#0 = byte1  print_uint::w#2
  [78] call print_uchar
  to:print_uint::@1
print_uint::@1: scope:[print_uint]  from print_uint
  [79] print_uchar::b#1 = byte0  print_uint::w#2
  [80] call print_uchar
  to:print_uint::@return
print_uint::@return: scope:[print_uint]  from print_uint::@1
  [81] return 
  to:@return

void print_str(char *str)
print_str: scope:[print_str]  from compare::@25
  [82] phi()
  to:print_str::@1
print_str::@1: scope:[print_str]  from print_str print_str::@3
  [83] print_str::str#2 = phi( print_str/print_str::str#1, print_str::@3/print_str::str#0 )
  [84] if(0!=*print_str::str#2) goto print_str::@2
  to:print_str::@return
print_str::@return: scope:[print_str]  from print_str::@1
  [85] return 
  to:@return
print_str::@2: scope:[print_str]  from print_str::@1
  [86] print_char::ch#0 = *print_str::str#2
  [87] call print_char
  to:print_str::@3
print_str::@3: scope:[print_str]  from print_str::@2
  [88] print_str::str#0 = ++ print_str::str#2
  to:print_str::@1

void print_char(char ch)
print_char: scope:[print_char]  from compare::@27 compare::@28 print_str::@2 print_uchar print_uchar::@1
  [89] print_char_cursor#37 = phi( compare::@27/print_char_cursor#10, compare::@28/print_char_cursor#10, print_str::@2/print_char_cursor#10, print_uchar/print_char_cursor#56, print_uchar::@1/print_char_cursor#10 )
  [89] print_char::ch#5 = phi( compare::@27/print_char::ch#3, compare::@28/' ', print_str::@2/print_char::ch#0, print_uchar/print_char::ch#1, print_uchar::@1/print_char::ch#2 )
  [90] *print_char_cursor#37 = print_char::ch#5
  [91] print_char_cursor#10 = ++ print_char_cursor#37
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  [92] return 
  to:@return

void print_uchar(char b)
print_uchar: scope:[print_uchar]  from print_uint print_uint::@1
  [93] print_char_cursor#56 = phi( print_uint/print_char_cursor#55, print_uint::@1/print_char_cursor#10 )
  [93] print_uchar::b#2 = phi( print_uint/print_uchar::b#0, print_uint::@1/print_uchar::b#1 )
  [94] print_uchar::$0 = print_uchar::b#2 >> 4
  [95] print_char::ch#1 = print_hextab[print_uchar::$0]
  [96] call print_char
  to:print_uchar::@1
print_uchar::@1: scope:[print_uchar]  from print_uchar
  [97] print_uchar::$2 = print_uchar::b#2 & $f
  [98] print_char::ch#2 = print_hextab[print_uchar::$2]
  [99] call print_char
  to:print_uchar::@return
print_uchar::@return: scope:[print_uchar]  from print_uchar::@1
  [100] return 
  to:@return


VARIABLE REGISTER WEIGHTS
void compare(unsigned int w1 , unsigned int w2 , char op)
char compare::op
char compare::op#0 // 10167.833333333334
char *compare::ops
char *compare::ops#7 // 3333.6666666666665
char compare::r
char compare::r#10 // 10001.000000000002
char compare::r#12 // 10001.0
char compare::r#13 // 10001.0
char compare::r#14 // 10001.0
char compare::r#15 // 10001.0
char compare::r#16 // 10001.0
char compare::r#17 // 10001.0
unsigned int compare::w1
unsigned int compare::w1#0 // 2536.0000000000005
unsigned int compare::w2
unsigned int compare::w2#0 // 2290.5806451612902
void main()
char main::$8 // 22.0
char main::$9 // 202.0
char main::i
char main::i#1 // 16.5
char main::i#2 // 1.5714285714285716
char main::j
char main::j#1 // 151.5
char main::j#2 // 18.9375
char main::op
char main::op#1 // 1501.5
char main::op#2 // 273.0
char main::s
char main::s#1 // 1501.5
char main::s#10 // 302.0
char main::s#3 // 420.59999999999997
char main::s#5 // 71.0
char main::s#7 // 7.333333333333333
unsigned int main::w1
unsigned int main::w1#0 // 53.26315789473684
unsigned int main::w2
unsigned int main::w2#0 // 78.71428571428571
void * memset(void *str , char c , unsigned int num)
char memset::c
char *memset::dst
char *memset::dst#1 // 2002.0
char *memset::dst#2 // 1334.6666666666667
char *memset::end
unsigned int memset::num
void *memset::return
void *memset::str
void print_char(char ch)
char print_char::ch
char print_char::ch#0 // 2.000000002E9
char print_char::ch#1 // 2000002.0
char print_char::ch#2 // 2000002.0
char print_char::ch#3 // 20002.0
char print_char::ch#5 // 1.1002010005E10
char *print_char_cursor
char *print_char_cursor#10 // 3.0836475025000006E8
char *print_char_cursor#108 // 2002.0
char *print_char_cursor#37 // 1.05010100035E10
char *print_char_cursor#55 // 60001.5
char *print_char_cursor#56 // 400001.00000000006
char *print_char_cursor#58 // 370.1
char *print_char_cursor#64 // 71.0
char *print_char_cursor#65 // 445.0
char *print_char_cursor#74 // 7.333333333333333
void print_cls()
char *print_line_cursor
char *print_line_cursor#0 // 6.0000401E7
char *print_line_cursor#10 // 2.00010003E8
char *print_line_cursor#21 // 1344.888888888889
char *print_line_cursor#25 // 445.0
char *print_line_cursor#28 // 71.0
char *print_line_cursor#30 // 7.333333333333333
void print_ln()
char *print_screen
void print_str(char *str)
char *print_str::str
char *print_str::str#0 // 2.000000002E9
char *print_str::str#1 // 55001.0
char *print_str::str#2 // 1.00002500125E9
void print_uchar(char b)
char print_uchar::$0 // 2000002.0
char print_uchar::$2 // 2000002.0
char print_uchar::b
char print_uchar::b#0 // 200002.0
char print_uchar::b#1 // 200002.0
char print_uchar::b#2 // 550001.0
void print_uint(unsigned int w)
unsigned int print_uint::w
unsigned int print_uint::w#0 // 20002.0
unsigned int print_uint::w#1 // 20002.0
unsigned int print_uint::w#2 // 73334.66666666666

Initial phi equivalence classes
[ main::i#2 main::i#1 ]
[ main::j#2 main::j#1 ]
[ main::op#2 main::op#1 ]
[ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
[ compare::ops#7 ]
[ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
[ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ]
[ memset::dst#2 memset::dst#1 ]
[ print_uint::w#2 print_uint::w#1 print_uint::w#0 ]
[ print_str::str#2 print_str::str#1 print_str::str#0 ]
[ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ]
[ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ]
[ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
Added variable main::$8 to live range equivalence class [ main::$8 ]
Added variable main::w1#0 to live range equivalence class [ main::w1#0 ]
Added variable main::$9 to live range equivalence class [ main::$9 ]
Added variable main::w2#0 to live range equivalence class [ main::w2#0 ]
Added variable compare::w1#0 to live range equivalence class [ compare::w1#0 ]
Added variable compare::w2#0 to live range equivalence class [ compare::w2#0 ]
Added variable compare::op#0 to live range equivalence class [ compare::op#0 ]
Added variable print_uchar::$0 to live range equivalence class [ print_uchar::$0 ]
Added variable print_uchar::$2 to live range equivalence class [ print_uchar::$2 ]
Complete equivalence classes
[ main::i#2 main::i#1 ]
[ main::j#2 main::j#1 ]
[ main::op#2 main::op#1 ]
[ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
[ compare::ops#7 ]
[ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
[ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ]
[ memset::dst#2 memset::dst#1 ]
[ print_uint::w#2 print_uint::w#1 print_uint::w#0 ]
[ print_str::str#2 print_str::str#1 print_str::str#0 ]
[ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ]
[ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ]
[ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
[ main::$8 ]
[ main::w1#0 ]
[ main::$9 ]
[ main::w2#0 ]
[ compare::w1#0 ]
[ compare::w2#0 ]
[ compare::op#0 ]
[ print_uchar::$0 ]
[ print_uchar::$2 ]
Allocated zp[1]:2 [ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ]
Allocated zp[2]:3 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ]
Allocated zp[2]:5 [ print_str::str#2 print_str::str#1 print_str::str#0 ]
Allocated zp[2]:7 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ]
Allocated zp[1]:9 [ print_uchar::$0 ]
Allocated zp[1]:10 [ print_uchar::$2 ]
Allocated zp[1]:11 [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
Allocated zp[2]:12 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 ]
Allocated zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
Allocated zp[1]:15 [ compare::op#0 ]
Allocated zp[2]:16 [ memset::dst#2 memset::dst#1 ]
Allocated zp[2]:18 [ compare::ops#7 ]
Allocated zp[2]:20 [ compare::w1#0 ]
Allocated zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
Allocated zp[2]:23 [ compare::w2#0 ]
Allocated zp[1]:25 [ main::op#2 main::op#1 ]
Allocated zp[1]:26 [ main::$9 ]
Allocated zp[1]:27 [ main::j#2 main::j#1 ]
Allocated zp[2]:28 [ main::w2#0 ]
Allocated zp[2]:30 [ main::w1#0 ]
Allocated zp[1]:32 [ main::$8 ]
Allocated zp[1]:33 [ main::i#2 main::i#1 ]
REGISTER UPLIFT POTENTIAL REGISTERS
Statement [3] main::$8 = main::i#2 << 1 [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::$8 ] (  [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::$8 ] { }  ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:33 [ main::i#2 main::i#1 ]
Removing always clobbered register reg byte a as potential for zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
Statement [4] main::w1#0 = words[main::$8] [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::w1#0 ] (  [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::w1#0 ] { }  ) always clobbers reg byte a 
Statement [6] main::$9 = main::j#2 << 1 [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::$9 ] (  [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::$9 ] { }  ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:27 [ main::j#2 main::j#1 ]
Statement [7] main::w2#0 = words[main::$9] [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::w2#0 ] (  [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::w2#0 ] { }  ) always clobbers reg byte a 
Statement [9] compare::w1#0 = main::w1#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:25 [ main::op#2 main::op#1 ]
Statement [10] compare::w2#0 = main::w2#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 compare::w2#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [17] print_char_cursor#108 = print_line_cursor#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#108 print_line_cursor#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#108 print_line_cursor#0 ] { }  ) always clobbers reg byte a 
Statement [35] if(compare::w1#0==compare::w2#0) goto compare::@19 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [39] print_uint::w#0 = compare::w1#0 [ print_char_cursor#58 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } }  ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
Statement [41] print_str::str#1 = compare::ops#7 [ compare::w2#0 print_char_cursor#10 compare::r#10 print_str::str#1 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 print_char_cursor#10 compare::r#10 print_str::str#1 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } }  ) always clobbers reg byte a 
Statement [43] print_uint::w#1 = compare::w2#0 [ print_char_cursor#10 compare::r#10 print_uint::w#1 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#10 compare::r#10 print_uint::w#1 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 } }  ) always clobbers reg byte a 
Statement [50] if(compare::w1#0!=compare::w2#0) goto compare::@20 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [53] if(compare::w1#0<compare::w2#0) goto compare::@21 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [56] if(compare::w1#0<=compare::w2#0) goto compare::@22 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [59] if(compare::w1#0>compare::w2#0) goto compare::@23 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [62] if(compare::w1#0>=compare::w2#0) goto compare::@24 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [67] print_line_cursor#0 = print_line_cursor#10 + $28 [ print_line_cursor#0 print_char_cursor#10 ] ( print_ln:16 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_line_cursor#0 print_char_cursor#10 ] { }  ) always clobbers reg byte a 
Statement [68] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1 [ print_line_cursor#0 print_char_cursor#10 ] ( print_ln:16 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_line_cursor#0 print_char_cursor#10 ] { }  ) always clobbers reg byte a 
Statement [72] if(memset::dst#2!=memset::end#0) goto memset::@2 [ memset::dst#2 ] ( print_cls:1::memset:27 [ memset::dst#2 ] { }  ) always clobbers reg byte a 
Statement [74] *memset::dst#2 = memset::c#0 [ memset::dst#2 ] ( print_cls:1::memset:27 [ memset::dst#2 ] { }  ) always clobbers reg byte a reg byte y 
Statement [84] if(0!=*print_str::str#2) goto print_str::@2 [ print_char_cursor#10 print_str::str#2 ] ( compare:12::print_str:42 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_char_cursor#10 print_str::str#2 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } }  ) always clobbers reg byte a reg byte y 
Removing always clobbered register reg byte y as potential for zp[1]:33 [ main::i#2 main::i#1 ]
Removing always clobbered register reg byte y as potential for zp[1]:27 [ main::j#2 main::j#1 ]
Removing always clobbered register reg byte y as potential for zp[1]:25 [ main::op#2 main::op#1 ]
Removing always clobbered register reg byte y as potential for zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
Removing always clobbered register reg byte y as potential for zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
Statement [86] print_char::ch#0 = *print_str::str#2 [ print_char_cursor#10 print_str::str#2 print_char::ch#0 ] ( compare:12::print_str:42 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_char_cursor#10 print_str::str#2 print_char::ch#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } { print_char::ch#0 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  ) always clobbers reg byte a reg byte y 
Statement [90] *print_char_cursor#37 = print_char::ch#5 [ print_char_cursor#37 ] ( compare:12::print_char:46 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_char::ch#3 = print_char::ch#5 compare::r#10 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_char:48 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_str:42::print_char:87 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_str::str#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } { print_char::ch#0 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:40::print_uchar:78::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_uchar::b#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#37 = print_char_cursor#55 print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:78::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_uchar::b#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uchar::b#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uchar::b#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:78::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:44::print_uchar:78::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  ) always clobbers reg byte y 
Removing always clobbered register reg byte y as potential for zp[1]:11 [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
Statement [94] print_uchar::$0 = print_uchar::b#2 >> 4 [ print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] ( compare:12::print_uint:40::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#37 = print_char_cursor#55 print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:11 [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
Statement [97] print_uchar::$2 = print_uchar::b#2 & $f [ print_char_cursor#10 print_uchar::$2 ] ( compare:12::print_uint:40::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#10 print_uchar::$2 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:44::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#10 print_uchar::$2 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#10 print_uchar::$2 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#10 print_uchar::$2 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  ) always clobbers reg byte a 
Statement [3] main::$8 = main::i#2 << 1 [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::$8 ] (  [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::$8 ] { }  ) always clobbers reg byte a 
Statement [4] main::w1#0 = words[main::$8] [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::w1#0 ] (  [ main::i#2 print_char_cursor#74 main::s#7 print_line_cursor#30 main::w1#0 ] { }  ) always clobbers reg byte a 
Statement [6] main::$9 = main::j#2 << 1 [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::$9 ] (  [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::$9 ] { }  ) always clobbers reg byte a 
Statement [7] main::w2#0 = words[main::$9] [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::w2#0 ] (  [ main::i#2 main::w1#0 main::j#2 print_char_cursor#64 main::s#5 print_line_cursor#28 main::w2#0 ] { }  ) always clobbers reg byte a 
Statement [9] compare::w1#0 = main::w1#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [10] compare::w2#0 = main::w2#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 compare::w2#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#58 main::s#3 print_line_cursor#21 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [17] print_char_cursor#108 = print_line_cursor#0 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#108 print_line_cursor#0 ] (  [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_char_cursor#108 print_line_cursor#0 ] { }  ) always clobbers reg byte a 
Statement [35] if(compare::w1#0==compare::w2#0) goto compare::@19 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [39] print_uint::w#0 = compare::w1#0 [ print_char_cursor#58 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } }  ) always clobbers reg byte a 
Statement [41] print_str::str#1 = compare::ops#7 [ compare::w2#0 print_char_cursor#10 compare::r#10 print_str::str#1 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 print_char_cursor#10 compare::r#10 print_str::str#1 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } }  ) always clobbers reg byte a 
Statement [43] print_uint::w#1 = compare::w2#0 [ print_char_cursor#10 compare::r#10 print_uint::w#1 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#10 compare::r#10 print_uint::w#1 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 } }  ) always clobbers reg byte a 
Statement [50] if(compare::w1#0!=compare::w2#0) goto compare::@20 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [53] if(compare::w1#0<compare::w2#0) goto compare::@21 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [56] if(compare::w1#0<=compare::w2#0) goto compare::@22 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [59] if(compare::w1#0>compare::w2#0) goto compare::@23 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [62] if(compare::w1#0>=compare::w2#0) goto compare::@24 [ print_char_cursor#58 compare::w1#0 compare::w2#0 ] ( compare:12 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#58 compare::w1#0 compare::w2#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } }  ) always clobbers reg byte a 
Statement [67] print_line_cursor#0 = print_line_cursor#10 + $28 [ print_line_cursor#0 print_char_cursor#10 ] ( print_ln:16 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_line_cursor#0 print_char_cursor#10 ] { }  ) always clobbers reg byte a 
Statement [68] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1 [ print_line_cursor#0 print_char_cursor#10 ] ( print_ln:16 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 print_line_cursor#0 print_char_cursor#10 ] { }  ) always clobbers reg byte a 
Statement [72] if(memset::dst#2!=memset::end#0) goto memset::@2 [ memset::dst#2 ] ( print_cls:1::memset:27 [ memset::dst#2 ] { }  ) always clobbers reg byte a 
Statement [74] *memset::dst#2 = memset::c#0 [ memset::dst#2 ] ( print_cls:1::memset:27 [ memset::dst#2 ] { }  ) always clobbers reg byte a reg byte y 
Statement [84] if(0!=*print_str::str#2) goto print_str::@2 [ print_char_cursor#10 print_str::str#2 ] ( compare:12::print_str:42 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_char_cursor#10 print_str::str#2 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } }  ) always clobbers reg byte a reg byte y 
Statement [86] print_char::ch#0 = *print_str::str#2 [ print_char_cursor#10 print_str::str#2 print_char::ch#0 ] ( compare:12::print_str:42 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_char_cursor#10 print_str::str#2 print_char::ch#0 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } { print_char::ch#0 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  ) always clobbers reg byte a reg byte y 
Statement [90] *print_char_cursor#37 = print_char::ch#5 [ print_char_cursor#37 ] ( compare:12::print_char:46 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_char::ch#3 = print_char::ch#5 compare::r#10 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_char:48 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_str:42::print_char:87 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::r#10 print_str::str#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_str::str#1 = compare::ops#7 } { print_char::ch#0 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:40::print_uchar:78::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_uchar::b#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#37 = print_char_cursor#55 print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:78::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_uchar::b#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uchar::b#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80::print_char:96 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uchar::b#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:78::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:44::print_uchar:78::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#37 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80::print_char:99 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#37 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  ) always clobbers reg byte y 
Statement [94] print_uchar::$0 = print_uchar::b#2 >> 4 [ print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] ( compare:12::print_uint:40::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#37 = print_char_cursor#55 print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#1 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#56 print_uchar::b#2 print_uchar::$0 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#1 = print_char::ch#5 } }  ) always clobbers reg byte a 
Statement [97] print_uchar::$2 = print_uchar::b#2 & $f [ print_char_cursor#10 print_uchar::$2 ] ( compare:12::print_uint:40::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_uint::w#2 print_char_cursor#10 print_uchar::$2 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 print_char_cursor#56 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } { print_char_cursor#10 = print_char_cursor#37 } }  compare:12::print_uint:44::print_uchar:78 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_uint::w#2 print_char_cursor#10 print_uchar::$2 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#0 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:40::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::w2#0 compare::ops#7 compare::r#10 print_char_cursor#10 print_uchar::$2 ] { { compare::w2#0 = main::w2#0 } { compare::op#0 = main::op#2 } { print_uint::w#0 = print_uint::w#2 compare::w1#0 main::w1#0 } { print_char_cursor#55 = print_char_cursor#58 } { print_uchar::b#1 = print_uchar::b#2 } { print_char_cursor#10 = print_char_cursor#56 print_char_cursor#37 } { print_char::ch#2 = print_char::ch#5 } }  compare:12::print_uint:44::print_uchar:80 [ main::i#2 main::w1#0 main::j#2 main::w2#0 main::op#2 main::s#3 print_line_cursor#21 compare::r#10 print_char_cursor#10 print_uchar::$2 ] { { compare::w1#0 = main::w1#0 } { compare::op#0 = main::op#2 } { print_uint::w#1 = print_uint::w#2 compare::w2#0 main::w2#0 } { print_char_cursor#10 = print_char_cursor#55 print_char_cursor#56 print_char_cursor#37 } { print_uchar::b#1 = print_uchar::b#2 } { print_char::ch#2 = print_char::ch#5 } }  ) always clobbers reg byte a 
Potential registers zp[1]:33 [ main::i#2 main::i#1 ] : zp[1]:33 , reg byte x , 
Potential registers zp[1]:27 [ main::j#2 main::j#1 ] : zp[1]:27 , reg byte x , 
Potential registers zp[1]:25 [ main::op#2 main::op#1 ] : zp[1]:25 , reg byte x , 
Potential registers zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ] : zp[1]:22 , reg byte x , 
Potential registers zp[2]:18 [ compare::ops#7 ] : zp[2]:18 , 
Potential registers zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ] : zp[1]:14 , reg byte x , 
Potential registers zp[2]:7 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ] : zp[2]:7 , 
Potential registers zp[2]:16 [ memset::dst#2 memset::dst#1 ] : zp[2]:16 , 
Potential registers zp[2]:12 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 ] : zp[2]:12 , 
Potential registers zp[2]:5 [ print_str::str#2 print_str::str#1 print_str::str#0 ] : zp[2]:5 , 
Potential registers zp[1]:2 [ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ] : zp[1]:2 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[2]:3 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ] : zp[2]:3 , 
Potential registers zp[1]:11 [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ] : zp[1]:11 , reg byte x , 
Potential registers zp[1]:32 [ main::$8 ] : zp[1]:32 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[2]:30 [ main::w1#0 ] : zp[2]:30 , 
Potential registers zp[1]:26 [ main::$9 ] : zp[1]:26 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[2]:28 [ main::w2#0 ] : zp[2]:28 , 
Potential registers zp[2]:20 [ compare::w1#0 ] : zp[2]:20 , 
Potential registers zp[2]:23 [ compare::w2#0 ] : zp[2]:23 , 
Potential registers zp[1]:15 [ compare::op#0 ] : zp[1]:15 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[1]:9 [ print_uchar::$0 ] : zp[1]:9 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[1]:10 [ print_uchar::$2 ] : zp[1]:10 , reg byte a , reg byte x , reg byte y , 

REGISTER UPLIFT SCOPES
Uplift Scope [print_char] 13,006,030,013: zp[1]:2 [ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ] 
Uplift Scope [] 10,809,837,651.68: zp[2]:3 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ] 260,012,272.22: zp[2]:7 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ] 
Uplift Scope [print_str] 3,000,080,004.25: zp[2]:5 [ print_str::str#2 print_str::str#1 print_str::str#0 ] 
Uplift Scope [print_uchar] 2,000,002: zp[1]:9 [ print_uchar::$0 ] 2,000,002: zp[1]:10 [ print_uchar::$2 ] 950,005: zp[1]:11 [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ] 
Uplift Scope [print_uint] 113,338.67: zp[2]:12 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 ] 
Uplift Scope [compare] 70,007: zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ] 10,167.83: zp[1]:15 [ compare::op#0 ] 3,333.67: zp[2]:18 [ compare::ops#7 ] 2,536: zp[2]:20 [ compare::w1#0 ] 2,290.58: zp[2]:23 [ compare::w2#0 ] 
Uplift Scope [main] 2,302.43: zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ] 1,774.5: zp[1]:25 [ main::op#2 main::op#1 ] 202: zp[1]:26 [ main::$9 ] 170.44: zp[1]:27 [ main::j#2 main::j#1 ] 78.71: zp[2]:28 [ main::w2#0 ] 53.26: zp[2]:30 [ main::w1#0 ] 22: zp[1]:32 [ main::$8 ] 18.07: zp[1]:33 [ main::i#2 main::i#1 ] 
Uplift Scope [memset] 3,336.67: zp[2]:16 [ memset::dst#2 memset::dst#1 ] 
Uplift Scope [MOS6526_CIA] 
Uplift Scope [MOS6569_VICII] 
Uplift Scope [MOS6581_SID] 
Uplift Scope [print_ln] 
Uplift Scope [print_cls] 
Uplift Scope [RADIX] 

Uplifting [print_char] best 951272 combination reg byte a [ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ] 
Uplifting [] best 951272 combination zp[2]:3 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ] zp[2]:7 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ] 
Uplifting [print_str] best 951272 combination zp[2]:5 [ print_str::str#2 print_str::str#1 print_str::str#0 ] 
Uplifting [print_uchar] best 951254 combination reg byte a [ print_uchar::$0 ] reg byte x [ print_uchar::$2 ] reg byte x [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ] 
Uplifting [print_uint] best 951254 combination zp[2]:12 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 ] 
Uplifting [compare] best 948238 combination zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ] reg byte a [ compare::op#0 ] zp[2]:18 [ compare::ops#7 ] zp[2]:20 [ compare::w1#0 ] zp[2]:23 [ compare::w2#0 ] 
Uplifting [main] best 947798 combination zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ] zp[1]:25 [ main::op#2 main::op#1 ] reg byte a [ main::$9 ] zp[1]:27 [ main::j#2 main::j#1 ] zp[2]:28 [ main::w2#0 ] zp[2]:30 [ main::w1#0 ] reg byte a [ main::$8 ] zp[1]:33 [ main::i#2 main::i#1 ] 
Limited combination testing to 100 combinations of 256 possible.
Uplifting [memset] best 947798 combination zp[2]:16 [ memset::dst#2 memset::dst#1 ] 
Uplifting [MOS6526_CIA] best 947798 combination 
Uplifting [MOS6569_VICII] best 947798 combination 
Uplifting [MOS6581_SID] best 947798 combination 
Uplifting [print_ln] best 947798 combination 
Uplifting [print_cls] best 947798 combination 
Uplifting [RADIX] best 947798 combination 
Attempting to uplift remaining variables inzp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
Uplifting [compare] best 947798 combination zp[1]:14 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ] 
Attempting to uplift remaining variables inzp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
Uplifting [main] best 947798 combination zp[1]:22 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ] 
Attempting to uplift remaining variables inzp[1]:25 [ main::op#2 main::op#1 ]
Uplifting [main] best 947798 combination zp[1]:25 [ main::op#2 main::op#1 ] 
Attempting to uplift remaining variables inzp[1]:27 [ main::j#2 main::j#1 ]
Uplifting [main] best 947798 combination zp[1]:27 [ main::j#2 main::j#1 ] 
Attempting to uplift remaining variables inzp[1]:33 [ main::i#2 main::i#1 ]
Uplifting [main] best 947798 combination zp[1]:33 [ main::i#2 main::i#1 ] 
Coalescing zero page register [ zp[2]:18 [ compare::ops#7 ] ] with [ zp[2]:5 [ print_str::str#2 print_str::str#1 print_str::str#0 ] ] - score: 1
Coalescing zero page register [ zp[2]:12 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 ] ] with [ zp[2]:20 [ compare::w1#0 ] ] - score: 1
Coalescing zero page register [ zp[2]:28 [ main::w2#0 ] ] with [ zp[2]:23 [ compare::w2#0 ] ] - score: 1
Coalescing zero page register [ zp[2]:16 [ memset::dst#2 memset::dst#1 ] ] with [ zp[2]:18 [ compare::ops#7 print_str::str#2 print_str::str#1 print_str::str#0 ] ]
Allocated (was zp[2]:3) zp[2]:2 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ]
Allocated (was zp[2]:16) zp[2]:4 [ memset::dst#2 memset::dst#1 compare::ops#7 print_str::str#2 print_str::str#1 print_str::str#0 ]
Allocated (was zp[2]:7) zp[2]:6 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ]
Allocated (was zp[2]:12) zp[2]:8 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 compare::w1#0 ]
Allocated (was zp[1]:14) zp[1]:10 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
Allocated (was zp[2]:28) zp[2]:11 [ main::w2#0 compare::w2#0 ]
Allocated (was zp[1]:22) zp[1]:13 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
Allocated (was zp[1]:25) zp[1]:14 [ main::op#2 main::op#1 ]
Allocated (was zp[1]:27) zp[1]:15 [ main::j#2 main::j#1 ]
Allocated (was zp[2]:30) zp[2]:16 [ main::w1#0 ]
Allocated (was zp[1]:33) zp[1]:18 [ main::i#2 main::i#1 ]

ASSEMBLER BEFORE OPTIMIZATION
  // File Comments
/// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
  // Upstart
  // Commodore 64 PRG executable file
.file [name="test-comparisons-word.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
  // Global Constants & labels
  // empty circle
  .const FF = $57
  // filled circle
  .const TT = $51
  .label print_screen = $400
  .label print_line_cursor = 6
  .label print_char_cursor = 2
.segment Code
  // main
main: {
    .label w1 = $10
    .label w2 = $b
    .label s = $d
    .label op = $e
    .label j = $f
    .label i = $12
    // [1] call print_cls
    // [26] phi from main to print_cls [phi:main->print_cls]
  print_cls_from_main:
    jsr print_cls
    // [2] phi from main to main::@1 [phi:main->main::@1]
  __b1_from_main:
    // [2] phi print_line_cursor#30 = print_screen#0 [phi:main->main::@1#0] -- pbuz1=pbuc1 
    lda #<print_screen
    sta.z print_line_cursor
    lda #>print_screen
    sta.z print_line_cursor+1
    // [2] phi main::s#7 = 0 [phi:main->main::@1#1] -- vbuz1=vbuc1 
    lda #0
    sta.z s
    // [2] phi print_char_cursor#74 = print_screen#0 [phi:main->main::@1#2] -- pbuz1=pbuc1 
    lda #<print_screen
    sta.z print_char_cursor
    lda #>print_screen
    sta.z print_char_cursor+1
    // [2] phi main::i#2 = 0 [phi:main->main::@1#3] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    jmp __b1
    // [2] phi from main::@7 to main::@1 [phi:main::@7->main::@1]
  __b1_from___b7:
    // [2] phi print_line_cursor#30 = print_line_cursor#25 [phi:main::@7->main::@1#0] -- register_copy 
    // [2] phi main::s#7 = main::s#10 [phi:main::@7->main::@1#1] -- register_copy 
    // [2] phi print_char_cursor#74 = print_char_cursor#65 [phi:main::@7->main::@1#2] -- register_copy 
    // [2] phi main::i#2 = main::i#1 [phi:main::@7->main::@1#3] -- register_copy 
    jmp __b1
    // main::@1
  __b1:
    // [3] main::$8 = main::i#2 << 1 -- vbuaa=vbuz1_rol_1 
    lda.z i
    asl
    // [4] main::w1#0 = words[main::$8] -- vwuz1=pwuc1_derefidx_vbuaa 
    tay
    lda words,y
    sta.z w1
    lda words+1,y
    sta.z w1+1
    // [5] phi from main::@1 to main::@2 [phi:main::@1->main::@2]
  __b2_from___b1:
    // [5] phi print_line_cursor#28 = print_line_cursor#30 [phi:main::@1->main::@2#0] -- register_copy 
    // [5] phi main::s#5 = main::s#7 [phi:main::@1->main::@2#1] -- register_copy 
    // [5] phi print_char_cursor#64 = print_char_cursor#74 [phi:main::@1->main::@2#2] -- register_copy 
    // [5] phi main::j#2 = 0 [phi:main::@1->main::@2#3] -- vbuz1=vbuc1 
    lda #0
    sta.z j
    jmp __b2
    // [5] phi from main::@6 to main::@2 [phi:main::@6->main::@2]
  __b2_from___b6:
    // [5] phi print_line_cursor#28 = print_line_cursor#25 [phi:main::@6->main::@2#0] -- register_copy 
    // [5] phi main::s#5 = main::s#10 [phi:main::@6->main::@2#1] -- register_copy 
    // [5] phi print_char_cursor#64 = print_char_cursor#65 [phi:main::@6->main::@2#2] -- register_copy 
    // [5] phi main::j#2 = main::j#1 [phi:main::@6->main::@2#3] -- register_copy 
    jmp __b2
    // main::@2
  __b2:
    // [6] main::$9 = main::j#2 << 1 -- vbuaa=vbuz1_rol_1 
    lda.z j
    asl
    // [7] main::w2#0 = words[main::$9] -- vwuz1=pwuc1_derefidx_vbuaa 
    tay
    lda words,y
    sta.z w2
    lda words+1,y
    sta.z w2+1
    // [8] phi from main::@2 to main::@3 [phi:main::@2->main::@3]
  __b3_from___b2:
    // [8] phi print_line_cursor#21 = print_line_cursor#28 [phi:main::@2->main::@3#0] -- register_copy 
    // [8] phi main::s#3 = main::s#5 [phi:main::@2->main::@3#1] -- register_copy 
    // [8] phi print_char_cursor#58 = print_char_cursor#64 [phi:main::@2->main::@3#2] -- register_copy 
    // [8] phi main::op#2 = 0 [phi:main::@2->main::@3#3] -- vbuz1=vbuc1 
    lda #0
    sta.z op
    jmp __b3
    // [8] phi from main::@4 to main::@3 [phi:main::@4->main::@3]
  __b3_from___b4:
    // [8] phi print_line_cursor#21 = print_line_cursor#25 [phi:main::@4->main::@3#0] -- register_copy 
    // [8] phi main::s#3 = main::s#10 [phi:main::@4->main::@3#1] -- register_copy 
    // [8] phi print_char_cursor#58 = print_char_cursor#65 [phi:main::@4->main::@3#2] -- register_copy 
    // [8] phi main::op#2 = main::op#1 [phi:main::@4->main::@3#3] -- register_copy 
    jmp __b3
    // main::@3
  __b3:
    // [9] compare::w1#0 = main::w1#0 -- vwuz1=vwuz2 
    lda.z w1
    sta.z compare.w1
    lda.z w1+1
    sta.z compare.w1+1
    // [10] compare::w2#0 = main::w2#0
    // [11] compare::op#0 = main::op#2 -- vbuaa=vbuz1 
    lda.z op
    // [12] call compare
    jsr compare
    jmp __b9
    // main::@9
  __b9:
    // [13] main::s#1 = ++ main::s#3 -- vbuz1=_inc_vbuz1 
    inc.z s
    // [14] if(main::s#1!=3) goto main::@4 -- vbuz1_neq_vbuc1_then_la1 
    lda #3
    cmp.z s
    bne __b4_from___b9
    // [15] phi from main::@9 to main::@5 [phi:main::@9->main::@5]
  __b5_from___b9:
    jmp __b5
    // main::@5
  __b5:
    // [16] call print_ln
    // [65] phi from main::@5 to print_ln [phi:main::@5->print_ln]
  print_ln_from___b5:
    jsr print_ln
    jmp __b10
    // main::@10
  __b10:
    // [17] print_char_cursor#108 = print_line_cursor#0 -- pbuz1=pbuz2 
    lda.z print_line_cursor
    sta.z print_char_cursor
    lda.z print_line_cursor+1
    sta.z print_char_cursor+1
    // [18] phi from main::@10 to main::@4 [phi:main::@10->main::@4]
  __b4_from___b10:
    // [18] phi print_line_cursor#25 = print_line_cursor#0 [phi:main::@10->main::@4#0] -- register_copy 
    // [18] phi main::s#10 = 0 [phi:main::@10->main::@4#1] -- vbuz1=vbuc1 
    lda #0
    sta.z s
    // [18] phi print_char_cursor#65 = print_char_cursor#108 [phi:main::@10->main::@4#2] -- register_copy 
    jmp __b4
    // [18] phi from main::@9 to main::@4 [phi:main::@9->main::@4]
  __b4_from___b9:
    // [18] phi print_line_cursor#25 = print_line_cursor#21 [phi:main::@9->main::@4#0] -- register_copy 
    // [18] phi main::s#10 = main::s#1 [phi:main::@9->main::@4#1] -- register_copy 
    // [18] phi print_char_cursor#65 = print_char_cursor#10 [phi:main::@9->main::@4#2] -- register_copy 
    jmp __b4
    // main::@4
  __b4:
    // [19] main::op#1 = ++ main::op#2 -- vbuz1=_inc_vbuz1 
    inc.z op
    // [20] if(main::op#1!=6) goto main::@3 -- vbuz1_neq_vbuc1_then_la1 
    lda #6
    cmp.z op
    bne __b3_from___b4
    jmp __b6
    // main::@6
  __b6:
    // [21] main::j#1 = ++ main::j#2 -- vbuz1=_inc_vbuz1 
    inc.z j
    // [22] if(main::j#1!=3) goto main::@2 -- vbuz1_neq_vbuc1_then_la1 
    lda #3
    cmp.z j
    bne __b2_from___b6
    jmp __b7
    // main::@7
  __b7:
    // [23] main::i#1 = ++ main::i#2 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [24] if(main::i#1!=3) goto main::@1 -- vbuz1_neq_vbuc1_then_la1 
    lda #3
    cmp.z i
    bne __b1_from___b7
    // [25] phi from main::@7 main::@8 to main::@8 [phi:main::@7/main::@8->main::@8]
  __b8_from___b7:
  __b8_from___b8:
    jmp __b8
  // loop forever
    // main::@8
  __b8:
    jmp __b8_from___b8
}
  // print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    // [27] call memset
    // [70] phi from print_cls to memset [phi:print_cls->memset]
  memset_from_print_cls:
    jsr memset
    jmp __breturn
    // print_cls::@return
  __breturn:
    // [28] return 
    rts
}
  // compare
// Compare two words using an operator
// void compare(__zp(8) unsigned int w1, __zp($b) unsigned int w2, __register(A) char op)
compare: {
    .label w1 = 8
    .label w2 = $b
    .label ops = 4
    .label r = $a
    // [29] if(compare::op#0==0) goto compare::@1 -- vbuaa_eq_0_then_la1 
    cmp #0
    beq __b1
    jmp __b7
    // compare::@7
  __b7:
    // [30] if(compare::op#0==1) goto compare::@2 -- vbuaa_eq_vbuc1_then_la1 
    cmp #1
    beq __b2
    jmp __b8
    // compare::@8
  __b8:
    // [31] if(compare::op#0==2) goto compare::@3 -- vbuaa_eq_vbuc1_then_la1 
    cmp #2
    beq __b3
    jmp __b9
    // compare::@9
  __b9:
    // [32] if(compare::op#0==3) goto compare::@4 -- vbuaa_eq_vbuc1_then_la1 
    cmp #3
    beq __b4
    jmp __b10
    // compare::@10
  __b10:
    // [33] if(compare::op#0==4) goto compare::@5 -- vbuaa_eq_vbuc1_then_la1 
    cmp #4
    beq __b5
    jmp __b11
    // compare::@11
  __b11:
    // [34] if(compare::op#0!=5) goto compare::@6 -- vbuaa_neq_vbuc1_then_la1 
    cmp #5
    bne __b6_from___b11
    jmp __b12
    // compare::@12
  __b12:
    // [35] if(compare::w1#0==compare::w2#0) goto compare::@19 -- vwuz1_eq_vwuz2_then_la1 
    lda.z w1
    cmp.z w2
    bne !+
    lda.z w1+1
    cmp.z w2+1
    beq __b19_from___b12
  !:
    // [36] phi from compare::@12 to compare::@13 [phi:compare::@12->compare::@13]
  __b13_from___b12:
    jmp __b13
    // compare::@13
  __b13:
    // [37] phi from compare::@13 to compare::@19 [phi:compare::@13->compare::@19]
  __b19_from___b13:
    // [37] phi compare::r#12 = TT [phi:compare::@13->compare::@19#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b19
    // [37] phi from compare::@12 to compare::@19 [phi:compare::@12->compare::@19]
  __b19_from___b12:
    // [37] phi compare::r#12 = FF [phi:compare::@12->compare::@19#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b19
    // compare::@19
  __b19:
    // [38] phi from compare::@19 to compare::@6 [phi:compare::@19->compare::@6]
  __b6_from___b19:
    // [38] phi compare::r#10 = compare::r#12 [phi:compare::@19->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#1 [phi:compare::@19->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_1
    sta.z ops
    lda #>ops_1
    sta.z ops+1
    jmp __b6
    // [38] phi from compare::@11 to compare::@6 [phi:compare::@11->compare::@6]
  __b6_from___b11:
    // [38] phi compare::r#10 = FF [phi:compare::@11->compare::@6#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // [38] phi compare::ops#7 = (char *) 0 [phi:compare::@11->compare::@6#1] -- pbuz1=pbuc1 
    lda #<0
    sta.z ops
    lda #>0
    sta.z ops+1
    jmp __b6
    // compare::@6
  __b6:
    // [39] print_uint::w#0 = compare::w1#0
    // [40] call print_uint
    // [76] phi from compare::@6 to print_uint [phi:compare::@6->print_uint]
  print_uint_from___b6:
    // [76] phi print_char_cursor#55 = print_char_cursor#58 [phi:compare::@6->print_uint#0] -- register_copy 
    // [76] phi print_uint::w#2 = print_uint::w#0 [phi:compare::@6->print_uint#1] -- register_copy 
    jsr print_uint
    jmp __b25
    // compare::@25
  __b25:
    // [41] print_str::str#1 = compare::ops#7
    // [42] call print_str
    // [82] phi from compare::@25 to print_str [phi:compare::@25->print_str]
  print_str_from___b25:
    jsr print_str
    jmp __b26
    // compare::@26
  __b26:
    // [43] print_uint::w#1 = compare::w2#0 -- vwuz1=vwuz2 
    lda.z w2
    sta.z print_uint.w
    lda.z w2+1
    sta.z print_uint.w+1
    // [44] call print_uint
    // [76] phi from compare::@26 to print_uint [phi:compare::@26->print_uint]
  print_uint_from___b26:
    // [76] phi print_char_cursor#55 = print_char_cursor#10 [phi:compare::@26->print_uint#0] -- register_copy 
    // [76] phi print_uint::w#2 = print_uint::w#1 [phi:compare::@26->print_uint#1] -- register_copy 
    jsr print_uint
    jmp __b27
    // compare::@27
  __b27:
    // [45] print_char::ch#3 = compare::r#10 -- vbuaa=vbuz1 
    lda.z r
    // [46] call print_char
    // [89] phi from compare::@27 to print_char [phi:compare::@27->print_char]
  print_char_from___b27:
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:compare::@27->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#3 [phi:compare::@27->print_char#1] -- register_copy 
    jsr print_char
    // [47] phi from compare::@27 to compare::@28 [phi:compare::@27->compare::@28]
  __b28_from___b27:
    jmp __b28
    // compare::@28
  __b28:
    // [48] call print_char
    // [89] phi from compare::@28 to print_char [phi:compare::@28->print_char]
  print_char_from___b28:
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:compare::@28->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = ' ' [phi:compare::@28->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    jmp __breturn
    // compare::@return
  __breturn:
    // [49] return 
    rts
    // compare::@5
  __b5:
    // [50] if(compare::w1#0!=compare::w2#0) goto compare::@20 -- vwuz1_neq_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bne __b20_from___b5
    lda.z w1
    cmp.z w2
    bne __b20_from___b5
    // [51] phi from compare::@5 to compare::@14 [phi:compare::@5->compare::@14]
  __b14_from___b5:
    jmp __b14
    // compare::@14
  __b14:
    // [52] phi from compare::@14 to compare::@20 [phi:compare::@14->compare::@20]
  __b20_from___b14:
    // [52] phi compare::r#13 = TT [phi:compare::@14->compare::@20#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b20
    // [52] phi from compare::@5 to compare::@20 [phi:compare::@5->compare::@20]
  __b20_from___b5:
    // [52] phi compare::r#13 = FF [phi:compare::@5->compare::@20#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b20
    // compare::@20
  __b20:
    // [38] phi from compare::@20 to compare::@6 [phi:compare::@20->compare::@6]
  __b6_from___b20:
    // [38] phi compare::r#10 = compare::r#13 [phi:compare::@20->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#2 [phi:compare::@20->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_2
    sta.z ops
    lda #>ops_2
    sta.z ops+1
    jmp __b6
    // compare::@4
  __b4:
    // [53] if(compare::w1#0<compare::w2#0) goto compare::@21 -- vwuz1_lt_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bcc __b21_from___b4
    bne !+
    lda.z w1
    cmp.z w2
    bcc __b21_from___b4
  !:
    // [54] phi from compare::@4 to compare::@15 [phi:compare::@4->compare::@15]
  __b15_from___b4:
    jmp __b15
    // compare::@15
  __b15:
    // [55] phi from compare::@15 to compare::@21 [phi:compare::@15->compare::@21]
  __b21_from___b15:
    // [55] phi compare::r#14 = TT [phi:compare::@15->compare::@21#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b21
    // [55] phi from compare::@4 to compare::@21 [phi:compare::@4->compare::@21]
  __b21_from___b4:
    // [55] phi compare::r#14 = FF [phi:compare::@4->compare::@21#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b21
    // compare::@21
  __b21:
    // [38] phi from compare::@21 to compare::@6 [phi:compare::@21->compare::@6]
  __b6_from___b21:
    // [38] phi compare::r#10 = compare::r#14 [phi:compare::@21->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#3 [phi:compare::@21->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_3
    sta.z ops
    lda #>ops_3
    sta.z ops+1
    jmp __b6
    // compare::@3
  __b3:
    // [56] if(compare::w1#0<=compare::w2#0) goto compare::@22 -- vwuz1_le_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bne !+
    lda.z w1
    cmp.z w2
    beq __b22_from___b3
  !:
    bcc __b22_from___b3
    // [57] phi from compare::@3 to compare::@16 [phi:compare::@3->compare::@16]
  __b16_from___b3:
    jmp __b16
    // compare::@16
  __b16:
    // [58] phi from compare::@16 to compare::@22 [phi:compare::@16->compare::@22]
  __b22_from___b16:
    // [58] phi compare::r#15 = TT [phi:compare::@16->compare::@22#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b22
    // [58] phi from compare::@3 to compare::@22 [phi:compare::@3->compare::@22]
  __b22_from___b3:
    // [58] phi compare::r#15 = FF [phi:compare::@3->compare::@22#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b22
    // compare::@22
  __b22:
    // [38] phi from compare::@22 to compare::@6 [phi:compare::@22->compare::@6]
  __b6_from___b22:
    // [38] phi compare::r#10 = compare::r#15 [phi:compare::@22->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#4 [phi:compare::@22->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_4
    sta.z ops
    lda #>ops_4
    sta.z ops+1
    jmp __b6
    // compare::@2
  __b2:
    // [59] if(compare::w1#0>compare::w2#0) goto compare::@23 -- vwuz1_gt_vwuz2_then_la1 
    lda.z w2+1
    cmp.z w1+1
    bcc __b23_from___b2
    bne !+
    lda.z w2
    cmp.z w1
    bcc __b23_from___b2
  !:
    // [60] phi from compare::@2 to compare::@17 [phi:compare::@2->compare::@17]
  __b17_from___b2:
    jmp __b17
    // compare::@17
  __b17:
    // [61] phi from compare::@17 to compare::@23 [phi:compare::@17->compare::@23]
  __b23_from___b17:
    // [61] phi compare::r#16 = TT [phi:compare::@17->compare::@23#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b23
    // [61] phi from compare::@2 to compare::@23 [phi:compare::@2->compare::@23]
  __b23_from___b2:
    // [61] phi compare::r#16 = FF [phi:compare::@2->compare::@23#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b23
    // compare::@23
  __b23:
    // [38] phi from compare::@23 to compare::@6 [phi:compare::@23->compare::@6]
  __b6_from___b23:
    // [38] phi compare::r#10 = compare::r#16 [phi:compare::@23->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#5 [phi:compare::@23->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_5
    sta.z ops
    lda #>ops_5
    sta.z ops+1
    jmp __b6
    // compare::@1
  __b1:
    // [62] if(compare::w1#0>=compare::w2#0) goto compare::@24 -- vwuz1_ge_vwuz2_then_la1 
    lda.z w2+1
    cmp.z w1+1
    bne !+
    lda.z w2
    cmp.z w1
    beq __b24_from___b1
  !:
    bcc __b24_from___b1
    // [63] phi from compare::@1 to compare::@18 [phi:compare::@1->compare::@18]
  __b18_from___b1:
    jmp __b18
    // compare::@18
  __b18:
    // [64] phi from compare::@18 to compare::@24 [phi:compare::@18->compare::@24]
  __b24_from___b18:
    // [64] phi compare::r#17 = TT [phi:compare::@18->compare::@24#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b24
    // [64] phi from compare::@1 to compare::@24 [phi:compare::@1->compare::@24]
  __b24_from___b1:
    // [64] phi compare::r#17 = FF [phi:compare::@1->compare::@24#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    jmp __b24
    // compare::@24
  __b24:
    // [38] phi from compare::@24 to compare::@6 [phi:compare::@24->compare::@6]
  __b6_from___b24:
    // [38] phi compare::r#10 = compare::r#17 [phi:compare::@24->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#6 [phi:compare::@24->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_6
    sta.z ops
    lda #>ops_6
    sta.z ops+1
    jmp __b6
  .segment Data
    ops_1: .text "!="
    .byte 0
    ops_2: .text "=="
    .byte 0
    ops_3: .text ">="
    .byte 0
    ops_4: .text "> "
    .byte 0
    ops_5: .text "<="
    .byte 0
    ops_6: .text "< "
    .byte 0
}
.segment Code
  // print_ln
// Print a newline
print_ln: {
    // [66] 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:
    // [66] phi print_line_cursor#10 = print_line_cursor#21 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    jmp __b1
    // print_ln::@1
  __b1:
    // [67] print_line_cursor#0 = print_line_cursor#10 + $28 -- pbuz1=pbuz1_plus_vbuc1 
    lda #$28
    clc
    adc.z print_line_cursor
    sta.z print_line_cursor
    bcc !+
    inc.z print_line_cursor+1
  !:
    // [68] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1 -- pbuz1_lt_pbuz2_then_la1 
    lda.z print_line_cursor+1
    cmp.z print_char_cursor+1
    bcc __b1_from___b1
    bne !+
    lda.z print_line_cursor
    cmp.z print_char_cursor
    bcc __b1_from___b1
  !:
    jmp __breturn
    // print_ln::@return
  __breturn:
    // [69] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// void * memset(void *str, char c, unsigned int num)
memset: {
    .const c = ' '
    .const num = $3e8
    .label str = print_screen
    .label end = str+num
    .label dst = 4
    // [71] phi from memset to memset::@1 [phi:memset->memset::@1]
  __b1_from_memset:
    // [71] phi memset::dst#2 = (char *)memset::str#0 [phi:memset->memset::@1#0] -- pbuz1=pbuc1 
    lda #<str
    sta.z dst
    lda #>str
    sta.z dst+1
    jmp __b1
    // memset::@1
  __b1:
    // [72] if(memset::dst#2!=memset::end#0) goto memset::@2 -- pbuz1_neq_pbuc1_then_la1 
    lda.z dst+1
    cmp #>end
    bne __b2
    lda.z dst
    cmp #<end
    bne __b2
    jmp __breturn
    // memset::@return
  __breturn:
    // [73] return 
    rts
    // memset::@2
  __b2:
    // [74] *memset::dst#2 = memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // [75] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    // [71] phi from memset::@2 to memset::@1 [phi:memset::@2->memset::@1]
  __b1_from___b2:
    // [71] phi memset::dst#2 = memset::dst#1 [phi:memset::@2->memset::@1#0] -- register_copy 
    jmp __b1
}
  // print_uint
// Print a unsigned int as HEX
// void print_uint(__zp(8) unsigned int w)
print_uint: {
    .label w = 8
    // [77] print_uchar::b#0 = byte1  print_uint::w#2 -- vbuxx=_byte1_vwuz1 
    ldx.z w+1
    // [78] call print_uchar
    // [93] phi from print_uint to print_uchar [phi:print_uint->print_uchar]
  print_uchar_from_print_uint:
    // [93] phi print_char_cursor#56 = print_char_cursor#55 [phi:print_uint->print_uchar#0] -- register_copy 
    // [93] phi print_uchar::b#2 = print_uchar::b#0 [phi:print_uint->print_uchar#1] -- register_copy 
    jsr print_uchar
    jmp __b1
    // print_uint::@1
  __b1:
    // [79] print_uchar::b#1 = byte0  print_uint::w#2 -- vbuxx=_byte0_vwuz1 
    ldx.z w
    // [80] call print_uchar
    // [93] phi from print_uint::@1 to print_uchar [phi:print_uint::@1->print_uchar]
  print_uchar_from___b1:
    // [93] phi print_char_cursor#56 = print_char_cursor#10 [phi:print_uint::@1->print_uchar#0] -- register_copy 
    // [93] phi print_uchar::b#2 = print_uchar::b#1 [phi:print_uint::@1->print_uchar#1] -- register_copy 
    jsr print_uchar
    jmp __breturn
    // print_uint::@return
  __breturn:
    // [81] return 
    rts
}
  // print_str
// Print a zero-terminated string
// void print_str(__zp(4) char *str)
print_str: {
    .label str = 4
    // [83] phi from print_str print_str::@3 to print_str::@1 [phi:print_str/print_str::@3->print_str::@1]
  __b1_from_print_str:
  __b1_from___b3:
    // [83] phi print_str::str#2 = print_str::str#1 [phi:print_str/print_str::@3->print_str::@1#0] -- register_copy 
    jmp __b1
    // print_str::@1
  __b1:
    // [84] if(0!=*print_str::str#2) goto print_str::@2 -- 0_neq__deref_pbuz1_then_la1 
    ldy #0
    lda (str),y
    cmp #0
    bne __b2
    jmp __breturn
    // print_str::@return
  __breturn:
    // [85] return 
    rts
    // print_str::@2
  __b2:
    // [86] print_char::ch#0 = *print_str::str#2 -- vbuaa=_deref_pbuz1 
    ldy #0
    lda (str),y
    // [87] call print_char
    // [89] phi from print_str::@2 to print_char [phi:print_str::@2->print_char]
  print_char_from___b2:
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:print_str::@2->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#0 [phi:print_str::@2->print_char#1] -- register_copy 
    jsr print_char
    jmp __b3
    // print_str::@3
  __b3:
    // [88] print_str::str#0 = ++ print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc.z str
    bne !+
    inc.z str+1
  !:
    jmp __b1_from___b3
}
  // print_char
// Print a single char
// void print_char(__register(A) char ch)
print_char: {
    // [90] *print_char_cursor#37 = print_char::ch#5 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
    // [91] print_char_cursor#10 = ++ print_char_cursor#37 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    jmp __breturn
    // print_char::@return
  __breturn:
    // [92] return 
    rts
}
  // print_uchar
// Print a char as HEX
// void print_uchar(__register(X) char b)
print_uchar: {
    // [94] print_uchar::$0 = print_uchar::b#2 >> 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
    // [95] print_char::ch#1 = print_hextab[print_uchar::$0] -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
    // [96] call print_char
  // Table of hexadecimal digits
    // [89] phi from print_uchar to print_char [phi:print_uchar->print_char]
  print_char_from_print_uchar:
    // [89] phi print_char_cursor#37 = print_char_cursor#56 [phi:print_uchar->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#1 [phi:print_uchar->print_char#1] -- register_copy 
    jsr print_char
    jmp __b1
    // print_uchar::@1
  __b1:
    // [97] print_uchar::$2 = print_uchar::b#2 & $f -- vbuxx=vbuxx_band_vbuc1 
    lda #$f
    axs #0
    // [98] print_char::ch#2 = print_hextab[print_uchar::$2] -- vbuaa=pbuc1_derefidx_vbuxx 
    lda print_hextab,x
    // [99] call print_char
    // [89] phi from print_uchar::@1 to print_char [phi:print_uchar::@1->print_char]
  print_char_from___b1:
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:print_uchar::@1->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#2 [phi:print_uchar::@1->print_char#1] -- register_copy 
    jsr print_char
    jmp __breturn
    // print_uchar::@return
  __breturn:
    // [100] return 
    rts
}
  // File Data
.segment Data
  print_hextab: .text "0123456789abcdef"
  words: .word $12, $3f34, $cfed

ASSEMBLER OPTIMIZATIONS
Removing instruction jmp __b1
Removing instruction jmp __b2
Removing instruction jmp __b3
Removing instruction jmp __b9
Removing instruction jmp __b5
Removing instruction jmp __b10
Removing instruction jmp __b4
Removing instruction jmp __b6
Removing instruction jmp __b7
Removing instruction jmp __b8
Removing instruction jmp __breturn
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 __b19
Removing instruction jmp __b6
Removing instruction jmp __b25
Removing instruction jmp __b26
Removing instruction jmp __b27
Removing instruction jmp __b28
Removing instruction jmp __breturn
Removing instruction jmp __b14
Removing instruction jmp __b20
Removing instruction jmp __b15
Removing instruction jmp __b21
Removing instruction jmp __b16
Removing instruction jmp __b22
Removing instruction jmp __b17
Removing instruction jmp __b23
Removing instruction jmp __b18
Removing instruction jmp __b24
Removing instruction jmp __b1
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
Removing instruction jmp __b3
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp __breturn
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction lda #>0
Succesful ASM optimization Pass5UnnecesaryLoadElimination
Replacing label __b4_from___b9 with __b4
Replacing label __b3_from___b4 with __b3
Replacing label __b2_from___b6 with __b2
Replacing label __b1_from___b7 with __b1
Replacing label __b1_from___b1 with __b1
Replacing label __b1_from___b1 with __b1
Replacing label __b1_from___b3 with __b1
Removing instruction __b1_from___b7:
Removing instruction __b2_from___b6:
Removing instruction __b3_from___b4:
Removing instruction __b5_from___b9:
Removing instruction print_ln_from___b5:
Removing instruction __b4_from___b9:
Removing instruction __b8_from___b7:
Removing instruction __b13_from___b12:
Removing instruction __b19_from___b13:
Removing instruction __b6_from___b19:
Removing instruction print_uint_from___b6:
Removing instruction print_str_from___b25:
Removing instruction __b28_from___b27:
Removing instruction print_char_from___b28:
Removing instruction __b14_from___b5:
Removing instruction __b20_from___b14:
Removing instruction __b6_from___b20:
Removing instruction __b15_from___b4:
Removing instruction __b21_from___b15:
Removing instruction __b6_from___b21:
Removing instruction __b16_from___b3:
Removing instruction __b22_from___b16:
Removing instruction __b6_from___b22:
Removing instruction __b17_from___b2:
Removing instruction __b23_from___b17:
Removing instruction __b6_from___b23:
Removing instruction __b18_from___b1:
Removing instruction __b24_from___b18:
Removing instruction __b6_from___b24:
Removing instruction __b1_from_print_ln:
Removing instruction __b1_from___b1:
Removing instruction __b1_from_print_str:
Removing instruction __b1_from___b3:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction print_cls_from_main:
Removing instruction __b1_from_main:
Removing instruction __b2_from___b1:
Removing instruction __b3_from___b2:
Removing instruction __b9:
Removing instruction __b5:
Removing instruction __b10:
Removing instruction __b4_from___b10:
Removing instruction __b6:
Removing instruction __b7:
Removing instruction __b8:
Removing instruction memset_from_print_cls:
Removing instruction __breturn:
Removing instruction __b7:
Removing instruction __b8:
Removing instruction __b9:
Removing instruction __b10:
Removing instruction __b11:
Removing instruction __b12:
Removing instruction __b13:
Removing instruction __b25:
Removing instruction __b26:
Removing instruction print_uint_from___b26:
Removing instruction __b27:
Removing instruction print_char_from___b27:
Removing instruction __b28:
Removing instruction __breturn:
Removing instruction __b14:
Removing instruction __b15:
Removing instruction __b16:
Removing instruction __b17:
Removing instruction __b18:
Removing instruction __breturn:
Removing instruction __b1_from_memset:
Removing instruction __breturn:
Removing instruction __b1_from___b2:
Removing instruction print_uchar_from_print_uint:
Removing instruction __b1:
Removing instruction print_uchar_from___b1:
Removing instruction __breturn:
Removing instruction __breturn:
Removing instruction print_char_from___b2:
Removing instruction __b3:
Removing instruction __breturn:
Removing instruction print_char_from_print_uchar:
Removing instruction __b1:
Removing instruction print_char_from___b1:
Removing instruction __breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Relabelling long label __b8_from___b8 to __b5
Relabelling long label __b19_from___b12 to __b7
Relabelling long label __b6_from___b11 to __b8
Relabelling long label __b20_from___b5 to __b9
Relabelling long label __b21_from___b4 to __b10
Relabelling long label __b22_from___b3 to __b11
Relabelling long label __b23_from___b2 to __b12
Relabelling long label __b24_from___b1 to __b13
Succesful ASM optimization Pass5RelabelLongLabels
Removing instruction jmp __b1
Removing instruction jmp __b2
Removing instruction jmp __b3
Removing instruction jmp __b4
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction lda #3
Succesful ASM optimization Pass5UnnecesaryLoadElimination
Fixing long branch [109] beq __b1 to bne
Fixing long branch [113] beq __b2 to bne
Fixing long branch [117] beq __b3 to bne

FINAL SYMBOL TABLE
__constant const char FF = $57
__constant char RADIX::BINARY = 2
__constant char RADIX::DECIMAL = $a
__constant char RADIX::HEXADECIMAL = $10
__constant char RADIX::OCTAL = 8
__constant const char TT = $51
void compare(unsigned int w1 , unsigned int w2 , char op)
char compare::op
char compare::op#0 // reg byte a 10167.833333333334
char *compare::ops
__constant char *compare::ops#1 = "!=" // ops_1
__constant char *compare::ops#2 = "==" // ops_2
__constant char *compare::ops#3 = ">=" // ops_3
__constant char *compare::ops#4 = "> " // ops_4
__constant char *compare::ops#5 = "<=" // ops_5
__constant char *compare::ops#6 = "< " // ops_6
char *compare::ops#7 // ops zp[2]:4 3333.6666666666665
char compare::r
char compare::r#10 // r zp[1]:10 10001.000000000002
char compare::r#12 // r zp[1]:10 10001.0
char compare::r#13 // r zp[1]:10 10001.0
char compare::r#14 // r zp[1]:10 10001.0
char compare::r#15 // r zp[1]:10 10001.0
char compare::r#16 // r zp[1]:10 10001.0
char compare::r#17 // r zp[1]:10 10001.0
unsigned int compare::w1
unsigned int compare::w1#0 // w1 zp[2]:8 2536.0000000000005
unsigned int compare::w2
unsigned int compare::w2#0 // w2 zp[2]:11 2290.5806451612902
void main()
char main::$8 // reg byte a 22.0
char main::$9 // reg byte a 202.0
char main::i
char main::i#1 // i zp[1]:18 16.5
char main::i#2 // i zp[1]:18 1.5714285714285716
char main::j
char main::j#1 // j zp[1]:15 151.5
char main::j#2 // j zp[1]:15 18.9375
char main::op
char main::op#1 // op zp[1]:14 1501.5
char main::op#2 // op zp[1]:14 273.0
char main::s
char main::s#1 // s zp[1]:13 1501.5
char main::s#10 // s zp[1]:13 302.0
char main::s#3 // s zp[1]:13 420.59999999999997
char main::s#5 // s zp[1]:13 71.0
char main::s#7 // s zp[1]:13 7.333333333333333
unsigned int main::w1
unsigned int main::w1#0 // w1 zp[2]:16 53.26315789473684
unsigned int main::w2
unsigned int main::w2#0 // w2 zp[2]:11 78.71428571428571
void * memset(void *str , char c , unsigned int num)
char memset::c
__constant char memset::c#0 = ' ' // c
char *memset::dst
char *memset::dst#1 // dst zp[2]:4 2002.0
char *memset::dst#2 // dst zp[2]:4 1334.6666666666667
char *memset::end
__constant char *memset::end#0 = (char *)memset::str#0+memset::num#0 // end
unsigned int memset::num
__constant unsigned int memset::num#0 = $3e8 // num
void *memset::return
void *memset::str
__constant void *memset::str#0 = (void *)print_screen#0 // str
void print_char(char ch)
char print_char::ch
char print_char::ch#0 // reg byte a 2.000000002E9
char print_char::ch#1 // reg byte a 2000002.0
char print_char::ch#2 // reg byte a 2000002.0
char print_char::ch#3 // reg byte a 20002.0
char print_char::ch#5 // reg byte a 1.1002010005E10
char *print_char_cursor
char *print_char_cursor#10 // print_char_cursor zp[2]:2 3.0836475025000006E8
char *print_char_cursor#108 // print_char_cursor zp[2]:2 2002.0
char *print_char_cursor#37 // print_char_cursor zp[2]:2 1.05010100035E10
char *print_char_cursor#55 // print_char_cursor zp[2]:2 60001.5
char *print_char_cursor#56 // print_char_cursor zp[2]:2 400001.00000000006
char *print_char_cursor#58 // print_char_cursor zp[2]:2 370.1
char *print_char_cursor#64 // print_char_cursor zp[2]:2 71.0
char *print_char_cursor#65 // print_char_cursor zp[2]:2 445.0
char *print_char_cursor#74 // print_char_cursor zp[2]:2 7.333333333333333
void print_cls()
__constant const char print_hextab[] = "0123456789abcdef"z
char *print_line_cursor
char *print_line_cursor#0 // print_line_cursor zp[2]:6 6.0000401E7
char *print_line_cursor#10 // print_line_cursor zp[2]:6 2.00010003E8
char *print_line_cursor#21 // print_line_cursor zp[2]:6 1344.888888888889
char *print_line_cursor#25 // print_line_cursor zp[2]:6 445.0
char *print_line_cursor#28 // print_line_cursor zp[2]:6 71.0
char *print_line_cursor#30 // print_line_cursor zp[2]:6 7.333333333333333
void print_ln()
char *print_screen
__constant char *print_screen#0 = (char *) 1024 // print_screen
void print_str(char *str)
char *print_str::str
char *print_str::str#0 // str zp[2]:4 2.000000002E9
char *print_str::str#1 // str zp[2]:4 55001.0
char *print_str::str#2 // str zp[2]:4 1.00002500125E9
void print_uchar(char b)
char print_uchar::$0 // reg byte a 2000002.0
char print_uchar::$2 // reg byte x 2000002.0
char print_uchar::b
char print_uchar::b#0 // reg byte x 200002.0
char print_uchar::b#1 // reg byte x 200002.0
char print_uchar::b#2 // reg byte x 550001.0
void print_uint(unsigned int w)
unsigned int print_uint::w
unsigned int print_uint::w#0 // w zp[2]:8 20002.0
unsigned int print_uint::w#1 // w zp[2]:8 20002.0
unsigned int print_uint::w#2 // w zp[2]:8 73334.66666666666
__constant unsigned int words[] = { $12, $3f34, $cfed }

zp[1]:18 [ main::i#2 main::i#1 ]
zp[1]:15 [ main::j#2 main::j#1 ]
zp[1]:14 [ main::op#2 main::op#1 ]
zp[1]:13 [ main::s#3 main::s#5 main::s#7 main::s#10 main::s#1 ]
zp[1]:10 [ compare::r#10 compare::r#12 compare::r#13 compare::r#14 compare::r#15 compare::r#16 compare::r#17 ]
zp[2]:6 [ print_line_cursor#10 print_line_cursor#21 print_line_cursor#28 print_line_cursor#30 print_line_cursor#25 print_line_cursor#0 ]
zp[2]:4 [ memset::dst#2 memset::dst#1 compare::ops#7 print_str::str#2 print_str::str#1 print_str::str#0 ]
zp[2]:8 [ print_uint::w#2 print_uint::w#1 print_uint::w#0 compare::w1#0 ]
reg byte a [ print_char::ch#5 print_char::ch#3 print_char::ch#0 print_char::ch#1 print_char::ch#2 ]
zp[2]:2 [ print_char_cursor#37 print_char_cursor#55 print_char_cursor#58 print_char_cursor#64 print_char_cursor#74 print_char_cursor#65 print_char_cursor#10 print_char_cursor#108 print_char_cursor#56 ]
reg byte x [ print_uchar::b#2 print_uchar::b#0 print_uchar::b#1 ]
reg byte a [ main::$8 ]
zp[2]:16 [ main::w1#0 ]
reg byte a [ main::$9 ]
zp[2]:11 [ main::w2#0 compare::w2#0 ]
reg byte a [ compare::op#0 ]
reg byte a [ print_uchar::$0 ]
reg byte x [ print_uchar::$2 ]


FINAL ASSEMBLER
Score: 793615

  // File Comments
/// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
  // Upstart
  // Commodore 64 PRG executable file
.file [name="test-comparisons-word.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
  // Global Constants & labels
  // empty circle
  .const FF = $57
  // filled circle
  .const TT = $51
  .label print_screen = $400
  .label print_line_cursor = 6
  .label print_char_cursor = 2
.segment Code
  // main
main: {
    .label w1 = $10
    .label w2 = $b
    .label s = $d
    .label op = $e
    .label j = $f
    .label i = $12
    // print_cls()
    // [1] call print_cls
    // [26] phi from main to print_cls [phi:main->print_cls]
    jsr print_cls
    // [2] phi from main to main::@1 [phi:main->main::@1]
    // [2] phi print_line_cursor#30 = print_screen#0 [phi:main->main::@1#0] -- pbuz1=pbuc1 
    lda #<print_screen
    sta.z print_line_cursor
    lda #>print_screen
    sta.z print_line_cursor+1
    // [2] phi main::s#7 = 0 [phi:main->main::@1#1] -- vbuz1=vbuc1 
    lda #0
    sta.z s
    // [2] phi print_char_cursor#74 = print_screen#0 [phi:main->main::@1#2] -- pbuz1=pbuc1 
    lda #<print_screen
    sta.z print_char_cursor
    lda #>print_screen
    sta.z print_char_cursor+1
    // [2] phi main::i#2 = 0 [phi:main->main::@1#3] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    // [2] phi from main::@7 to main::@1 [phi:main::@7->main::@1]
    // [2] phi print_line_cursor#30 = print_line_cursor#25 [phi:main::@7->main::@1#0] -- register_copy 
    // [2] phi main::s#7 = main::s#10 [phi:main::@7->main::@1#1] -- register_copy 
    // [2] phi print_char_cursor#74 = print_char_cursor#65 [phi:main::@7->main::@1#2] -- register_copy 
    // [2] phi main::i#2 = main::i#1 [phi:main::@7->main::@1#3] -- register_copy 
    // main::@1
  __b1:
    // word w1 = words[i]
    // [3] main::$8 = main::i#2 << 1 -- vbuaa=vbuz1_rol_1 
    lda.z i
    asl
    // [4] main::w1#0 = words[main::$8] -- vwuz1=pwuc1_derefidx_vbuaa 
    tay
    lda words,y
    sta.z w1
    lda words+1,y
    sta.z w1+1
    // [5] phi from main::@1 to main::@2 [phi:main::@1->main::@2]
    // [5] phi print_line_cursor#28 = print_line_cursor#30 [phi:main::@1->main::@2#0] -- register_copy 
    // [5] phi main::s#5 = main::s#7 [phi:main::@1->main::@2#1] -- register_copy 
    // [5] phi print_char_cursor#64 = print_char_cursor#74 [phi:main::@1->main::@2#2] -- register_copy 
    // [5] phi main::j#2 = 0 [phi:main::@1->main::@2#3] -- vbuz1=vbuc1 
    lda #0
    sta.z j
    // [5] phi from main::@6 to main::@2 [phi:main::@6->main::@2]
    // [5] phi print_line_cursor#28 = print_line_cursor#25 [phi:main::@6->main::@2#0] -- register_copy 
    // [5] phi main::s#5 = main::s#10 [phi:main::@6->main::@2#1] -- register_copy 
    // [5] phi print_char_cursor#64 = print_char_cursor#65 [phi:main::@6->main::@2#2] -- register_copy 
    // [5] phi main::j#2 = main::j#1 [phi:main::@6->main::@2#3] -- register_copy 
    // main::@2
  __b2:
    // word w2 = words[j]
    // [6] main::$9 = main::j#2 << 1 -- vbuaa=vbuz1_rol_1 
    lda.z j
    asl
    // [7] main::w2#0 = words[main::$9] -- vwuz1=pwuc1_derefidx_vbuaa 
    tay
    lda words,y
    sta.z w2
    lda words+1,y
    sta.z w2+1
    // [8] phi from main::@2 to main::@3 [phi:main::@2->main::@3]
    // [8] phi print_line_cursor#21 = print_line_cursor#28 [phi:main::@2->main::@3#0] -- register_copy 
    // [8] phi main::s#3 = main::s#5 [phi:main::@2->main::@3#1] -- register_copy 
    // [8] phi print_char_cursor#58 = print_char_cursor#64 [phi:main::@2->main::@3#2] -- register_copy 
    // [8] phi main::op#2 = 0 [phi:main::@2->main::@3#3] -- vbuz1=vbuc1 
    lda #0
    sta.z op
    // [8] phi from main::@4 to main::@3 [phi:main::@4->main::@3]
    // [8] phi print_line_cursor#21 = print_line_cursor#25 [phi:main::@4->main::@3#0] -- register_copy 
    // [8] phi main::s#3 = main::s#10 [phi:main::@4->main::@3#1] -- register_copy 
    // [8] phi print_char_cursor#58 = print_char_cursor#65 [phi:main::@4->main::@3#2] -- register_copy 
    // [8] phi main::op#2 = main::op#1 [phi:main::@4->main::@3#3] -- register_copy 
    // main::@3
  __b3:
    // compare(w1,w2,op)
    // [9] compare::w1#0 = main::w1#0 -- vwuz1=vwuz2 
    lda.z w1
    sta.z compare.w1
    lda.z w1+1
    sta.z compare.w1+1
    // [10] compare::w2#0 = main::w2#0
    // [11] compare::op#0 = main::op#2 -- vbuaa=vbuz1 
    lda.z op
    // [12] call compare
    jsr compare
    // main::@9
    // if(++s==3)
    // [13] main::s#1 = ++ main::s#3 -- vbuz1=_inc_vbuz1 
    inc.z s
    // [14] if(main::s#1!=3) goto main::@4 -- vbuz1_neq_vbuc1_then_la1 
    lda #3
    cmp.z s
    bne __b4
    // [15] phi from main::@9 to main::@5 [phi:main::@9->main::@5]
    // main::@5
    // print_ln()
    // [16] call print_ln
    // [65] phi from main::@5 to print_ln [phi:main::@5->print_ln]
    jsr print_ln
    // main::@10
    // [17] print_char_cursor#108 = print_line_cursor#0 -- pbuz1=pbuz2 
    lda.z print_line_cursor
    sta.z print_char_cursor
    lda.z print_line_cursor+1
    sta.z print_char_cursor+1
    // [18] phi from main::@10 to main::@4 [phi:main::@10->main::@4]
    // [18] phi print_line_cursor#25 = print_line_cursor#0 [phi:main::@10->main::@4#0] -- register_copy 
    // [18] phi main::s#10 = 0 [phi:main::@10->main::@4#1] -- vbuz1=vbuc1 
    lda #0
    sta.z s
    // [18] phi print_char_cursor#65 = print_char_cursor#108 [phi:main::@10->main::@4#2] -- register_copy 
    // [18] phi from main::@9 to main::@4 [phi:main::@9->main::@4]
    // [18] phi print_line_cursor#25 = print_line_cursor#21 [phi:main::@9->main::@4#0] -- register_copy 
    // [18] phi main::s#10 = main::s#1 [phi:main::@9->main::@4#1] -- register_copy 
    // [18] phi print_char_cursor#65 = print_char_cursor#10 [phi:main::@9->main::@4#2] -- register_copy 
    // main::@4
  __b4:
    // for( byte op: 0..5 )
    // [19] main::op#1 = ++ main::op#2 -- vbuz1=_inc_vbuz1 
    inc.z op
    // [20] if(main::op#1!=6) goto main::@3 -- vbuz1_neq_vbuc1_then_la1 
    lda #6
    cmp.z op
    bne __b3
    // main::@6
    // for( byte j: 0..2)
    // [21] main::j#1 = ++ main::j#2 -- vbuz1=_inc_vbuz1 
    inc.z j
    // [22] if(main::j#1!=3) goto main::@2 -- vbuz1_neq_vbuc1_then_la1 
    lda #3
    cmp.z j
    bne __b2
    // main::@7
    // for( byte i: 0..2)
    // [23] main::i#1 = ++ main::i#2 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [24] if(main::i#1!=3) goto main::@1 -- vbuz1_neq_vbuc1_then_la1 
    cmp.z i
    bne __b1
    // [25] phi from main::@7 main::@8 to main::@8 [phi:main::@7/main::@8->main::@8]
  __b5:
  // loop forever
    // main::@8
    jmp __b5
}
  // print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    // memset(print_screen, ' ', 1000)
    // [27] call memset
    // [70] phi from print_cls to memset [phi:print_cls->memset]
    jsr memset
    // print_cls::@return
    // }
    // [28] return 
    rts
}
  // compare
// Compare two words using an operator
// void compare(__zp(8) unsigned int w1, __zp($b) unsigned int w2, __register(A) char op)
compare: {
    .label w1 = 8
    .label w2 = $b
    .label ops = 4
    .label r = $a
    // if(op==0)
    // [29] if(compare::op#0==0) goto compare::@1 -- vbuaa_eq_0_then_la1 
    cmp #0
    bne !__b1+
    jmp __b1
  !__b1:
    // compare::@7
    // if(op==1)
    // [30] if(compare::op#0==1) goto compare::@2 -- vbuaa_eq_vbuc1_then_la1 
    cmp #1
    bne !__b2+
    jmp __b2
  !__b2:
    // compare::@8
    // if(op==2)
    // [31] if(compare::op#0==2) goto compare::@3 -- vbuaa_eq_vbuc1_then_la1 
    cmp #2
    bne !__b3+
    jmp __b3
  !__b3:
    // compare::@9
    // if(op==3)
    // [32] if(compare::op#0==3) goto compare::@4 -- vbuaa_eq_vbuc1_then_la1 
    cmp #3
    beq __b4
    // compare::@10
    // if(op==4)
    // [33] if(compare::op#0==4) goto compare::@5 -- vbuaa_eq_vbuc1_then_la1 
    cmp #4
    beq __b5
    // compare::@11
    // if(op==5)
    // [34] if(compare::op#0!=5) goto compare::@6 -- vbuaa_neq_vbuc1_then_la1 
    cmp #5
    bne __b8
    // compare::@12
    // if(w1!=w2)
    // [35] if(compare::w1#0==compare::w2#0) goto compare::@19 -- vwuz1_eq_vwuz2_then_la1 
    lda.z w1
    cmp.z w2
    bne !+
    lda.z w1+1
    cmp.z w2+1
    beq __b7
  !:
    // [36] phi from compare::@12 to compare::@13 [phi:compare::@12->compare::@13]
    // compare::@13
    // [37] phi from compare::@13 to compare::@19 [phi:compare::@13->compare::@19]
    // [37] phi compare::r#12 = TT [phi:compare::@13->compare::@19#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b19
    // [37] phi from compare::@12 to compare::@19 [phi:compare::@12->compare::@19]
  __b7:
    // [37] phi compare::r#12 = FF [phi:compare::@12->compare::@19#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@19
  __b19:
    // [38] phi from compare::@19 to compare::@6 [phi:compare::@19->compare::@6]
    // [38] phi compare::r#10 = compare::r#12 [phi:compare::@19->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#1 [phi:compare::@19->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_1
    sta.z ops
    lda #>ops_1
    sta.z ops+1
    jmp __b6
    // [38] phi from compare::@11 to compare::@6 [phi:compare::@11->compare::@6]
  __b8:
    // [38] phi compare::r#10 = FF [phi:compare::@11->compare::@6#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // [38] phi compare::ops#7 = (char *) 0 [phi:compare::@11->compare::@6#1] -- pbuz1=pbuc1 
    lda #<0
    sta.z ops
    sta.z ops+1
    // compare::@6
  __b6:
    // print_uint(w1)
    // [39] print_uint::w#0 = compare::w1#0
    // [40] call print_uint
    // [76] phi from compare::@6 to print_uint [phi:compare::@6->print_uint]
    // [76] phi print_char_cursor#55 = print_char_cursor#58 [phi:compare::@6->print_uint#0] -- register_copy 
    // [76] phi print_uint::w#2 = print_uint::w#0 [phi:compare::@6->print_uint#1] -- register_copy 
    jsr print_uint
    // compare::@25
    // print_str(ops)
    // [41] print_str::str#1 = compare::ops#7
    // [42] call print_str
    // [82] phi from compare::@25 to print_str [phi:compare::@25->print_str]
    jsr print_str
    // compare::@26
    // print_uint(w2)
    // [43] print_uint::w#1 = compare::w2#0 -- vwuz1=vwuz2 
    lda.z w2
    sta.z print_uint.w
    lda.z w2+1
    sta.z print_uint.w+1
    // [44] call print_uint
    // [76] phi from compare::@26 to print_uint [phi:compare::@26->print_uint]
    // [76] phi print_char_cursor#55 = print_char_cursor#10 [phi:compare::@26->print_uint#0] -- register_copy 
    // [76] phi print_uint::w#2 = print_uint::w#1 [phi:compare::@26->print_uint#1] -- register_copy 
    jsr print_uint
    // compare::@27
    // print_char(r)
    // [45] print_char::ch#3 = compare::r#10 -- vbuaa=vbuz1 
    lda.z r
    // [46] call print_char
    // [89] phi from compare::@27 to print_char [phi:compare::@27->print_char]
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:compare::@27->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#3 [phi:compare::@27->print_char#1] -- register_copy 
    jsr print_char
    // [47] phi from compare::@27 to compare::@28 [phi:compare::@27->compare::@28]
    // compare::@28
    // print_char(' ')
    // [48] call print_char
    // [89] phi from compare::@28 to print_char [phi:compare::@28->print_char]
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:compare::@28->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = ' ' [phi:compare::@28->print_char#1] -- vbuaa=vbuc1 
    lda #' '
    jsr print_char
    // compare::@return
    // }
    // [49] return 
    rts
    // compare::@5
  __b5:
    // if(w1==w2)
    // [50] if(compare::w1#0!=compare::w2#0) goto compare::@20 -- vwuz1_neq_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bne __b9
    lda.z w1
    cmp.z w2
    bne __b9
    // [51] phi from compare::@5 to compare::@14 [phi:compare::@5->compare::@14]
    // compare::@14
    // [52] phi from compare::@14 to compare::@20 [phi:compare::@14->compare::@20]
    // [52] phi compare::r#13 = TT [phi:compare::@14->compare::@20#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b20
    // [52] phi from compare::@5 to compare::@20 [phi:compare::@5->compare::@20]
  __b9:
    // [52] phi compare::r#13 = FF [phi:compare::@5->compare::@20#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@20
  __b20:
    // [38] phi from compare::@20 to compare::@6 [phi:compare::@20->compare::@6]
    // [38] phi compare::r#10 = compare::r#13 [phi:compare::@20->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#2 [phi:compare::@20->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_2
    sta.z ops
    lda #>ops_2
    sta.z ops+1
    jmp __b6
    // compare::@4
  __b4:
    // if(w1>=w2)
    // [53] if(compare::w1#0<compare::w2#0) goto compare::@21 -- vwuz1_lt_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bcc __b10
    bne !+
    lda.z w1
    cmp.z w2
    bcc __b10
  !:
    // [54] phi from compare::@4 to compare::@15 [phi:compare::@4->compare::@15]
    // compare::@15
    // [55] phi from compare::@15 to compare::@21 [phi:compare::@15->compare::@21]
    // [55] phi compare::r#14 = TT [phi:compare::@15->compare::@21#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b21
    // [55] phi from compare::@4 to compare::@21 [phi:compare::@4->compare::@21]
  __b10:
    // [55] phi compare::r#14 = FF [phi:compare::@4->compare::@21#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@21
  __b21:
    // [38] phi from compare::@21 to compare::@6 [phi:compare::@21->compare::@6]
    // [38] phi compare::r#10 = compare::r#14 [phi:compare::@21->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#3 [phi:compare::@21->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_3
    sta.z ops
    lda #>ops_3
    sta.z ops+1
    jmp __b6
    // compare::@3
  __b3:
    // if(w1>w2)
    // [56] if(compare::w1#0<=compare::w2#0) goto compare::@22 -- vwuz1_le_vwuz2_then_la1 
    lda.z w1+1
    cmp.z w2+1
    bne !+
    lda.z w1
    cmp.z w2
    beq __b11
  !:
    bcc __b11
    // [57] phi from compare::@3 to compare::@16 [phi:compare::@3->compare::@16]
    // compare::@16
    // [58] phi from compare::@16 to compare::@22 [phi:compare::@16->compare::@22]
    // [58] phi compare::r#15 = TT [phi:compare::@16->compare::@22#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b22
    // [58] phi from compare::@3 to compare::@22 [phi:compare::@3->compare::@22]
  __b11:
    // [58] phi compare::r#15 = FF [phi:compare::@3->compare::@22#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@22
  __b22:
    // [38] phi from compare::@22 to compare::@6 [phi:compare::@22->compare::@6]
    // [38] phi compare::r#10 = compare::r#15 [phi:compare::@22->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#4 [phi:compare::@22->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_4
    sta.z ops
    lda #>ops_4
    sta.z ops+1
    jmp __b6
    // compare::@2
  __b2:
    // if(w1<=w2)
    // [59] if(compare::w1#0>compare::w2#0) goto compare::@23 -- vwuz1_gt_vwuz2_then_la1 
    lda.z w2+1
    cmp.z w1+1
    bcc __b12
    bne !+
    lda.z w2
    cmp.z w1
    bcc __b12
  !:
    // [60] phi from compare::@2 to compare::@17 [phi:compare::@2->compare::@17]
    // compare::@17
    // [61] phi from compare::@17 to compare::@23 [phi:compare::@17->compare::@23]
    // [61] phi compare::r#16 = TT [phi:compare::@17->compare::@23#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b23
    // [61] phi from compare::@2 to compare::@23 [phi:compare::@2->compare::@23]
  __b12:
    // [61] phi compare::r#16 = FF [phi:compare::@2->compare::@23#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@23
  __b23:
    // [38] phi from compare::@23 to compare::@6 [phi:compare::@23->compare::@6]
    // [38] phi compare::r#10 = compare::r#16 [phi:compare::@23->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#5 [phi:compare::@23->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_5
    sta.z ops
    lda #>ops_5
    sta.z ops+1
    jmp __b6
    // compare::@1
  __b1:
    // if(w1<w2)
    // [62] if(compare::w1#0>=compare::w2#0) goto compare::@24 -- vwuz1_ge_vwuz2_then_la1 
    lda.z w2+1
    cmp.z w1+1
    bne !+
    lda.z w2
    cmp.z w1
    beq __b13
  !:
    bcc __b13
    // [63] phi from compare::@1 to compare::@18 [phi:compare::@1->compare::@18]
    // compare::@18
    // [64] phi from compare::@18 to compare::@24 [phi:compare::@18->compare::@24]
    // [64] phi compare::r#17 = TT [phi:compare::@18->compare::@24#0] -- vbuz1=vbuc1 
    lda #TT
    sta.z r
    jmp __b24
    // [64] phi from compare::@1 to compare::@24 [phi:compare::@1->compare::@24]
  __b13:
    // [64] phi compare::r#17 = FF [phi:compare::@1->compare::@24#0] -- vbuz1=vbuc1 
    lda #FF
    sta.z r
    // compare::@24
  __b24:
    // [38] phi from compare::@24 to compare::@6 [phi:compare::@24->compare::@6]
    // [38] phi compare::r#10 = compare::r#17 [phi:compare::@24->compare::@6#0] -- register_copy 
    // [38] phi compare::ops#7 = compare::ops#6 [phi:compare::@24->compare::@6#1] -- pbuz1=pbuc1 
    lda #<ops_6
    sta.z ops
    lda #>ops_6
    sta.z ops+1
    jmp __b6
  .segment Data
    ops_1: .text "!="
    .byte 0
    ops_2: .text "=="
    .byte 0
    ops_3: .text ">="
    .byte 0
    ops_4: .text "> "
    .byte 0
    ops_5: .text "<="
    .byte 0
    ops_6: .text "< "
    .byte 0
}
.segment Code
  // print_ln
// Print a newline
print_ln: {
    // [66] phi from print_ln print_ln::@1 to print_ln::@1 [phi:print_ln/print_ln::@1->print_ln::@1]
    // [66] phi print_line_cursor#10 = print_line_cursor#21 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    // print_ln::@1
  __b1:
    // print_line_cursor + $28
    // [67] print_line_cursor#0 = print_line_cursor#10 + $28 -- pbuz1=pbuz1_plus_vbuc1 
    lda #$28
    clc
    adc.z print_line_cursor
    sta.z print_line_cursor
    bcc !+
    inc.z print_line_cursor+1
  !:
    // while (print_line_cursor<print_char_cursor)
    // [68] if(print_line_cursor#0<print_char_cursor#10) goto print_ln::@1 -- pbuz1_lt_pbuz2_then_la1 
    lda.z print_line_cursor+1
    cmp.z print_char_cursor+1
    bcc __b1
    bne !+
    lda.z print_line_cursor
    cmp.z print_char_cursor
    bcc __b1
  !:
    // print_ln::@return
    // }
    // [69] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// void * memset(void *str, char c, unsigned int num)
memset: {
    .const c = ' '
    .const num = $3e8
    .label str = print_screen
    .label end = str+num
    .label dst = 4
    // [71] phi from memset to memset::@1 [phi:memset->memset::@1]
    // [71] phi memset::dst#2 = (char *)memset::str#0 [phi:memset->memset::@1#0] -- pbuz1=pbuc1 
    lda #<str
    sta.z dst
    lda #>str
    sta.z dst+1
    // memset::@1
  __b1:
    // for(char* dst = str; dst!=end; dst++)
    // [72] if(memset::dst#2!=memset::end#0) goto memset::@2 -- pbuz1_neq_pbuc1_then_la1 
    lda.z dst+1
    cmp #>end
    bne __b2
    lda.z dst
    cmp #<end
    bne __b2
    // memset::@return
    // }
    // [73] return 
    rts
    // memset::@2
  __b2:
    // *dst = c
    // [74] *memset::dst#2 = memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // for(char* dst = str; dst!=end; dst++)
    // [75] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    // [71] phi from memset::@2 to memset::@1 [phi:memset::@2->memset::@1]
    // [71] phi memset::dst#2 = memset::dst#1 [phi:memset::@2->memset::@1#0] -- register_copy 
    jmp __b1
}
  // print_uint
// Print a unsigned int as HEX
// void print_uint(__zp(8) unsigned int w)
print_uint: {
    .label w = 8
    // print_uchar(BYTE1(w))
    // [77] print_uchar::b#0 = byte1  print_uint::w#2 -- vbuxx=_byte1_vwuz1 
    ldx.z w+1
    // [78] call print_uchar
    // [93] phi from print_uint to print_uchar [phi:print_uint->print_uchar]
    // [93] phi print_char_cursor#56 = print_char_cursor#55 [phi:print_uint->print_uchar#0] -- register_copy 
    // [93] phi print_uchar::b#2 = print_uchar::b#0 [phi:print_uint->print_uchar#1] -- register_copy 
    jsr print_uchar
    // print_uint::@1
    // print_uchar(BYTE0(w))
    // [79] print_uchar::b#1 = byte0  print_uint::w#2 -- vbuxx=_byte0_vwuz1 
    ldx.z w
    // [80] call print_uchar
    // [93] phi from print_uint::@1 to print_uchar [phi:print_uint::@1->print_uchar]
    // [93] phi print_char_cursor#56 = print_char_cursor#10 [phi:print_uint::@1->print_uchar#0] -- register_copy 
    // [93] phi print_uchar::b#2 = print_uchar::b#1 [phi:print_uint::@1->print_uchar#1] -- register_copy 
    jsr print_uchar
    // print_uint::@return
    // }
    // [81] return 
    rts
}
  // print_str
// Print a zero-terminated string
// void print_str(__zp(4) char *str)
print_str: {
    .label str = 4
    // [83] phi from print_str print_str::@3 to print_str::@1 [phi:print_str/print_str::@3->print_str::@1]
    // [83] phi print_str::str#2 = print_str::str#1 [phi:print_str/print_str::@3->print_str::@1#0] -- register_copy 
    // print_str::@1
  __b1:
    // while(*str)
    // [84] if(0!=*print_str::str#2) goto print_str::@2 -- 0_neq__deref_pbuz1_then_la1 
    ldy #0
    lda (str),y
    cmp #0
    bne __b2
    // print_str::@return
    // }
    // [85] return 
    rts
    // print_str::@2
  __b2:
    // print_char(*(str++))
    // [86] print_char::ch#0 = *print_str::str#2 -- vbuaa=_deref_pbuz1 
    ldy #0
    lda (str),y
    // [87] call print_char
    // [89] phi from print_str::@2 to print_char [phi:print_str::@2->print_char]
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:print_str::@2->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#0 [phi:print_str::@2->print_char#1] -- register_copy 
    jsr print_char
    // print_str::@3
    // print_char(*(str++));
    // [88] print_str::str#0 = ++ print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc.z str
    bne !+
    inc.z str+1
  !:
    jmp __b1
}
  // print_char
// Print a single char
// void print_char(__register(A) char ch)
print_char: {
    // *(print_char_cursor++) = ch
    // [90] *print_char_cursor#37 = print_char::ch#5 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
    // *(print_char_cursor++) = ch;
    // [91] print_char_cursor#10 = ++ print_char_cursor#37 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    // print_char::@return
    // }
    // [92] return 
    rts
}
  // print_uchar
// Print a char as HEX
// void print_uchar(__register(X) char b)
print_uchar: {
    // b>>4
    // [94] print_uchar::$0 = print_uchar::b#2 >> 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
    // print_char(print_hextab[b>>4])
    // [95] print_char::ch#1 = print_hextab[print_uchar::$0] -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
    // [96] call print_char
  // Table of hexadecimal digits
    // [89] phi from print_uchar to print_char [phi:print_uchar->print_char]
    // [89] phi print_char_cursor#37 = print_char_cursor#56 [phi:print_uchar->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#1 [phi:print_uchar->print_char#1] -- register_copy 
    jsr print_char
    // print_uchar::@1
    // b&$f
    // [97] print_uchar::$2 = print_uchar::b#2 & $f -- vbuxx=vbuxx_band_vbuc1 
    lda #$f
    axs #0
    // print_char(print_hextab[b&$f])
    // [98] print_char::ch#2 = print_hextab[print_uchar::$2] -- vbuaa=pbuc1_derefidx_vbuxx 
    lda print_hextab,x
    // [99] call print_char
    // [89] phi from print_uchar::@1 to print_char [phi:print_uchar::@1->print_char]
    // [89] phi print_char_cursor#37 = print_char_cursor#10 [phi:print_uchar::@1->print_char#0] -- register_copy 
    // [89] phi print_char::ch#5 = print_char::ch#2 [phi:print_uchar::@1->print_char#1] -- register_copy 
    jsr print_char
    // print_uchar::@return
    // }
    // [100] return 
    rts
}
  // File Data
.segment Data
  print_hextab: .text "0123456789abcdef"
  words: .word $12, $3f34, $cfed

