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)
Identified constant variable (byte*) HEAP_TOP
Inlined call (byte*~) init_points::$1 ← call getPoint (byte) init_points::i 
Inlined call (byte*~) init_points::$2 ← call pointXpos (byte*) init_points::point 
Inlined call (byte*~) init_points::$3 ← call pointYpos (byte*) init_points::point 
Inlined call (byte*~) print_points::$2 ← call getPoint (byte) print_points::i 
Inlined call (byte*~) print_points::$3 ← call pointXpos (byte*) print_points::point 
Inlined call (byte*~) print_points::$6 ← call pointYpos (byte*) print_points::point 
Culled Empty Block (label) @1
Culled Empty Block (label) @2
Culled Empty Block (label) memset::@5
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) @13
Culled Empty Block (label) @14
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) @15
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) @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) @36
Culled Empty Block (label) @37
Culled Empty Block (label) @38
Culled Empty Block (label) @39
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) @40
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:@12
memset: scope:[memset]  from print_cls
  (byte) memset::c#3 ← 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#2 ← phi( memset/(byte) memset::c#3 )
  (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::@4
  (void*) memset::str#4 ← phi( memset::@2/(void*) memset::str#2 memset::@4/(void*) memset::str#4 )
  (byte*) memset::end#1 ← phi( memset::@2/(byte*) memset::end#0 memset::@4/(byte*) memset::end#1 )
  (byte*) memset::dst#2 ← phi( memset::@2/(byte*) memset::dst#0 memset::@4/(byte*) memset::dst#1 )
  (byte) memset::c#1 ← phi( memset::@2/(byte) memset::c#2 memset::@4/(byte) memset::c#1 )
  *((byte*) memset::dst#2) ← (byte) memset::c#1
  (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2
  (bool~) memset::$4 ← (byte*) memset::dst#1 != (byte*) memset::end#1
  if((bool~) memset::$4) goto memset::@4
  to:memset::@1
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
@12: 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:@28
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 ← *((byte*) print_str::str#2) != (byte) '@'
  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
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
@28: scope:[]  from @12
  (byte*) print_screen#8 ← phi( @12/(byte*) print_screen#0 )
  (byte*) print_char_cursor#53 ← phi( @12/(byte*) print_char_cursor#0 )
  (byte*) print_line_cursor#29 ← phi( @12/(byte*) print_line_cursor#0 )
  (byte[]) print_hextab#0 ← (const string) $1
  to:@35
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 ← *((byte[]) print_hextab#0 + (byte~) print_byte::$0)
  call print_char 
  to:print_byte::@1
print_byte::@1: scope:[print_byte]  from print_byte
  (byte) print_byte::b#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 ← *((byte[]) print_hextab#0 + (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
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
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
@35: scope:[]  from @28
  (byte*) print_screen#7 ← phi( @28/(byte*) print_screen#8 )
  (byte*) print_char_cursor#52 ← phi( @28/(byte*) print_char_cursor#53 )
  (byte*) print_line_cursor#28 ← phi( @28/(byte*) print_line_cursor#29 )
  (byte) SIZEOF_POINT#0 ← (number) 2
  (byte) NUM_POINTS#0 ← (number) 4
  (byte~) $0 ← (byte) NUM_POINTS#0 * (byte) SIZEOF_POINT#0
  (byte[$0]) points#0 ← { fill( $0, 0) }
  to:@41
main: scope:[main]  from @41
  (byte*) print_screen#5 ← phi( @41/(byte*) print_screen#6 )
  (byte*) print_char_cursor#49 ← phi( @41/(byte*) print_char_cursor#47 )
  (byte*) print_line_cursor#26 ← phi( @41/(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
init_points: scope:[init_points]  from main
  (byte) init_points::pos#0 ← (number) $a
  (number~) init_points::$0 ← (byte) NUM_POINTS#0 - (number) 1
  (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#0 ← (byte) init_points::getPoint1_idx#1 * (byte) SIZEOF_POINT#0
  (byte*~) init_points::getPoint1_$1#0 ← (byte[$0]) points#0 + (byte~) init_points::getPoint1_$0#0
  (byte*) init_points::getPoint1_return#0 ← (byte*~) init_points::getPoint1_$1#0
  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::$1 ← (byte*) init_points::getPoint1_return#3
  (byte*) init_points::point#0 ← (byte*~) init_points::$1
  (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#0 ← (byte*) init_points::pointXpos1_point#1 + (number) 0
  (byte*~) init_points::pointXpos1_$1#0 ← ((byte*)) (byte*~) init_points::pointXpos1_$0#0
  (byte*) init_points::pointXpos1_return#0 ← (byte*~) init_points::pointXpos1_$1#0
  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::$2 ← (byte*) init_points::pointXpos1_return#3
  *((byte*~) init_points::$2) ← (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#0 ← (byte*) init_points::pointYpos1_point#1 + (number) 1
  (byte*~) init_points::pointYpos1_$1#0 ← ((byte*)) (byte*~) init_points::pointYpos1_$0#0
  (byte*) init_points::pointYpos1_return#0 ← (byte*~) init_points::pointYpos1_$1#0
  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::$3 ← (byte*) init_points::pointYpos1_return#3
  *((byte*~) init_points::$3) ← (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,init_points::$0)
  (bool~) init_points::$4 ← (byte) init_points::i#1 != rangelast(0,init_points::$0)
  if((bool~) init_points::$4) goto init_points::@1
  to:init_points::@return
init_points::@return: scope:[init_points]  from init_points::@5
  return 
  to:@return
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
  (number~) print_points::$1 ← (byte) NUM_POINTS#0 - (number) 1
  (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#40 ← phi( print_points::@10/(byte*) print_line_cursor#8 print_points::@6/(byte*) print_line_cursor#7 )
  (byte*) print_char_cursor#59 ← 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#39 ← phi( print_points::@1/(byte*) print_line_cursor#40 )
  (byte*) print_char_cursor#58 ← phi( print_points::@1/(byte*) print_char_cursor#59 )
  (byte) print_points::getPoint1_idx#1 ← phi( print_points::@1/(byte) print_points::getPoint1_idx#0 )
  (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::getPoint1_idx#1 * (byte) SIZEOF_POINT#0
  (byte*~) print_points::getPoint1_$1#0 ← (byte[$0]) points#0 + (byte~) print_points::getPoint1_$0#0
  (byte*) print_points::getPoint1_return#0 ← (byte*~) print_points::getPoint1_$1#0
  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#38 ← phi( print_points::getPoint1/(byte*) print_line_cursor#39 )
  (byte*) print_char_cursor#57 ← phi( print_points::getPoint1/(byte*) print_char_cursor#58 )
  (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#37 ← phi( print_points::getPoint1_@return/(byte*) print_line_cursor#38 )
  (byte*) print_char_cursor#56 ← phi( print_points::getPoint1_@return/(byte*) print_char_cursor#57 )
  (byte*) print_points::getPoint1_return#3 ← phi( print_points::getPoint1_@return/(byte*) print_points::getPoint1_return#1 )
  (byte*~) print_points::$2 ← (byte*) print_points::getPoint1_return#3
  (byte*) print_points::point#0 ← (byte*~) print_points::$2
  (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#36 ← phi( print_points::@3/(byte*) print_line_cursor#37 )
  (byte*) print_points::point#5 ← phi( print_points::@3/(byte*) print_points::point#0 )
  (byte*) print_char_cursor#54 ← phi( print_points::@3/(byte*) print_char_cursor#56 )
  (byte*) print_points::pointXpos1_point#1 ← phi( print_points::@3/(byte*) print_points::pointXpos1_point#0 )
  (byte*~) print_points::pointXpos1_$0#0 ← (byte*) print_points::pointXpos1_point#1 + (number) 0
  (byte*~) print_points::pointXpos1_$1#0 ← ((byte*)) (byte*~) print_points::pointXpos1_$0#0
  (byte*) print_points::pointXpos1_return#0 ← (byte*~) print_points::pointXpos1_$1#0
  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#35 ← phi( print_points::pointXpos1/(byte*) print_line_cursor#36 )
  (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#54 )
  (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#34 ← phi( print_points::pointXpos1_@return/(byte*) print_line_cursor#35 )
  (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::$3 ← (byte*) print_points::pointXpos1_return#3
  (byte) print_byte::b#0 ← *((byte*~) print_points::$3)
  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#33 ← phi( print_points::@4/(byte*) print_line_cursor#34 )
  (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#32 ← phi( print_points::@7/(byte*) print_line_cursor#33 )
  (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#31 ← phi( print_points::@8/(byte*) print_line_cursor#32 )
  (byte*) print_char_cursor#55 ← 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#0 ← (byte*) print_points::pointYpos1_point#1 + (number) 1
  (byte*~) print_points::pointYpos1_$1#0 ← ((byte*)) (byte*~) print_points::pointYpos1_$0#0
  (byte*) print_points::pointYpos1_return#0 ← (byte*~) print_points::pointYpos1_$1#0
  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#30 ← phi( print_points::pointYpos1/(byte*) print_line_cursor#31 )
  (byte*) print_char_cursor#51 ← phi( print_points::pointYpos1/(byte*) print_char_cursor#55 )
  (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#30 )
  (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::$6 ← (byte*) print_points::pointYpos1_return#3
  (byte) print_byte::b#1 ← *((byte*~) print_points::$6)
  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,print_points::$1)
  (bool~) print_points::$9 ← (byte) print_points::i#1 != rangelast(0,print_points::$1)
  if((bool~) print_points::$9) 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
@41: scope:[]  from @35
  (byte*) print_screen#6 ← phi( @35/(byte*) print_screen#7 )
  (byte*) print_char_cursor#47 ← phi( @35/(byte*) print_char_cursor#52 )
  (byte*) print_line_cursor#25 ← phi( @35/(byte*) print_line_cursor#28 )
  call main 
  to:@42
@42: scope:[]  from @41
  (byte*) print_char_cursor#39 ← phi( @41/(byte*) print_char_cursor#13 )
  (byte*) print_line_cursor#20 ← phi( @41/(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 @42

SYMBOL TABLE SSA
(byte~) $0
(const string) $1 = (string) "0123456789abcdef"
(label) @12
(label) @28
(label) @35
(label) @41
(label) @42
(label) @begin
(label) @end
(byte) NUM_POINTS
(byte) NUM_POINTS#0
(const byte) RADIX::BINARY = (number) 2
(const byte) RADIX::DECIMAL = (number) $a
(const byte) RADIX::HEXADECIMAL = (number) $10
(const byte) RADIX::OCTAL = (number) 8
(byte) SIZEOF_POINT
(byte) SIZEOF_POINT#0
(void()) init_points()
(number~) init_points::$0
(byte*~) init_points::$1
(byte*~) init_points::$2
(byte*~) init_points::$3
(bool~) init_points::$4
(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_$0#0
(byte*~) init_points::getPoint1_$1
(byte*~) init_points::getPoint1_$1#0
(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_$0#0
(byte*~) init_points::pointXpos1_$1
(byte*~) init_points::pointXpos1_$1#0
(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_$0#0
(byte*~) init_points::pointYpos1_$1
(byte*~) init_points::pointYpos1_$1#0
(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::@return
(byte) memset::c
(byte) memset::c#0
(byte) memset::c#1
(byte) memset::c#2
(byte) memset::c#3
(byte*) memset::dst
(byte*) memset::dst#0
(byte*) memset::dst#1
(byte*) memset::dst#2
(byte*) memset::end
(byte*) memset::end#0
(byte*) memset::end#1
(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
(byte[$0]) points
(byte[$0]) points#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#58
(byte*) print_char_cursor#59
(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
(byte[]) print_hextab
(byte[]) print_hextab#0
(byte*) print_line_cursor
(byte*) print_line_cursor#0
(byte*) print_line_cursor#1
(byte*) print_line_cursor#10
(byte*) print_line_cursor#11
(byte*) print_line_cursor#12
(byte*) print_line_cursor#13
(byte*) print_line_cursor#14
(byte*) print_line_cursor#15
(byte*) print_line_cursor#16
(byte*) print_line_cursor#17
(byte*) print_line_cursor#18
(byte*) print_line_cursor#19
(byte*) print_line_cursor#2
(byte*) print_line_cursor#20
(byte*) print_line_cursor#21
(byte*) print_line_cursor#22
(byte*) print_line_cursor#23
(byte*) print_line_cursor#24
(byte*) print_line_cursor#25
(byte*) print_line_cursor#26
(byte*) print_line_cursor#27
(byte*) print_line_cursor#28
(byte*) print_line_cursor#29
(byte*) print_line_cursor#3
(byte*) print_line_cursor#30
(byte*) print_line_cursor#31
(byte*) print_line_cursor#32
(byte*) print_line_cursor#33
(byte*) print_line_cursor#34
(byte*) print_line_cursor#35
(byte*) print_line_cursor#36
(byte*) print_line_cursor#37
(byte*) print_line_cursor#38
(byte*) print_line_cursor#39
(byte*) print_line_cursor#4
(byte*) print_line_cursor#40
(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()
(number~) print_points::$1
(byte*~) print_points::$2
(byte*~) print_points::$3
(byte*~) print_points::$6
(bool~) print_points::$9
(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_$0#0
(byte*~) print_points::getPoint1_$1
(byte*~) print_points::getPoint1_$1#0
(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_$0#0
(byte*~) print_points::pointXpos1_$1
(byte*~) print_points::pointXpos1_$1#0
(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_$0#0
(byte*~) print_points::pointYpos1_$1
(byte*~) print_points::pointYpos1_$1#0
(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
(byte*) print_screen#7
(byte*) print_screen#8
(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) $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) 2 in (byte) SIZEOF_POINT#0 ← (number) 2
Adding number conversion cast (unumber) 4 in (byte) NUM_POINTS#0 ← (number) 4
Adding number conversion cast (unumber) $a in (byte) init_points::pos#0 ← (number) $a
Adding number conversion cast (unumber) 1 in (number~) init_points::$0 ← (byte) NUM_POINTS#0 - (number) 1
Adding number conversion cast (unumber) init_points::$0 in (number~) init_points::$0 ← (byte) NUM_POINTS#0 - (unumber)(number) 1
Adding number conversion cast (unumber) 0 in (byte*~) init_points::pointXpos1_$0#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#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 (number~) print_points::$1 ← (byte) NUM_POINTS#0 - (number) 1
Adding number conversion cast (unumber) print_points::$1 in (number~) print_points::$1 ← (byte) NUM_POINTS#0 - (unumber)(number) 1
Adding number conversion cast (unumber) 0 in (byte*~) print_points::pointXpos1_$0#0 ← (byte*) print_points::pointXpos1_point#1 + (number) 0
Adding number conversion cast (unumber) 1 in (byte*~) print_points::pointYpos1_$0#0 ← (byte*) print_points::pointYpos1_point#1 + (number) 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 (byte*) print_screen#0 ← (byte*)(number) $400
Inlining cast (word) memset::num#0 ← (unumber)(number) $3e8
Inlining cast (byte) SIZEOF_POINT#0 ← (unumber)(number) 2
Inlining cast (byte) NUM_POINTS#0 ← (unumber)(number) 4
Inlining cast (byte) init_points::pos#0 ← (unumber)(number) $a
Inlining cast (byte*~) init_points::pointXpos1_$1#0 ← (byte*)(byte*~) init_points::pointXpos1_$0#0
Inlining cast (byte*~) init_points::pointYpos1_$1#0 ← (byte*)(byte*~) init_points::pointYpos1_$0#0
Inlining cast (byte*~) print_points::pointXpos1_$1#0 ← (byte*)(byte*~) print_points::pointXpos1_$0#0
Inlining cast (byte*~) print_points::pointYpos1_$1#0 ← (byte*)(byte*~) print_points::pointYpos1_$0#0
Successful SSA optimization Pass2InlineCast
Simplifying constant integer cast 0
Simplifying constant pointer cast (byte*) 1024
Simplifying constant integer cast $28
Simplifying constant integer cast 4
Simplifying constant integer cast $f
Simplifying constant integer cast $3e8
Simplifying constant integer cast 2
Simplifying constant integer cast 4
Simplifying constant integer cast $a
Simplifying constant integer cast 1
Simplifying constant integer cast 0
Simplifying constant integer cast (byte*~) init_points::pointXpos1_$0#0
Simplifying constant integer cast $a
Simplifying constant integer cast 1
Simplifying constant integer cast (byte*~) init_points::pointYpos1_$0#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#0
Simplifying constant integer cast 1
Simplifying constant integer cast (byte*~) print_points::pointYpos1_$0#0
Successful SSA optimization PassNCastSimplification
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) 2
Finalized unsigned number type (byte) 4
Finalized unsigned number type (byte) $a
Finalized unsigned number type (byte) 1
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
Successful SSA optimization PassNFinalizeNumberTypeConversions
Inferred type updated to byte in (unumber~) print_byte::$2 ← (byte) print_byte::b#3 & (byte) $f
Inferred type updated to byte in (unumber~) init_points::$0 ← (byte) NUM_POINTS#0 - (byte) 1
Inferred type updated to byte in (unumber~) print_points::$1 ← (byte) NUM_POINTS#0 - (byte) 1
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#2 = (byte) memset::c#3 
Alias (byte*) memset::end#0 = (byte*~) memset::$3 
Alias (byte*) print_line_cursor#0 = (byte*) print_screen#0 (byte*) print_char_cursor#0 (byte*) print_line_cursor#29 (byte*) print_char_cursor#53 (byte*) print_screen#8 (byte*) print_line_cursor#28 (byte*) print_char_cursor#52 (byte*) print_screen#7 (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#0 (byte*) init_points::getPoint1_return#2 (byte*) init_points::getPoint1_return#1 (byte*) init_points::getPoint1_return#3 (byte*~) init_points::$1 (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#0 (byte*~) init_points::pointXpos1_$0#0 (byte*) init_points::pointXpos1_return#2 (byte*) init_points::pointXpos1_return#1 (byte*) init_points::pointXpos1_return#3 (byte*~) init_points::$2 
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#0 (byte*~) init_points::pointYpos1_$0#0 (byte*) init_points::pointYpos1_return#2 (byte*) init_points::pointYpos1_return#1 (byte*) init_points::pointYpos1_return#3 (byte*~) init_points::$3 
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#58 (byte*) print_char_cursor#59 (byte*) print_char_cursor#57 (byte*) print_char_cursor#56 (byte*) print_char_cursor#54 (byte*) print_char_cursor#50 
Alias (byte*) print_line_cursor#24 = (byte*) print_line_cursor#39 (byte*) print_line_cursor#40 (byte*) print_line_cursor#38 (byte*) print_line_cursor#37 (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#27 
Alias (byte*) print_points::point#0 = (byte*) print_points::getPoint1_return#0 (byte*~) print_points::getPoint1_$1#0 (byte*) print_points::getPoint1_return#2 (byte*) print_points::getPoint1_return#1 (byte*) print_points::getPoint1_return#3 (byte*~) print_points::$2 (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#0 (byte*~) print_points::pointXpos1_$0#0 (byte*) print_points::pointXpos1_return#2 (byte*) print_points::pointXpos1_return#1 (byte*) print_points::pointXpos1_return#3 (byte*~) print_points::$3 
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#55 (byte*) print_char_cursor#51 (byte*) print_char_cursor#46 
Alias (byte*) print_points::pointYpos1_return#0 = (byte*~) print_points::pointYpos1_$1#0 (byte*~) print_points::pointYpos1_$0#0 (byte*) print_points::pointYpos1_return#2 (byte*) print_points::pointYpos1_return#1 (byte*) print_points::pointYpos1_return#3 (byte*~) print_points::$6 
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
Self Phi Eliminated (byte) memset::c#1
Self Phi Eliminated (byte*) memset::end#1
Self Phi Eliminated (void*) memset::str#4
Self Phi Eliminated (byte*) print_char_cursor#23
Successful SSA optimization Pass2SelfPhiElimination
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#2 (byte) memset::c#0
Identical Phi Values (byte) memset::c#1 (byte) memset::c#2
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*) 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 [15] if((byte*) memset::dst#1!=(byte*) memset::end#0) goto memset::@4
Simple Condition (bool~) print_str::$0 [25] if(*((byte*) print_str::str#2)!=(byte) '@') goto print_str::@2
Simple Condition (bool~) print_ln::$1 [38] if((byte*) print_line_cursor#1<(byte*) print_char_cursor#29) goto print_ln::@1
Simple Condition (bool~) init_points::$4 [134] if((byte) init_points::i#1!=rangelast(0,init_points::$0)) goto init_points::@1
Simple Condition (bool~) print_points::$9 [190] if((byte) print_points::i#1!=rangelast(0,print_points::$1)) goto print_points::@1
Successful SSA optimization Pass2ConditionalJumpSimplification
Constant (const byte*) print_line_cursor#0 = (byte*) 1024
Constant (const byte[]) print_hextab#0 = $1
Constant (const byte) memset::c#0 = ' '
Constant (const word) memset::num#0 = $3e8
Constant (const byte) SIZEOF_POINT#0 = 2
Constant (const byte) NUM_POINTS#0 = 4
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 value identified (void*)print_line_cursor#0 in [68] (void*) memset::str#0 ← (void*)(const byte*) print_line_cursor#0
Successful SSA optimization Pass2ConstantValues
if() condition always false - eliminating [3] if((const word) memset::num#0<=(byte) 0) goto memset::@1
Successful SSA optimization Pass2ConstantIfs
Converting *(pointer+n) to pointer[n] [119] *((byte*) init_points::pointXpos1_return#0) ← (byte) init_points::pos#10  -- *(init_points::getPoint1_return#0 + 0)
Converting *(pointer+n) to pointer[n] [130] *((byte*) init_points::pointYpos1_return#0) ← (byte) init_points::pos#1  -- *(init_points::getPoint1_return#0 + 1)
Converting *(pointer+n) to pointer[n] [163] (byte) print_byte::b#0 ← *((byte*) print_points::pointXpos1_return#0)  -- *(print_points::point#0 + 0)
Converting *(pointer+n) to pointer[n] [180] (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 [112] (byte*) init_points::pointXpos1_return#0 ← (byte*) init_points::getPoint1_return#0 + (byte) 0
Simplifying expression containing zero init_points::getPoint1_return#0 in [119] *((byte*) init_points::getPoint1_return#0 + (byte) 0) ← (byte) init_points::pos#10
Simplifying expression containing zero print_points::point#0 in [156] (byte*) print_points::pointXpos1_return#0 ← (byte*) print_points::point#0 + (byte) 0
Simplifying expression containing zero print_points::point#0 in [163] (byte) print_byte::b#0 ← *((byte*) print_points::point#0 + (byte) 0)
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused variable (void*) memset::return#2 and assignment [32] (void*) memset::return#2 ← (void*) memset::str#0
Eliminating unused variable (byte*) init_points::pointXpos1_return#0 and assignment [43] (byte*) init_points::pointXpos1_return#0 ← (byte*) init_points::getPoint1_return#0
Eliminating unused variable (byte*) init_points::pointYpos1_return#0 and assignment [46] (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 [57] (byte*) print_points::pointXpos1_return#0 ← (byte*) print_points::point#0
Eliminating unused variable (byte*) print_points::pointYpos1_return#0 and assignment [61] (byte*) print_points::pointYpos1_return#0 ← (byte*) print_points::point#0 + (byte) 1
Successful SSA optimization PassNEliminateUnusedVars
Constant right-side identified [33] (byte~) $0 ← (const byte) NUM_POINTS#0 * (const byte) SIZEOF_POINT#0
Constant right-side identified [38] (byte~) init_points::$0 ← (const byte) NUM_POINTS#0 - (byte) 1
Constant right-side identified [50] (byte~) print_points::$1 ← (const byte) NUM_POINTS#0 - (byte) 1
Successful SSA optimization Pass2ConstantRValueConsolidation
Constant (const void*) memset::str#0 = (void*)print_line_cursor#0
Constant (const byte) $0 = NUM_POINTS#0*SIZEOF_POINT#0
Constant (const byte) init_points::$0 = NUM_POINTS#0-1
Constant (const byte) print_points::$1 = NUM_POINTS#0-1
Successful SSA optimization Pass2ConstantIdentification
Constant value identified (byte*)memset::str#0 in [0] (byte*~) memset::$2 ← (byte*)(const void*) memset::str#0
Constant value identified (byte*)memset::str#0 in [2] (byte*) memset::dst#0 ← (byte*)(const void*) memset::str#0
Constant value identified { fill( $0, 0) } in [34] (byte[$0]) points#0 ← { fill( $0, 0) }
Successful SSA optimization Pass2ConstantValues
Resolved ranged next value [46] init_points::i#1 ← ++ init_points::i#10 to ++
Resolved ranged comparison value [47] if(init_points::i#1!=rangelast(0,init_points::$0)) goto init_points::@1 to (const byte) init_points::$0+(number) 1
Resolved ranged next value [60] print_points::i#1 ← ++ print_points::i#10 to ++
Resolved ranged comparison value [61] if(print_points::i#1!=rangelast(0,print_points::$1)) goto print_points::@1 to (const byte) print_points::$1+(number) 1
Converting *(pointer+n) to pointer[n] [42] *((byte*) init_points::getPoint1_return#0) ← (byte) init_points::pos#10  -- *(points#0 + init_points::getPoint1_$0#0)
Converting *(pointer+n) to pointer[n] [54] (byte) print_byte::b#0 ← *((byte*) print_points::point#0)  -- *(points#0 + print_points::getPoint1_$0#0)
Successful SSA optimization Pass2InlineDerefIdx
Adding number conversion cast (unumber) init_points::$0+1 in if((byte) init_points::i#1!=(const byte) init_points::$0+(number) 1) goto init_points::@1
Adding number conversion cast (unumber) 1 in if((byte) init_points::i#1!=(unumber)(const byte) init_points::$0+(number) 1) goto init_points::@1
Adding number conversion cast (unumber) print_points::$1+1 in if((byte) print_points::i#1!=(const byte) print_points::$1+(number) 1) goto print_points::@1
Adding number conversion cast (unumber) 1 in if((byte) print_points::i#1!=(unumber)(const byte) print_points::$1+(number) 1) goto print_points::@1
Successful SSA optimization PassNAddNumberTypeConversions
Simplifying constant integer cast (const byte) init_points::$0+(unumber)(number) 1
Simplifying constant integer cast 1
Simplifying constant integer cast (const byte) print_points::$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 (const byte*) memset::$2 = (byte*)memset::str#0
Constant (const byte*) memset::dst#0 = (byte*)memset::str#0
Constant (const byte[$0]) points#0 = { fill( $0, 0) }
Successful SSA optimization Pass2ConstantIdentification
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
Rewriting multiplication to use shift [33] (byte~) init_points::getPoint1_$0#0 ← (byte) init_points::i#10 * (const byte) SIZEOF_POINT#0
Rewriting multiplication to use shift [44] (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::i#10 * (const byte) SIZEOF_POINT#0
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::$0 = (const byte) NUM_POINTS#0-(byte) 1
Constant inlined init_points::i#0 = (byte) 0
Constant inlined memset::$2 = (byte*)(const void*) memset::str#0
Constant inlined print_points::$1 = (const byte) NUM_POINTS#0-(byte) 1
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 $0 = (const byte) NUM_POINTS#0*(const byte) SIZEOF_POINT#0
Constant inlined $1 = (const byte[]) print_hextab#0
Constant inlined init_points::pos#0 = (byte) $a
Successful SSA optimization Pass2ConstantInlining
Added new block during phi lifting memset::@6(between memset::@4 and memset::@4)
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 @12
Adding NOP phi() at start of @28
Adding NOP phi() at start of @35
Adding NOP phi() at start of @41
Adding NOP phi() at start of @42
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:5 
Calls in [main] to init_points:9 print_points:11 
Calls in [print_points] to print_cls:15 print_byte:27 print_str:29 print_byte:36 print_ln:38 
Calls in [print_byte] to print_char:57 print_char:62 
Calls in [print_cls] to memset:79 

Created 13 initial phi equivalence classes
Coalesced [25] print_byte::b#4 ← print_byte::b#0
Coalesced [26] print_char_cursor#62 ← print_char_cursor#45
Coalesced [34] print_byte::b#5 ← print_byte::b#1
Coalesced [35] print_char_cursor#63 ← print_char_cursor#2
Coalesced [42] print_points::i#16 ← print_points::i#1
Not coalescing [43] print_char_cursor#66 ← print_line_cursor#1
Coalesced [44] print_line_cursor#43 ← print_line_cursor#1
Coalesced [45] print_line_cursor#41 ← print_line_cursor#24
Coalesced (already) [51] print_line_cursor#42 ← print_line_cursor#1
Coalesced [55] print_char::ch#3 ← print_char::ch#0
Coalesced [56] print_char_cursor#64 ← print_char_cursor#42
Coalesced [60] print_char::ch#4 ← print_char::ch#1
Coalesced [61] print_char_cursor#65 ← print_char_cursor#29
Coalesced (already) [69] print_char_cursor#60 ← print_char_cursor#29
Coalesced [76] print_str::str#5 ← print_str::str#0
Coalesced [77] print_char_cursor#61 ← print_char_cursor#1
Coalesced [90] memset::dst#3 ← memset::dst#1
Coalesced [108] init_points::i#12 ← init_points::i#1
Coalesced [109] init_points::pos#13 ← init_points::pos#2
Coalesced down to 9 phi equivalence classes
Culled Empty Block (label) @12
Culled Empty Block (label) @28
Culled Empty Block (label) @35
Culled Empty Block (label) @42
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) memset::@6
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 @41 to @1
Renumbering block memset::@4 to memset::@1
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()
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
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#66 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#0 ← (byte) print_points::i#10 << (byte) 1
  [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#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#0-(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#66 ← (byte*) print_line_cursor#1
  to:print_points::@1
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
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#0 + (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#0 + (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
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
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*) print_str::str#2)!=(byte) '@') 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
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
memset: scope:[memset]  from print_cls
  [55] phi()
  to:memset::@1
memset::@1: scope:[memset]  from memset memset::@1
  [56] (byte*) memset::dst#2 ← phi( memset/(byte*)(const void*) memset::str#0 memset::@1/(byte*) memset::dst#1 )
  [57] *((byte*) memset::dst#2) ← (const byte) memset::c#0
  [58] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2
  [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1
  to:memset::@return
memset::@return: scope:[memset]  from memset::@1
  [60] return 
  to:@return
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#0 ← (byte) init_points::i#10 << (byte) 1
  [64] (byte*) init_points::getPoint1_return#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#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#0-(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
(byte) NUM_POINTS
(byte) SIZEOF_POINT
(void()) init_points()
(byte~) init_points::getPoint1_$0
(byte~) init_points::getPoint1_$0#0 11.0
(byte*~) init_points::getPoint1_$1
(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_$0
(byte*~) init_points::pointXpos1_$1
(byte*) init_points::pointXpos1_point
(byte*) init_points::pointXpos1_return
(byte*~) init_points::pointYpos1_$0
(byte*~) init_points::pointYpos1_$1
(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 16.5
(byte*) memset::dst#2 16.5
(byte*) memset::end
(word) memset::num
(void*) memset::return
(void*) memset::str
(byte[NUM_POINTS#0*SIZEOF_POINT#0]) points
(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#66 22.0
(void()) print_cls()
(byte[]) print_hextab
(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
(byte~) print_points::getPoint1_$0#0 11.0
(byte*~) print_points::getPoint1_$1
(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_$0
(byte*~) print_points::pointXpos1_$1
(byte*) print_points::pointXpos1_point
(byte*) print_points::pointXpos1_return
(byte*~) print_points::pointYpos1_$0
(byte*~) print_points::pointYpos1_$1
(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#66 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#0 to zero page equivalence class [ print_points::getPoint1_$0#0 ]
Added variable print_points::point#0 to zero page equivalence class [ print_points::point#0 ]
Added variable print_byte::$0 to zero page equivalence class [ print_byte::$0 ]
Added variable print_byte::$2 to zero page equivalence class [ print_byte::$2 ]
Added variable init_points::getPoint1_$0#0 to zero page equivalence class [ init_points::getPoint1_$0#0 ]
Added variable init_points::getPoint1_return#0 to zero page equivalence class [ init_points::getPoint1_return#0 ]
Added variable init_points::pos#1 to zero page 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#66 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#0 ]
[ print_points::point#0 ]
[ print_byte::$0 ]
[ print_byte::$2 ]
[ init_points::getPoint1_$0#0 ]
[ init_points::getPoint1_return#0 ]
[ init_points::pos#1 ]
Allocated zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ]
Allocated zp ZP_WORD:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
Allocated zp ZP_BYTE:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Allocated zp ZP_BYTE:6 [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ]
Allocated zp ZP_WORD:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
Allocated zp ZP_WORD:9 [ print_str::str#2 print_str::str#0 ]
Allocated zp ZP_WORD:11 [ memset::dst#2 memset::dst#1 ]
Allocated zp ZP_BYTE:13 [ init_points::i#10 init_points::i#1 ]
Allocated zp ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ]
Allocated zp ZP_BYTE:15 [ print_points::getPoint1_$0#0 ]
Allocated zp ZP_WORD:16 [ print_points::point#0 ]
Allocated zp ZP_BYTE:18 [ print_byte::$0 ]
Allocated zp ZP_BYTE:19 [ print_byte::$2 ]
Allocated zp ZP_BYTE:20 [ init_points::getPoint1_$0#0 ]
Allocated zp ZP_WORD:21 [ init_points::getPoint1_return#0 ]
Allocated zp ZP_BYTE:23 [ init_points::pos#1 ]

INITIAL ASM
  // 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;
  // Basic 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 print_line_cursor
    lda #>$400
    sta 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 print_char_cursor
    lda #>$400
    sta 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 i
    jmp b1
    // print_points::@1
  b1:
    jmp getPoint1
    // print_points::getPoint1
  getPoint1:
    // [12] (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::i#10 << (byte) 1 -- vbuz1=vbuz2_rol_1 
    lda i
    asl
    sta getPoint1__0
    // [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuz2 
    lda getPoint1__0
    clc
    adc #<points
    sta point
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy getPoint1__0
    lda points,y
    sta 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 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 i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS#0-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp i
    bne b7
    jmp breturn
    // print_points::@return
  breturn:
    // [26] return 
    rts
    // print_points::@7
  b7:
    // [27] (byte*~) print_char_cursor#66 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
    // [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#66 [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 " @"
}
  // 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 print_line_cursor
    sta print_line_cursor
    bcc !+
    inc 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 print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1_from_b1
    bne !+
    lda print_line_cursor
    cmp print_char_cursor
    bcc b1_from_b1
  !:
    jmp breturn
    // print_ln::@return
  breturn:
    // [32] return 
    rts
}
  // print_byte
// Print a byte as HEX
// print_byte(byte zeropage(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 b
    lsr
    lsr
    lsr
    lsr
    sta _0
    // [35] (byte) print_char::ch#0 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$0) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy _0
    lda print_hextab,y
    sta print_char.ch
    // [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 b
    sta _2
    // [38] (byte) print_char::ch#1 ← *((const byte[]) print_hextab#0 + (byte~) print_byte::$2) -- vbuz1=pbuc1_derefidx_vbuz2 
    ldy _2
    lda print_hextab,y
    sta print_char.ch
    // [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 zeropage(6) ch)
print_char: {
    .label ch = 6
    // [42] *((byte*) print_char_cursor#28) ← (byte) print_char::ch#2 -- _deref_pbuz1=vbuz2 
    lda ch
    ldy #0
    sta (print_char_cursor),y
    // [43] (byte*) print_char_cursor#29 ← ++ (byte*) print_char_cursor#28 -- pbuz1=_inc_pbuz1 
    inc print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    jmp breturn
    // print_char::@return
  breturn:
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zeropage(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 str
    lda #>print_points.str
    sta str+1
    jmp b1
    // print_str::@1
  b1:
    // [47] if(*((byte*) print_str::str#2)!=(byte) '@') goto print_str::@2 -- _deref_pbuz1_neq_vbuc1_then_la1 
    ldy #0
    lda (str),y
    cmp #'@'
    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 print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc str
    bne !+
    inc 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 dst
    lda #>str
    sta dst+1
    jmp b1
    // [56] phi from memset::@1 to memset::@1 [phi:memset::@1->memset::@1]
  b1_from_b1:
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@1->memset::@1#0] -- register_copy 
    jmp b1
    // memset::@1
  b1:
    // [57] *((byte*) memset::dst#2) ← (const byte) memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // [58] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc dst
    bne !+
    inc dst+1
  !:
    // [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda dst+1
    cmp #>end
    bne b1_from_b1
    lda dst
    cmp #<end
    bne b1_from_b1
    jmp breturn
    // memset::@return
  breturn:
    // [60] return 
    rts
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1__0 = $14
    .label getPoint1_return = $15
    .label pos = $17
    .label pos_2 = $e
    .label i = $d
    .label pos_10 = $e
    // [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 pos_10
    // [62] phi (byte) init_points::i#10 = (byte) 0 [phi:init_points->init_points::@1#1] -- vbuz1=vbuc1 
    lda #0
    sta 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#0 ← (byte) init_points::i#10 << (byte) 1 -- vbuz1=vbuz2_rol_1 
    lda i
    asl
    sta getPoint1__0
    // [64] (byte*) init_points::getPoint1_return#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuz2 
    lda getPoint1__0
    clc
    adc #<points
    sta getPoint1_return
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuz1=vbuz2 
    lda pos_10
    ldy getPoint1__0
    sta points,y
    // [67] (byte) init_points::pos#1 ← (byte) init_points::pos#10 + (byte) $a -- vbuz1=vbuz2_plus_vbuc1 
    lax pos_10
    axs #-[$a]
    stx 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 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 pos
    axs #-[$a]
    stx pos_2
    // [71] (byte) init_points::i#1 ← ++ (byte) init_points::i#10 -- vbuz1=_inc_vbuz1 
    inc i
    // [72] if((byte) init_points::i#1!=(const byte) NUM_POINTS#0-(byte) 1+(byte) 1) goto init_points::@1 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp 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#0 ← (byte) print_points::i#10 << (byte) 1 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ]
Statement [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#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#0 print_points::point#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:15 [ print_points::getPoint1_$0#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 ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ]
Statement [27] (byte*~) print_char_cursor#66 ← (byte*) print_line_cursor#1 [ print_points::i#1 print_char_cursor#66 print_line_cursor#1 ] ( main:2::print_points:7 [ print_points::i#1 print_char_cursor#66 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 ZP_BYTE: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 ZP_BYTE:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ]
Statement [47] if(*((byte*) print_str::str#2)!=(byte) '@') 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] *((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 [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1 [ memset::dst#1 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#1 ] ) always clobbers reg byte a 
Statement [63] (byte~) init_points::getPoint1_$0#0 ← (byte) init_points::i#10 << (byte) 1 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:13 [ init_points::i#10 init_points::i#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ]
Statement [64] (byte*) init_points::getPoint1_return#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:20 [ init_points::getPoint1_$0#0 ]
Statement [66] *((const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#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 ZP_BYTE:13 [ init_points::i#10 init_points::i#1 ]
Removing always clobbered register reg byte y as potential for zp ZP_BYTE:23 [ init_points::pos#1 ]
Statement [12] (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::i#10 << (byte) 1 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#0 ] ( main:2::print_points:7 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#0 ] ) always clobbers reg byte a 
Statement [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0 [ print_points::i#10 print_char_cursor#45 print_line_cursor#24 print_points::getPoint1_$0#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#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#66 ← (byte*) print_line_cursor#1 [ print_points::i#1 print_char_cursor#66 print_line_cursor#1 ] ( main:2::print_points:7 [ print_points::i#1 print_char_cursor#66 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*) print_str::str#2)!=(byte) '@') 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] *((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 [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1 [ memset::dst#1 ] ( main:2::print_points:7::print_cls:10::memset:53 [ memset::dst#1 ] ) always clobbers reg byte a 
Statement [63] (byte~) init_points::getPoint1_$0#0 ← (byte) init_points::i#10 << (byte) 1 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 ] ) always clobbers reg byte a 
Statement [64] (byte*) init_points::getPoint1_return#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 init_points::getPoint1_return#0 ] ( main:2::init_points:5 [ init_points::i#10 init_points::pos#10 init_points::getPoint1_$0#0 init_points::getPoint1_return#0 ] ) always clobbers reg byte a 
Statement [66] *((const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#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 ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ] : zp ZP_BYTE:2 , reg byte x , 
Potential registers zp ZP_WORD:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] : zp ZP_WORD:3 , 
Potential registers zp ZP_BYTE:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ] : zp ZP_BYTE:5 , reg byte x , 
Potential registers zp ZP_BYTE:6 [ print_char::ch#2 print_char::ch#0 print_char::ch#1 ] : zp ZP_BYTE:6 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] : zp ZP_WORD:7 , 
Potential registers zp ZP_WORD:9 [ print_str::str#2 print_str::str#0 ] : zp ZP_WORD:9 , 
Potential registers zp ZP_WORD:11 [ memset::dst#2 memset::dst#1 ] : zp ZP_WORD:11 , 
Potential registers zp ZP_BYTE:13 [ init_points::i#10 init_points::i#1 ] : zp ZP_BYTE:13 , reg byte x , 
Potential registers zp ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ] : zp ZP_BYTE:14 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:15 [ print_points::getPoint1_$0#0 ] : zp ZP_BYTE:15 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:16 [ print_points::point#0 ] : zp ZP_WORD:16 , 
Potential registers zp ZP_BYTE:18 [ print_byte::$0 ] : zp ZP_BYTE:18 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:19 [ print_byte::$2 ] : zp ZP_BYTE:19 , reg byte a , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:20 [ init_points::getPoint1_$0#0 ] : zp ZP_BYTE:20 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:21 [ init_points::getPoint1_return#0 ] : zp ZP_WORD:21 , 
Potential registers zp ZP_BYTE:23 [ init_points::pos#1 ] : zp ZP_BYTE:23 , reg byte a , reg byte x , 

REGISTER UPLIFT SCOPES
Uplift Scope [] 251.43: zp ZP_WORD:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] 191.23: zp ZP_WORD:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] 
Uplift Scope [print_str] 303: zp ZP_WORD:9 [ print_str::str#2 print_str::str#0 ] 
Uplift Scope [init_points] 20.17: zp ZP_BYTE:13 [ init_points::i#10 init_points::i#1 ] 13.93: zp ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ] 11: zp ZP_BYTE:20 [ init_points::getPoint1_$0#0 ] 11: zp ZP_BYTE:23 [ init_points::pos#1 ] 4.4: zp ZP_WORD:21 [ init_points::getPoint1_return#0 ] 
Uplift Scope [print_byte] 50.5: zp ZP_BYTE:5 [ print_byte::b#2 print_byte::b#0 print_byte::b#1 ] 4: zp ZP_BYTE:18 [ print_byte::$0 ] 4: zp ZP_BYTE:19 [ print_byte::$2 ] 
Uplift Scope [memset] 33: zp ZP_WORD:11 [ memset::dst#2 memset::dst#1 ] 
Uplift Scope [print_points] 13.54: zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ] 11: zp ZP_BYTE:15 [ print_points::getPoint1_$0#0 ] 3.14: zp ZP_WORD:16 [ print_points::point#0 ] 
Uplift Scope [print_char] 14: zp ZP_BYTE: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 ZP_WORD:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ] zp ZP_WORD:7 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ] 
Uplifting [print_str] best 14577 combination zp ZP_WORD: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 ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ] reg byte y [ init_points::getPoint1_$0#0 ] reg byte a [ init_points::pos#1 ] zp ZP_WORD: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 ZP_WORD:11 [ memset::dst#2 memset::dst#1 ] 
Uplifting [print_points] best 14275 combination zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ] reg byte y [ print_points::getPoint1_$0#0 ] zp ZP_WORD: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 ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ]
Uplifting [init_points] best 14266 combination zp ZP_BYTE:14 [ init_points::pos#10 init_points::pos#2 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ]
Uplifting [print_points] best 14266 combination zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ] 
Allocated (was zp ZP_WORD:7) zp ZP_WORD:5 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
Allocated (was zp ZP_WORD:9) zp ZP_WORD:7 [ print_str::str#2 print_str::str#0 ]
Allocated (was zp ZP_WORD:11) zp ZP_WORD:9 [ memset::dst#2 memset::dst#1 ]
Allocated (was zp ZP_BYTE:14) zp ZP_BYTE:11 [ init_points::pos#10 init_points::pos#2 ]
Allocated (was zp ZP_WORD:16) zp ZP_WORD:12 [ print_points::point#0 ]
Allocated (was zp ZP_WORD:21) zp ZP_WORD:14 [ init_points::getPoint1_return#0 ]

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;
  // Basic 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 = 5
  .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 point = $c
    .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 print_line_cursor
    lda #>$400
    sta 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 print_char_cursor
    lda #>$400
    sta 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 i
    jmp b1
    // print_points::@1
  b1:
    jmp getPoint1
    // print_points::getPoint1
  getPoint1:
    // [12] (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::i#10 << (byte) 1 -- vbuyy=vbuz1_rol_1 
    lda i
    asl
    tay
    // [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta point
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#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 i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS#0-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp i
    bne b7
    jmp breturn
    // print_points::@return
  breturn:
    // [26] return 
    rts
    // print_points::@7
  b7:
    // [27] (byte*~) print_char_cursor#66 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
    // [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#66 [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 " @"
}
  // 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 print_line_cursor
    sta print_line_cursor
    bcc !+
    inc 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 print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1_from_b1
    bne !+
    lda print_line_cursor
    cmp print_char_cursor
    bcc b1_from_b1
  !:
    jmp breturn
    // 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#0 + (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#0 + (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 print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    jmp breturn
    // print_char::@return
  breturn:
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zeropage(7) str)
print_str: {
    .label str = 7
    // [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 str
    lda #>print_points.str
    sta str+1
    jmp b1
    // print_str::@1
  b1:
    // [47] if(*((byte*) print_str::str#2)!=(byte) '@') goto print_str::@2 -- _deref_pbuz1_neq_vbuc1_then_la1 
    ldy #0
    lda (str),y
    cmp #'@'
    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 print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc str
    bne !+
    inc 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 = 9
    // [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 dst
    lda #>str
    sta dst+1
    jmp b1
    // [56] phi from memset::@1 to memset::@1 [phi:memset::@1->memset::@1]
  b1_from_b1:
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@1->memset::@1#0] -- register_copy 
    jmp b1
    // memset::@1
  b1:
    // [57] *((byte*) memset::dst#2) ← (const byte) memset::c#0 -- _deref_pbuz1=vbuc1 
    lda #c
    ldy #0
    sta (dst),y
    // [58] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc dst
    bne !+
    inc dst+1
  !:
    // [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda dst+1
    cmp #>end
    bne b1_from_b1
    lda dst
    cmp #<end
    bne b1_from_b1
    jmp breturn
    // memset::@return
  breturn:
    // [60] return 
    rts
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1_return = $e
    .label pos = $b
    // [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 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#0 ← (byte) init_points::i#10 << (byte) 1 -- vbuyy=vbuxx_rol_1 
    txa
    asl
    tay
    // [64] (byte*) init_points::getPoint1_return#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta getPoint1_return
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuyy=vbuz1 
    lda 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 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 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#0-(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 b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Replacing label b1_from_b1 with b1
Replacing label b1_from_b3 with b1
Removing instruction b1_from_bbegin:
Removing instruction b1:
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_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_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
Removing instruction jmp b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction bbegin:
Succesful ASM optimization Pass5UnusedLabelElimination

FINAL SYMBOL TABLE
(label) @1
(label) @begin
(label) @end
(byte) NUM_POINTS
(const byte) NUM_POINTS#0 NUM_POINTS = (byte) 4
(const byte) RADIX::BINARY BINARY = (number) 2
(const byte) RADIX::DECIMAL DECIMAL = (number) $a
(const byte) RADIX::HEXADECIMAL HEXADECIMAL = (number) $10
(const byte) RADIX::OCTAL OCTAL = (number) 8
(byte) SIZEOF_POINT
(const byte) SIZEOF_POINT#0 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
(byte~) init_points::getPoint1_$0#0 reg byte y 11.0
(byte*~) init_points::getPoint1_$1
(byte) init_points::getPoint1_idx
(byte*) init_points::getPoint1_return
(byte*) init_points::getPoint1_return#0 getPoint1_return zp ZP_WORD:14 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_$0
(byte*~) init_points::pointXpos1_$1
(byte*) init_points::pointXpos1_point
(byte*) init_points::pointXpos1_return
(label) init_points::pointYpos1
(byte*~) init_points::pointYpos1_$0
(byte*~) init_points::pointYpos1_$1
(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 ZP_BYTE:11 6.6000000000000005
(byte) init_points::pos#2 pos zp ZP_BYTE:11 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::@return
(byte) memset::c
(const byte) memset::c#0 c = (byte) ' '
(byte*) memset::dst
(byte*) memset::dst#1 dst zp ZP_WORD:9 16.5
(byte*) memset::dst#2 dst zp ZP_WORD:9 16.5
(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
(byte[NUM_POINTS#0*SIZEOF_POINT#0]) points
(const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 points = { fill( NUM_POINTS#0*SIZEOF_POINT#0, 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 ZP_WORD:5 101.0
(byte*) print_char_cursor#2 print_char_cursor zp ZP_WORD:5 45.142857142857146
(byte*) print_char_cursor#28 print_char_cursor zp ZP_WORD:5 4.0
(byte*) print_char_cursor#29 print_char_cursor zp ZP_WORD:5 6.6875
(byte*) print_char_cursor#42 print_char_cursor zp ZP_WORD:5 8.0
(byte*) print_char_cursor#45 print_char_cursor zp ZP_WORD:5 4.4
(byte*~) print_char_cursor#66 print_char_cursor zp ZP_WORD:5 22.0
(void()) print_cls()
(label) print_cls::@return
(byte[]) print_hextab
(const byte[]) print_hextab#0 print_hextab = (string) "0123456789abcdef"
(byte*) print_line_cursor
(byte*) print_line_cursor#1 print_line_cursor zp ZP_WORD:3 46.42857142857143
(byte*) print_line_cursor#11 print_line_cursor zp ZP_WORD:3 204.0
(byte*) print_line_cursor#24 print_line_cursor zp ZP_WORD:3 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
(byte~) print_points::getPoint1_$0#0 reg byte y 11.0
(byte*~) print_points::getPoint1_$1
(byte) print_points::getPoint1_idx
(byte*) print_points::getPoint1_return
(byte) print_points::i
(byte) print_points::i#1 i zp ZP_BYTE:2 11.0
(byte) print_points::i#10 i zp ZP_BYTE:2 2.5384615384615383
(byte*) print_points::point
(byte*) print_points::point#0 point zp ZP_WORD:12 3.142857142857143
(label) print_points::pointXpos1
(byte*~) print_points::pointXpos1_$0
(byte*~) print_points::pointXpos1_$1
(byte*) print_points::pointXpos1_point
(byte*) print_points::pointXpos1_return
(label) print_points::pointYpos1
(byte*~) print_points::pointYpos1_$0
(byte*~) print_points::pointYpos1_$1
(byte*) print_points::pointYpos1_point
(byte*) print_points::pointYpos1_return
(const string) print_points::str 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 ZP_WORD:7 202.0
(byte*) print_str::str#2 str zp ZP_WORD:7 101.0

zp ZP_BYTE:2 [ print_points::i#10 print_points::i#1 ]
zp ZP_WORD:3 [ print_line_cursor#11 print_line_cursor#24 print_line_cursor#1 ]
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 ZP_WORD:5 [ print_char_cursor#28 print_char_cursor#42 print_char_cursor#45 print_char_cursor#66 print_char_cursor#2 print_char_cursor#29 print_char_cursor#1 ]
zp ZP_WORD:7 [ print_str::str#2 print_str::str#0 ]
zp ZP_WORD:9 [ memset::dst#2 memset::dst#1 ]
reg byte x [ init_points::i#10 init_points::i#1 ]
zp ZP_BYTE:11 [ init_points::pos#10 init_points::pos#2 ]
reg byte y [ print_points::getPoint1_$0#0 ]
zp ZP_WORD:12 [ print_points::point#0 ]
reg byte a [ print_byte::$0 ]
reg byte x [ print_byte::$2 ]
reg byte y [ init_points::getPoint1_$0#0 ]
zp ZP_WORD:14 [ init_points::getPoint1_return#0 ]
reg byte a [ init_points::pos#1 ]


FINAL ASSEMBLER
Score: 12233

  // 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;
  // Basic 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 = 5
  .label print_line_cursor = 3
  // @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 = $c
    .label i = 2
    // 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 print_line_cursor
    lda #>$400
    sta 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 print_char_cursor
    lda #>$400
    sta 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 i
    // print_points::@1
  b1:
    // print_points::getPoint1
    // idx*SIZEOF_POINT
    // [12] (byte~) print_points::getPoint1_$0#0 ← (byte) print_points::i#10 << (byte) 1 -- vbuyy=vbuz1_rol_1 
    lda i
    asl
    tay
    // points+idx*SIZEOF_POINT
    // [13] (byte*) print_points::point#0 ← (const byte[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta point
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) print_points::getPoint1_$0#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 i
    // [25] if((byte) print_points::i#1!=(const byte) NUM_POINTS#0-(byte) 1+(byte) 1) goto print_points::@7 -- vbuz1_neq_vbuc1_then_la1 
    lda #NUM_POINTS-1+1
    cmp i
    bne b7
    // print_points::@return
    // }
    // [26] return 
    rts
    // print_points::@7
  b7:
    // [27] (byte*~) print_char_cursor#66 ← (byte*) print_line_cursor#1 -- pbuz1=pbuz2 
    lda print_line_cursor
    sta print_char_cursor
    lda print_line_cursor+1
    sta print_char_cursor+1
    // [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#66 [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 " @"
}
  // 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 print_line_cursor
    sta print_line_cursor
    bcc !+
    inc 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 print_line_cursor+1
    cmp print_char_cursor+1
    bcc b1
    bne !+
    lda print_line_cursor
    cmp 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#0 + (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#0 + (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 print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    // print_char::@return
    // }
    // [44] return 
    rts
}
  // print_str
// Print a zero-terminated string
// print_str(byte* zeropage(7) str)
print_str: {
    .label str = 7
    // [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 str
    lda #>print_points.str
    sta str+1
    // print_str::@1
  b1:
    // while(*str!='@')
    // [47] if(*((byte*) print_str::str#2)!=(byte) '@') goto print_str::@2 -- _deref_pbuz1_neq_vbuc1_then_la1 
    ldy #0
    lda (str),y
    cmp #'@'
    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 print_char_cursor
    bne !+
    inc print_char_cursor+1
  !:
    // [51] (byte*) print_str::str#0 ← ++ (byte*) print_str::str#2 -- pbuz1=_inc_pbuz1 
    inc str
    bne !+
    inc 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 = 9
    // [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 dst
    lda #>str
    sta dst+1
    // [56] phi from memset::@1 to memset::@1 [phi:memset::@1->memset::@1]
    // [56] phi (byte*) memset::dst#2 = (byte*) memset::dst#1 [phi:memset::@1->memset::@1#0] -- register_copy 
    // memset::@1
  b1:
    // *dst = c
    // [57] *((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++)
    // [58] (byte*) memset::dst#1 ← ++ (byte*) memset::dst#2 -- pbuz1=_inc_pbuz1 
    inc dst
    bne !+
    inc dst+1
  !:
    // [59] if((byte*) memset::dst#1!=(const byte*) memset::end#0) goto memset::@1 -- pbuz1_neq_pbuc1_then_la1 
    lda dst+1
    cmp #>end
    bne b1
    lda dst
    cmp #<end
    bne b1
    // memset::@return
    // }
    // [60] return 
    rts
}
  // init_points
// Initialize points
init_points: {
    .label getPoint1_return = $e
    .label pos = $b
    // [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 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#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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0 -- pbuz1=pbuc1_plus_vbuyy 
    tya
    clc
    adc #<points
    sta getPoint1_return
    lda #>points
    adc #0
    sta 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[NUM_POINTS#0*SIZEOF_POINT#0]) points#0 + (byte~) init_points::getPoint1_$0#0) ← (byte) init_points::pos#10 -- pbuc1_derefidx_vbuyy=vbuz1 
    lda 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 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 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#0-(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

