Fixing pointer addition (word*~) bsearch16u::$7 ← (word*) bsearch16u::items + (byte~) bsearch16u::$6
Fixing pointer addition (word*~) bsearch16u::$15 ← (word*) bsearch16u::pivot + (number) 1
Fixing pointer addition (word*~) bsearch16u::$1 ← (word*) bsearch16u::items - (number) 1
Fixing pointer array-indexing *((word*) utoa::digit_values + (byte) utoa::digit)
Fixing pointer array-indexing *((dword*) ultoa::digit_values + (byte) ultoa::digit)
Warning! Adding boolean cast to non-boolean condition *((byte*) strcpy::src)
Warning! Adding boolean cast to non-boolean condition *((byte*) strlen::str)
Warning! Adding boolean cast to non-boolean condition *((byte*) print_str_lines::str)
Warning! Adding boolean cast to non-boolean condition (byte) print_str_lines::ch
Warning! Adding boolean cast to non-boolean condition *((byte*) print_str::str)
Warning! Adding boolean cast to non-boolean condition *((byte*) print_str_at::str)
Warning! Adding boolean cast to non-boolean sub-expression (byte) print_str_lines::ch
Identified constant variable (byte*) HEAP_TOP
Inlined call (byte*~) init_points::$0 ← call getPoint (byte) init_points::i 
Inlined call (byte*~) init_points::$1 ← call pointXpos (byte*) init_points::point 
Inlined call (byte*~) init_points::$2 ← call pointYpos (byte*) init_points::point 
Inlined call (byte*~) print_points::$1 ← call getPoint (byte) print_points::i 
Inlined call (byte*~) print_points::$2 ← call pointXpos (byte*) print_points::point 
Inlined call (byte*~) print_points::$5 ← call pointYpos (byte*) print_points::point 
Culled Empty Block (label) @1
Culled Empty Block (label) @2
Culled Empty Block (label) memset::@7
Culled Empty Block (label) memset::@6
Culled Empty Block (label) memset::@8
Culled Empty Block (label) memset::@9
Culled Empty Block (label) memset::@3
Culled Empty Block (label) @3
Culled Empty Block (label) @4
Culled Empty Block (label) @5
Culled Empty Block (label) @6
Culled Empty Block (label) @7
Culled Empty Block (label) @8
Culled Empty Block (label) @9
Culled Empty Block (label) @10
Culled Empty Block (label) @11
Culled Empty Block (label) @12
Culled Empty Block (label) @14
Culled Empty Block (label) @15
Culled Empty Block (label) print_str::@4
Culled Empty Block (label) print_str::@3
Culled Empty Block (label) print_str::@5
Culled Empty Block (label) print_str::@6
Culled Empty Block (label) @16
Culled Empty Block (label) @17
Culled Empty Block (label) @18
Culled Empty Block (label) @19
Culled Empty Block (label) @20
Culled Empty Block (label) @21
Culled Empty Block (label) @22
Culled Empty Block (label) @23
Culled Empty Block (label) @24
Culled Empty Block (label) @25
Culled Empty Block (label) @26
Culled Empty Block (label) @27
Culled Empty Block (label) @28
Culled Empty Block (label) @29
Culled Empty Block (label) @30
Culled Empty Block (label) @31
Culled Empty Block (label) @32
Culled Empty Block (label) @33
Culled Empty Block (label) @34
Culled Empty Block (label) @35
Culled Empty Block (label) @36
Culled Empty Block (label) @37
Culled Empty Block (label) @38
Culled Empty Block (label) @39
Culled Empty Block (label) @40
Culled Empty Block (label) @41
Culled Empty Block (label) init_points::getPoint1_@1
Culled Empty Block (label) init_points::pointXpos1_@1
Culled Empty Block (label) init_points::pointYpos1_@1
Culled Empty Block (label) init_points::@2
Culled Empty Block (label) @42
Culled Empty Block (label) print_points::getPoint1_@1
Culled Empty Block (label) print_points::pointXpos1_@1
Culled Empty Block (label) print_points::pointYpos1_@1
Culled Empty Block (label) print_points::@2

CONTROL FLOW GRAPH SSA
@begin: scope:[]  from
  to:@13

(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
memset: scope:[memset]  from print_cls
  (byte) memset::c#4 ← phi( print_cls/(byte) memset::c#0 )
  (void*) memset::str#3 ← phi( print_cls/(void*) memset::str#0 )
  (word) memset::num#1 ← phi( print_cls/(word) memset::num#0 )
  (bool~) memset::$0 ← (word) memset::num#1 > (number) 0
  (bool~) memset::$1 ← ! (bool~) memset::$0
  if((bool~) memset::$1) goto memset::@1
  to:memset::@2
memset::@1: scope:[memset]  from memset memset::@4
  (void*) memset::str#1 ← phi( memset/(void*) memset::str#3 memset::@4/(void*) memset::str#4 )
  (void*) memset::return#0 ← (void*) memset::str#1
  to:memset::@return
memset::@2: scope:[memset]  from memset
  (byte) memset::c#3 ← phi( memset/(byte) memset::c#4 )
  (word) memset::num#2 ← phi( memset/(word) memset::num#1 )
  (void*) memset::str#2 ← phi( memset/(void*) memset::str#3 )
  (byte*~) memset::$2 ← ((byte*)) (void*) memset::str#2
  (byte*~) memset::$3 ← (byte*~) memset::$2 + (word) memset::num#2
  (byte*) memset::end#0 ← (byte*~) memset::$3
  (byte*) memset::dst#0 ← ((byte*)) (void*) memset::str#2
  to:memset::@4
memset::@4: scope:[memset]  from memset::@2 memset::@5
  (byte) memset::c#2 ← phi( memset::@2/(byte) memset::c#3 memset::@5/(byte) memset::c#1 )
  (void*) memset::str#4 ← phi( memset::@2/(void*) memset::str#2 memset::@5/(void*) memset::str#5 )
  (byte*) memset::end#1 ← phi( memset::@2/(byte*) memset::end#0 memset::@5/(byte*) memset::end#2 )
  (byte*) memset::dst#2 ← phi( memset::@2/(byte*) memset::dst#0 memset::@5/(byte*) memset::dst#1 )
  (bool~) memset::$4 ← (byte*) memset::dst#2 != (byte*) memset::end#1
  if((bool~) memset::$4) goto memset::@5
  to:memset::@1
memset::@5: scope:[memset]  from memset::@4
  (void*) memset::str#5 ← phi( memset::@4/(void*) memset::str#4 )
  (byte*) memset::end#2 ← phi( memset::@4/(byte*) memset::end#1 )
  (byte*) memset::dst#3 ← phi( memset::@4/(byte*) memset::dst#2 )
  (byte) memset::c#1 ← phi( memset::@4/(byte) memset::c#2 )
  *((byte*) memset::dst#3) ← (byte) memset::c#1
  (byte*) memset::dst#1 ← ++ (byte*) memset::dst#3
  to:memset::@4
memset::@return: scope:[memset]  from memset::@1
  (void*) memset::return#3 ← phi( memset::@1/(void*) memset::return#0 )
  (void*) memset::return#1 ← (void*) memset::return#3
  return 
  to:@return
@13: scope:[]  from @begin
  (byte*) print_screen#0 ← (byte*)(number) $400
  (byte*) print_line_cursor#0 ← (byte*) print_screen#0
  (byte*) print_char_cursor#0 ← (byte*) print_line_cursor#0
  to:@43

(void()) print_str((byte*) print_str::str)
print_str: scope:[print_str]  from print_points::@7
  (byte*) print_char_cursor#48 ← phi( print_points::@7/(byte*) print_char_cursor#15 )
  (byte*) print_str::str#4 ← phi( print_points::@7/(byte*) print_str::str#1 )
  to:print_str::@1
print_str::@1: scope:[print_str]  from print_str print_str::@2
  (byte*) print_char_cursor#40 ← phi( print_str/(byte*) print_char_cursor#48 print_str::@2/(byte*) print_char_cursor#1 )
  (byte*) print_str::str#2 ← phi( print_str/(byte*) print_str::str#4 print_str::@2/(byte*) print_str::str#0 )
  (bool~) print_str::$0 ← (number) 0 != *((byte*) print_str::str#2)
  if((bool~) print_str::$0) goto print_str::@2
  to:print_str::@return
print_str::@2: scope:[print_str]  from print_str::@1
  (byte*) print_char_cursor#21 ← phi( print_str::@1/(byte*) print_char_cursor#40 )
  (byte*) print_str::str#3 ← phi( print_str::@1/(byte*) print_str::str#2 )
  *((byte*) print_char_cursor#21) ← *((byte*) print_str::str#3)
  (byte*) print_char_cursor#1 ← ++ (byte*) print_char_cursor#21
  (byte*) print_str::str#0 ← ++ (byte*) print_str::str#3
  to:print_str::@1
print_str::@return: scope:[print_str]  from print_str::@1
  (byte*) print_char_cursor#22 ← phi( print_str::@1/(byte*) print_char_cursor#40 )
  (byte*) print_char_cursor#2 ← (byte*) print_char_cursor#22
  return 
  to:@return

(void()) print_ln()
print_ln: scope:[print_ln]  from print_points::@9
  (byte*) print_char_cursor#41 ← phi( print_points::@9/(byte*) print_char_cursor#17 )
  (byte*) print_line_cursor#21 ← phi( print_points::@9/(byte*) print_line_cursor#24 )
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  (byte*) print_char_cursor#23 ← phi( print_ln/(byte*) print_char_cursor#41 print_ln::@1/(byte*) print_char_cursor#23 )
  (byte*) print_line_cursor#11 ← phi( print_ln/(byte*) print_line_cursor#21 print_ln::@1/(byte*) print_line_cursor#1 )
  (byte*~) print_ln::$0 ← (byte*) print_line_cursor#11 + (number) $28
  (byte*) print_line_cursor#1 ← (byte*~) print_ln::$0
  (bool~) print_ln::$1 ← (byte*) print_line_cursor#1 < (byte*) print_char_cursor#23
  if((bool~) print_ln::$1) goto print_ln::@1
  to:print_ln::@2
print_ln::@2: scope:[print_ln]  from print_ln::@1
  (byte*) print_line_cursor#12 ← phi( print_ln::@1/(byte*) print_line_cursor#1 )
  (byte*) print_char_cursor#3 ← (byte*) print_line_cursor#12
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@2
  (byte*) print_char_cursor#24 ← phi( print_ln::@2/(byte*) print_char_cursor#3 )
  (byte*) print_line_cursor#13 ← phi( print_ln::@2/(byte*) print_line_cursor#12 )
  (byte*) print_line_cursor#2 ← (byte*) print_line_cursor#13
  (byte*) print_char_cursor#4 ← (byte*) print_char_cursor#24
  return 
  to:@return

(void()) print_byte((byte) print_byte::b)
print_byte: scope:[print_byte]  from print_points::@4 print_points::@5
  (byte*) print_char_cursor#42 ← phi( print_points::@4/(byte*) print_char_cursor#45 print_points::@5/(byte*) print_char_cursor#46 )
  (byte) print_byte::b#2 ← phi( print_points::@4/(byte) print_byte::b#0 print_points::@5/(byte) print_byte::b#1 )
  (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (number) 4
  (byte) print_char::ch#0 ← *((const byte*) print_hextab + (byte~) print_byte::$0)
  call print_char 
  to:print_byte::@1
print_byte::@1: scope:[print_byte]  from print_byte
  (byte) print_byte::b#3 ← phi( print_byte/(byte) print_byte::b#2 )
  (byte*) print_char_cursor#25 ← phi( print_byte/(byte*) print_char_cursor#9 )
  (byte*) print_char_cursor#5 ← (byte*) print_char_cursor#25
  (number~) print_byte::$2 ← (byte) print_byte::b#3 & (number) $f
  (byte) print_char::ch#1 ← *((const byte*) print_hextab + (number~) print_byte::$2)
  call print_char 
  to:print_byte::@2
print_byte::@2: scope:[print_byte]  from print_byte::@1
  (byte*) print_char_cursor#26 ← phi( print_byte::@1/(byte*) print_char_cursor#9 )
  (byte*) print_char_cursor#6 ← (byte*) print_char_cursor#26
  to:print_byte::@return
print_byte::@return: scope:[print_byte]  from print_byte::@2
  (byte*) print_char_cursor#27 ← phi( print_byte::@2/(byte*) print_char_cursor#6 )
  (byte*) print_char_cursor#7 ← (byte*) print_char_cursor#27
  return 
  to:@return

(void()) print_char((byte) print_char::ch)
print_char: scope:[print_char]  from print_byte print_byte::@1
  (byte*) print_char_cursor#28 ← phi( print_byte/(byte*) print_char_cursor#42 print_byte::@1/(byte*) print_char_cursor#5 )
  (byte) print_char::ch#2 ← phi( print_byte/(byte) print_char::ch#0 print_byte::@1/(byte) print_char::ch#1 )
  *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2
  (byte*) print_char_cursor#8 ← ++ (byte*) print_char_cursor#28
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  (byte*) print_char_cursor#29 ← phi( print_char/(byte*) print_char_cursor#8 )
  (byte*) print_char_cursor#9 ← (byte*) print_char_cursor#29
  return 
  to:@return

(void()) print_cls()
print_cls: scope:[print_cls]  from print_points
  (byte*) print_screen#1 ← phi( print_points/(byte*) print_screen#3 )
  (void*) memset::str#0 ← (void*)(byte*) print_screen#1
  (byte) memset::c#0 ← (byte) ' '
  (word) memset::num#0 ← (number) $3e8
  call memset 
  (void*) memset::return#2 ← (void*) memset::return#1
  to:print_cls::@1
print_cls::@1: scope:[print_cls]  from print_cls
  (byte*) print_screen#2 ← phi( print_cls/(byte*) print_screen#1 )
  (byte*) print_line_cursor#3 ← (byte*) print_screen#2
  (byte*) print_char_cursor#10 ← (byte*) print_line_cursor#3
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls::@1
  (byte*) print_char_cursor#30 ← phi( print_cls::@1/(byte*) print_char_cursor#10 )
  (byte*) print_line_cursor#14 ← phi( print_cls::@1/(byte*) print_line_cursor#3 )
  (byte*) print_line_cursor#4 ← (byte*) print_line_cursor#14
  (byte*) print_char_cursor#11 ← (byte*) print_char_cursor#30
  return 
  to:@return

(void()) main()
main: scope:[main]  from @43
  (byte*) print_screen#5 ← phi( @43/(byte*) print_screen#6 )
  (byte*) print_char_cursor#49 ← phi( @43/(byte*) print_char_cursor#47 )
  (byte*) print_line_cursor#26 ← phi( @43/(byte*) print_line_cursor#25 )
  call init_points 
  to:main::@1
main::@1: scope:[main]  from main
  (byte*) print_screen#4 ← phi( main/(byte*) print_screen#5 )
  (byte*) print_char_cursor#43 ← phi( main/(byte*) print_char_cursor#49 )
  (byte*) print_line_cursor#22 ← phi( main/(byte*) print_line_cursor#26 )
  call print_points 
  to:main::@2
main::@2: scope:[main]  from main::@1
  (byte*) print_char_cursor#31 ← phi( main::@1/(byte*) print_char_cursor#19 )
  (byte*) print_line_cursor#15 ← phi( main::@1/(byte*) print_line_cursor#9 )
  (byte*) print_line_cursor#5 ← (byte*) print_line_cursor#15
  (byte*) print_char_cursor#12 ← (byte*) print_char_cursor#31
  to:main::@return
main::@return: scope:[main]  from main::@2
  (byte*) print_char_cursor#32 ← phi( main::@2/(byte*) print_char_cursor#12 )
  (byte*) print_line_cursor#16 ← phi( main::@2/(byte*) print_line_cursor#5 )
  (byte*) print_line_cursor#6 ← (byte*) print_line_cursor#16
  (byte*) print_char_cursor#13 ← (byte*) print_char_cursor#32
  return 
  to:@return

(void()) init_points()
init_points: scope:[init_points]  from main
  (byte) init_points::pos#0 ← (byte) $a
  (byte) init_points::i#0 ← (byte) 0
  to:init_points::@1
init_points::@1: scope:[init_points]  from init_points init_points::@5
  (byte) init_points::pos#12 ← phi( init_points/(byte) init_points::pos#0 init_points::@5/(byte) init_points::pos#2 )
  (byte) init_points::i#2 ← phi( init_points/(byte) init_points::i#0 init_points::@5/(byte) init_points::i#1 )
  (byte) init_points::getPoint1_idx#0 ← (byte) init_points::i#2
  to:init_points::getPoint1
init_points::getPoint1: scope:[init_points]  from init_points::@1
  (byte) init_points::i#11 ← phi( init_points::@1/(byte) init_points::i#2 )
  (byte) init_points::pos#11 ← phi( init_points::@1/(byte) init_points::pos#12 )
  (byte) init_points::getPoint1_idx#1 ← phi( init_points::@1/(byte) init_points::getPoint1_idx#0 )
  (byte~) init_points::getPoint1_$0 ← (byte) init_points::getPoint1_idx#1 * (const byte) SIZEOF_POINT
  (byte*~) init_points::getPoint1_$1 ← (const byte*) points + (byte~) init_points::getPoint1_$0
  (byte*) init_points::getPoint1_return#0 ← (byte*~) init_points::getPoint1_$1
  to:init_points::getPoint1_@return
init_points::getPoint1_@return: scope:[init_points]  from init_points::getPoint1
  (byte) init_points::i#10 ← phi( init_points::getPoint1/(byte) init_points::i#11 )
  (byte) init_points::pos#10 ← phi( init_points::getPoint1/(byte) init_points::pos#11 )
  (byte*) init_points::getPoint1_return#2 ← phi( init_points::getPoint1/(byte*) init_points::getPoint1_return#0 )
  (byte*) init_points::getPoint1_return#1 ← (byte*) init_points::getPoint1_return#2
  to:init_points::@3
init_points::@3: scope:[init_points]  from init_points::getPoint1_@return
  (byte) init_points::i#9 ← phi( init_points::getPoint1_@return/(byte) init_points::i#10 )
  (byte) init_points::pos#9 ← phi( init_points::getPoint1_@return/(byte) init_points::pos#10 )
  (byte*) init_points::getPoint1_return#3 ← phi( init_points::getPoint1_@return/(byte*) init_points::getPoint1_return#1 )
  (byte*~) init_points::$0 ← (byte*) init_points::getPoint1_return#3
  (byte*) init_points::point#0 ← (byte*~) init_points::$0
  (byte*) init_points::pointXpos1_point#0 ← (byte*) init_points::point#0
  to:init_points::pointXpos1
init_points::pointXpos1: scope:[init_points]  from init_points::@3
  (byte) init_points::i#8 ← phi( init_points::@3/(byte) init_points::i#9 )
  (byte*) init_points::point#3 ← phi( init_points::@3/(byte*) init_points::point#0 )
  (byte) init_points::pos#7 ← phi( init_points::@3/(byte) init_points::pos#9 )
  (byte*) init_points::pointXpos1_point#1 ← phi( init_points::@3/(byte*) init_points::pointXpos1_point#0 )
  (byte*~) init_points::pointXpos1_$0 ← (byte*) init_points::pointXpos1_point#1 + (number) 0
  (byte*~) init_points::pointXpos1_$1 ← ((byte*)) (byte*~) init_points::pointXpos1_$0
  (byte*) init_points::pointXpos1_return#0 ← (byte*~) init_points::pointXpos1_$1
  to:init_points::pointXpos1_@return
init_points::pointXpos1_@return: scope:[init_points]  from init_points::pointXpos1
  (byte) init_points::i#7 ← phi( init_points::pointXpos1/(byte) init_points::i#8 )
  (byte*) init_points::point#2 ← phi( init_points::pointXpos1/(byte*) init_points::point#3 )
  (byte) init_points::pos#5 ← phi( init_points::pointXpos1/(byte) init_points::pos#7 )
  (byte*) init_points::pointXpos1_return#2 ← phi( init_points::pointXpos1/(byte*) init_points::pointXpos1_return#0 )
  (byte*) init_points::pointXpos1_return#1 ← (byte*) init_points::pointXpos1_return#2
  to:init_points::@4
init_points::@4: scope:[init_points]  from init_points::pointXpos1_@return
  (byte) init_points::i#6 ← phi( init_points::pointXpos1_@return/(byte) init_points::i#7 )
  (byte*) init_points::point#1 ← phi( init_points::pointXpos1_@return/(byte*) init_points::point#2 )
  (byte) init_points::pos#3 ← phi( init_points::pointXpos1_@return/(byte) init_points::pos#5 )
  (byte*) init_points::pointXpos1_return#3 ← phi( init_points::pointXpos1_@return/(byte*) init_points::pointXpos1_return#1 )
  (byte*~) init_points::$1 ← (byte*) init_points::pointXpos1_return#3
  *((byte*~) init_points::$1) ← (byte) init_points::pos#3
  (byte) init_points::pos#1 ← (byte) init_points::pos#3 + (number) $a
  (byte*) init_points::pointYpos1_point#0 ← (byte*) init_points::point#1
  to:init_points::pointYpos1
init_points::pointYpos1: scope:[init_points]  from init_points::@4
  (byte) init_points::i#5 ← phi( init_points::@4/(byte) init_points::i#6 )
  (byte) init_points::pos#8 ← phi( init_points::@4/(byte) init_points::pos#1 )
  (byte*) init_points::pointYpos1_point#1 ← phi( init_points::@4/(byte*) init_points::pointYpos1_point#0 )
  (byte*~) init_points::pointYpos1_$0 ← (byte*) init_points::pointYpos1_point#1 + (number) 1
  (byte*~) init_points::pointYpos1_$1 ← ((byte*)) (byte*~) init_points::pointYpos1_$0
  (byte*) init_points::pointYpos1_return#0 ← (byte*~) init_points::pointYpos1_$1
  to:init_points::pointYpos1_@return
init_points::pointYpos1_@return: scope:[init_points]  from init_points::pointYpos1
  (byte) init_points::i#4 ← phi( init_points::pointYpos1/(byte) init_points::i#5 )
  (byte) init_points::pos#6 ← phi( init_points::pointYpos1/(byte) init_points::pos#8 )
  (byte*) init_points::pointYpos1_return#2 ← phi( init_points::pointYpos1/(byte*) init_points::pointYpos1_return#0 )
  (byte*) init_points::pointYpos1_return#1 ← (byte*) init_points::pointYpos1_return#2
  to:init_points::@5
init_points::@5: scope:[init_points]  from init_points::pointYpos1_@return
  (byte) init_points::i#3 ← phi( init_points::pointYpos1_@return/(byte) init_points::i#4 )
  (byte) init_points::pos#4 ← phi( init_points::pointYpos1_@return/(byte) init_points::pos#6 )
  (byte*) init_points::pointYpos1_return#3 ← phi( init_points::pointYpos1_@return/(byte*) init_points::pointYpos1_return#1 )
  (byte*~) init_points::$2 ← (byte*) init_points::pointYpos1_return#3
  *((byte*~) init_points::$2) ← (byte) init_points::pos#4
  (byte) init_points::pos#2 ← (byte) init_points::pos#4 + (number) $a
  (byte) init_points::i#1 ← (byte) init_points::i#3 + rangenext(0,NUM_POINTS-1)
  (bool~) init_points::$3 ← (byte) init_points::i#1 != rangelast(0,NUM_POINTS-1)
  if((bool~) init_points::$3) goto init_points::@1
  to:init_points::@return
init_points::@return: scope:[init_points]  from init_points::@5
  return 
  to:@return

(void()) print_points()
print_points: scope:[print_points]  from main::@1
  (byte*) print_char_cursor#44 ← phi( main::@1/(byte*) print_char_cursor#43 )
  (byte*) print_line_cursor#23 ← phi( main::@1/(byte*) print_line_cursor#22 )
  (byte*) print_screen#3 ← phi( main::@1/(byte*) print_screen#4 )
  call print_cls 
  to:print_points::@6
print_points::@6: scope:[print_points]  from print_points
  (byte*) print_char_cursor#33 ← phi( print_points/(byte*) print_char_cursor#11 )
  (byte*) print_line_cursor#17 ← phi( print_points/(byte*) print_line_cursor#4 )
  (byte*) print_line_cursor#7 ← (byte*) print_line_cursor#17
  (byte*) print_char_cursor#14 ← (byte*) print_char_cursor#33
  (byte) print_points::i#0 ← (byte) 0
  to:print_points::@1
print_points::@1: scope:[print_points]  from print_points::@10 print_points::@6
  (byte*) print_line_cursor#38 ← phi( print_points::@10/(byte*) print_line_cursor#8 print_points::@6/(byte*) print_line_cursor#7 )
  (byte*) print_char_cursor#57 ← phi( print_points::@10/(byte*) print_char_cursor#18 print_points::@6/(byte*) print_char_cursor#14 )
  (byte) print_points::i#2 ← phi( print_points::@10/(byte) print_points::i#1 print_points::@6/(byte) print_points::i#0 )
  (byte) print_points::getPoint1_idx#0 ← (byte) print_points::i#2
  to:print_points::getPoint1
print_points::getPoint1: scope:[print_points]  from print_points::@1
  (byte) print_points::i#15 ← phi( print_points::@1/(byte) print_points::i#2 )
  (byte*) print_line_cursor#37 ← phi( print_points::@1/(byte*) print_line_cursor#38 )
  (byte*) print_char_cursor#56 ← phi( print_points::@1/(byte*) print_char_cursor#57 )
  (byte) print_points::getPoint1_idx#1 ← phi( print_points::@1/(byte) print_points::getPoint1_idx#0 )
  (byte~) print_points::getPoint1_$0 ← (byte) print_points::getPoint1_idx#1 * (const byte) SIZEOF_POINT
  (byte*~) print_points::getPoint1_$1 ← (const byte*) points + (byte~) print_points::getPoint1_$0
  (byte*) print_points::getPoint1_return#0 ← (byte*~) print_points::getPoint1_$1
  to:print_points::getPoint1_@return
print_points::getPoint1_@return: scope:[print_points]  from print_points::getPoint1
  (byte) print_points::i#14 ← phi( print_points::getPoint1/(byte) print_points::i#15 )
  (byte*) print_line_cursor#36 ← phi( print_points::getPoint1/(byte*) print_line_cursor#37 )
  (byte*) print_char_cursor#55 ← phi( print_points::getPoint1/(byte*) print_char_cursor#56 )
  (byte*) print_points::getPoint1_return#2 ← phi( print_points::getPoint1/(byte*) print_points::getPoint1_return#0 )
  (byte*) print_points::getPoint1_return#1 ← (byte*) print_points::getPoint1_return#2
  to:print_points::@3
print_points::@3: scope:[print_points]  from print_points::getPoint1_@return
  (byte) print_points::i#13 ← phi( print_points::getPoint1_@return/(byte) print_points::i#14 )
  (byte*) print_line_cursor#35 ← phi( print_points::getPoint1_@return/(byte*) print_line_cursor#36 )
  (byte*) print_char_cursor#54 ← phi( print_points::getPoint1_@return/(byte*) print_char_cursor#55 )
  (byte*) print_points::getPoint1_return#3 ← phi( print_points::getPoint1_@return/(byte*) print_points::getPoint1_return#1 )
  (byte*~) print_points::$1 ← (byte*) print_points::getPoint1_return#3
  (byte*) print_points::point#0 ← (byte*~) print_points::$1
  (byte*) print_points::pointXpos1_point#0 ← (byte*) print_points::point#0
  to:print_points::pointXpos1
print_points::pointXpos1: scope:[print_points]  from print_points::@3
  (byte) print_points::i#12 ← phi( print_points::@3/(byte) print_points::i#13 )
  (byte*) print_line_cursor#34 ← phi( print_points::@3/(byte*) print_line_cursor#35 )
  (byte*) print_points::point#5 ← phi( print_points::@3/(byte*) print_points::point#0 )
  (byte*) print_char_cursor#52 ← phi( print_points::@3/(byte*) print_char_cursor#54 )
  (byte*) print_points::pointXpos1_point#1 ← phi( print_points::@3/(byte*) print_points::pointXpos1_point#0 )
  (byte*~) print_points::pointXpos1_$0 ← (byte*) print_points::pointXpos1_point#1 + (number) 0
  (byte*~) print_points::pointXpos1_$1 ← ((byte*)) (byte*~) print_points::pointXpos1_$0
  (byte*) print_points::pointXpos1_return#0 ← (byte*~) print_points::pointXpos1_$1
  to:print_points::pointXpos1_@return
print_points::pointXpos1_@return: scope:[print_points]  from print_points::pointXpos1
  (byte) print_points::i#11 ← phi( print_points::pointXpos1/(byte) print_points::i#12 )
  (byte*) print_line_cursor#33 ← phi( print_points::pointXpos1/(byte*) print_line_cursor#34 )
  (byte*) print_points::point#4 ← phi( print_points::pointXpos1/(byte*) print_points::point#5 )
  (byte*) print_char_cursor#50 ← phi( print_points::pointXpos1/(byte*) print_char_cursor#52 )
  (byte*) print_points::pointXpos1_return#2 ← phi( print_points::pointXpos1/(byte*) print_points::pointXpos1_return#0 )
  (byte*) print_points::pointXpos1_return#1 ← (byte*) print_points::pointXpos1_return#2
  to:print_points::@4
print_points::@4: scope:[print_points]  from print_points::pointXpos1_@return
  (byte) print_points::i#10 ← phi( print_points::pointXpos1_@return/(byte) print_points::i#11 )
  (byte*) print_line_cursor#32 ← phi( print_points::pointXpos1_@return/(byte*) print_line_cursor#33 )
  (byte*) print_points::point#3 ← phi( print_points::pointXpos1_@return/(byte*) print_points::point#4 )
  (byte*) print_char_cursor#45 ← phi( print_points::pointXpos1_@return/(byte*) print_char_cursor#50 )
  (byte*) print_points::pointXpos1_return#3 ← phi( print_points::pointXpos1_@return/(byte*) print_points::pointXpos1_return#1 )
  (byte*~) print_points::$2 ← (byte*) print_points::pointXpos1_return#3
  (byte) print_byte::b#0 ← *((byte*~) print_points::$2)
  call print_byte 
  to:print_points::@7
print_points::@7: scope:[print_points]  from print_points::@4
  (byte) print_points::i#9 ← phi( print_points::@4/(byte) print_points::i#10 )
  (byte*) print_line_cursor#31 ← phi( print_points::@4/(byte*) print_line_cursor#32 )
  (byte*) print_points::point#2 ← phi( print_points::@4/(byte*) print_points::point#3 )
  (byte*) print_char_cursor#34 ← phi( print_points::@4/(byte*) print_char_cursor#7 )
  (byte*) print_char_cursor#15 ← (byte*) print_char_cursor#34
  (byte*) print_str::str#1 ← (const string) print_points::str
  call print_str 
  to:print_points::@8
print_points::@8: scope:[print_points]  from print_points::@7
  (byte) print_points::i#8 ← phi( print_points::@7/(byte) print_points::i#9 )
  (byte*) print_line_cursor#30 ← phi( print_points::@7/(byte*) print_line_cursor#31 )
  (byte*) print_points::point#1 ← phi( print_points::@7/(byte*) print_points::point#2 )
  (byte*) print_char_cursor#35 ← phi( print_points::@7/(byte*) print_char_cursor#2 )
  (byte*) print_char_cursor#16 ← (byte*) print_char_cursor#35
  (byte*) print_points::pointYpos1_point#0 ← (byte*) print_points::point#1
  to:print_points::pointYpos1
print_points::pointYpos1: scope:[print_points]  from print_points::@8
  (byte) print_points::i#7 ← phi( print_points::@8/(byte) print_points::i#8 )
  (byte*) print_line_cursor#29 ← phi( print_points::@8/(byte*) print_line_cursor#30 )
  (byte*) print_char_cursor#53 ← phi( print_points::@8/(byte*) print_char_cursor#16 )
  (byte*) print_points::pointYpos1_point#1 ← phi( print_points::@8/(byte*) print_points::pointYpos1_point#0 )
  (byte*~) print_points::pointYpos1_$0 ← (byte*) print_points::pointYpos1_point#1 + (number) 1
  (byte*~) print_points::pointYpos1_$1 ← ((byte*)) (byte*~) print_points::pointYpos1_$0
  (byte*) print_points::pointYpos1_return#0 ← (byte*~) print_points::pointYpos1_$1
  to:print_points::pointYpos1_@return
print_points::pointYpos1_@return: scope:[print_points]  from print_points::pointYpos1
  (byte) print_points::i#6 ← phi( print_points::pointYpos1/(byte) print_points::i#7 )
  (byte*) print_line_cursor#28 ← phi( print_points::pointYpos1/(byte*) print_line_cursor#29 )
  (byte*) print_char_cursor#51 ← phi( print_points::pointYpos1/(byte*) print_char_cursor#53 )
  (byte*) print_points::pointYpos1_return#2 ← phi( print_points::pointYpos1/(byte*) print_points::pointYpos1_return#0 )
  (byte*) print_points::pointYpos1_return#1 ← (byte*) print_points::pointYpos1_return#2
  to:print_points::@5
print_points::@5: scope:[print_points]  from print_points::pointYpos1_@return
  (byte) print_points::i#5 ← phi( print_points::pointYpos1_@return/(byte) print_points::i#6 )
  (byte*) print_line_cursor#27 ← phi( print_points::pointYpos1_@return/(byte*) print_line_cursor#28 )
  (byte*) print_char_cursor#46 ← phi( print_points::pointYpos1_@return/(byte*) print_char_cursor#51 )
  (byte*) print_points::pointYpos1_return#3 ← phi( print_points::pointYpos1_@return/(byte*) print_points::pointYpos1_return#1 )
  (byte*~) print_points::$5 ← (byte*) print_points::pointYpos1_return#3
  (byte) print_byte::b#1 ← *((byte*~) print_points::$5)
  call print_byte 
  to:print_points::@9
print_points::@9: scope:[print_points]  from print_points::@5
  (byte) print_points::i#4 ← phi( print_points::@5/(byte) print_points::i#5 )
  (byte*) print_line_cursor#24 ← phi( print_points::@5/(byte*) print_line_cursor#27 )
  (byte*) print_char_cursor#36 ← phi( print_points::@5/(byte*) print_char_cursor#7 )
  (byte*) print_char_cursor#17 ← (byte*) print_char_cursor#36
  call print_ln 
  to:print_points::@10
print_points::@10: scope:[print_points]  from print_points::@9
  (byte) print_points::i#3 ← phi( print_points::@9/(byte) print_points::i#4 )
  (byte*) print_char_cursor#37 ← phi( print_points::@9/(byte*) print_char_cursor#4 )
  (byte*) print_line_cursor#18 ← phi( print_points::@9/(byte*) print_line_cursor#2 )
  (byte*) print_line_cursor#8 ← (byte*) print_line_cursor#18
  (byte*) print_char_cursor#18 ← (byte*) print_char_cursor#37
  (byte) print_points::i#1 ← (byte) print_points::i#3 + rangenext(0,NUM_POINTS-1)
  (bool~) print_points::$8 ← (byte) print_points::i#1 != rangelast(0,NUM_POINTS-1)
  if((bool~) print_points::$8) goto print_points::@1
  to:print_points::@return
print_points::@return: scope:[print_points]  from print_points::@10
  (byte*) print_char_cursor#38 ← phi( print_points::@10/(byte*) print_char_cursor#18 )
  (byte*) print_line_cursor#19 ← phi( print_points::@10/(byte*) print_line_cursor#8 )
  (byte*) print_line_cursor#9 ← (byte*) print_line_cursor#19
  (byte*) print_char_cursor#19 ← (byte*) print_char_cursor#38
  return 
  to:@return
@43: scope:[]  from @13
  (byte*) print_screen#6 ← phi( @13/(byte*) print_screen#0 )
  (byte*) print_char_cursor#47 ← phi( @13/(byte*) print_char_cursor#0 )
  (byte*) print_line_cursor#25 ← phi( @13/(byte*) print_line_cursor#0 )
  call main 
  to:@44
@44: scope:[]  from @43
  (byte*) print_char_cursor#39 ← phi( @43/(byte*) print_char_cursor#13 )
  (byte*) print_line_cursor#20 ← phi( @43/(byte*) print_line_cursor#6 )
  (byte*) print_line_cursor#10 ← (byte*) print_line_cursor#20
  (byte*) print_char_cursor#20 ← (byte*) print_char_cursor#39
  to:@end
@end: scope:[]  from @44

SYMBOL TABLE SSA
(label) @13
(label) @43
(label) @44
(label) @begin
(label) @end
(const byte) NUM_POINTS = (byte) 4
(const byte) RADIX::BINARY = (number) 2
(const byte) RADIX::DECIMAL = (number) $a
(const byte) RADIX::HEXADECIMAL = (number) $10
(const byte) RADIX::OCTAL = (number) 8
(const byte) SIZEOF_POINT = (byte) 2
(void()) init_points()
(byte*~) init_points::$0
(byte*~) init_points::$1
(byte*~) init_points::$2
(bool~) init_points::$3
(label) init_points::@1
(label) init_points::@3
(label) init_points::@4
(label) init_points::@5
(label) init_points::@return
(label) init_points::getPoint1
(byte~) init_points::getPoint1_$0
(byte*~) init_points::getPoint1_$1
(label) init_points::getPoint1_@return
(byte) init_points::getPoint1_idx
(byte) init_points::getPoint1_idx#0
(byte) init_points::getPoint1_idx#1
(byte*) init_points::getPoint1_return
(byte*) init_points::getPoint1_return#0
(byte*) init_points::getPoint1_return#1
(byte*) init_points::getPoint1_return#2
(byte*) init_points::getPoint1_return#3
(byte) init_points::i
(byte) init_points::i#0
(byte) init_points::i#1
(byte) init_points::i#10
(byte) init_points::i#11
(byte) init_points::i#2
(byte) init_points::i#3
(byte) init_points::i#4
(byte) init_points::i#5
(byte) init_points::i#6
(byte) init_points::i#7
(byte) init_points::i#8
(byte) init_points::i#9
(byte*) init_points::point
(byte*) init_points::point#0
(byte*) init_points::point#1
(byte*) init_points::point#2
(byte*) init_points::point#3
(label) init_points::pointXpos1
(byte*~) init_points::pointXpos1_$0
(byte*~) init_points::pointXpos1_$1
(label) init_points::pointXpos1_@return
(byte*) init_points::pointXpos1_point
(byte*) init_points::pointXpos1_point#0
(byte*) init_points::pointXpos1_point#1
(byte*) init_points::pointXpos1_return
(byte*) init_points::pointXpos1_return#0
(byte*) init_points::pointXpos1_return#1
(byte*) init_points::pointXpos1_return#2
(byte*) init_points::pointXpos1_return#3
(label) init_points::pointYpos1
(byte*~) init_points::pointYpos1_$0
(byte*~) init_points::pointYpos1_$1
(label) init_points::pointYpos1_@return
(byte*) init_points::pointYpos1_point
(byte*) init_points::pointYpos1_point#0
(byte*) init_points::pointYpos1_point#1
(byte*) init_points::pointYpos1_return
(byte*) init_points::pointYpos1_return#0
(byte*) init_points::pointYpos1_return#1
(byte*) init_points::pointYpos1_return#2
(byte*) init_points::pointYpos1_return#3
(byte) init_points::pos
(byte) init_points::pos#0
(byte) init_points::pos#1
(byte) init_points::pos#10
(byte) init_points::pos#11
(byte) init_points::pos#12
(byte) init_points::pos#2
(byte) init_points::pos#3
(byte) init_points::pos#4
(byte) init_points::pos#5
(byte) init_points::pos#6
(byte) init_points::pos#7
(byte) init_points::pos#8
(byte) init_points::pos#9
(void()) main()
(label) main::@1
(label) main::@2
(label) main::@return
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(bool~) memset::$0
(bool~) memset::$1
(byte*~) memset::$2
(byte*~) memset::$3
(bool~) memset::$4
(label) memset::@1
(label) memset::@2
(label) memset::@4
(label) memset::@5
(label) memset::@return
(byte) memset::c
(byte) memset::c#0
(byte) memset::c#1
(byte) memset::c#2
(byte) memset::c#3
(byte) memset::c#4
(byte*) memset::dst
(byte*) memset::dst#0
(byte*) memset::dst#1
(byte*) memset::dst#2
(byte*) memset::dst#3
(byte*) memset::end
(byte*) memset::end#0
(byte*) memset::end#1
(byte*) memset::end#2
(word) memset::num
(word) memset::num#0
(word) memset::num#1
(word) 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
(const byte*) points[(const byte) NUM_POINTS*(const byte) SIZEOF_POINT]  = { fill( NUM_POINTS*SIZEOF_POINT, 0) }
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0
(number~) print_byte::$2
(label) print_byte::@1
(label) print_byte::@2
(label) print_byte::@return
(byte) print_byte::b
(byte) print_byte::b#0
(byte) print_byte::b#1
(byte) print_byte::b#2
(byte) print_byte::b#3
(void()) print_char((byte) print_char::ch)
(label) print_char::@return
(byte) print_char::ch
(byte) print_char::ch#0
(byte) print_char::ch#1
(byte) print_char::ch#2
(byte*) print_char_cursor
(byte*) print_char_cursor#0
(byte*) print_char_cursor#1
(byte*) print_char_cursor#10
(byte*) print_char_cursor#11
(byte*) print_char_cursor#12
(byte*) print_char_cursor#13
(byte*) print_char_cursor#14
(byte*) print_char_cursor#15
(byte*) print_char_cursor#16
(byte*) print_char_cursor#17
(byte*) print_char_cursor#18
(byte*) print_char_cursor#19
(byte*) print_char_cursor#2
(byte*) print_char_cursor#20
(byte*) print_char_cursor#21
(byte*) print_char_cursor#22
(byte*) print_char_cursor#23
(byte*) print_char_cursor#24
(byte*) print_char_cursor#25
(byte*) print_char_cursor#26
(byte*) print_char_cursor#27
(byte*) print_char_cursor#28
(byte*) print_char_cursor#29
(byte*) print_char_cursor#3
(byte*) print_char_cursor#30
(byte*) print_char_cursor#31
(byte*) print_char_cursor#32
(byte*) print_char_cursor#33
(byte*) print_char_cursor#34
(byte*) print_char_cursor#35
(byte*) print_char_cursor#36
(byte*) print_char_cursor#37
(byte*) print_char_cursor#38
(byte*) print_char_cursor#39
(byte*) print_char_cursor#4
(byte*) print_char_cursor#40
(byte*) print_char_cursor#41
(byte*) print_char_cursor#42
(byte*) print_char_cursor#43
(byte*) print_char_cursor#44
(byte*) print_char_cursor#45
(byte*) print_char_cursor#46
(byte*) print_char_cursor#47
(byte*) print_char_cursor#48
(byte*) print_char_cursor#49
(byte*) print_char_cursor#5
(byte*) print_char_cursor#50
(byte*) print_char_cursor#51
(byte*) print_char_cursor#52
(byte*) print_char_cursor#53
(byte*) print_char_cursor#54
(byte*) print_char_cursor#55
(byte*) print_char_cursor#56
(byte*) print_char_cursor#57
(byte*) print_char_cursor#6
(byte*) print_char_cursor#7
(byte*) print_char_cursor#8
(byte*) print_char_cursor#9
(void()) print_cls()
(label) print_cls::@1
(label) print_cls::@return
(const byte*) print_hextab[]  = (string) "0123456789abcdef"z
(byte*) print_line_cursor
(byte*) print_line_cursor#0
(byte*) print_line_cursor#1
(byte*) print_line_cursor#10
(byte*) print_line_cursor#11
(byte*) print_line_cursor#12
(byte*) print_line_cursor#13
(byte*) print_line_cursor#14
(byte*) print_line_cursor#15
(byte*) print_line_cursor#16
(byte*) print_line_cursor#17
(byte*) print_line_cursor#18
(byte*) print_line_cursor#19
(byte*) print_line_cursor#2
(byte*) print_line_cursor#20
(byte*) print_line_cursor#21
(byte*) print_line_cursor#22
(byte*) print_line_cursor#23
(byte*) print_line_cursor#24
(byte*) print_line_cursor#25
(byte*) print_line_cursor#26
(byte*) print_line_cursor#27
(byte*) print_line_cursor#28
(byte*) print_line_cursor#29
(byte*) print_line_cursor#3
(byte*) print_line_cursor#30
(byte*) print_line_cursor#31
(byte*) print_line_cursor#32
(byte*) print_line_cursor#33
(byte*) print_line_cursor#34
(byte*) print_line_cursor#35
(byte*) print_line_cursor#36
(byte*) print_line_cursor#37
(byte*) print_line_cursor#38
(byte*) print_line_cursor#4
(byte*) print_line_cursor#5
(byte*) print_line_cursor#6
(byte*) print_line_cursor#7
(byte*) print_line_cursor#8
(byte*) print_line_cursor#9
(void()) print_ln()
(byte*~) print_ln::$0
(bool~) print_ln::$1
(label) print_ln::@1
(label) print_ln::@2
(label) print_ln::@return
(void()) print_points()
(byte*~) print_points::$1
(byte*~) print_points::$2
(byte*~) print_points::$5
(bool~) print_points::$8
(label) print_points::@1
(label) print_points::@10
(label) print_points::@3
(label) print_points::@4
(label) print_points::@5
(label) print_points::@6
(label) print_points::@7
(label) print_points::@8
(label) print_points::@9
(label) print_points::@return
(label) print_points::getPoint1
(byte~) print_points::getPoint1_$0
(byte*~) print_points::getPoint1_$1
(label) print_points::getPoint1_@return
(byte) print_points::getPoint1_idx
(byte) print_points::getPoint1_idx#0
(byte) print_points::getPoint1_idx#1
(byte*) print_points::getPoint1_return
(byte*) print_points::getPoint1_return#0
(byte*) print_points::getPoint1_return#1
(byte*) print_points::getPoint1_return#2
(byte*) print_points::getPoint1_return#3
(byte) print_points::i
(byte) print_points::i#0
(byte) print_points::i#1
(byte) print_points::i#10
(byte) print_points::i#11
(byte) print_points::i#12
(byte) print_points::i#13
(byte) print_points::i#14
(byte) print_points::i#15
(byte) print_points::i#2
(byte) print_points::i#3
(byte) print_points::i#4
(byte) print_points::i#5
(byte) print_points::i#6
(byte) print_points::i#7
(byte) print_points::i#8
(byte) print_points::i#9
(byte*) print_points::point
(byte*) print_points::point#0
(byte*) print_points::point#1
(byte*) print_points::point#2
(byte*) print_points::point#3
(byte*) print_points::point#4
(byte*) print_points::point#5
(label) print_points::pointXpos1
(byte*~) print_points::pointXpos1_$0
(byte*~) print_points::pointXpos1_$1
(label) print_points::pointXpos1_@return
(byte*) print_points::pointXpos1_point
(byte*) print_points::pointXpos1_point#0
(byte*) print_points::pointXpos1_point#1
(byte*) print_points::pointXpos1_return
(byte*) print_points::pointXpos1_return#0
(byte*) print_points::pointXpos1_return#1
(byte*) print_points::pointXpos1_return#2
(byte*) print_points::pointXpos1_return#3
(label) print_points::pointYpos1
(byte*~) print_points::pointYpos1_$0
(byte*~) print_points::pointYpos1_$1
(label) print_points::pointYpos1_@return
(byte*) print_points::pointYpos1_point
(byte*) print_points::pointYpos1_point#0
(byte*) print_points::pointYpos1_point#1
(byte*) print_points::pointYpos1_return
(byte*) print_points::pointYpos1_return#0
(byte*) print_points::pointYpos1_return#1
(byte*) print_points::pointYpos1_return#2
(byte*) print_points::pointYpos1_return#3
(const string) print_points::str[]  = (string) " "
(byte*) print_screen
(byte*) print_screen#0
(byte*) print_screen#1
(byte*) print_screen#2
(byte*) print_screen#3
(byte*) print_screen#4
(byte*) print_screen#5
(byte*) print_screen#6
(void()) print_str((byte*) print_str::str)
(bool~) print_str::$0
(label) print_str::@1
(label) print_str::@2
(label) print_str::@return
(byte*) print_str::str
(byte*) print_str::str#0
(byte*) print_str::str#1
(byte*) print_str::str#2
(byte*) print_str::str#3
(byte*) print_str::str#4

Adding number conversion cast (unumber) 0 in (bool~) memset::$0 ← (word) memset::num#1 > (number) 0
Adding number conversion cast (unumber) 0 in (bool~) print_str::$0 ← (number) 0 != *((byte*) print_str::str#2)
Adding number conversion cast (unumber) $28 in (byte*~) print_ln::$0 ← (byte*) print_line_cursor#11 + (number) $28
Adding number conversion cast (unumber) 4 in (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (number) 4
Adding number conversion cast (unumber) $f in (number~) print_byte::$2 ← (byte) print_byte::b#3 & (number) $f
Adding number conversion cast (unumber) print_byte::$2 in (number~) print_byte::$2 ← (byte) print_byte::b#3 & (unumber)(number) $f
Adding number conversion cast (unumber) $3e8 in (word) memset::num#0 ← (number) $3e8
Adding number conversion cast (unumber) 0 in (byte*~) init_points::pointXpos1_$0 ← (byte*) init_points::pointXpos1_point#1 + (number) 0
Adding number conversion cast (unumber) $a in (byte) init_points::pos#1 ← (byte) init_points::pos#3 + (number) $a
Adding number conversion cast (unumber) 1 in (byte*~) init_points::pointYpos1_$0 ← (byte*) init_points::pointYpos1_point#1 + (number) 1
Adding number conversion cast (unumber) $a in (byte) init_points::pos#2 ← (byte) init_points::pos#4 + (number) $a
Adding number conversion cast (unumber) 1 in (byte) init_points::i#1 ← (byte) init_points::i#3 + rangenext(0,NUM_POINTS-1)
Adding number conversion cast (unumber) 0 in (byte*~) print_points::pointXpos1_$0 ← (byte*) print_points::pointXpos1_point#1 + (number) 0
Adding number conversion cast (unumber) 1 in (byte*~) print_points::pointYpos1_$0 ← (byte*) print_points::pointYpos1_point#1 + (number) 1
Adding number conversion cast (unumber) 1 in (byte) print_points::i#1 ← (byte) print_points::i#3 + rangenext(0,NUM_POINTS-1)
Successful SSA optimization PassNAddNumberTypeConversions
Inlining cast (byte*~) memset::$2 ← (byte*)(void*) memset::str#2
Inlining cast (byte*) memset::dst#0 ← (byte*)(void*) memset::str#2
Inlining cast (word) memset::num#0 ← (unumber)(number) $3e8
Inlining cast (byte*~) init_points::pointXpos1_$1 ← (byte*)(byte*~) init_points::pointXpos1_$0
Inlining cast (byte*~) init_points::pointYpos1_$1 ← (byte*)(byte*~) init_points::pointYpos1_$0
Inlining cast (byte*~) print_points::pointXpos1_$1 ← (byte*)(byte*~) print_points::pointXpos1_$0
Inlining cast (byte*~) print_points::pointYpos1_$1 ← (byte*)(byte*~) print_points::pointYpos1_$0
Successful SSA optimization Pass2InlineCast
Simplifying constant integer cast 0
Simplifying constant pointer cast (byte*) 1024
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 (byte*~) init_points::pointXpos1_$0
Simplifying constant integer cast $a
Simplifying constant integer cast 1
Simplifying constant integer cast (byte*~) init_points::pointYpos1_$0
Simplifying constant integer cast $a
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast (byte*~) print_points::pointXpos1_$0
Simplifying constant integer cast 1
Simplifying constant integer cast (byte*~) print_points::pointYpos1_$0
Simplifying constant integer cast 1
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) $28
Finalized unsigned number type (byte) 4
Finalized unsigned number type (byte) $f
Finalized unsigned number type (word) $3e8
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) $a
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) $a
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 0
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inferred type updated to byte in (unumber~) print_byte::$2 ← (byte) print_byte::b#3 & (byte) $f
Inversing boolean not [2] (bool~) memset::$1 ← (word) memset::num#1 <= (byte) 0 from [1] (bool~) memset::$0 ← (word) memset::num#1 > (byte) 0
Successful SSA optimization Pass2UnaryNotSimplification
Alias (void*) memset::return#0 = (void*) memset::str#1 (void*) memset::return#3 (void*) memset::return#1 
Alias (void*) memset::str#2 = (void*) memset::str#3 
Alias (word) memset::num#1 = (word) memset::num#2 
Alias (byte) memset::c#3 = (byte) memset::c#4 
Alias (byte*) memset::end#0 = (byte*~) memset::$3 
Alias (byte) memset::c#1 = (byte) memset::c#2 
Alias (byte*) memset::dst#2 = (byte*) memset::dst#3 
Alias (byte*) memset::end#1 = (byte*) memset::end#2 
Alias (void*) memset::str#4 = (void*) memset::str#5 
Alias (byte*) print_line_cursor#0 = (byte*) print_screen#0 (byte*) print_char_cursor#0 (byte*) print_line_cursor#25 (byte*) print_char_cursor#47 (byte*) print_screen#6 
Alias (byte*) print_str::str#2 = (byte*) print_str::str#3 
Alias (byte*) print_char_cursor#2 = (byte*) print_char_cursor#21 (byte*) print_char_cursor#40 (byte*) print_char_cursor#22 
Alias (byte*) print_line_cursor#1 = (byte*~) print_ln::$0 (byte*) print_line_cursor#12 (byte*) print_char_cursor#3 (byte*) print_line_cursor#13 (byte*) print_char_cursor#24 (byte*) print_line_cursor#2 (byte*) print_char_cursor#4 
Alias (byte) print_byte::b#2 = (byte) print_byte::b#3 
Alias (byte*) print_char_cursor#25 = (byte*) print_char_cursor#5 
Alias (byte*) print_char_cursor#26 = (byte*) print_char_cursor#6 (byte*) print_char_cursor#27 (byte*) print_char_cursor#7 
Alias (byte*) print_char_cursor#29 = (byte*) print_char_cursor#8 (byte*) print_char_cursor#9 
Alias (byte*) print_line_cursor#14 = (byte*) print_screen#2 (byte*) print_screen#1 (byte*) print_line_cursor#3 (byte*) print_char_cursor#10 (byte*) print_char_cursor#30 (byte*) print_line_cursor#4 (byte*) print_char_cursor#11 
Alias (byte*) print_line_cursor#22 = (byte*) print_line_cursor#26 
Alias (byte*) print_char_cursor#43 = (byte*) print_char_cursor#49 
Alias (byte*) print_screen#4 = (byte*) print_screen#5 
Alias (byte*) print_line_cursor#15 = (byte*) print_line_cursor#5 (byte*) print_line_cursor#16 (byte*) print_line_cursor#6 
Alias (byte*) print_char_cursor#12 = (byte*) print_char_cursor#31 (byte*) print_char_cursor#32 (byte*) print_char_cursor#13 
Alias (byte) init_points::i#10 = (byte) init_points::getPoint1_idx#0 (byte) init_points::i#2 (byte) init_points::getPoint1_idx#1 (byte) init_points::i#11 (byte) init_points::i#9 (byte) init_points::i#8 (byte) init_points::i#7 (byte) init_points::i#6 (byte) init_points::i#5 (byte) init_points::i#4 (byte) init_points::i#3 
Alias (byte) init_points::pos#10 = (byte) init_points::pos#11 (byte) init_points::pos#12 (byte) init_points::pos#9 (byte) init_points::pos#7 (byte) init_points::pos#5 (byte) init_points::pos#3 
Alias (byte*) init_points::getPoint1_return#0 = (byte*~) init_points::getPoint1_$1 (byte*) init_points::getPoint1_return#2 (byte*) init_points::getPoint1_return#1 (byte*) init_points::getPoint1_return#3 (byte*~) init_points::$0 (byte*) init_points::point#0 (byte*) init_points::pointXpos1_point#0 (byte*) init_points::pointXpos1_point#1 (byte*) init_points::point#3 (byte*) init_points::point#2 (byte*) init_points::point#1 (byte*) init_points::pointYpos1_point#0 (byte*) init_points::pointYpos1_point#1 
Alias (byte*) init_points::pointXpos1_return#0 = (byte*~) init_points::pointXpos1_$1 (byte*~) init_points::pointXpos1_$0 (byte*) init_points::pointXpos1_return#2 (byte*) init_points::pointXpos1_return#1 (byte*) init_points::pointXpos1_return#3 (byte*~) init_points::$1 
Alias (byte) init_points::pos#1 = (byte) init_points::pos#8 (byte) init_points::pos#6 (byte) init_points::pos#4 
Alias (byte*) init_points::pointYpos1_return#0 = (byte*~) init_points::pointYpos1_$1 (byte*~) init_points::pointYpos1_$0 (byte*) init_points::pointYpos1_return#2 (byte*) init_points::pointYpos1_return#1 (byte*) init_points::pointYpos1_return#3 (byte*~) init_points::$2 
Alias (byte*) print_line_cursor#17 = (byte*) print_line_cursor#7 
Alias (byte*) print_char_cursor#14 = (byte*) print_char_cursor#33 
Alias (byte) print_points::i#10 = (byte) print_points::getPoint1_idx#0 (byte) print_points::i#2 (byte) print_points::getPoint1_idx#1 (byte) print_points::i#15 (byte) print_points::i#14 (byte) print_points::i#13 (byte) print_points::i#12 (byte) print_points::i#11 (byte) print_points::i#9 (byte) print_points::i#8 (byte) print_points::i#7 (byte) print_points::i#6 (byte) print_points::i#5 (byte) print_points::i#4 (byte) print_points::i#3 
Alias (byte*) print_char_cursor#45 = (byte*) print_char_cursor#56 (byte*) print_char_cursor#57 (byte*) print_char_cursor#55 (byte*) print_char_cursor#54 (byte*) print_char_cursor#52 (byte*) print_char_cursor#50 
Alias (byte*) print_line_cursor#24 = (byte*) print_line_cursor#37 (byte*) print_line_cursor#38 (byte*) print_line_cursor#36 (byte*) print_line_cursor#35 (byte*) print_line_cursor#34 (byte*) print_line_cursor#33 (byte*) print_line_cursor#32 (byte*) print_line_cursor#31 (byte*) print_line_cursor#30 (byte*) print_line_cursor#29 (byte*) print_line_cursor#28 (byte*) print_line_cursor#27 
Alias (byte*) print_points::point#0 = (byte*) print_points::getPoint1_return#0 (byte*~) print_points::getPoint1_$1 (byte*) print_points::getPoint1_return#2 (byte*) print_points::getPoint1_return#1 (byte*) print_points::getPoint1_return#3 (byte*~) print_points::$1 (byte*) print_points::pointXpos1_point#0 (byte*) print_points::pointXpos1_point#1 (byte*) print_points::point#5 (byte*) print_points::point#4 (byte*) print_points::point#3 (byte*) print_points::point#2 (byte*) print_points::point#1 (byte*) print_points::pointYpos1_point#0 (byte*) print_points::pointYpos1_point#1 
Alias (byte*) print_points::pointXpos1_return#0 = (byte*~) print_points::pointXpos1_$1 (byte*~) print_points::pointXpos1_$0 (byte*) print_points::pointXpos1_return#2 (byte*) print_points::pointXpos1_return#1 (byte*) print_points::pointXpos1_return#3 (byte*~) print_points::$2 
Alias (byte*) print_char_cursor#15 = (byte*) print_char_cursor#34 
Alias (byte*) print_char_cursor#16 = (byte*) print_char_cursor#35 (byte*) print_char_cursor#53 (byte*) print_char_cursor#51 (byte*) print_char_cursor#46 
Alias (byte*) print_points::pointYpos1_return#0 = (byte*~) print_points::pointYpos1_$1 (byte*~) print_points::pointYpos1_$0 (byte*) print_points::pointYpos1_return#2 (byte*) print_points::pointYpos1_return#1 (byte*) print_points::pointYpos1_return#3 (byte*~) print_points::$5 
Alias (byte*) print_char_cursor#17 = (byte*) print_char_cursor#36 
Alias (byte*) print_line_cursor#18 = (byte*) print_line_cursor#8 (byte*) print_line_cursor#19 (byte*) print_line_cursor#9 
Alias (byte*) print_char_cursor#18 = (byte*) print_char_cursor#37 (byte*) print_char_cursor#38 (byte*) print_char_cursor#19 
Alias (byte*) print_line_cursor#10 = (byte*) print_line_cursor#20 
Alias (byte*) print_char_cursor#20 = (byte*) print_char_cursor#39 
Successful SSA optimization Pass2AliasElimination
Identical Phi Values (word) memset::num#1 (word) memset::num#0
Identical Phi Values (void*) memset::str#2 (void*) memset::str#0
Identical Phi Values (byte) memset::c#3 (byte) memset::c#0
Identical Phi Values (byte*) memset::end#1 (byte*) memset::end#0
Identical Phi Values (void*) memset::str#4 (void*) memset::str#2
Identical Phi Values (byte) memset::c#1 (byte) memset::c#3
Identical Phi Values (byte*) print_str::str#4 (byte*) print_str::str#1
Identical Phi Values (byte*) print_char_cursor#48 (byte*) print_char_cursor#15
Identical Phi Values (byte*) print_line_cursor#21 (byte*) print_line_cursor#24
Identical Phi Values (byte*) print_char_cursor#41 (byte*) print_char_cursor#17
Identical Phi Values (byte*) print_char_cursor#23 (byte*) print_char_cursor#41
Identical Phi Values (byte*) print_char_cursor#25 (byte*) print_char_cursor#29
Identical Phi Values (byte*) print_char_cursor#26 (byte*) print_char_cursor#29
Identical Phi Values (byte*) print_line_cursor#14 (byte*) print_screen#3
Identical Phi Values (byte*) print_line_cursor#22 (byte*) print_line_cursor#0
Identical Phi Values (byte*) print_char_cursor#43 (byte*) print_line_cursor#0
Identical Phi Values (byte*) print_screen#4 (byte*) print_line_cursor#0
Identical Phi Values (byte*) print_line_cursor#15 (byte*) print_line_cursor#18
Identical Phi Values (byte*) print_char_cursor#12 (byte*) print_char_cursor#18
Identical Phi Values (byte*) print_screen#3 (byte*) print_screen#4
Identical Phi Values (byte*) print_line_cursor#23 (byte*) print_line_cursor#22
Identical Phi Values (byte*) print_char_cursor#44 (byte*) print_char_cursor#43
Identical Phi Values (byte*) print_line_cursor#17 (byte*) print_line_cursor#14
Identical Phi Values (byte*) print_char_cursor#14 (byte*) print_line_cursor#14
Identical Phi Values (byte*) print_char_cursor#15 (byte*) print_char_cursor#26
Identical Phi Values (byte*) print_char_cursor#16 (byte*) print_char_cursor#2
Identical Phi Values (byte*) print_char_cursor#17 (byte*) print_char_cursor#26
Identical Phi Values (byte*) print_line_cursor#18 (byte*) print_line_cursor#1
Identical Phi Values (byte*) print_char_cursor#18 (byte*) print_line_cursor#1
Identical Phi Values (byte*) print_line_cursor#10 (byte*) print_line_cursor#15
Identical Phi Values (byte*) print_char_cursor#20 (byte*) print_char_cursor#12
Successful SSA optimization Pass2IdenticalPhiElimination
Identical Phi Values (void*) memset::return#0 (void*) memset::str#0
Successful SSA optimization Pass2IdenticalPhiElimination
Simple Condition (bool~) memset::$1 [3] if((word) memset::num#0<=(byte) 0) goto memset::@1
Simple Condition (bool~) memset::$4 [13] if((byte*) memset::dst#2!=(byte*) memset::end#0) goto memset::@5
Simple Condition (bool~) print_str::$0 [26] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2
Simple Condition (bool~) print_ln::$1 [39] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) goto print_ln::@1
Simple Condition (bool~) init_points::$3 [127] if((byte) init_points::i#1!=rangelast(0,NUM_POINTS-1)) goto init_points::@1
Simple Condition (bool~) print_points::$8 [182] if((byte) print_points::i#1!=rangelast(0,NUM_POINTS-1)) goto print_points::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Constant (const byte*) print_line_cursor#0 = (byte*) 1024
Constant (const byte) memset::c#0 = ' '
Constant (const word) memset::num#0 = $3e8
Constant (const byte) init_points::pos#0 = $a
Constant (const byte) init_points::i#0 = 0
Constant (const byte) print_points::i#0 = 0
Constant (const byte*) print_str::str#1 = print_points::str
Successful SSA optimization Pass2ConstantIdentification
Constant (const void*) memset::str#0 = (void*)print_line_cursor#0
Successful SSA optimization Pass2ConstantIdentification
Constant (const byte*) memset::$2 = (byte*)memset::str#0
Constant (const byte*) memset::dst#0 = (byte*)memset::str#0
Constant (const void*) memset::return#2 = memset::str#0
Successful SSA optimization Pass2ConstantIdentification
if() condition always false - eliminating [3] if((const word) memset::num#0<=(byte) 0) goto memset::@1
Successful SSA optimization Pass2ConstantIfs
Resolved ranged next value [125] init_points::i#1 ← ++ init_points::i#10 to ++
Resolved ranged comparison value [127] if(init_points::i#1!=rangelast(0,NUM_POINTS-1)) goto init_points::@1 to (const byte) NUM_POINTS-(byte) 1+(number) 1
Resolved ranged next value [180] print_points::i#1 ← ++ print_points::i#10 to ++
Resolved ranged comparison value [182] if(print_points::i#1!=rangelast(0,NUM_POINTS-1)) goto print_points::@1 to (const byte) NUM_POINTS-(byte) 1+(number) 1
Converting *(pointer+n) to pointer[n] [112] *((byte*) init_points::pointXpos1_return#0) ← (byte) init_points::pos#10  -- *(init_points::getPoint1_return#0 + 0)
Converting *(pointer+n) to pointer[n] [123] *((byte*) init_points::pointYpos1_return#0) ← (byte) init_points::pos#1  -- *(init_points::getPoint1_return#0 + 1)
Converting *(pointer+n) to pointer[n] [155] (byte) print_byte::b#0 ← *((byte*) print_points::pointXpos1_return#0)  -- *(print_points::point#0 + 0)
Converting *(pointer+n) to pointer[n] [172] (byte) print_byte::b#1 ← *((byte*) print_points::pointYpos1_return#0)  -- *(print_points::point#0 + 1)
Successful SSA optimization Pass2InlineDerefIdx
Simplifying expression containing zero init_points::getPoint1_return#0 in [105] (byte*) init_points::pointXpos1_return#0 ← (byte*) init_points::getPoint1_return#0 + (byte) 0
Simplifying expression containing zero init_points::getPoint1_return#0 in [112] *((byte*) init_points::getPoint1_return#0 + (byte) 0) ← (byte) init_points::pos#10
Simplifying expression containing zero print_points::point#0 in [148] (byte*) print_points::pointXpos1_return#0 ← (byte*) print_points::point#0 + (byte) 0
Simplifying expression containing zero print_points::point#0 in [155] (byte) print_byte::b#0 ← *((byte*) print_points::point#0 + (byte) 0)
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused variable (byte*) init_points::pointXpos1_return#0 and assignment [36] (byte*) init_points::pointXpos1_return#0 ← (byte*) init_points::getPoint1_return#0
Eliminating unused variable (byte*) init_points::pointYpos1_return#0 and assignment [39] (byte*) init_points::pointYpos1_return#0 ← (byte*) init_points::getPoint1_return#0 + (byte) 1
Eliminating unused variable (byte*) print_points::pointXpos1_return#0 and assignment [49] (byte*) print_points::pointXpos1_return#0 ← (byte*) print_points::point#0
Eliminating unused variable (byte*) print_points::pointYpos1_return#0 and assignment [53] (byte*) print_points::pointYpos1_return#0 ← (byte*) print_points::point#0 + (byte) 1
Eliminating unused constant (const void*) memset::return#2
Successful SSA optimization PassNEliminateUnusedVars
Adding number conversion cast (unumber) NUM_POINTS-1+1 in if((byte) init_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(number) 1) goto init_points::@1
Adding number conversion cast (unumber) 1 in if((byte) init_points::i#1!=(unumber)(const byte) NUM_POINTS-(byte) 1+(number) 1) goto init_points::@1
Adding number conversion cast (unumber) NUM_POINTS-1+1 in if((byte) print_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(number) 1) goto print_points::@1
Adding number conversion cast (unumber) 1 in if((byte) print_points::i#1!=(unumber)(const byte) NUM_POINTS-(byte) 1+(number) 1) goto print_points::@1
Successful SSA optimization PassNAddNumberTypeConversions
Simplifying constant integer cast (const byte) NUM_POINTS-(byte) 1+(unumber)(number) 1
Simplifying constant integer cast 1
Simplifying constant integer cast (const byte) NUM_POINTS-(byte) 1+(unumber)(number) 1
Simplifying constant integer cast 1
Successful SSA optimization PassNCastSimplification
Finalized unsigned number type (byte) 1
Finalized unsigned number type (byte) 1
Successful SSA optimization PassNFinalizeNumberTypeConversions
Constant right-side identified [0] (byte*) memset::end#0 ← (const byte*) memset::$2 + (const word) memset::num#0
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const byte*) memset::end#0 = memset::$2+memset::num#0
Successful SSA optimization Pass2ConstantIdentification
Converting *(pointer+n) to pointer[n] [36] *((byte*) init_points::getPoint1_return#0) ← (byte) init_points::pos#10  -- *(points + init_points::getPoint1_$0)
Converting *(pointer+n) to pointer[n] [47] (byte) print_byte::b#0 ← *((byte*) print_points::point#0)  -- *(points + print_points::getPoint1_$0)
Successful SSA optimization Pass2InlineDerefIdx
Rewriting multiplication to use shift [33] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 * (const byte) SIZEOF_POINT
Rewriting multiplication to use shift [44] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 * (const byte) SIZEOF_POINT
Successful SSA optimization Pass2MultiplyToShiftRewriting
Inlining constant with var siblings (const byte*) memset::dst#0
Inlining constant with var siblings (const byte*) print_str::str#1
Inlining constant with var siblings (const byte) init_points::pos#0
Inlining constant with var siblings (const byte) init_points::i#0
Inlining constant with var siblings (const byte) print_points::i#0
Inlining constant with var siblings (const byte*) print_line_cursor#0
Constant inlined init_points::i#0 = (byte) 0
Constant inlined memset::$2 = (byte*)(const void*) memset::str#0
Constant inlined print_points::i#0 = (byte) 0
Constant inlined print_line_cursor#0 = (byte*) 1024
Constant inlined memset::dst#0 = (byte*)(const void*) memset::str#0
Constant inlined print_str::str#1 = (const string) print_points::str
Constant inlined init_points::pos#0 = (byte) $a
Successful SSA optimization Pass2ConstantInlining
Added new block during phi lifting print_ln::@3(between print_ln::@1 and print_ln::@1)
Added new block during phi lifting init_points::@6(between init_points::@5 and init_points::@1)
Added new block during phi lifting print_points::@11(between print_points::@10 and print_points::@1)
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @13
Adding NOP phi() at start of @43
Adding NOP phi() at start of @44
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@1
Adding NOP phi() at start of main::@2
Adding NOP phi() at start of print_points
Adding NOP phi() at start of print_points::@6
Adding NOP phi() at start of print_points::getPoint1_@return
Adding NOP phi() at start of print_points::@3
Adding NOP phi() at start of print_points::pointXpos1
Adding NOP phi() at start of print_points::pointXpos1_@return
Adding NOP phi() at start of print_points::@7
Adding NOP phi() at start of print_points::@8
Adding NOP phi() at start of print_points::pointYpos1
Adding NOP phi() at start of print_points::pointYpos1_@return
Adding NOP phi() at start of print_points::@9
Adding NOP phi() at start of print_ln::@2
Adding NOP phi() at start of print_byte::@2
Adding NOP phi() at start of print_cls
Adding NOP phi() at start of print_cls::@1
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 init_points
Adding NOP phi() at start of init_points::getPoint1_@return
Adding NOP phi() at start of init_points::@3
Adding NOP phi() at start of init_points::pointXpos1
Adding NOP phi() at start of init_points::pointXpos1_@return
Adding NOP phi() at start of init_points::pointYpos1
Adding NOP phi() at start of init_points::pointYpos1_@return
CALL GRAPH
Calls in [] to main:3 
Calls in [main] to init_points:7 print_points:9 
Calls in [print_points] to print_cls:13 print_byte:25 print_str:27 print_byte:34 print_ln:36 
Calls in [print_byte] to print_char:55 print_char:60 
Calls in [print_cls] to memset:77 

Created 13 initial phi equivalence classes
Coalesced [23] print_byte::b#4 ← print_byte::b#0
Coalesced [24] print_char_cursor#60 ← print_char_cursor#45
Coalesced [32] print_byte::b#5 ← print_byte::b#1
Coalesced [33] print_char_cursor#61 ← print_char_cursor#2
Coalesced [40] print_points::i#16 ← print_points::i#1
Not coalescing [41] print_char_cursor#64 ← print_line_cursor#1
Coalesced [42] print_line_cursor#41 ← print_line_cursor#1
Coalesced [43] print_line_cursor#39 ← print_line_cursor#24
Coalesced (already) [49] print_line_cursor#40 ← print_line_cursor#1
Coalesced [53] print_char::ch#3 ← print_char::ch#0
Coalesced [54] print_char_cursor#62 ← print_char_cursor#42
Coalesced [58] print_char::ch#4 ← print_char::ch#1
Coalesced [59] print_char_cursor#63 ← print_char_cursor#29
Coalesced (already) [67] print_char_cursor#58 ← print_char_cursor#29
Coalesced [74] print_str::str#5 ← print_str::str#0
Coalesced [75] print_char_cursor#59 ← print_char_cursor#1
Coalesced [88] memset::dst#4 ← memset::dst#1
Coalesced [106] init_points::i#12 ← init_points::i#1
Coalesced [107] init_points::pos#13 ← init_points::pos#2
Coalesced down to 9 phi equivalence classes
Culled Empty Block (label) @13
Culled Empty Block (label) @44
Culled Empty Block (label) main::@2
Culled Empty Block (label) print_points::@6
Culled Empty Block (label) print_points::getPoint1_@return
Culled Empty Block (label) print_points::@3
Culled Empty Block (label) print_points::pointXpos1_@return
Culled Empty Block (label) print_points::@8
Culled Empty Block (label) print_points::pointYpos1_@return
Culled Empty Block (label) print_ln::@2
Culled Empty Block (label) print_ln::@3
Culled Empty Block (label) print_byte::@2
Culled Empty Block (label) print_cls::@1
Culled Empty Block (label) memset::@2
Culled Empty Block (label) memset::@1
Culled Empty Block (label) init_points::getPoint1_@return
Culled Empty Block (label) init_points::@3
Culled Empty Block (label) init_points::pointXpos1_@return
Culled Empty Block (label) init_points::pointYpos1_@return
Culled Empty Block (label) init_points::@6
Renumbering block @43 to @1
Renumbering block memset::@4 to memset::@1
Renumbering block memset::@5 to memset::@2
Renumbering block init_points::@4 to init_points::@2
Renumbering block init_points::@5 to init_points::@3
Renumbering block print_points::@4 to print_points::@2
Renumbering block print_points::@5 to print_points::@3
Renumbering block print_points::@7 to print_points::@4
Renumbering block print_points::@9 to print_points::@5
Renumbering block print_points::@10 to print_points::@6
Renumbering block print_points::@11 to print_points::@7
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @1
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@1
Adding NOP phi() at start of print_points
Adding NOP phi() at start of print_points::pointXpos1
Adding NOP phi() at start of print_points::@4
Adding NOP phi() at start of print_points::pointYpos1
Adding NOP phi() at start of print_points::@5
Adding NOP phi() at start of print_ln
Adding NOP phi() at start of print_str
Adding NOP phi() at start of print_cls
Adding NOP phi() at start of memset
Adding NOP phi() at start of init_points
Adding NOP phi() at start of init_points::pointXpos1
Adding NOP phi() at start of init_points::pointYpos1

FINAL CONTROL FLOW GRAPH
@begin: scope:[]  from
  [0] phi()
  to:@1
@1: scope:[]  from @begin
  [1] phi()
  [2] call main 
  to:@end
@end: scope:[]  from @1
  [3] phi()

(void()) main()
main: scope:[main]  from @1
  [4] phi()
  [5] call init_points 
  to:main::@1
main::@1: scope:[main]  from main
  [6] phi()
  [7] call print_points 
  to:main::@return
main::@return: scope:[main]  from main::@1
  [8] return 
  to:@return

(void()) print_points()
print_points: scope:[print_points]  from main::@1
  [9] phi()
  [10] call print_cls 
  to:print_points::@1
print_points::@1: scope:[print_points]  from print_points print_points::@7
  [11] (byte*) print_line_cursor#24 ← phi( print_points::@7/(byte*) print_line_cursor#1 print_points/(byte*) 1024 )
  [11] (byte*) print_char_cursor#45 ← phi( print_points::@7/(byte*) print_char_cursor#64 print_points/(byte*) 1024 )
  [11] (byte) print_points::i#10 ← phi( print_points::@7/(byte) print_points::i#1 print_points/(byte) 0 )
  to:print_points::getPoint1
print_points::getPoint1: scope:[print_points]  from print_points::@1
  [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1
  [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0
  to:print_points::pointXpos1
print_points::pointXpos1: scope:[print_points]  from print_points::getPoint1
  [14] phi()
  to:print_points::@2
print_points::@2: scope:[print_points]  from print_points::pointXpos1
  [15] (byte) print_byte::b#0 ← *((const byte*) points + (byte~) print_points::getPoint1_$0)
  [16] call print_byte 
  to:print_points::@4
print_points::@4: scope:[print_points]  from print_points::@2
  [17] phi()
  [18] call print_str 
  to:print_points::pointYpos1
print_points::pointYpos1: scope:[print_points]  from print_points::@4
  [19] phi()
  to:print_points::@3
print_points::@3: scope:[print_points]  from print_points::pointYpos1
  [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1)
  [21] call print_byte 
  to:print_points::@5
print_points::@5: scope:[print_points]  from print_points::@3
  [22] phi()
  [23] call print_ln 
  to:print_points::@6
print_points::@6: scope:[print_points]  from print_points::@5
  [24] (byte) print_points::i#1 ← ++ (byte) print_points::i#10
  [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto print_points::@7
  to:print_points::@return
print_points::@return: scope:[print_points]  from print_points::@6
  [26] return 
  to:@return
print_points::@7: scope:[print_points]  from print_points::@6
  [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1
  to:print_points::@1

(void()) print_ln()
print_ln: scope:[print_ln]  from print_points::@5
  [28] phi()
  to:print_ln::@1
print_ln::@1: scope:[print_ln]  from print_ln print_ln::@1
  [29] (byte*) print_line_cursor#11 ← phi( print_ln/(byte*) print_line_cursor#24 print_ln::@1/(byte*) print_line_cursor#1 )
  [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $28
  [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) goto print_ln::@1
  to:print_ln::@return
print_ln::@return: scope:[print_ln]  from print_ln::@1
  [32] return 
  to:@return

(void()) print_byte((byte) print_byte::b)
print_byte: scope:[print_byte]  from print_points::@2 print_points::@3
  [33] (byte*) print_char_cursor#42 ← phi( print_points::@2/(byte*) print_char_cursor#45 print_points::@3/(byte*) print_char_cursor#2 )
  [33] (byte) print_byte::b#2 ← phi( print_points::@2/(byte) print_byte::b#0 print_points::@3/(byte) print_byte::b#1 )
  [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4
  [35] (byte) print_char::ch#0 ← *((const byte*) print_hextab + (byte~) print_byte::$0)
  [36] call print_char 
  to:print_byte::@1
print_byte::@1: scope:[print_byte]  from print_byte
  [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f
  [38] (byte) print_char::ch#1 ← *((const byte*) print_hextab + (byte~) print_byte::$2)
  [39] call print_char 
  to:print_byte::@return
print_byte::@return: scope:[print_byte]  from print_byte::@1
  [40] return 
  to:@return

(void()) print_char((byte) print_char::ch)
print_char: scope:[print_char]  from print_byte print_byte::@1
  [41] (byte*) print_char_cursor#28 ← phi( print_byte/(byte*) print_char_cursor#42 print_byte::@1/(byte*) print_char_cursor#29 )
  [41] (byte) print_char::ch#2 ← phi( print_byte/(byte) print_char::ch#0 print_byte::@1/(byte) print_char::ch#1 )
  [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2
  [43] (byte*) print_char_cursor#29 ← ++ (byte*) print_char_cursor#28
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  [44] return 
  to:@return

(void()) print_str((byte*) print_str::str)
print_str: scope:[print_str]  from print_points::@4
  [45] phi()
  to:print_str::@1
print_str::@1: scope:[print_str]  from print_str print_str::@2
  [46] (byte*) print_char_cursor#2 ← phi( print_str/(byte*) print_char_cursor#29 print_str::@2/(byte*) print_char_cursor#1 )
  [46] (byte*) print_str::str#2 ← phi( print_str/(const string) print_points::str print_str::@2/(byte*) print_str::str#0 )
  [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2
  to:print_str::@return
print_str::@return: scope:[print_str]  from print_str::@1
  [48] return 
  to:@return
print_str::@2: scope:[print_str]  from print_str::@1
  [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2)
  [50] (byte*) print_char_cursor#1 ← ++ (byte*) print_char_cursor#2
  [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2
  to:print_str::@1

(void()) print_cls()
print_cls: scope:[print_cls]  from print_points
  [52] phi()
  [53] call memset 
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls
  [54] return 
  to:@return

(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
memset: scope:[memset]  from print_cls
  [55] phi()
  to:memset::@1
memset::@1: scope:[memset]  from memset memset::@2
  [56] (byte*) memset::dst#2 ← phi( memset/(byte*)(const void*) memset::str#0 memset::@2/(byte*) memset::dst#1 )
  [57] if((byte*) memset::dst#2!=(const byte*) memset::end#0) goto memset::@2
  to:memset::@return
memset::@return: scope:[memset]  from memset::@1
  [58] return 
  to:@return
memset::@2: scope:[memset]  from memset::@1
  [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0
  [60] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2
  to:memset::@1

(void()) init_points()
init_points: scope:[init_points]  from main
  [61] phi()
  to:init_points::@1
init_points::@1: scope:[init_points]  from init_points init_points::@3
  [62] (byte) init_points::pos#10 ← phi( init_points/(byte) $a init_points::@3/(byte) init_points::pos#2 )
  [62] (byte) init_points::i#10 ← phi( init_points/(byte) 0 init_points::@3/(byte) init_points::i#1 )
  to:init_points::getPoint1
init_points::getPoint1: scope:[init_points]  from init_points::@1
  [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1
  [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0
  to:init_points::pointXpos1
init_points::pointXpos1: scope:[init_points]  from init_points::getPoint1
  [65] phi()
  to:init_points::@2
init_points::@2: scope:[init_points]  from init_points::pointXpos1
  [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10
  [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a
  to:init_points::pointYpos1
init_points::pointYpos1: scope:[init_points]  from init_points::@2
  [68] phi()
  to:init_points::@3
init_points::@3: scope:[init_points]  from init_points::pointYpos1
  [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1
  [70] (byte) init_points::pos#2 ← (byte) init_points::pos#1 + (byte) $a
  [71] (byte) init_points::i#1 ← ++ (byte) init_points::i#10
  [72] if((byte) init_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto init_points::@1
  to:init_points::@return
init_points::@return: scope:[init_points]  from init_points::@3
  [73] return 
  to:@return


VARIABLE REGISTER WEIGHTS
(void()) init_points()
(byte~) init_points::getPoint1_$0 11.0
(byte) init_points::getPoint1_idx
(byte*) init_points::getPoint1_return
(byte*) init_points::getPoint1_return#0 4.4
(byte) init_points::i
(byte) init_points::i#1 16.5
(byte) init_points::i#10 3.666666666666667
(byte*) init_points::point
(byte*) init_points::pointXpos1_point
(byte*) init_points::pointXpos1_return
(byte*) init_points::pointYpos1_point
(byte*) init_points::pointYpos1_return
(byte) init_points::pos
(byte) init_points::pos#1 11.0
(byte) init_points::pos#10 6.6000000000000005
(byte) init_points::pos#2 7.333333333333333
(void()) main()
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(byte) memset::c
(byte*) memset::dst
(byte*) memset::dst#1 22.0
(byte*) memset::dst#2 14.666666666666666
(byte*) memset::end
(word) memset::num
(void*) memset::return
(void*) memset::str
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0 4.0
(byte~) print_byte::$2 4.0
(byte) print_byte::b
(byte) print_byte::b#0 22.0
(byte) print_byte::b#1 22.0
(byte) print_byte::b#2 6.5
(void()) print_char((byte) print_char::ch)
(byte) print_char::ch
(byte) print_char::ch#0 4.0
(byte) print_char::ch#1 4.0
(byte) print_char::ch#2 6.0
(byte*) print_char_cursor
(byte*) print_char_cursor#1 101.0
(byte*) print_char_cursor#2 45.142857142857146
(byte*) print_char_cursor#28 4.0
(byte*) print_char_cursor#29 6.6875
(byte*) print_char_cursor#42 8.0
(byte*) print_char_cursor#45 4.4
(byte*) print_char_cursor#64 22.0
(void()) print_cls()
(byte*) print_line_cursor
(byte*) print_line_cursor#1 46.42857142857143
(byte*) print_line_cursor#11 204.0
(byte*) print_line_cursor#24 1.0
(void()) print_ln()
(void()) print_points()
(byte~) print_points::getPoint1_$0 11.0
(byte) print_points::getPoint1_idx
(byte*) print_points::getPoint1_return
(byte) print_points::i
(byte) print_points::i#1 11.0
(byte) print_points::i#10 2.5384615384615383
(byte*) print_points::point
(byte*) print_points::point#0 3.142857142857143
(byte*) print_points::pointXpos1_point
(byte*) print_points::pointXpos1_return
(byte*) print_points::pointYpos1_point
(byte*) print_points::pointYpos1_return
(byte*) print_screen
(void()) print_str((byte*) print_str::str)
(byte*) print_str::str
(byte*) print_str::str#0 202.0
(byte*) print_str::str#2 101.0

Initial phi equivalence classes
[ print_points::i#10 print_points::i#1 ]
[ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
[ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
[ print_char::ch#2 print_char::ch#0 print_char::ch#1 ]
[ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
[ print_str::str#2 print_str::str#0 ]
[ memset::dst#2 memset::dst#1 ]
[ init_points::i#10 init_points::i#1 ]
[ init_points::pos#10 init_points::pos#2 ]
Added variable print_points::getPoint1_$0 to live range equivalence class [ print_points::getPoint1_$0 ]
Added variable print_points::point#0 to live range equivalence class [ print_points::point#0 ]
Added variable print_byte::$0 to live range equivalence class [ print_byte::$0 ]
Added variable print_byte::$2 to live range equivalence class [ print_byte::$2 ]
Added variable init_points::getPoint1_$0 to live range equivalence class [ init_points::getPoint1_$0 ]
Added variable init_points::getPoint1_return#0 to live range equivalence class [ init_points::getPoint1_return#0 ]
Added variable init_points::pos#1 to live range equivalence class [ init_points::pos#1 ]
Complete equivalence classes
[ print_points::i#10 print_points::i#1 ]
[ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
[ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
[ print_char::ch#2 print_char::ch#0 print_char::ch#1 ]
[ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
[ print_str::str#2 print_str::str#0 ]
[ memset::dst#2 memset::dst#1 ]
[ init_points::i#10 init_points::i#1 ]
[ init_points::pos#10 init_points::pos#2 ]
[ print_points::getPoint1_$0 ]
[ print_points::point#0 ]
[ print_byte::$0 ]
[ print_byte::$2 ]
[ init_points::getPoint1_$0 ]
[ init_points::getPoint1_return#0 ]
[ init_points::pos#1 ]
Allocated zp[1]:2 [ print_points::i#10 print_points::i#1 ]
Allocated zp[2]:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
Allocated zp[1]:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Allocated zp[1]:6 [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ]
Allocated zp[2]:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
Allocated zp[2]:9 [ print_str::str#2 print_str::str#0 ]
Allocated zp[2]:11 [ memset::dst#2 memset::dst#1 ]
Allocated zp[1]:13 [ init_points::i#10 init_points::i#1 ]
Allocated zp[1]:14 [ init_points::pos#10 init_points::pos#2 ]
Allocated zp[1]:15 [ print_points::getPoint1_$0 ]
Allocated zp[2]:16 [ print_points::point#0 ]
Allocated zp[1]:18 [ print_byte::$0 ]
Allocated zp[1]:19 [ print_byte::$2 ]
Allocated zp[1]:20 [ init_points::getPoint1_$0 ]
Allocated zp[2]:21 [ init_points::getPoint1_return#0 ]
Allocated zp[1]:23 [ init_points::pos#1 ]

INITIAL ASM
Target platform is c64basic / MOS6502X
  // File Comments
// Implementing a semi-struct without the struct keyword by using pointer math and inline functions
//
// struct Point {
//    byte xpos; // The x-position
//    byte ypos; // The y-position
// };
// Point[NUM_POINTS] points;
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(__bbegin)
.pc = $80d "Program"
  // Global Constants & labels
  // The size of a point
  .const SIZEOF_POINT = 2
  // The number of points
  .const NUM_POINTS = 4
  .label print_char_cursor = 7
  .label print_line_cursor = 3
  // @begin
__bbegin:
  // [1] phi from @begin to @1 [phi:@begin->@1]
__b1_from___bbegin:
  jmp __b1
  // @1
__b1:
  // [2] call main 
  // [4] phi from @1 to main [phi:@1->main]
main_from___b1:
  jsr main
  // [3] phi from @1 to @end [phi:@1->@end]
__bend_from___b1:
  jmp __bend
  // @end
__bend:
  // main
// Initialize some points and print them
main: {
    // [5] call init_points 
    // [61] phi from main to init_points [phi:main->init_points]
  init_points_from_main:
    jsr init_points
    // [6] phi from main to main::@1 [phi:main->main::@1]
  __b1_from_main:
    jmp __b1
    // main::@1
  __b1:
    // [7] call print_points 
    // [9] phi from main::@1 to print_points [phi:main::@1->print_points]
  print_points_from___b1:
    jsr print_points
    jmp __breturn
    // main::@return
  __breturn:
    // [8] return 
    rts
}
  // print_points
// Print points
print_points: {
    .label getPoint1___0 = $f
    .label point = $10
    .label i = 2
    // [10] call print_cls 
    // [52] phi from print_points to print_cls [phi:print_points->print_cls]
  print_cls_from_print_points:
    jsr print_cls
    // [11] phi from print_points to print_points::@1 [phi:print_points->print_points::@1]
  __b1_from_print_points:
    // [11] phi (byte*) print_line_cursor#24 = (byte*) 1024 [phi:print_points->print_points::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_line_cursor
    lda #>$400
    sta.z print_line_cursor+1
    // [11] phi (byte*) print_char_cursor#45 = (byte*) 1024 [phi:print_points->print_points::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_char_cursor
    lda #>$400
    sta.z print_char_cursor+1
    // [11] phi (byte) print_points::i#10 = (byte) 0 [phi:print_points->print_points::@1#2] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    jmp __b1
    // print_points::@1
  __b1:
    jmp getPoint1
    // print_points::getPoint1
  getPoint1:
    // [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1 -- vbuz1=vbuz2_rol_1 
    lda.z i
    asl
    sta.z getPoint1___0
    // [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuz2 
    lda.z getPoint1___0
    clc
    adc #<points
    sta.z point
    lda #>points
    adc #0
    sta.z point+1
    // [14] phi from print_points::getPoint1 to print_points::pointXpos1 [phi:print_points::getPoint1->print_points::pointXpos1]
  pointXpos1_from_getPoint1:
    jmp pointXpos1
    // print_points::pointXpos1
  pointXpos1:
    jmp __b2
    // print_points::@2
  __b2:
    // [15] (byte) print_byte::b#0 ← *((const byte*) points + (byte~) print_points::getPoint1_$0) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy.z getPoint1___0
    lda points,y
    sta.z print_byte.b
    // [16] call print_byte 
    // [33] phi from print_points::@2 to print_byte [phi:print_points::@2->print_byte]
  print_byte_from___b2:
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#45 [phi:print_points::@2->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#0 [phi:print_points::@2->print_byte#1] -- register_copy 
    jsr print_byte
    // [17] phi from print_points::@2 to print_points::@4 [phi:print_points::@2->print_points::@4]
  __b4_from___b2:
    jmp __b4
    // print_points::@4
  __b4:
    // [18] call print_str 
    // [45] phi from print_points::@4 to print_str [phi:print_points::@4->print_str]
  print_str_from___b4:
    jsr print_str
    // [19] phi from print_points::@4 to print_points::pointYpos1 [phi:print_points::@4->print_points::pointYpos1]
  pointYpos1_from___b4:
    jmp pointYpos1
    // print_points::pointYpos1
  pointYpos1:
    jmp __b3
    // print_points::@3
  __b3:
    // [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1) -- vbuz1=pbuz2_derefidx_vbuc1 
    ldy #1
    lda (point),y
    sta.z print_byte.b
    // [21] call print_byte 
    // [33] phi from print_points::@3 to print_byte [phi:print_points::@3->print_byte]
  print_byte_from___b3:
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#2 [phi:print_points::@3->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#1 [phi:print_points::@3->print_byte#1] -- register_copy 
    jsr print_byte
    // [22] phi from print_points::@3 to print_points::@5 [phi:print_points::@3->print_points::@5]
  __b5_from___b3:
    jmp __b5
    // print_points::@5
  __b5:
    // [23] call print_ln 
    // [28] phi from print_points::@5 to print_ln [phi:print_points::@5->print_ln]
  print_ln_from___b5:
    jsr print_ln
    jmp __b6
    // print_points::@6
  __b6:
    // [24] (byte) print_points::i#1 ← ++ (byte) print_points::i#10 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp.z i
    bne __b7
    jmp __breturn
    // print_points::@return
  __breturn:
    // [26] return 
    rts
    // print_points::@7
  __b7:
    // [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda.z print_line_cursor
    sta.z print_char_cursor
    lda.z print_line_cursor+1
    sta.z print_char_cursor+1
    // [11] phi from print_points::@7 to print_points::@1 [phi:print_points::@7->print_points::@1]
  __b1_from___b7:
    // [11] phi (byte*) print_line_cursor#24 = (byte*) print_line_cursor#1 [phi:print_points::@7->print_points::@1#0] -- register_copy 
    // [11] phi (byte*) print_char_cursor#45 = (byte*) print_char_cursor#64 [phi:print_points::@7->print_points::@1#1] -- register_copy 
    // [11] phi (byte) print_points::i#10 = (byte) print_points::i#1 [phi:print_points::@7->print_points::@1#2] -- register_copy 
    jmp __b1
    str: .text " "
    .byte 0
}
  // print_ln
// Print a newline
print_ln: {
    // [29] 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:
    // [29] phi (byte*) print_line_cursor#11 = (byte*) print_line_cursor#24 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    jmp __b1
    // print_ln::@1
  __b1:
    // [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $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
  !:
    // [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) 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:
    // [32] return 
    rts
}
  // print_byte
// Print a byte as HEX
// print_byte(byte zp(5) b)
print_byte: {
    .label __0 = $12
    .label __2 = $13
    .label b = 5
    // [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4 -- vbuz1=vbuz2_ror_4 
    lda.z b
    lsr
    lsr
    lsr
    lsr
    sta.z __0
    // [35] (byte) print_char::ch#0 ← *((const byte*) print_hextab + (byte~) print_byte::$0) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy.z __0
    lda print_hextab,y
    sta.z print_char.ch
    // [36] call print_char 
    // [41] phi from print_byte to print_char [phi:print_byte->print_char]
  print_char_from_print_byte:
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#42 [phi:print_byte->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
    jmp __b1
    // print_byte::@1
  __b1:
    // [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f -- vbuz1=vbuz2_band_vbuc1 
    lda #$f
    and.z b
    sta.z __2
    // [38] (byte) print_char::ch#1 ← *((const byte*) print_hextab + (byte~) print_byte::$2) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy.z __2
    lda print_hextab,y
    sta.z print_char.ch
    // [39] call print_char 
    // [41] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
  print_char_from___b1:
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#29 [phi:print_byte::@1->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
    jmp __breturn
    // print_byte::@return
  __breturn:
    // [40] return 
    rts
}
  // print_char
// Print a single char
// print_char(byte zp(6) ch)
print_char: {
    .label ch = 6
    // [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 -- _deref_pbuz1=vbuz2 
    lda.z ch
    ldy #0
    sta (print_char_cursor),y
    // [43] (byte*) print_char_cursor#29 ← ++ (byte*) print_char_cursor#28 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    jmp __breturn
    // print_char::@return
  __breturn:
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zp(9) str)
print_str: {
    .label str = 9
    // [46] phi from print_str to print_str::@1 [phi:print_str->print_str::@1]
  __b1_from_print_str:
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#29 [phi:print_str->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (const string) print_points::str [phi:print_str->print_str::@1#1] -- pbuz1=pbuc1 
    lda #<print_points.str
    sta.z str
    lda #>print_points.str
    sta.z str+1
    jmp __b1
    // print_str::@1
  __b1:
    // [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2 -- vbuc1_neq__deref_pbuz1_then_la1 
    ldy #0
    lda (str),y
    cmp #0
    bne __b2
    jmp __breturn
    // print_str::@return
  __breturn:
    // [48] return 
    rts
    // print_str::@2
  __b2:
    // [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2) -- _deref_pbuz1=_deref_pbuz2 
    ldy #0
    lda (str),y
    ldy #0
    sta (print_char_cursor),y
    // [50] (byte*) print_char_cursor#1 ← ++ (byte*) print_char_cursor#2 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc.z str
    bne !+
    inc.z str+1
  !:
    // [46] phi from print_str::@2 to print_str::@1 [phi:print_str::@2->print_str::@1]
  __b1_from___b2:
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#1 [phi:print_str::@2->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (byte*) print_str::str#0 [phi:print_str::@2->print_str::@1#1] -- register_copy 
    jmp __b1
}
  // print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    // [53] call memset 
    // [55] phi from print_cls to memset [phi:print_cls->memset]
  memset_from_print_cls:
    jsr memset
    jmp __breturn
    // print_cls::@return
  __breturn:
    // [54] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
memset: {
    .const c = ' '
    .const num = $3e8
    .label str = $400
    .label end = str+num
    .label dst = $b
    // [56] phi from memset to memset::@1 [phi:memset->memset::@1]
  __b1_from_memset:
    // [56] phi (byte*) memset::dst#2 = (byte*)(const void*) 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:
    // [57] if((byte*) memset::dst#2!=(const byte*) 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:
    // [58] return 
    rts
    // memset::@2
  __b2:
    // [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // [60] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    // [56] phi from memset::@2 to memset::@1 [phi:memset::@2->memset::@1]
  __b1_from___b2:
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@2->memset::@1#0] -- register_copy 
    jmp __b1
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1___0 = $14
    .label getPoint1_return = $15
    .label pos = $17
    .label pos_1 = $e
    .label i = $d
    // [62] phi from init_points to init_points::@1 [phi:init_points->init_points::@1]
  __b1_from_init_points:
    // [62] phi (byte) init_points::pos#10 = (byte) $a [phi:init_points->init_points::@1#0] -- vbuz1=vbuc1 
    lda #$a
    sta.z pos_1
    // [62] phi (byte) init_points::i#10 = (byte) 0 [phi:init_points->init_points::@1#1] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    jmp __b1
    // [62] phi from init_points::@3 to init_points::@1 [phi:init_points::@3->init_points::@1]
  __b1_from___b3:
    // [62] phi (byte) init_points::pos#10 = (byte) init_points::pos#2 [phi:init_points::@3->init_points::@1#0] -- register_copy 
    // [62] phi (byte) init_points::i#10 = (byte) init_points::i#1 [phi:init_points::@3->init_points::@1#1] -- register_copy 
    jmp __b1
    // init_points::@1
  __b1:
    jmp getPoint1
    // init_points::getPoint1
  getPoint1:
    // [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1 -- vbuz1=vbuz2_rol_1 
    lda.z i
    asl
    sta.z getPoint1___0
    // [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuz2 
    lda.z getPoint1___0
    clc
    adc #<points
    sta.z getPoint1_return
    lda #>points
    adc #0
    sta.z getPoint1_return+1
    // [65] phi from init_points::getPoint1 to init_points::pointXpos1 [phi:init_points::getPoint1->init_points::pointXpos1]
  pointXpos1_from_getPoint1:
    jmp pointXpos1
    // init_points::pointXpos1
  pointXpos1:
    jmp __b2
    // init_points::@2
  __b2:
    // [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuz1=vbuz2 
    lda.z pos_1
    ldy.z getPoint1___0
    sta points,y
    // [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a -- vbuz1=vbuz2_plus_vbuc1 
    lax.z pos_1
    axs #-[$a]
    stx.z pos
    // [68] phi from init_points::@2 to init_points::pointYpos1 [phi:init_points::@2->init_points::pointYpos1]
  pointYpos1_from___b2:
    jmp pointYpos1
    // init_points::pointYpos1
  pointYpos1:
    jmp __b3
    // init_points::@3
  __b3:
    // [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1 -- pbuz1_derefidx_vbuc1=vbuz2 
    lda.z pos
    ldy #1
    sta (getPoint1_return),y
    // [70] (byte) init_points::pos#2 ← (byte) init_points::pos#1 + (byte) $a -- vbuz1=vbuz2_plus_vbuc1 
    lax.z pos
    axs #-[$a]
    stx.z pos_1
    // [71] (byte) init_points::i#1 ← ++ (byte) init_points::i#10 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [72] if((byte) init_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto init_points::@1 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp.z i
    bne __b1_from___b3
    jmp __breturn
    // init_points::@return
  __breturn:
    // [73] return 
    rts
}
  // File Data
  print_hextab: .text "0123456789abcdef"
  // All points
  points: .fill NUM_POINTS*SIZEOF_POINT, 0

REGISTER UPLIFT POTENTIAL REGISTERS
Statement [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:2 [ print_points::i#10 print_points::i#1 ]
Statement [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 print_points::point#0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 print_points::point#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:15 [ print_points::getPoint1_$0 ]
Statement [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1) [ print_points::i#10 print_line_cursor#24 print_byte::b#1 print_char_cursor#2 ] ( main:2::print_points:7 [ print_points::i#10 print_line_cursor#24 print_byte::b#1 print_char_cursor#2 ] ) always clobbers reg byte a reg byte y 
Removing always clobbered register reg byte y as potential for zp[1]:2 [ print_points::i#10 print_points::i#1 ]
Statement [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1 [ print_points::i#1 print_char_cursor#64 print_line_cursor#1 ] ( main:2::print_points:7 [ print_points::i#1 print_char_cursor#64 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $28 [ print_line_cursor#1 print_char_cursor#29 ] ( main:2::print_points:7::print_ln:23 [ print_points::i#10 print_line_cursor#1 print_char_cursor#29 ] ) always clobbers reg byte a 
Statement [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) goto print_ln::@1 [ print_line_cursor#1 print_char_cursor#29 ] ( main:2::print_points:7::print_ln:23 [ print_points::i#10 print_line_cursor#1 print_char_cursor#29 ] ) always clobbers reg byte a 
Statement [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4 [ print_byte::b#2 print_char_cursor#42 print_byte::$0 ] ( main:2::print_points:7::print_byte:16 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_byte::b#2 print_char_cursor#42 print_byte::$0 ] main:2::print_points:7::print_byte:21 [ print_points::i#10 print_line_cursor#24 print_byte::b#2 print_char_cursor#42 print_byte::$0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Statement [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f [ print_char_cursor#29 print_byte::$2 ] ( main:2::print_points:7::print_byte:16 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#29 print_byte::$2 ] main:2::print_points:7::print_byte:21 [ print_points::i#10 print_line_cursor#24 print_char_cursor#29 print_byte::$2 ] ) always clobbers reg byte a 
Statement [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 [ print_char_cursor#28 ] ( main:2::print_points:7::print_byte:16::print_char:36 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_byte::b#2 print_char_cursor#28 ] main:2::print_points:7::print_byte:21::print_char:36 [ print_points::i#10 print_line_cursor#24 print_byte::b#2 print_char_cursor#28 ] main:2::print_points:7::print_byte:16::print_char:39 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#28 ] main:2::print_points:7::print_byte:21::print_char:39 [ print_points::i#10 print_line_cursor#24 print_char_cursor#28 ] ) always clobbers reg byte y 
Removing always clobbered register reg byte y as potential for zp[1]:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Statement [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2 [ print_char_cursor#2 print_str::str#2 ] ( main:2::print_points:7::print_str:18 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#2 print_str::str#2 ] ) always clobbers reg byte a reg byte y 
Statement [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2) [ print_char_cursor#2 print_str::str#2 ] ( main:2::print_points:7::print_str:18 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#2 print_str::str#2 ] ) always clobbers reg byte a reg byte y 
Statement [57] if((byte*) memset::dst#2!=(const byte*) memset::end#0) goto memset::@2 [ memset::dst#2 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#2 ] ) always clobbers reg byte a 
Statement [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0 [ memset::dst#2 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#2 ] ) always clobbers reg byte a reg byte y 
Statement [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:13 [ init_points::i#10 init_points::i#1 ]
Removing always clobbered register reg byte a as potential for zp[1]:14 [ init_points::pos#10 init_points::pos#2 ]
Statement [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp[1]:20 [ init_points::getPoint1_$0 ]
Statement [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Statement [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a [ init_points::i#10 init_points::getPoint1_return#0 init_points::pos#1 ] ( main:2::init_points:5 [ init_points::i#10 init_points::getPoint1_return#0 init_points::pos#1 ] ) always clobbers reg byte a 
Statement [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1 [ init_points::i#10 init_points::pos#1 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#1 ] ) always clobbers reg byte y 
Removing always clobbered register reg byte y as potential for zp[1]:13 [ init_points::i#10 init_points::i#1 ]
Removing always clobbered register reg byte y as potential for zp[1]:23 [ init_points::pos#1 ]
Statement [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 ] ) always clobbers reg byte a 
Statement [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 print_points::point#0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0 print_points::point#0 ] ) always clobbers reg byte a 
Statement [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1) [ print_points::i#10 print_line_cursor#24 print_byte::b#1 print_char_cursor#2 ] ( main:2::print_points:7 [ print_points::i#10 print_line_cursor#24 print_byte::b#1 print_char_cursor#2 ] ) always clobbers reg byte a reg byte y 
Statement [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1 [ print_points::i#1 print_char_cursor#64 print_line_cursor#1 ] ( main:2::print_points:7 [ print_points::i#1 print_char_cursor#64 print_line_cursor#1 ] ) always clobbers reg byte a 
Statement [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $28 [ print_line_cursor#1 print_char_cursor#29 ] ( main:2::print_points:7::print_ln:23 [ print_points::i#10 print_line_cursor#1 print_char_cursor#29 ] ) always clobbers reg byte a 
Statement [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) goto print_ln::@1 [ print_line_cursor#1 print_char_cursor#29 ] ( main:2::print_points:7::print_ln:23 [ print_points::i#10 print_line_cursor#1 print_char_cursor#29 ] ) always clobbers reg byte a 
Statement [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4 [ print_byte::b#2 print_char_cursor#42 print_byte::$0 ] ( main:2::print_points:7::print_byte:16 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_byte::b#2 print_char_cursor#42 print_byte::$0 ] main:2::print_points:7::print_byte:21 [ print_points::i#10 print_line_cursor#24 print_byte::b#2 print_char_cursor#42 print_byte::$0 ] ) always clobbers reg byte a 
Statement [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f [ print_char_cursor#29 print_byte::$2 ] ( main:2::print_points:7::print_byte:16 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#29 print_byte::$2 ] main:2::print_points:7::print_byte:21 [ print_points::i#10 print_line_cursor#24 print_char_cursor#29 print_byte::$2 ] ) always clobbers reg byte a 
Statement [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 [ print_char_cursor#28 ] ( main:2::print_points:7::print_byte:16::print_char:36 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_byte::b#2 print_char_cursor#28 ] main:2::print_points:7::print_byte:21::print_char:36 [ print_points::i#10 print_line_cursor#24 print_byte::b#2 print_char_cursor#28 ] main:2::print_points:7::print_byte:16::print_char:39 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#28 ] main:2::print_points:7::print_byte:21::print_char:39 [ print_points::i#10 print_line_cursor#24 print_char_cursor#28 ] ) always clobbers reg byte y 
Statement [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2 [ print_char_cursor#2 print_str::str#2 ] ( main:2::print_points:7::print_str:18 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#2 print_str::str#2 ] ) always clobbers reg byte a reg byte y 
Statement [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2) [ print_char_cursor#2 print_str::str#2 ] ( main:2::print_points:7::print_str:18 [ print_points::i#10 print_line_cursor#24 print_points::point#0 print_char_cursor#2 print_str::str#2 ] ) always clobbers reg byte a reg byte y 
Statement [57] if((byte*) memset::dst#2!=(const byte*) memset::end#0) goto memset::@2 [ memset::dst#2 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#2 ] ) always clobbers reg byte a 
Statement [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0 [ memset::dst#2 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#2 ] ) always clobbers reg byte a reg byte y 
Statement [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 ] ) always clobbers reg byte a 
Statement [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Statement [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Statement [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a [ init_points::i#10 init_points::getPoint1_return#0 init_points::pos#1 ] ( main:2::init_points:5 [ init_points::i#10 init_points::getPoint1_return#0 init_points::pos#1 ] ) always clobbers reg byte a 
Statement [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1 [ init_points::i#10 init_points::pos#1 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#1 ] ) always clobbers reg byte y 
Potential registers zp[1]:2 [ print_points::i#10 print_points::i#1 ] : zp[1]:2 , reg byte x , 
Potential registers zp[2]:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] : zp[2]:3 , 
Potential registers zp[1]:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ] : zp[1]:5 , reg byte x , 
Potential registers zp[1]:6 [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ] : zp[1]:6 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[2]:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] : zp[2]:7 , 
Potential registers zp[2]:9 [ print_str::str#2 print_str::str#0 ] : zp[2]:9 , 
Potential registers zp[2]:11 [ memset::dst#2 memset::dst#1 ] : zp[2]:11 , 
Potential registers zp[1]:13 [ init_points::i#10 init_points::i#1 ] : zp[1]:13 , reg byte x , 
Potential registers zp[1]:14 [ init_points::pos#10 init_points::pos#2 ] : zp[1]:14 , reg byte x , reg byte y , 
Potential registers zp[1]:15 [ print_points::getPoint1_$0 ] : zp[1]:15 , reg byte x , reg byte y , 
Potential registers zp[2]:16 [ print_points::point#0 ] : zp[2]:16 , 
Potential registers zp[1]:18 [ print_byte::$0 ] : zp[1]:18 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[1]:19 [ print_byte::$2 ] : zp[1]:19 , reg byte a , reg byte x , reg byte y , 
Potential registers zp[1]:20 [ init_points::getPoint1_$0 ] : zp[1]:20 , reg byte x , reg byte y , 
Potential registers zp[2]:21 [ init_points::getPoint1_return#0 ] : zp[2]:21 , 
Potential registers zp[1]:23 [ init_points::pos#1 ] : zp[1]:23 , reg byte a , reg byte x , 

REGISTER UPLIFT SCOPES
Uplift Scope [] 251.43: zp[2]:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] 191.23: zp[2]:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] 
Uplift Scope [print_str] 303: zp[2]:9 [ print_str::str#2 print_str::str#0 ] 
Uplift Scope [init_points] 20.17: zp[1]:13 [ init_points::i#10 init_points::i#1 ] 13.93: zp[1]:14 [ init_points::pos#10 init_points::pos#2 ] 11: zp[1]:20 [ init_points::getPoint1_$0 ] 11: zp[1]:23 [ init_points::pos#1 ] 4.4: zp[2]:21 [ init_points::getPoint1_return#0 ] 
Uplift Scope [print_byte] 50.5: zp[1]:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ] 4: zp[1]:18 [ print_byte::$0 ] 4: zp[1]:19 [ print_byte::$2 ] 
Uplift Scope [memset] 36.67: zp[2]:11 [ memset::dst#2 memset::dst#1 ] 
Uplift Scope [print_points] 13.54: zp[1]:2 [ print_points::i#10 print_points::i#1 ] 11: zp[1]:15 [ print_points::getPoint1_$0 ] 3.14: zp[2]:16 [ print_points::point#0 ] 
Uplift Scope [print_char] 14: zp[1]:6 [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ] 
Uplift Scope [RADIX] 
Uplift Scope [print_ln] 
Uplift Scope [print_cls] 
Uplift Scope [main] 

Uplifting [] best 14577 combination zp[2]:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] zp[2]:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] 
Uplifting [print_str] best 14577 combination zp[2]:9 [ print_str::str#2 print_str::str#0 ] 
Uplifting [init_points] best 14377 combination reg byte x [ init_points::i#10 init_points::i#1 ] zp[1]:14 [ init_points::pos#10 init_points::pos#2 ] reg byte y [ init_points::getPoint1_$0 ] reg byte a [ init_points::pos#1 ] zp[2]:21 [ init_points::getPoint1_return#0 ] 
Uplifting [print_byte] best 14325 combination reg byte x [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ] reg byte a [ print_byte::$0 ] reg byte x [ print_byte::$2 ] 
Uplifting [memset] best 14325 combination zp[2]:11 [ memset::dst#2 memset::dst#1 ] 
Uplifting [print_points] best 14275 combination zp[1]:2 [ print_points::i#10 print_points::i#1 ] reg byte y [ print_points::getPoint1_$0 ] zp[2]:16 [ print_points::point#0 ] 
Uplifting [print_char] best 14266 combination reg byte a [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ] 
Uplifting [RADIX] best 14266 combination 
Uplifting [print_ln] best 14266 combination 
Uplifting [print_cls] best 14266 combination 
Uplifting [main] best 14266 combination 
Attempting to uplift remaining variables inzp[1]:14 [ init_points::pos#10 init_points::pos#2 ]
Uplifting [init_points] best 14266 combination zp[1]:14 [ init_points::pos#10 init_points::pos#2 ] 
Attempting to uplift remaining variables inzp[1]:2 [ print_points::i#10 print_points::i#1 ]
Uplifting [print_points] best 14266 combination zp[1]:2 [ print_points::i#10 print_points::i#1 ] 
Coalescing zero page register [ zp[2]:11 [ memset::dst#2 memset::dst#1 ] ] with [ zp[2]:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] ]
Coalescing zero page register [ zp[1]:14 [ init_points::pos#10 init_points::pos#2 ] ] with [ zp[1]:2 [ print_points::i#10 print_points::i#1 ] ]
Coalescing zero page register [ zp[2]:21 [ init_points::getPoint1_return#0 ] ] with [ zp[2]:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] ]
Allocated (was zp[2]:9) zp[2]:2 [ print_str::str#2 print_str::str#0 ]
Allocated (was zp[2]:11) zp[2]:4 [ memset::dst#2 memset::dst#1 print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
Allocated (was zp[1]:14) zp[1]:6 [ init_points::pos#10 init_points::pos#2 print_points::i#10 print_points::i#1 ]
Allocated (was zp[2]:16) zp[2]:7 [ print_points::point#0 ]
Allocated (was zp[2]:21) zp[2]:9 [ init_points::getPoint1_return#0 print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]

ASSEMBLER BEFORE OPTIMIZATION
  // File Comments
// Implementing a semi-struct without the struct keyword by using pointer math and inline functions
//
// struct Point {
//    byte xpos; // The x-position
//    byte ypos; // The y-position
// };
// Point[NUM_POINTS] points;
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(__bbegin)
.pc = $80d "Program"
  // Global Constants & labels
  // The size of a point
  .const SIZEOF_POINT = 2
  // The number of points
  .const NUM_POINTS = 4
  .label print_char_cursor = 9
  .label print_line_cursor = 4
  // @begin
__bbegin:
  // [1] phi from @begin to @1 [phi:@begin->@1]
__b1_from___bbegin:
  jmp __b1
  // @1
__b1:
  // [2] call main 
  // [4] phi from @1 to main [phi:@1->main]
main_from___b1:
  jsr main
  // [3] phi from @1 to @end [phi:@1->@end]
__bend_from___b1:
  jmp __bend
  // @end
__bend:
  // main
// Initialize some points and print them
main: {
    // [5] call init_points 
    // [61] phi from main to init_points [phi:main->init_points]
  init_points_from_main:
    jsr init_points
    // [6] phi from main to main::@1 [phi:main->main::@1]
  __b1_from_main:
    jmp __b1
    // main::@1
  __b1:
    // [7] call print_points 
    // [9] phi from main::@1 to print_points [phi:main::@1->print_points]
  print_points_from___b1:
    jsr print_points
    jmp __breturn
    // main::@return
  __breturn:
    // [8] return 
    rts
}
  // print_points
// Print points
print_points: {
    .label point = 7
    .label i = 6
    // [10] call print_cls 
    // [52] phi from print_points to print_cls [phi:print_points->print_cls]
  print_cls_from_print_points:
    jsr print_cls
    // [11] phi from print_points to print_points::@1 [phi:print_points->print_points::@1]
  __b1_from_print_points:
    // [11] phi (byte*) print_line_cursor#24 = (byte*) 1024 [phi:print_points->print_points::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_line_cursor
    lda #>$400
    sta.z print_line_cursor+1
    // [11] phi (byte*) print_char_cursor#45 = (byte*) 1024 [phi:print_points->print_points::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_char_cursor
    lda #>$400
    sta.z print_char_cursor+1
    // [11] phi (byte) print_points::i#10 = (byte) 0 [phi:print_points->print_points::@1#2] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    jmp __b1
    // print_points::@1
  __b1:
    jmp getPoint1
    // print_points::getPoint1
  getPoint1:
    // [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1 -- vbuyy=vbuz1_rol_1 
    lda.z i
    asl
    tay
    // [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta.z point
    lda #>points
    adc #0
    sta.z point+1
    // [14] phi from print_points::getPoint1 to print_points::pointXpos1 [phi:print_points::getPoint1->print_points::pointXpos1]
  pointXpos1_from_getPoint1:
    jmp pointXpos1
    // print_points::pointXpos1
  pointXpos1:
    jmp __b2
    // print_points::@2
  __b2:
    // [15] (byte) print_byte::b#0 ← *((const byte*) points + (byte~) print_points::getPoint1_$0) -- vbuxx=pbuc1_derefidx_vbuyy 
    ldx points,y
    // [16] call print_byte 
    // [33] phi from print_points::@2 to print_byte [phi:print_points::@2->print_byte]
  print_byte_from___b2:
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#45 [phi:print_points::@2->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#0 [phi:print_points::@2->print_byte#1] -- register_copy 
    jsr print_byte
    // [17] phi from print_points::@2 to print_points::@4 [phi:print_points::@2->print_points::@4]
  __b4_from___b2:
    jmp __b4
    // print_points::@4
  __b4:
    // [18] call print_str 
    // [45] phi from print_points::@4 to print_str [phi:print_points::@4->print_str]
  print_str_from___b4:
    jsr print_str
    // [19] phi from print_points::@4 to print_points::pointYpos1 [phi:print_points::@4->print_points::pointYpos1]
  pointYpos1_from___b4:
    jmp pointYpos1
    // print_points::pointYpos1
  pointYpos1:
    jmp __b3
    // print_points::@3
  __b3:
    // [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1) -- vbuxx=pbuz1_derefidx_vbuc1 
    ldy #1
    lda (point),y
    tax
    // [21] call print_byte 
    // [33] phi from print_points::@3 to print_byte [phi:print_points::@3->print_byte]
  print_byte_from___b3:
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#2 [phi:print_points::@3->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#1 [phi:print_points::@3->print_byte#1] -- register_copy 
    jsr print_byte
    // [22] phi from print_points::@3 to print_points::@5 [phi:print_points::@3->print_points::@5]
  __b5_from___b3:
    jmp __b5
    // print_points::@5
  __b5:
    // [23] call print_ln 
    // [28] phi from print_points::@5 to print_ln [phi:print_points::@5->print_ln]
  print_ln_from___b5:
    jsr print_ln
    jmp __b6
    // print_points::@6
  __b6:
    // [24] (byte) print_points::i#1 ← ++ (byte) print_points::i#10 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp.z i
    bne __b7
    jmp __breturn
    // print_points::@return
  __breturn:
    // [26] return 
    rts
    // print_points::@7
  __b7:
    // [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda.z print_line_cursor
    sta.z print_char_cursor
    lda.z print_line_cursor+1
    sta.z print_char_cursor+1
    // [11] phi from print_points::@7 to print_points::@1 [phi:print_points::@7->print_points::@1]
  __b1_from___b7:
    // [11] phi (byte*) print_line_cursor#24 = (byte*) print_line_cursor#1 [phi:print_points::@7->print_points::@1#0] -- register_copy 
    // [11] phi (byte*) print_char_cursor#45 = (byte*) print_char_cursor#64 [phi:print_points::@7->print_points::@1#1] -- register_copy 
    // [11] phi (byte) print_points::i#10 = (byte) print_points::i#1 [phi:print_points::@7->print_points::@1#2] -- register_copy 
    jmp __b1
    str: .text " "
    .byte 0
}
  // print_ln
// Print a newline
print_ln: {
    // [29] 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:
    // [29] phi (byte*) print_line_cursor#11 = (byte*) print_line_cursor#24 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    jmp __b1
    // print_ln::@1
  __b1:
    // [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $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
  !:
    // [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) 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:
    // [32] return 
    rts
}
  // print_byte
// Print a byte as HEX
// print_byte(byte register(X) b)
print_byte: {
    // [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
    // [35] (byte) print_char::ch#0 ← *((const byte*) print_hextab + (byte~) print_byte::$0) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
    // [36] call print_char 
    // [41] phi from print_byte to print_char [phi:print_byte->print_char]
  print_char_from_print_byte:
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#42 [phi:print_byte->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
    jmp __b1
    // print_byte::@1
  __b1:
    // [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f -- vbuxx=vbuxx_band_vbuc1 
    lda #$f
    axs #0
    // [38] (byte) print_char::ch#1 ← *((const byte*) print_hextab + (byte~) print_byte::$2) -- vbuaa=pbuc1_derefidx_vbuxx 
    lda print_hextab,x
    // [39] call print_char 
    // [41] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
  print_char_from___b1:
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#29 [phi:print_byte::@1->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
    jmp __breturn
    // print_byte::@return
  __breturn:
    // [40] return 
    rts
}
  // print_char
// Print a single char
// print_char(byte register(A) ch)
print_char: {
    // [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
    // [43] (byte*) print_char_cursor#29 ← ++ (byte*) print_char_cursor#28 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    jmp __breturn
    // print_char::@return
  __breturn:
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zp(2) str)
print_str: {
    .label str = 2
    // [46] phi from print_str to print_str::@1 [phi:print_str->print_str::@1]
  __b1_from_print_str:
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#29 [phi:print_str->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (const string) print_points::str [phi:print_str->print_str::@1#1] -- pbuz1=pbuc1 
    lda #<print_points.str
    sta.z str
    lda #>print_points.str
    sta.z str+1
    jmp __b1
    // print_str::@1
  __b1:
    // [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2 -- vbuc1_neq__deref_pbuz1_then_la1 
    ldy #0
    lda (str),y
    cmp #0
    bne __b2
    jmp __breturn
    // print_str::@return
  __breturn:
    // [48] return 
    rts
    // print_str::@2
  __b2:
    // [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2) -- _deref_pbuz1=_deref_pbuz2 
    ldy #0
    lda (str),y
    ldy #0
    sta (print_char_cursor),y
    // [50] (byte*) print_char_cursor#1 ← ++ (byte*) print_char_cursor#2 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc.z str
    bne !+
    inc.z str+1
  !:
    // [46] phi from print_str::@2 to print_str::@1 [phi:print_str::@2->print_str::@1]
  __b1_from___b2:
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#1 [phi:print_str::@2->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (byte*) print_str::str#0 [phi:print_str::@2->print_str::@1#1] -- register_copy 
    jmp __b1
}
  // print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    // [53] call memset 
    // [55] phi from print_cls to memset [phi:print_cls->memset]
  memset_from_print_cls:
    jsr memset
    jmp __breturn
    // print_cls::@return
  __breturn:
    // [54] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
memset: {
    .const c = ' '
    .const num = $3e8
    .label str = $400
    .label end = str+num
    .label dst = 4
    // [56] phi from memset to memset::@1 [phi:memset->memset::@1]
  __b1_from_memset:
    // [56] phi (byte*) memset::dst#2 = (byte*)(const void*) 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:
    // [57] if((byte*) memset::dst#2!=(const byte*) 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:
    // [58] return 
    rts
    // memset::@2
  __b2:
    // [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // [60] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    // [56] phi from memset::@2 to memset::@1 [phi:memset::@2->memset::@1]
  __b1_from___b2:
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@2->memset::@1#0] -- register_copy 
    jmp __b1
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1_return = 9
    .label pos = 6
    // [62] phi from init_points to init_points::@1 [phi:init_points->init_points::@1]
  __b1_from_init_points:
    // [62] phi (byte) init_points::pos#10 = (byte) $a [phi:init_points->init_points::@1#0] -- vbuz1=vbuc1 
    lda #$a
    sta.z pos
    // [62] phi (byte) init_points::i#10 = (byte) 0 [phi:init_points->init_points::@1#1] -- vbuxx=vbuc1 
    ldx #0
    jmp __b1
    // [62] phi from init_points::@3 to init_points::@1 [phi:init_points::@3->init_points::@1]
  __b1_from___b3:
    // [62] phi (byte) init_points::pos#10 = (byte) init_points::pos#2 [phi:init_points::@3->init_points::@1#0] -- register_copy 
    // [62] phi (byte) init_points::i#10 = (byte) init_points::i#1 [phi:init_points::@3->init_points::@1#1] -- register_copy 
    jmp __b1
    // init_points::@1
  __b1:
    jmp getPoint1
    // init_points::getPoint1
  getPoint1:
    // [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1 -- vbuyy=vbuxx_rol_1 
    txa
    asl
    tay
    // [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta.z getPoint1_return
    lda #>points
    adc #0
    sta.z getPoint1_return+1
    // [65] phi from init_points::getPoint1 to init_points::pointXpos1 [phi:init_points::getPoint1->init_points::pointXpos1]
  pointXpos1_from_getPoint1:
    jmp pointXpos1
    // init_points::pointXpos1
  pointXpos1:
    jmp __b2
    // init_points::@2
  __b2:
    // [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuyy=vbuz1 
    lda.z pos
    sta points,y
    // [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a -- vbuaa=vbuz1_plus_vbuc1 
    lda #$a
    clc
    adc.z pos
    // [68] phi from init_points::@2 to init_points::pointYpos1 [phi:init_points::@2->init_points::pointYpos1]
  pointYpos1_from___b2:
    jmp pointYpos1
    // init_points::pointYpos1
  pointYpos1:
    jmp __b3
    // init_points::@3
  __b3:
    // [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1 -- pbuz1_derefidx_vbuc1=vbuaa 
    ldy #1
    sta (getPoint1_return),y
    // [70] (byte) init_points::pos#2 ← (byte) init_points::pos#1 + (byte) $a -- vbuz1=vbuaa_plus_vbuc1 
    clc
    adc #$a
    sta.z pos
    // [71] (byte) init_points::i#1 ← ++ (byte) init_points::i#10 -- vbuxx=_inc_vbuxx 
    inx
    // [72] if((byte) init_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto init_points::@1 -- vbuxx_neq_vbuc1_then_la1 
    cpx #NUM_POINTS-1+1
    bne __b1_from___b3
    jmp __breturn
    // init_points::@return
  __breturn:
    // [73] return 
    rts
}
  // File Data
  print_hextab: .text "0123456789abcdef"
  // All points
  points: .fill NUM_POINTS*SIZEOF_POINT, 0

ASSEMBLER OPTIMIZATIONS
Removing instruction jmp __b1
Removing instruction jmp __bend
Removing instruction jmp __b1
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp getPoint1
Removing instruction jmp pointXpos1
Removing instruction jmp __b2
Removing instruction jmp __b4
Removing instruction jmp pointYpos1
Removing instruction jmp __b3
Removing instruction jmp __b5
Removing instruction jmp __b6
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp __breturn
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp __breturn
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp __breturn
Removing instruction jmp __b1
Removing instruction jmp getPoint1
Removing instruction jmp pointXpos1
Removing instruction jmp __b2
Removing instruction jmp pointYpos1
Removing instruction jmp __b3
Removing instruction jmp __breturn
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction ldy #0
Succesful ASM optimization Pass5UnnecesaryLoadElimination
Replacing label __bbegin 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 __bbegin:
Removing instruction __b1_from___bbegin:
Removing instruction main_from___b1:
Removing instruction __bend_from___b1:
Removing instruction __b1_from_main:
Removing instruction print_points_from___b1:
Removing instruction getPoint1:
Removing instruction pointXpos1_from_getPoint1:
Removing instruction pointXpos1:
Removing instruction __b4_from___b2:
Removing instruction print_str_from___b4:
Removing instruction pointYpos1_from___b4:
Removing instruction pointYpos1:
Removing instruction __b5_from___b3:
Removing instruction print_ln_from___b5:
Removing instruction __b1_from_print_ln:
Removing instruction __b1_from___b1:
Removing instruction __b1_from___b3:
Removing instruction getPoint1:
Removing instruction pointXpos1_from_getPoint1:
Removing instruction pointXpos1:
Removing instruction pointYpos1_from___b2:
Removing instruction pointYpos1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction __bend:
Removing instruction init_points_from_main:
Removing instruction __b1:
Removing instruction __breturn:
Removing instruction print_cls_from_print_points:
Removing instruction __b1_from_print_points:
Removing instruction __b2:
Removing instruction print_byte_from___b2:
Removing instruction __b4:
Removing instruction __b3:
Removing instruction print_byte_from___b3:
Removing instruction __b5:
Removing instruction __b6:
Removing instruction __breturn:
Removing instruction __b1_from___b7:
Removing instruction __breturn:
Removing instruction print_char_from_print_byte:
Removing instruction __b1:
Removing instruction print_char_from___b1:
Removing instruction __breturn:
Removing instruction __breturn:
Removing instruction __b1_from_print_str:
Removing instruction __breturn:
Removing instruction __b1_from___b2:
Removing instruction memset_from_print_cls:
Removing instruction __breturn:
Removing instruction __b1_from_memset:
Removing instruction __breturn:
Removing instruction __b1_from___b2:
Removing instruction __b1_from_init_points:
Removing instruction __b2:
Removing instruction __b3:
Removing instruction __breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Updating BasicUpstart to call main directly
Removing instruction jsr main
Succesful ASM optimization Pass5SkipBegin
Removing instruction jmp __b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction __b1:
Succesful ASM optimization Pass5UnusedLabelElimination

FINAL SYMBOL TABLE
(label) @1
(label) @begin
(label) @end
(const byte) NUM_POINTS = (byte) 4
(const byte) RADIX::BINARY = (number) 2
(const byte) RADIX::DECIMAL = (number) $a
(const byte) RADIX::HEXADECIMAL = (number) $10
(const byte) RADIX::OCTAL = (number) 8
(const byte) SIZEOF_POINT = (byte) 2
(void()) init_points()
(label) init_points::@1
(label) init_points::@2
(label) init_points::@3
(label) init_points::@return
(label) init_points::getPoint1
(byte~) init_points::getPoint1_$0 reg byte y 11.0
(byte) init_points::getPoint1_idx
(byte*) init_points::getPoint1_return
(byte*) init_points::getPoint1_return#0 getPoint1_return zp[2]:9 4.4
(byte) init_points::i
(byte) init_points::i#1 reg byte x 16.5
(byte) init_points::i#10 reg byte x 3.666666666666667
(byte*) init_points::point
(label) init_points::pointXpos1
(byte*) init_points::pointXpos1_point
(byte*) init_points::pointXpos1_return
(label) init_points::pointYpos1
(byte*) init_points::pointYpos1_point
(byte*) init_points::pointYpos1_return
(byte) init_points::pos
(byte) init_points::pos#1 reg byte a 11.0
(byte) init_points::pos#10 pos zp[1]:6 6.6000000000000005
(byte) init_points::pos#2 pos zp[1]:6 7.333333333333333
(void()) main()
(label) main::@1
(label) main::@return
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
(label) memset::@1
(label) memset::@2
(label) memset::@return
(byte) memset::c
(const byte) memset::c#0 c = (byte) ' '
(byte*) memset::dst
(byte*) memset::dst#1 dst zp[2]:4 22.0
(byte*) memset::dst#2 dst zp[2]:4 14.666666666666666
(byte*) memset::end
(const byte*) memset::end#0 end = (byte*)(const void*) memset::str#0+(const word) memset::num#0
(word) memset::num
(const word) memset::num#0 num = (word) $3e8
(void*) memset::return
(void*) memset::str
(const void*) memset::str#0 str = (void*)(byte*) 1024
(const byte*) points[(const byte) NUM_POINTS*(const byte) SIZEOF_POINT]  = { fill( NUM_POINTS*SIZEOF_POINT, 0) }
(void()) print_byte((byte) print_byte::b)
(byte~) print_byte::$0 reg byte a 4.0
(byte~) print_byte::$2 reg byte x 4.0
(label) print_byte::@1
(label) print_byte::@return
(byte) print_byte::b
(byte) print_byte::b#0 reg byte x 22.0
(byte) print_byte::b#1 reg byte x 22.0
(byte) print_byte::b#2 reg byte x 6.5
(void()) print_char((byte) print_char::ch)
(label) print_char::@return
(byte) print_char::ch
(byte) print_char::ch#0 reg byte a 4.0
(byte) print_char::ch#1 reg byte a 4.0
(byte) print_char::ch#2 reg byte a 6.0
(byte*) print_char_cursor
(byte*) print_char_cursor#1 print_char_cursor zp[2]:9 101.0
(byte*) print_char_cursor#2 print_char_cursor zp[2]:9 45.142857142857146
(byte*) print_char_cursor#28 print_char_cursor zp[2]:9 4.0
(byte*) print_char_cursor#29 print_char_cursor zp[2]:9 6.6875
(byte*) print_char_cursor#42 print_char_cursor zp[2]:9 8.0
(byte*) print_char_cursor#45 print_char_cursor zp[2]:9 4.4
(byte*) print_char_cursor#64 print_char_cursor zp[2]:9 22.0
(void()) print_cls()
(label) print_cls::@return
(const byte*) print_hextab[]  = (string) "0123456789abcdef"z
(byte*) print_line_cursor
(byte*) print_line_cursor#1 print_line_cursor zp[2]:4 46.42857142857143
(byte*) print_line_cursor#11 print_line_cursor zp[2]:4 204.0
(byte*) print_line_cursor#24 print_line_cursor zp[2]:4 1.0
(void()) print_ln()
(label) print_ln::@1
(label) print_ln::@return
(void()) print_points()
(label) print_points::@1
(label) print_points::@2
(label) print_points::@3
(label) print_points::@4
(label) print_points::@5
(label) print_points::@6
(label) print_points::@7
(label) print_points::@return
(label) print_points::getPoint1
(byte~) print_points::getPoint1_$0 reg byte y 11.0
(byte) print_points::getPoint1_idx
(byte*) print_points::getPoint1_return
(byte) print_points::i
(byte) print_points::i#1 i zp[1]:6 11.0
(byte) print_points::i#10 i zp[1]:6 2.5384615384615383
(byte*) print_points::point
(byte*) print_points::point#0 point zp[2]:7 3.142857142857143
(label) print_points::pointXpos1
(byte*) print_points::pointXpos1_point
(byte*) print_points::pointXpos1_return
(label) print_points::pointYpos1
(byte*) print_points::pointYpos1_point
(byte*) print_points::pointYpos1_return
(const string) print_points::str[]  = (string) " "
(byte*) print_screen
(void()) print_str((byte*) print_str::str)
(label) print_str::@1
(label) print_str::@2
(label) print_str::@return
(byte*) print_str::str
(byte*) print_str::str#0 str zp[2]:2 202.0
(byte*) print_str::str#2 str zp[2]:2 101.0

reg byte x [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
reg byte a [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ]
zp[2]:2 [ print_str::str#2 print_str::str#0 ]
zp[2]:4 [ memset::dst#2 memset::dst#1 print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
reg byte x [ init_points::i#10 init_points::i#1 ]
zp[1]:6 [ init_points::pos#10 init_points::pos#2 print_points::i#10 print_points::i#1 ]
reg byte y [ print_points::getPoint1_$0 ]
zp[2]:7 [ print_points::point#0 ]
reg byte a [ print_byte::$0 ]
reg byte x [ print_byte::$2 ]
reg byte y [ init_points::getPoint1_$0 ]
zp[2]:9 [ init_points::getPoint1_return#0 print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#64 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
reg byte a [ init_points::pos#1 ]


FINAL ASSEMBLER
Score: 12263

  // File Comments
// Implementing a semi-struct without the struct keyword by using pointer math and inline functions
//
// struct Point {
//    byte xpos; // The x-position
//    byte ypos; // The y-position
// };
// Point[NUM_POINTS] points;
  // Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
  // Global Constants & labels
  // The size of a point
  .const SIZEOF_POINT = 2
  // The number of points
  .const NUM_POINTS = 4
  .label print_char_cursor = 9
  .label print_line_cursor = 4
  // @begin
  // [1] phi from @begin to @1 [phi:@begin->@1]
  // @1
  // [2] call main 
  // [4] phi from @1 to main [phi:@1->main]
  // [3] phi from @1 to @end [phi:@1->@end]
  // @end
  // main
// Initialize some points and print them
main: {
    // init_points()
    // [5] call init_points 
    // [61] phi from main to init_points [phi:main->init_points]
    jsr init_points
    // [6] phi from main to main::@1 [phi:main->main::@1]
    // main::@1
    // print_points()
    // [7] call print_points 
    // [9] phi from main::@1 to print_points [phi:main::@1->print_points]
    jsr print_points
    // main::@return
    // }
    // [8] return 
    rts
}
  // print_points
// Print points
print_points: {
    .label point = 7
    .label i = 6
    // print_cls()
    // [10] call print_cls 
    // [52] phi from print_points to print_cls [phi:print_points->print_cls]
    jsr print_cls
    // [11] phi from print_points to print_points::@1 [phi:print_points->print_points::@1]
    // [11] phi (byte*) print_line_cursor#24 = (byte*) 1024 [phi:print_points->print_points::@1#0] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_line_cursor
    lda #>$400
    sta.z print_line_cursor+1
    // [11] phi (byte*) print_char_cursor#45 = (byte*) 1024 [phi:print_points->print_points::@1#1] -- pbuz1=pbuc1 
    lda #<$400
    sta.z print_char_cursor
    lda #>$400
    sta.z print_char_cursor+1
    // [11] phi (byte) print_points::i#10 = (byte) 0 [phi:print_points->print_points::@1#2] -- vbuz1=vbuc1 
    lda #0
    sta.z i
    // print_points::@1
  __b1:
    // print_points::getPoint1
    // idx*SIZEOF_POINT
    // [12] (byte~) print_points::getPoint1_$0 ← (byte) print_points::i#10 << (byte) 1 -- vbuyy=vbuz1_rol_1 
    lda.z i
    asl
    tay
    // points+idx*SIZEOF_POINT
    // [13] (byte*) print_points::point#0 ← (const byte*) points + (byte~) print_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta.z point
    lda #>points
    adc #0
    sta.z point+1
    // [14] phi from print_points::getPoint1 to print_points::pointXpos1 [phi:print_points::getPoint1->print_points::pointXpos1]
    // print_points::pointXpos1
    // print_points::@2
    // print_byte(*pointXpos(point))
    // [15] (byte) print_byte::b#0 ← *((const byte*) points + (byte~) print_points::getPoint1_$0) -- vbuxx=pbuc1_derefidx_vbuyy 
    ldx points,y
    // [16] call print_byte 
    // [33] phi from print_points::@2 to print_byte [phi:print_points::@2->print_byte]
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#45 [phi:print_points::@2->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#0 [phi:print_points::@2->print_byte#1] -- register_copy 
    jsr print_byte
    // [17] phi from print_points::@2 to print_points::@4 [phi:print_points::@2->print_points::@4]
    // print_points::@4
    // print_str(" ")
    // [18] call print_str 
    // [45] phi from print_points::@4 to print_str [phi:print_points::@4->print_str]
    jsr print_str
    // [19] phi from print_points::@4 to print_points::pointYpos1 [phi:print_points::@4->print_points::pointYpos1]
    // print_points::pointYpos1
    // print_points::@3
    // print_byte(*pointYpos(point))
    // [20] (byte) print_byte::b#1 ← *((byte*) print_points::point#0 + (byte) 1) -- vbuxx=pbuz1_derefidx_vbuc1 
    ldy #1
    lda (point),y
    tax
    // [21] call print_byte 
    // [33] phi from print_points::@3 to print_byte [phi:print_points::@3->print_byte]
    // [33] phi (byte*) print_char_cursor#42 = (byte*) print_char_cursor#2 [phi:print_points::@3->print_byte#0] -- register_copy 
    // [33] phi (byte) print_byte::b#2 = (byte) print_byte::b#1 [phi:print_points::@3->print_byte#1] -- register_copy 
    jsr print_byte
    // [22] phi from print_points::@3 to print_points::@5 [phi:print_points::@3->print_points::@5]
    // print_points::@5
    // print_ln()
    // [23] call print_ln 
    // [28] phi from print_points::@5 to print_ln [phi:print_points::@5->print_ln]
    jsr print_ln
    // print_points::@6
    // for(byte i: 0..NUM_POINTS-1)
    // [24] (byte) print_points::i#1 ← ++ (byte) print_points::i#10 -- vbuz1=_inc_vbuz1 
    inc.z i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp.z i
    bne __b7
    // print_points::@return
    // }
    // [26] return 
    rts
    // print_points::@7
  __b7:
    // [27] (byte*) print_char_cursor#64 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda.z print_line_cursor
    sta.z print_char_cursor
    lda.z print_line_cursor+1
    sta.z print_char_cursor+1
    // [11] phi from print_points::@7 to print_points::@1 [phi:print_points::@7->print_points::@1]
    // [11] phi (byte*) print_line_cursor#24 = (byte*) print_line_cursor#1 [phi:print_points::@7->print_points::@1#0] -- register_copy 
    // [11] phi (byte*) print_char_cursor#45 = (byte*) print_char_cursor#64 [phi:print_points::@7->print_points::@1#1] -- register_copy 
    // [11] phi (byte) print_points::i#10 = (byte) print_points::i#1 [phi:print_points::@7->print_points::@1#2] -- register_copy 
    jmp __b1
    str: .text " "
    .byte 0
}
  // print_ln
// Print a newline
print_ln: {
    // [29] phi from print_ln print_ln::@1 to print_ln::@1 [phi:print_ln/print_ln::@1->print_ln::@1]
    // [29] phi (byte*) print_line_cursor#11 = (byte*) print_line_cursor#24 [phi:print_ln/print_ln::@1->print_ln::@1#0] -- register_copy 
    // print_ln::@1
  __b1:
    // print_line_cursor + $28
    // [30] (byte*) print_line_cursor#1 ← (byte*) print_line_cursor#11 + (byte) $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)
    // [31] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) 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
    // }
    // [32] return 
    rts
}
  // print_byte
// Print a byte as HEX
// print_byte(byte register(X) b)
print_byte: {
    // b>>4
    // [34] (byte~) print_byte::$0 ← (byte) print_byte::b#2 >> (byte) 4 -- vbuaa=vbuxx_ror_4 
    txa
    lsr
    lsr
    lsr
    lsr
    // print_char(print_hextab[b>>4])
    // [35] (byte) print_char::ch#0 ← *((const byte*) print_hextab + (byte~) print_byte::$0) -- vbuaa=pbuc1_derefidx_vbuaa 
    tay
    lda print_hextab,y
    // [36] call print_char 
    // [41] phi from print_byte to print_char [phi:print_byte->print_char]
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#42 [phi:print_byte->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#0 [phi:print_byte->print_char#1] -- register_copy 
    jsr print_char
    // print_byte::@1
    // b&$f
    // [37] (byte~) print_byte::$2 ← (byte) print_byte::b#2 & (byte) $f -- vbuxx=vbuxx_band_vbuc1 
    lda #$f
    axs #0
    // print_char(print_hextab[b&$f])
    // [38] (byte) print_char::ch#1 ← *((const byte*) print_hextab + (byte~) print_byte::$2) -- vbuaa=pbuc1_derefidx_vbuxx 
    lda print_hextab,x
    // [39] call print_char 
    // [41] phi from print_byte::@1 to print_char [phi:print_byte::@1->print_char]
    // [41] phi (byte*) print_char_cursor#28 = (byte*) print_char_cursor#29 [phi:print_byte::@1->print_char#0] -- register_copy 
    // [41] phi (byte) print_char::ch#2 = (byte) print_char::ch#1 [phi:print_byte::@1->print_char#1] -- register_copy 
    jsr print_char
    // print_byte::@return
    // }
    // [40] return 
    rts
}
  // print_char
// Print a single char
// print_char(byte register(A) ch)
print_char: {
    // *(print_char_cursor++) = ch
    // [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 -- _deref_pbuz1=vbuaa 
    ldy #0
    sta (print_char_cursor),y
    // *(print_char_cursor++) = ch;
    // [43] (byte*) print_char_cursor#29 ← ++ (byte*) print_char_cursor#28 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    // print_char::@return
    // }
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zp(2) str)
print_str: {
    .label str = 2
    // [46] phi from print_str to print_str::@1 [phi:print_str->print_str::@1]
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#29 [phi:print_str->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (const string) print_points::str [phi:print_str->print_str::@1#1] -- pbuz1=pbuc1 
    lda #<print_points.str
    sta.z str
    lda #>print_points.str
    sta.z str+1
    // print_str::@1
  __b1:
    // while(*str)
    // [47] if((byte) 0!=*((byte*) print_str::str#2)) goto print_str::@2 -- vbuc1_neq__deref_pbuz1_then_la1 
    ldy #0
    lda (str),y
    cmp #0
    bne __b2
    // print_str::@return
    // }
    // [48] return 
    rts
    // print_str::@2
  __b2:
    // *(print_char_cursor++) = *(str++)
    // [49] *((byte*) print_char_cursor#2) ← *((byte*) print_str::str#2) -- _deref_pbuz1=_deref_pbuz2 
    ldy #0
    lda (str),y
    sta (print_char_cursor),y
    // *(print_char_cursor++) = *(str++);
    // [50] (byte*) print_char_cursor#1 ← ++ (byte*) print_char_cursor#2 -- pbuz1=_inc_pbuz1 
    inc.z print_char_cursor
    bne !+
    inc.z print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc.z str
    bne !+
    inc.z str+1
  !:
    // [46] phi from print_str::@2 to print_str::@1 [phi:print_str::@2->print_str::@1]
    // [46] phi (byte*) print_char_cursor#2 = (byte*) print_char_cursor#1 [phi:print_str::@2->print_str::@1#0] -- register_copy 
    // [46] phi (byte*) print_str::str#2 = (byte*) print_str::str#0 [phi:print_str::@2->print_str::@1#1] -- register_copy 
    jmp __b1
}
  // print_cls
// Clear the screen. Also resets current line/char cursor.
print_cls: {
    // memset(print_screen, ' ', 1000)
    // [53] call memset 
    // [55] phi from print_cls to memset [phi:print_cls->memset]
    jsr memset
    // print_cls::@return
    // }
    // [54] return 
    rts
}
  // memset
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
memset: {
    .const c = ' '
    .const num = $3e8
    .label str = $400
    .label end = str+num
    .label dst = 4
    // [56] phi from memset to memset::@1 [phi:memset->memset::@1]
    // [56] phi (byte*) memset::dst#2 = (byte*)(const void*) 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++)
    // [57] if((byte*) memset::dst#2!=(const byte*) 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
    // }
    // [58] return 
    rts
    // memset::@2
  __b2:
    // *dst = c
    // [59] *((byte*) memset::dst#2) ← (const byte) memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // for(char* dst = str; dst!=end; dst++)
    // [60] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc.z dst
    bne !+
    inc.z dst+1
  !:
    // [56] phi from memset::@2 to memset::@1 [phi:memset::@2->memset::@1]
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@2->memset::@1#0] -- register_copy 
    jmp __b1
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1_return = 9
    .label pos = 6
    // [62] phi from init_points to init_points::@1 [phi:init_points->init_points::@1]
    // [62] phi (byte) init_points::pos#10 = (byte) $a [phi:init_points->init_points::@1#0] -- vbuz1=vbuc1 
    lda #$a
    sta.z pos
    // [62] phi (byte) init_points::i#10 = (byte) 0 [phi:init_points->init_points::@1#1] -- vbuxx=vbuc1 
    ldx #0
    // [62] phi from init_points::@3 to init_points::@1 [phi:init_points::@3->init_points::@1]
    // [62] phi (byte) init_points::pos#10 = (byte) init_points::pos#2 [phi:init_points::@3->init_points::@1#0] -- register_copy 
    // [62] phi (byte) init_points::i#10 = (byte) init_points::i#1 [phi:init_points::@3->init_points::@1#1] -- register_copy 
    // init_points::@1
  __b1:
    // init_points::getPoint1
    // idx*SIZEOF_POINT
    // [63] (byte~) init_points::getPoint1_$0 ← (byte) init_points::i#10 << (byte) 1 -- vbuyy=vbuxx_rol_1 
    txa
    asl
    tay
    // points+idx*SIZEOF_POINT
    // [64] (byte*) init_points::getPoint1_return#0 ← (const byte*) points + (byte~) init_points::getPoint1_$0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta.z getPoint1_return
    lda #>points
    adc #0
    sta.z getPoint1_return+1
    // [65] phi from init_points::getPoint1 to init_points::pointXpos1 [phi:init_points::getPoint1->init_points::pointXpos1]
    // init_points::pointXpos1
    // init_points::@2
    // *pointXpos(point) = pos
    // [66] *((const byte*) points + (byte~) init_points::getPoint1_$0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuyy=vbuz1 
    lda.z pos
    sta points,y
    // pos +=10
    // [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a -- vbuaa=vbuz1_plus_vbuc1 
    lda #$a
    clc
    adc.z pos
    // [68] phi from init_points::@2 to init_points::pointYpos1 [phi:init_points::@2->init_points::pointYpos1]
    // init_points::pointYpos1
    // init_points::@3
    // *pointYpos(point) = pos
    // [69] *((byte*) init_points::getPoint1_return#0 + (byte) 1) ← (byte) init_points::pos#1 -- pbuz1_derefidx_vbuc1=vbuaa 
    ldy #1
    sta (getPoint1_return),y
    // pos +=10
    // [70] (byte) init_points::pos#2 ← (byte) init_points::pos#1 + (byte) $a -- vbuz1=vbuaa_plus_vbuc1 
    clc
    adc #$a
    sta.z pos
    // for(byte i: 0..NUM_POINTS-1)
    // [71] (byte) init_points::i#1 ← ++ (byte) init_points::i#10 -- vbuxx=_inc_vbuxx 
    inx
    // [72] if((byte) init_points::i#1!=(const byte) NUM_POINTS-(byte) 1+(byte) 1) goto init_points::@1 -- vbuxx_neq_vbuc1_then_la1 
    cpx #NUM_POINTS-1+1
    bne __b1
    // init_points::@return
    // }
    // [73] return 
    rts
}
  // File Data
  print_hextab: .text "0123456789abcdef"
  // All points
  points: .fill NUM_POINTS*SIZEOF_POINT, 0

