PARSING src/test/java/dk/camelot64/kickc/test/kc/flipper-rex2.kc
byte[16*16] buffer1;
byte[16*16] buffer2;
byte *RASTER = $d012;
byte* SCREEN = $0400;

void main() {
  prepare();
  do {
    for( byte c : 25..1) {
      do { } while(*RASTER!=254);
      do { } while(*RASTER!=255);
    }
    flip();
    plot();
  } while(true);
}

// Prepare buffer
void prepare() {
   for( byte i : 0..255) {
      buffer1[i] = i;
   }
}

// Flip buffer
void flip() {
   byte srcIdx = 0;
   byte dstIdx = 15;
   for( byte r : 16..1) {
      for( byte c : 16..1) {
         buffer2[dstIdx] = buffer1[srcIdx++];
         dstIdx = dstIdx+16;
      }
      dstIdx--;
     }
   for(byte i : 0..255) {
      buffer1[i] = buffer2[i];
   }
}

// Plot buffer on screen
void plot() {
   byte* line = SCREEN+5*40+12;
   byte i=0;
   for(byte y : 16..1) {
     for(byte x=0; x<16; x++ ) {
       line[x] = buffer1[i++];
     }
     line = line+40;
   }
}
Adding pre/post-modifier (byte) flip::srcIdx ← ++ (byte) flip::srcIdx
Adding pre/post-modifier (byte) flip::dstIdx ← -- (byte) flip::dstIdx
Adding pre/post-modifier (byte) plot::i ← ++ (byte) plot::i
Adding pre/post-modifier (byte) plot::x ← ++ (byte) plot::x

STATEMENTS
  (byte[256]) buffer1 ← { fill( 256, 0) }
  (byte[256]) buffer2 ← { fill( 256, 0) }
  (byte*) RASTER ← (word/dword/signed dword) 53266
  (byte*) SCREEN ← (word/signed word/dword/signed dword) 1024
proc (void()) main()
  (void~) main::$0 ← call prepare 
main::@1:
  (byte) main::c ← (byte/signed byte/word/signed word/dword/signed dword) 25
main::@2:
main::@3:
  (boolean~) main::$1 ← *((byte*) RASTER) != (byte/word/signed word/dword/signed dword) 254
  if((boolean~) main::$1) goto main::@3
main::@4:
  (boolean~) main::$2 ← *((byte*) RASTER) != (byte/word/signed word/dword/signed dword) 255
  if((boolean~) main::$2) goto main::@4
  (byte) main::c ← -- (byte) main::c
  (boolean~) main::$3 ← (byte) main::c != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) main::$3) goto main::@2
  (void~) main::$4 ← call flip 
  (void~) main::$5 ← call plot 
  if(true) goto main::@1
main::@return:
  return 
endproc // main()
proc (void()) prepare()
  (byte) prepare::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
prepare::@1:
  *((byte[256]) buffer1 + (byte) prepare::i) ← (byte) prepare::i
  (byte) prepare::i ← ++ (byte) prepare::i
  (boolean~) prepare::$0 ← (byte) prepare::i != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) prepare::$0) goto prepare::@1
prepare::@return:
  return 
endproc // prepare()
proc (void()) flip()
  (byte) flip::srcIdx ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) flip::dstIdx ← (byte/signed byte/word/signed word/dword/signed dword) 15
  (byte) flip::r ← (byte/signed byte/word/signed word/dword/signed dword) 16
flip::@1:
  (byte) flip::c ← (byte/signed byte/word/signed word/dword/signed dword) 16
flip::@2:
  *((byte[256]) buffer2 + (byte) flip::dstIdx) ← *((byte[256]) buffer1 + (byte) flip::srcIdx)
  (byte) flip::srcIdx ← ++ (byte) flip::srcIdx
  (byte/word~) flip::$0 ← (byte) flip::dstIdx + (byte/signed byte/word/signed word/dword/signed dword) 16
  (byte) flip::dstIdx ← (byte/word~) flip::$0
  (byte) flip::c ← -- (byte) flip::c
  (boolean~) flip::$1 ← (byte) flip::c != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$1) goto flip::@2
  (byte) flip::dstIdx ← -- (byte) flip::dstIdx
  (byte) flip::r ← -- (byte) flip::r
  (boolean~) flip::$2 ← (byte) flip::r != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$2) goto flip::@1
  (byte) flip::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
flip::@3:
  *((byte[256]) buffer1 + (byte) flip::i) ← *((byte[256]) buffer2 + (byte) flip::i)
  (byte) flip::i ← ++ (byte) flip::i
  (boolean~) flip::$3 ← (byte) flip::i != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$3) goto flip::@3
flip::@return:
  return 
endproc // flip()
proc (void()) plot()
  (byte/word/signed word/dword/signed dword~) plot::$0 ← (byte/signed byte/word/signed word/dword/signed dword) 5 * (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*~) plot::$1 ← (byte*) SCREEN + (byte/word/signed word/dword/signed dword~) plot::$0
  (byte*~) plot::$2 ← (byte*~) plot::$1 + (byte/signed byte/word/signed word/dword/signed dword) 12
  (byte*) plot::line ← (byte*~) plot::$2
  (byte) plot::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) plot::y ← (byte/signed byte/word/signed word/dword/signed dword) 16
plot::@1:
  (byte) plot::x ← (byte/signed byte/word/signed word/dword/signed dword) 0
plot::@2:
  *((byte*) plot::line + (byte) plot::x) ← *((byte[256]) buffer1 + (byte) plot::i)
  (byte) plot::i ← ++ (byte) plot::i
  (byte) plot::x ← ++ (byte) plot::x
  (boolean~) plot::$3 ← (byte) plot::x < (byte/signed byte/word/signed word/dword/signed dword) 16
  if((boolean~) plot::$3) goto plot::@2
  (byte*~) plot::$4 ← (byte*) plot::line + (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*) plot::line ← (byte*~) plot::$4
  (byte) plot::y ← -- (byte) plot::y
  (boolean~) plot::$5 ← (byte) plot::y != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) plot::$5) goto plot::@1
plot::@return:
  return 
endproc // plot()
  call main 

SYMBOLS
(byte*) RASTER
(byte*) SCREEN
(byte[256]) buffer1
(byte[256]) buffer2
(void()) flip()
(byte/word~) flip::$0
(boolean~) flip::$1
(boolean~) flip::$2
(boolean~) flip::$3
(label) flip::@1
(label) flip::@2
(label) flip::@3
(label) flip::@return
(byte) flip::c
(byte) flip::dstIdx
(byte) flip::i
(byte) flip::r
(byte) flip::srcIdx
(void()) main()
(void~) main::$0
(boolean~) main::$1
(boolean~) main::$2
(boolean~) main::$3
(void~) main::$4
(void~) main::$5
(label) main::@1
(label) main::@2
(label) main::@3
(label) main::@4
(label) main::@return
(byte) main::c
(void()) plot()
(byte/word/signed word/dword/signed dword~) plot::$0
(byte*~) plot::$1
(byte*~) plot::$2
(boolean~) plot::$3
(byte*~) plot::$4
(boolean~) plot::$5
(label) plot::@1
(label) plot::@2
(label) plot::@return
(byte) plot::i
(byte*) plot::line
(byte) plot::x
(byte) plot::y
(void()) prepare()
(boolean~) prepare::$0
(label) prepare::@1
(label) prepare::@return
(byte) prepare::i

Promoting word/dword/signed dword to byte* in RASTER ← ((byte*)) 53266
Promoting word/signed word/dword/signed dword to byte* in SCREEN ← ((byte*)) 1024
INITIAL CONTROL FLOW GRAPH
@begin: scope:[]  from
  (byte[256]) buffer1 ← { fill( 256, 0) }
  (byte[256]) buffer2 ← { fill( 256, 0) }
  (byte*) RASTER ← ((byte*)) (word/dword/signed dword) 53266
  (byte*) SCREEN ← ((byte*)) (word/signed word/dword/signed dword) 1024
  to:@1
main: scope:[main]  from
  (void~) main::$0 ← call prepare 
  to:main::@1
main::@1: scope:[main]  from main main::@7
  (byte) main::c ← (byte/signed byte/word/signed word/dword/signed dword) 25
  to:main::@2
main::@2: scope:[main]  from main::@1 main::@6
  to:main::@3
main::@3: scope:[main]  from main::@2 main::@3
  (boolean~) main::$1 ← *((byte*) RASTER) != (byte/word/signed word/dword/signed dword) 254
  if((boolean~) main::$1) goto main::@3
  to:main::@5
main::@5: scope:[main]  from main::@3
  to:main::@4
main::@4: scope:[main]  from main::@4 main::@5
  (boolean~) main::$2 ← *((byte*) RASTER) != (byte/word/signed word/dword/signed dword) 255
  if((boolean~) main::$2) goto main::@4
  to:main::@6
main::@6: scope:[main]  from main::@4
  (byte) main::c ← -- (byte) main::c
  (boolean~) main::$3 ← (byte) main::c != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) main::$3) goto main::@2
  to:main::@7
main::@7: scope:[main]  from main::@6
  (void~) main::$4 ← call flip 
  (void~) main::$5 ← call plot 
  if(true) goto main::@1
  to:main::@8
main::@8: scope:[main]  from main::@7
  to:main::@return
main::@return: scope:[main]  from main::@8
  return 
  to:@return
@1: scope:[]  from @begin
  to:@2
prepare: scope:[prepare]  from
  (byte) prepare::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:prepare::@1
prepare::@1: scope:[prepare]  from prepare prepare::@1
  *((byte[256]) buffer1 + (byte) prepare::i) ← (byte) prepare::i
  (byte) prepare::i ← ++ (byte) prepare::i
  (boolean~) prepare::$0 ← (byte) prepare::i != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) prepare::$0) goto prepare::@1
  to:prepare::@2
prepare::@2: scope:[prepare]  from prepare::@1
  to:prepare::@return
prepare::@return: scope:[prepare]  from prepare::@2
  return 
  to:@return
@2: scope:[]  from @1
  to:@3
flip: scope:[flip]  from
  (byte) flip::srcIdx ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) flip::dstIdx ← (byte/signed byte/word/signed word/dword/signed dword) 15
  (byte) flip::r ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:flip::@1
flip::@1: scope:[flip]  from flip flip::@4
  (byte) flip::c ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:flip::@2
flip::@2: scope:[flip]  from flip::@1 flip::@2
  *((byte[256]) buffer2 + (byte) flip::dstIdx) ← *((byte[256]) buffer1 + (byte) flip::srcIdx)
  (byte) flip::srcIdx ← ++ (byte) flip::srcIdx
  (byte/word~) flip::$0 ← (byte) flip::dstIdx + (byte/signed byte/word/signed word/dword/signed dword) 16
  (byte) flip::dstIdx ← (byte/word~) flip::$0
  (byte) flip::c ← -- (byte) flip::c
  (boolean~) flip::$1 ← (byte) flip::c != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$1) goto flip::@2
  to:flip::@4
flip::@4: scope:[flip]  from flip::@2
  (byte) flip::dstIdx ← -- (byte) flip::dstIdx
  (byte) flip::r ← -- (byte) flip::r
  (boolean~) flip::$2 ← (byte) flip::r != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$2) goto flip::@1
  to:flip::@5
flip::@5: scope:[flip]  from flip::@4
  (byte) flip::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:flip::@3
flip::@3: scope:[flip]  from flip::@3 flip::@5
  *((byte[256]) buffer1 + (byte) flip::i) ← *((byte[256]) buffer2 + (byte) flip::i)
  (byte) flip::i ← ++ (byte) flip::i
  (boolean~) flip::$3 ← (byte) flip::i != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$3) goto flip::@3
  to:flip::@6
flip::@6: scope:[flip]  from flip::@3
  to:flip::@return
flip::@return: scope:[flip]  from flip::@6
  return 
  to:@return
@3: scope:[]  from @2
  to:@4
plot: scope:[plot]  from
  (byte/word/signed word/dword/signed dword~) plot::$0 ← (byte/signed byte/word/signed word/dword/signed dword) 5 * (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*~) plot::$1 ← (byte*) SCREEN + (byte/word/signed word/dword/signed dword~) plot::$0
  (byte*~) plot::$2 ← (byte*~) plot::$1 + (byte/signed byte/word/signed word/dword/signed dword) 12
  (byte*) plot::line ← (byte*~) plot::$2
  (byte) plot::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) plot::y ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:plot::@1
plot::@1: scope:[plot]  from plot plot::@3
  (byte) plot::x ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:plot::@2
plot::@2: scope:[plot]  from plot::@1 plot::@2
  *((byte*) plot::line + (byte) plot::x) ← *((byte[256]) buffer1 + (byte) plot::i)
  (byte) plot::i ← ++ (byte) plot::i
  (byte) plot::x ← ++ (byte) plot::x
  (boolean~) plot::$3 ← (byte) plot::x < (byte/signed byte/word/signed word/dword/signed dword) 16
  if((boolean~) plot::$3) goto plot::@2
  to:plot::@3
plot::@3: scope:[plot]  from plot::@2
  (byte*~) plot::$4 ← (byte*) plot::line + (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*) plot::line ← (byte*~) plot::$4
  (byte) plot::y ← -- (byte) plot::y
  (boolean~) plot::$5 ← (byte) plot::y != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) plot::$5) goto plot::@1
  to:plot::@4
plot::@4: scope:[plot]  from plot::@3
  to:plot::@return
plot::@return: scope:[plot]  from plot::@4
  return 
  to:@return
@4: scope:[]  from @3
  call main 
  to:@end
@end: scope:[]  from @4

Eliminating unused variable - keeping the call (void~) main::$0
Eliminating unused variable - keeping the call (void~) main::$4
Eliminating unused variable - keeping the call (void~) main::$5
Removing empty block main::@5
Removing empty block main::@8
Removing empty block @1
Removing empty block prepare::@2
Removing empty block @2
Removing empty block flip::@6
Removing empty block @3
Removing empty block plot::@4
PROCEDURE MODIFY VARIABLE ANALYSIS

Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...
Completing Phi functions...

CONTROL FLOW GRAPH SSA WITH ASSIGNMENT CALL & RETURN
@begin: scope:[]  from
  (byte[256]) buffer1#0 ← { fill( 256, 0) }
  (byte[256]) buffer2#0 ← { fill( 256, 0) }
  (byte*) RASTER#0 ← ((byte*)) (word/dword/signed dword) 53266
  (byte*) SCREEN#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024
  to:@4
main: scope:[main]  from @4
  (byte*) SCREEN#11 ← phi( @4/(byte*) SCREEN#12 )
  (byte*) RASTER#8 ← phi( @4/(byte*) RASTER#10 )
  call prepare param-assignment
  to:main::@9
main::@9: scope:[main]  from main
  (byte*) SCREEN#10 ← phi( main/(byte*) SCREEN#11 )
  (byte*) RASTER#6 ← phi( main/(byte*) RASTER#8 )
  to:main::@1
main::@1: scope:[main]  from main::@11 main::@9
  (byte*) SCREEN#7 ← phi( main::@11/(byte*) SCREEN#9 main::@9/(byte*) SCREEN#10 )
  (byte*) RASTER#3 ← phi( main::@11/(byte*) RASTER#5 main::@9/(byte*) RASTER#6 )
  (byte) main::c#0 ← (byte/signed byte/word/signed word/dword/signed dword) 25
  to:main::@3
main::@2: scope:[main]  from main::@6
  (byte*) SCREEN#8 ← phi( main::@6/(byte*) SCREEN#4 )
  (byte) main::c#5 ← phi( main::@6/(byte) main::c#1 )
  (byte*) RASTER#4 ← phi( main::@6/(byte*) RASTER#7 )
  to:main::@3
main::@3: scope:[main]  from main::@1 main::@2 main::@3
  (byte*) SCREEN#6 ← phi( main::@1/(byte*) SCREEN#7 main::@2/(byte*) SCREEN#8 main::@3/(byte*) SCREEN#6 )
  (byte) main::c#4 ← phi( main::@1/(byte) main::c#0 main::@2/(byte) main::c#5 main::@3/(byte) main::c#4 )
  (byte*) RASTER#1 ← phi( main::@1/(byte*) RASTER#3 main::@2/(byte*) RASTER#4 main::@3/(byte*) RASTER#1 )
  (boolean~) main::$1 ← *((byte*) RASTER#1) != (byte/word/signed word/dword/signed dword) 254
  if((boolean~) main::$1) goto main::@3
  to:main::@4
main::@4: scope:[main]  from main::@3 main::@4
  (byte*) SCREEN#5 ← phi( main::@3/(byte*) SCREEN#6 main::@4/(byte*) SCREEN#5 )
  (byte) main::c#3 ← phi( main::@3/(byte) main::c#4 main::@4/(byte) main::c#3 )
  (byte*) RASTER#2 ← phi( main::@3/(byte*) RASTER#1 main::@4/(byte*) RASTER#2 )
  (boolean~) main::$2 ← *((byte*) RASTER#2) != (byte/word/signed word/dword/signed dword) 255
  if((boolean~) main::$2) goto main::@4
  to:main::@6
main::@6: scope:[main]  from main::@4
  (byte*) SCREEN#4 ← phi( main::@4/(byte*) SCREEN#5 )
  (byte*) RASTER#7 ← phi( main::@4/(byte*) RASTER#2 )
  (byte) main::c#2 ← phi( main::@4/(byte) main::c#3 )
  (byte) main::c#1 ← -- (byte) main::c#2
  (boolean~) main::$3 ← (byte) main::c#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) main::$3) goto main::@2
  to:main::@7
main::@7: scope:[main]  from main::@6
  (byte*) RASTER#11 ← phi( main::@6/(byte*) RASTER#7 )
  (byte*) SCREEN#3 ← phi( main::@6/(byte*) SCREEN#4 )
  call flip param-assignment
  to:main::@10
main::@10: scope:[main]  from main::@7
  (byte*) RASTER#9 ← phi( main::@7/(byte*) RASTER#11 )
  (byte*) SCREEN#2 ← phi( main::@7/(byte*) SCREEN#3 )
  call plot param-assignment
  to:main::@11
main::@11: scope:[main]  from main::@10
  (byte*) SCREEN#9 ← phi( main::@10/(byte*) SCREEN#2 )
  (byte*) RASTER#5 ← phi( main::@10/(byte*) RASTER#9 )
  if(true) goto main::@1
  to:main::@return
main::@return: scope:[main]  from main::@11
  return 
  to:@return
prepare: scope:[prepare]  from main
  (byte) prepare::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:prepare::@1
prepare::@1: scope:[prepare]  from prepare prepare::@1
  (byte) prepare::i#2 ← phi( prepare/(byte) prepare::i#0 prepare::@1/(byte) prepare::i#1 )
  *((byte[256]) buffer1#0 + (byte) prepare::i#2) ← (byte) prepare::i#2
  (byte) prepare::i#1 ← ++ (byte) prepare::i#2
  (boolean~) prepare::$0 ← (byte) prepare::i#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) prepare::$0) goto prepare::@1
  to:prepare::@return
prepare::@return: scope:[prepare]  from prepare::@1
  return 
  to:@return
flip: scope:[flip]  from main::@7
  (byte) flip::srcIdx#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) flip::dstIdx#0 ← (byte/signed byte/word/signed word/dword/signed dword) 15
  (byte) flip::r#0 ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:flip::@1
flip::@1: scope:[flip]  from flip flip::@4
  (byte) flip::r#4 ← phi( flip/(byte) flip::r#0 flip::@4/(byte) flip::r#1 )
  (byte) flip::dstIdx#5 ← phi( flip/(byte) flip::dstIdx#0 flip::@4/(byte) flip::dstIdx#2 )
  (byte) flip::srcIdx#3 ← phi( flip/(byte) flip::srcIdx#0 flip::@4/(byte) flip::srcIdx#4 )
  (byte) flip::c#0 ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:flip::@2
flip::@2: scope:[flip]  from flip::@1 flip::@2
  (byte) flip::r#3 ← phi( flip::@1/(byte) flip::r#4 flip::@2/(byte) flip::r#3 )
  (byte) flip::c#2 ← phi( flip::@1/(byte) flip::c#0 flip::@2/(byte) flip::c#1 )
  (byte) flip::dstIdx#3 ← phi( flip::@1/(byte) flip::dstIdx#5 flip::@2/(byte) flip::dstIdx#1 )
  (byte) flip::srcIdx#2 ← phi( flip::@1/(byte) flip::srcIdx#3 flip::@2/(byte) flip::srcIdx#1 )
  *((byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((byte[256]) buffer1#0 + (byte) flip::srcIdx#2)
  (byte) flip::srcIdx#1 ← ++ (byte) flip::srcIdx#2
  (byte/word~) flip::$0 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16
  (byte) flip::dstIdx#1 ← (byte/word~) flip::$0
  (byte) flip::c#1 ← -- (byte) flip::c#2
  (boolean~) flip::$1 ← (byte) flip::c#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$1) goto flip::@2
  to:flip::@4
flip::@4: scope:[flip]  from flip::@2
  (byte) flip::srcIdx#4 ← phi( flip::@2/(byte) flip::srcIdx#1 )
  (byte) flip::r#2 ← phi( flip::@2/(byte) flip::r#3 )
  (byte) flip::dstIdx#4 ← phi( flip::@2/(byte) flip::dstIdx#1 )
  (byte) flip::dstIdx#2 ← -- (byte) flip::dstIdx#4
  (byte) flip::r#1 ← -- (byte) flip::r#2
  (boolean~) flip::$2 ← (byte) flip::r#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$2) goto flip::@1
  to:flip::@5
flip::@5: scope:[flip]  from flip::@4
  (byte) flip::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:flip::@3
flip::@3: scope:[flip]  from flip::@3 flip::@5
  (byte) flip::i#2 ← phi( flip::@3/(byte) flip::i#1 flip::@5/(byte) flip::i#0 )
  *((byte[256]) buffer1#0 + (byte) flip::i#2) ← *((byte[256]) buffer2#0 + (byte) flip::i#2)
  (byte) flip::i#1 ← ++ (byte) flip::i#2
  (boolean~) flip::$3 ← (byte) flip::i#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) flip::$3) goto flip::@3
  to:flip::@return
flip::@return: scope:[flip]  from flip::@3
  return 
  to:@return
plot: scope:[plot]  from main::@10
  (byte*) SCREEN#1 ← phi( main::@10/(byte*) SCREEN#2 )
  (byte/word/signed word/dword/signed dword~) plot::$0 ← (byte/signed byte/word/signed word/dword/signed dword) 5 * (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*~) plot::$1 ← (byte*) SCREEN#1 + (byte/word/signed word/dword/signed dword~) plot::$0
  (byte*~) plot::$2 ← (byte*~) plot::$1 + (byte/signed byte/word/signed word/dword/signed dword) 12
  (byte*) plot::line#0 ← (byte*~) plot::$2
  (byte) plot::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
  (byte) plot::y#0 ← (byte/signed byte/word/signed word/dword/signed dword) 16
  to:plot::@1
plot::@1: scope:[plot]  from plot plot::@3
  (byte) plot::y#4 ← phi( plot/(byte) plot::y#0 plot::@3/(byte) plot::y#1 )
  (byte*) plot::line#4 ← phi( plot/(byte*) plot::line#0 plot::@3/(byte*) plot::line#1 )
  (byte) plot::i#3 ← phi( plot/(byte) plot::i#0 plot::@3/(byte) plot::i#4 )
  (byte) plot::x#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
  to:plot::@2
plot::@2: scope:[plot]  from plot::@1 plot::@2
  (byte) plot::y#3 ← phi( plot::@1/(byte) plot::y#4 plot::@2/(byte) plot::y#3 )
  (byte) plot::x#2 ← phi( plot::@1/(byte) plot::x#0 plot::@2/(byte) plot::x#1 )
  (byte*) plot::line#2 ← phi( plot::@1/(byte*) plot::line#4 plot::@2/(byte*) plot::line#2 )
  (byte) plot::i#2 ← phi( plot::@1/(byte) plot::i#3 plot::@2/(byte) plot::i#1 )
  *((byte*) plot::line#2 + (byte) plot::x#2) ← *((byte[256]) buffer1#0 + (byte) plot::i#2)
  (byte) plot::i#1 ← ++ (byte) plot::i#2
  (byte) plot::x#1 ← ++ (byte) plot::x#2
  (boolean~) plot::$3 ← (byte) plot::x#1 < (byte/signed byte/word/signed word/dword/signed dword) 16
  if((boolean~) plot::$3) goto plot::@2
  to:plot::@3
plot::@3: scope:[plot]  from plot::@2
  (byte) plot::i#4 ← phi( plot::@2/(byte) plot::i#1 )
  (byte) plot::y#2 ← phi( plot::@2/(byte) plot::y#3 )
  (byte*) plot::line#3 ← phi( plot::@2/(byte*) plot::line#2 )
  (byte*~) plot::$4 ← (byte*) plot::line#3 + (byte/signed byte/word/signed word/dword/signed dword) 40
  (byte*) plot::line#1 ← (byte*~) plot::$4
  (byte) plot::y#1 ← -- (byte) plot::y#2
  (boolean~) plot::$5 ← (byte) plot::y#1 != (byte/signed byte/word/signed word/dword/signed dword) 0
  if((boolean~) plot::$5) goto plot::@1
  to:plot::@return
plot::@return: scope:[plot]  from plot::@3
  return 
  to:@return
@4: scope:[]  from @begin
  (byte*) SCREEN#12 ← phi( @begin/(byte*) SCREEN#0 )
  (byte*) RASTER#10 ← phi( @begin/(byte*) RASTER#0 )
  call main param-assignment
  to:@5
@5: scope:[]  from @4
  to:@end
@end: scope:[]  from @5

SYMBOL TABLE SSA
(label) @4
(label) @5
(label) @begin
(label) @end
(byte*) RASTER
(byte*) RASTER#0
(byte*) RASTER#1
(byte*) RASTER#10
(byte*) RASTER#11
(byte*) RASTER#2
(byte*) RASTER#3
(byte*) RASTER#4
(byte*) RASTER#5
(byte*) RASTER#6
(byte*) RASTER#7
(byte*) RASTER#8
(byte*) RASTER#9
(byte*) SCREEN
(byte*) SCREEN#0
(byte*) SCREEN#1
(byte*) SCREEN#10
(byte*) SCREEN#11
(byte*) SCREEN#12
(byte*) SCREEN#2
(byte*) SCREEN#3
(byte*) SCREEN#4
(byte*) SCREEN#5
(byte*) SCREEN#6
(byte*) SCREEN#7
(byte*) SCREEN#8
(byte*) SCREEN#9
(byte[256]) buffer1
(byte[256]) buffer1#0
(byte[256]) buffer2
(byte[256]) buffer2#0
(void()) flip()
(byte/word~) flip::$0
(boolean~) flip::$1
(boolean~) flip::$2
(boolean~) flip::$3
(label) flip::@1
(label) flip::@2
(label) flip::@3
(label) flip::@4
(label) flip::@5
(label) flip::@return
(byte) flip::c
(byte) flip::c#0
(byte) flip::c#1
(byte) flip::c#2
(byte) flip::dstIdx
(byte) flip::dstIdx#0
(byte) flip::dstIdx#1
(byte) flip::dstIdx#2
(byte) flip::dstIdx#3
(byte) flip::dstIdx#4
(byte) flip::dstIdx#5
(byte) flip::i
(byte) flip::i#0
(byte) flip::i#1
(byte) flip::i#2
(byte) flip::r
(byte) flip::r#0
(byte) flip::r#1
(byte) flip::r#2
(byte) flip::r#3
(byte) flip::r#4
(byte) flip::srcIdx
(byte) flip::srcIdx#0
(byte) flip::srcIdx#1
(byte) flip::srcIdx#2
(byte) flip::srcIdx#3
(byte) flip::srcIdx#4
(void()) main()
(boolean~) main::$1
(boolean~) main::$2
(boolean~) main::$3
(label) main::@1
(label) main::@10
(label) main::@11
(label) main::@2
(label) main::@3
(label) main::@4
(label) main::@6
(label) main::@7
(label) main::@9
(label) main::@return
(byte) main::c
(byte) main::c#0
(byte) main::c#1
(byte) main::c#2
(byte) main::c#3
(byte) main::c#4
(byte) main::c#5
(void()) plot()
(byte/word/signed word/dword/signed dword~) plot::$0
(byte*~) plot::$1
(byte*~) plot::$2
(boolean~) plot::$3
(byte*~) plot::$4
(boolean~) plot::$5
(label) plot::@1
(label) plot::@2
(label) plot::@3
(label) plot::@return
(byte) plot::i
(byte) plot::i#0
(byte) plot::i#1
(byte) plot::i#2
(byte) plot::i#3
(byte) plot::i#4
(byte*) plot::line
(byte*) plot::line#0
(byte*) plot::line#1
(byte*) plot::line#2
(byte*) plot::line#3
(byte*) plot::line#4
(byte) plot::x
(byte) plot::x#0
(byte) plot::x#1
(byte) plot::x#2
(byte) plot::y
(byte) plot::y#0
(byte) plot::y#1
(byte) plot::y#2
(byte) plot::y#3
(byte) plot::y#4
(void()) prepare()
(boolean~) prepare::$0
(label) prepare::@1
(label) prepare::@return
(byte) prepare::i
(byte) prepare::i#0
(byte) prepare::i#1
(byte) prepare::i#2

OPTIMIZING CONTROL FLOW GRAPH
Culled Empty Block (label) @5
Succesful SSA optimization Pass2CullEmptyBlocks
Not aliassing across scopes: RASTER#8 RASTER#10
Not aliassing across scopes: SCREEN#11 SCREEN#12
Not aliassing across scopes: SCREEN#1 SCREEN#2
Alias (byte*) RASTER#6 = (byte*) RASTER#8 
Alias (byte*) SCREEN#10 = (byte*) SCREEN#11 
Alias (byte*) RASTER#11 = (byte*) RASTER#4 (byte*) RASTER#7 (byte*) RASTER#2 (byte*) RASTER#9 (byte*) RASTER#5 
Alias (byte) main::c#1 = (byte) main::c#5 
Alias (byte*) SCREEN#2 = (byte*) SCREEN#8 (byte*) SCREEN#4 (byte*) SCREEN#5 (byte*) SCREEN#3 (byte*) SCREEN#9 
Alias (byte) main::c#2 = (byte) main::c#3 
Alias (byte) flip::dstIdx#1 = (byte/word~) flip::$0 (byte) flip::dstIdx#4 
Alias (byte) flip::r#2 = (byte) flip::r#3 
Alias (byte) flip::srcIdx#1 = (byte) flip::srcIdx#4 
Alias (byte*) plot::line#0 = (byte*~) plot::$2 
Alias (byte*) plot::line#2 = (byte*) plot::line#3 
Alias (byte) plot::y#2 = (byte) plot::y#3 
Alias (byte) plot::i#1 = (byte) plot::i#4 
Alias (byte*) plot::line#1 = (byte*~) plot::$4 
Alias (byte*) RASTER#0 = (byte*) RASTER#10 
Alias (byte*) SCREEN#0 = (byte*) SCREEN#12 
Succesful SSA optimization Pass2AliasElimination
Not aliassing across scopes: RASTER#6 RASTER#0
Not aliassing across scopes: SCREEN#10 SCREEN#0
Not aliassing across scopes: SCREEN#1 SCREEN#2
Self Phi Eliminated (byte*) RASTER#1
Self Phi Eliminated (byte) main::c#4
Self Phi Eliminated (byte*) SCREEN#6
Self Phi Eliminated (byte*) RASTER#11
Self Phi Eliminated (byte) main::c#2
Self Phi Eliminated (byte*) SCREEN#2
Self Phi Eliminated (byte) flip::r#2
Self Phi Eliminated (byte*) plot::line#2
Self Phi Eliminated (byte) plot::y#2
Succesful SSA optimization Pass2SelfPhiElimination
Redundant Phi (byte*) RASTER#6 (byte*) RASTER#0
Redundant Phi (byte*) SCREEN#10 (byte*) SCREEN#0
Redundant Phi (byte*) RASTER#11 (byte*) RASTER#1
Redundant Phi (byte) main::c#2 (byte) main::c#4
Redundant Phi (byte*) SCREEN#2 (byte*) SCREEN#6
Redundant Phi (byte) flip::r#2 (byte) flip::r#4
Redundant Phi (byte*) SCREEN#1 (byte*) SCREEN#2
Redundant Phi (byte*) plot::line#2 (byte*) plot::line#4
Redundant Phi (byte) plot::y#2 (byte) plot::y#4
Succesful SSA optimization Pass2RedundantPhiElimination
Simple Condition (boolean~) main::$1 if(*((byte*) RASTER#1)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3
Simple Condition (boolean~) main::$2 if(*((byte*) RASTER#1)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4
Simple Condition (boolean~) main::$3 if((byte) main::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@2
Simple Condition (boolean~) prepare::$0 if((byte) prepare::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto prepare::@1
Simple Condition (boolean~) flip::$1 if((byte) flip::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@2
Simple Condition (boolean~) flip::$2 if((byte) flip::r#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@1
Simple Condition (boolean~) flip::$3 if((byte) flip::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@3
Simple Condition (boolean~) plot::$3 if((byte) plot::x#1<(byte/signed byte/word/signed word/dword/signed dword) 16) goto plot::@2
Simple Condition (boolean~) plot::$5 if((byte) plot::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto plot::@1
Succesful SSA optimization Pass2ConditionalJumpSimplification
Constant (const byte[256]) buffer1#0 = { fill( 256, 0) }
Constant (const byte[256]) buffer2#0 = { fill( 256, 0) }
Constant (const byte*) RASTER#0 = ((byte*))53266
Constant (const byte*) SCREEN#0 = ((byte*))1024
Constant (const byte) main::c#0 = 25
Constant (const byte) prepare::i#0 = 0
Constant (const byte) flip::srcIdx#0 = 0
Constant (const byte) flip::dstIdx#0 = 15
Constant (const byte) flip::r#0 = 16
Constant (const byte) flip::c#0 = 16
Constant (const byte) flip::i#0 = 0
Constant (const byte/word/signed word/dword/signed dword) plot::$0 = 5*40
Constant (const byte) plot::i#0 = 0
Constant (const byte) plot::y#0 = 16
Constant (const byte) plot::x#0 = 0
Succesful SSA optimization Pass2ConstantIdentification
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
Multiple usages for variable. Not optimizing sub-constant (byte*) SCREEN#6
Consolidated constant in assignment plot::line#0
Succesful SSA optimization Pass2ConstantAdditionElimination
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
Culled Empty Block (label) main::@9
Culled Empty Block (label) main::@2
Culled Empty Block (label) flip::@5
Succesful SSA optimization Pass2CullEmptyBlocks
Not aliassing across scopes: plot::$1 SCREEN#6
Self Phi Eliminated (byte*) RASTER#1
Self Phi Eliminated (byte*) SCREEN#6
Succesful SSA optimization Pass2SelfPhiElimination
Redundant Phi (byte*) RASTER#1 (byte*) RASTER#3
Redundant Phi (byte*) SCREEN#6 (byte*) SCREEN#7
Succesful SSA optimization Pass2RedundantPhiElimination
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
Not aliassing identity: RASTER#3 RASTER#3
Not aliassing identity: SCREEN#7 SCREEN#7
Not aliassing across scopes: plot::$1 SCREEN#7
Self Phi Eliminated (byte*) RASTER#3
Self Phi Eliminated (byte*) SCREEN#7
Succesful SSA optimization Pass2SelfPhiElimination
Redundant Phi (byte*) RASTER#3 (const byte*) RASTER#0
Redundant Phi (byte*) SCREEN#7 (const byte*) SCREEN#0
Succesful SSA optimization Pass2RedundantPhiElimination
Constant (const byte*) plot::$1 = SCREEN#0
Succesful SSA optimization Pass2ConstantIdentification
Constant (const byte*) plot::line#0 = plot::$1+plot::$0+12
Succesful SSA optimization Pass2ConstantIdentification
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
Culled Empty Block (label) main::@1
Succesful SSA optimization Pass2CullEmptyBlocks
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
Multiple usages for variable. Not optimizing sub-constant (byte) prepare::i#2
OPTIMIZING CONTROL FLOW GRAPH
Inlining constant with var siblings (const byte) main::c#0
Inlining constant with var siblings (const byte) main::c#0
Inlining constant with var siblings (const byte) prepare::i#0
Inlining constant with var siblings (const byte) prepare::i#0
Inlining constant with var siblings (const byte) flip::srcIdx#0
Inlining constant with var siblings (const byte) flip::srcIdx#0
Inlining constant with var siblings (const byte) flip::srcIdx#0
Inlining constant with var siblings (const byte) flip::dstIdx#0
Inlining constant with var siblings (const byte) flip::dstIdx#0
Inlining constant with var siblings (const byte) flip::dstIdx#0
Inlining constant with var siblings (const byte) flip::dstIdx#0
Inlining constant with var siblings (const byte) flip::r#0
Inlining constant with var siblings (const byte) flip::r#0
Inlining constant with var siblings (const byte) flip::c#0
Inlining constant with var siblings (const byte) flip::c#0
Inlining constant with var siblings (const byte) flip::i#0
Inlining constant with var siblings (const byte) flip::i#0
Inlining constant with var siblings (const byte) plot::i#0
Inlining constant with var siblings (const byte) plot::i#0
Inlining constant with var siblings (const byte) plot::i#0
Inlining constant with var siblings (const byte) plot::y#0
Inlining constant with var siblings (const byte) plot::y#0
Inlining constant with var siblings (const byte) plot::x#0
Inlining constant with var siblings (const byte) plot::x#0
Inlining constant with var siblings (const byte*) plot::line#0
Inlining constant with var siblings (const byte*) plot::line#0
Constant inlined plot::line#0 = (const byte*) SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 12
Constant inlined plot::$0 = (byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40
Constant inlined plot::$1 = (const byte*) SCREEN#0
Constant inlined plot::x#0 = (byte/signed byte/word/signed word/dword/signed dword) 0
Constant inlined plot::y#0 = (byte/signed byte/word/signed word/dword/signed dword) 16
Constant inlined flip::dstIdx#0 = (byte/signed byte/word/signed word/dword/signed dword) 15
Constant inlined flip::r#0 = (byte/signed byte/word/signed word/dword/signed dword) 16
Constant inlined main::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 25
Constant inlined flip::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0
Constant inlined flip::srcIdx#0 = (byte/signed byte/word/signed word/dword/signed dword) 0
Constant inlined prepare::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0
Constant inlined plot::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0
Constant inlined flip::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 16
Succesful SSA optimization Pass2ConstantInlining
Block Sequence Planned @begin @4 @end main main::@3 main::@4 main::@6 main::@7 main::@10 main::@11 main::@return plot plot::@1 plot::@2 plot::@3 plot::@return flip flip::@1 flip::@2 flip::@4 flip::@3 flip::@return prepare prepare::@1 prepare::@return 
Added new block during phi lifting main::@12(between main::@6 and main::@3)
Added new block during phi lifting plot::@5(between plot::@3 and plot::@1)
Added new block during phi lifting plot::@6(between plot::@2 and plot::@2)
Added new block during phi lifting flip::@7(between flip::@4 and flip::@1)
Added new block during phi lifting flip::@8(between flip::@2 and flip::@2)
Added new block during phi lifting flip::@9(between flip::@3 and flip::@3)
Added new block during phi lifting prepare::@3(between prepare::@1 and prepare::@1)
Block Sequence Planned @begin @4 @end main main::@3 main::@4 main::@6 main::@7 main::@10 main::@11 main::@return main::@12 plot plot::@1 plot::@2 plot::@3 plot::@return plot::@5 plot::@6 flip flip::@1 flip::@2 flip::@4 flip::@3 flip::@return flip::@9 flip::@7 flip::@8 prepare prepare::@1 prepare::@return prepare::@3 
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @4
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@7
Adding NOP phi() at start of main::@10
Adding NOP phi() at start of plot
Adding NOP phi() at start of flip
Adding NOP phi() at start of prepare
CALL GRAPH
Calls in [] to main:2 
Calls in [main] to prepare:5 flip:12 plot:14 

Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Created 14 initial phi equivalence classes
Coalesced [17] main::c#6 ← main::c#1
Coalesced [20] plot::i#6 ← plot::i#3
Coalesced [30] plot::i#5 ← plot::i#1
Coalesced [31] plot::line#5 ← plot::line#1
Coalesced [32] plot::y#5 ← plot::y#1
Coalesced (already) [33] plot::i#7 ← plot::i#1
Coalesced [34] plot::x#3 ← plot::x#1
Coalesced [37] flip::srcIdx#6 ← flip::srcIdx#3
Coalesced [38] flip::dstIdx#7 ← flip::dstIdx#5
Coalesced [53] flip::i#3 ← flip::i#1
Coalesced [54] flip::srcIdx#5 ← flip::srcIdx#1
Coalesced [55] flip::dstIdx#6 ← flip::dstIdx#2
Coalesced [56] flip::r#5 ← flip::r#1
Coalesced (already) [57] flip::srcIdx#7 ← flip::srcIdx#1
Coalesced [58] flip::dstIdx#8 ← flip::dstIdx#1
Coalesced [59] flip::c#3 ← flip::c#1
Coalesced [66] prepare::i#3 ← prepare::i#1
Coalesced down to 11 phi equivalence classes
Culled Empty Block (label) main::@12
Culled Empty Block (label) plot::@5
Culled Empty Block (label) plot::@6
Culled Empty Block (label) flip::@9
Culled Empty Block (label) flip::@7
Culled Empty Block (label) flip::@8
Culled Empty Block (label) prepare::@3
Block Sequence Planned @begin @4 @end main main::@3 main::@4 main::@6 main::@7 main::@10 main::@11 main::@return plot plot::@1 plot::@2 plot::@3 plot::@return flip flip::@1 flip::@2 flip::@4 flip::@3 flip::@return prepare prepare::@1 prepare::@return 
Adding NOP phi() at start of @begin
Adding NOP phi() at start of @4
Adding NOP phi() at start of @end
Adding NOP phi() at start of main
Adding NOP phi() at start of main::@7
Adding NOP phi() at start of main::@10
Adding NOP phi() at start of plot
Adding NOP phi() at start of flip
Adding NOP phi() at start of prepare
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...
Propagating live ranges...

FINAL CONTROL FLOW GRAPH
@begin: scope:[]  from
  [0] phi() [ ] ( )
  to:@4
@4: scope:[]  from @begin
  [1] phi() [ ] ( )
  [2] call main param-assignment [ ] ( )
  to:@end
@end: scope:[]  from @4
  [3] phi() [ ] ( )
main: scope:[main]  from @4
  [4] phi() [ ] ( main:2 [ ] )
  [5] call prepare param-assignment [ ] ( main:2 [ ] )
  to:main::@3
main::@3: scope:[main]  from main main::@11 main::@3 main::@6
  [6] (byte) main::c#4 ← phi( main/(byte/signed byte/word/signed word/dword/signed dword) 25 main::@6/(byte) main::c#1 main::@11/(byte/signed byte/word/signed word/dword/signed dword) 25 ) [ main::c#4 ] ( main:2 [ main::c#4 ] )
  [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] )
  to:main::@4
main::@4: scope:[main]  from main::@3 main::@4
  [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] )
  to:main::@6
main::@6: scope:[main]  from main::@4
  [9] (byte) main::c#1 ← -- (byte) main::c#4 [ main::c#1 ] ( main:2 [ main::c#1 ] )
  [10] if((byte) main::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@3 [ main::c#1 ] ( main:2 [ main::c#1 ] )
  to:main::@7
main::@7: scope:[main]  from main::@6
  [11] phi() [ ] ( main:2 [ ] )
  [12] call flip param-assignment [ ] ( main:2 [ ] )
  to:main::@10
main::@10: scope:[main]  from main::@7
  [13] phi() [ ] ( main:2 [ ] )
  [14] call plot param-assignment [ ] ( main:2 [ ] )
  to:main::@11
main::@11: scope:[main]  from main::@10
  [15] if(true) goto main::@3 [ ] ( main:2 [ ] )
  to:main::@return
main::@return: scope:[main]  from main::@11
  [16] return  [ ] ( main:2 [ ] )
  to:@return
plot: scope:[plot]  from main::@10
  [17] phi() [ ] ( main:2::plot:14 [ ] )
  to:plot::@1
plot::@1: scope:[plot]  from plot plot::@3
  [18] (byte) plot::y#4 ← phi( plot/(byte/signed byte/word/signed word/dword/signed dword) 16 plot::@3/(byte) plot::y#1 ) [ plot::i#3 plot::line#4 plot::y#4 ] ( main:2::plot:14 [ plot::i#3 plot::line#4 plot::y#4 ] )
  [18] (byte*) plot::line#4 ← phi( plot/(const byte*) SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 12 plot::@3/(byte*) plot::line#1 ) [ plot::i#3 plot::line#4 plot::y#4 ] ( main:2::plot:14 [ plot::i#3 plot::line#4 plot::y#4 ] )
  [18] (byte) plot::i#3 ← phi( plot/(byte/signed byte/word/signed word/dword/signed dword) 0 plot::@3/(byte) plot::i#1 ) [ plot::i#3 plot::line#4 plot::y#4 ] ( main:2::plot:14 [ plot::i#3 plot::line#4 plot::y#4 ] )
  to:plot::@2
plot::@2: scope:[plot]  from plot::@1 plot::@2
  [19] (byte) plot::x#2 ← phi( plot::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 plot::@2/(byte) plot::x#1 ) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] )
  [19] (byte) plot::i#2 ← phi( plot::@1/(byte) plot::i#3 plot::@2/(byte) plot::i#1 ) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] )
  [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] )
  [21] (byte) plot::i#1 ← ++ (byte) plot::i#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] )
  [22] (byte) plot::x#1 ← ++ (byte) plot::x#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] )
  [23] if((byte) plot::x#1<(byte/signed byte/word/signed word/dword/signed dword) 16) goto plot::@2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] )
  to:plot::@3
plot::@3: scope:[plot]  from plot::@2
  [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] )
  [25] (byte) plot::y#1 ← -- (byte) plot::y#4 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] )
  [26] if((byte) plot::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto plot::@1 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] )
  to:plot::@return
plot::@return: scope:[plot]  from plot::@3
  [27] return  [ ] ( main:2::plot:14 [ ] )
  to:@return
flip: scope:[flip]  from main::@7
  [28] phi() [ ] ( main:2::flip:12 [ ] )
  to:flip::@1
flip::@1: scope:[flip]  from flip flip::@4
  [29] (byte) flip::r#4 ← phi( flip/(byte/signed byte/word/signed word/dword/signed dword) 16 flip::@4/(byte) flip::r#1 ) [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] ( main:2::flip:12 [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] )
  [29] (byte) flip::dstIdx#5 ← phi( flip/(byte/signed byte/word/signed word/dword/signed dword) 15 flip::@4/(byte) flip::dstIdx#2 ) [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] ( main:2::flip:12 [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] )
  [29] (byte) flip::srcIdx#3 ← phi( flip/(byte/signed byte/word/signed word/dword/signed dword) 0 flip::@4/(byte) flip::srcIdx#1 ) [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] ( main:2::flip:12 [ flip::srcIdx#3 flip::dstIdx#5 flip::r#4 ] )
  to:flip::@2
flip::@2: scope:[flip]  from flip::@1 flip::@2
  [30] (byte) flip::c#2 ← phi( flip::@1/(byte/signed byte/word/signed word/dword/signed dword) 16 flip::@2/(byte) flip::c#1 ) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] )
  [30] (byte) flip::dstIdx#3 ← phi( flip::@1/(byte) flip::dstIdx#5 flip::@2/(byte) flip::dstIdx#1 ) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] )
  [30] (byte) flip::srcIdx#2 ← phi( flip::@1/(byte) flip::srcIdx#3 flip::@2/(byte) flip::srcIdx#1 ) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] )
  [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] )
  [32] (byte) flip::srcIdx#1 ← ++ (byte) flip::srcIdx#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] )
  [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] )
  [34] (byte) flip::c#1 ← -- (byte) flip::c#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] )
  [35] if((byte) flip::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] )
  to:flip::@4
flip::@4: scope:[flip]  from flip::@2
  [36] (byte) flip::dstIdx#2 ← -- (byte) flip::dstIdx#1 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] )
  [37] (byte) flip::r#1 ← -- (byte) flip::r#4 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] )
  [38] if((byte) flip::r#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@1 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] )
  to:flip::@3
flip::@3: scope:[flip]  from flip::@3 flip::@4
  [39] (byte) flip::i#2 ← phi( flip::@3/(byte) flip::i#1 flip::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 ) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] )
  [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] )
  [41] (byte) flip::i#1 ← ++ (byte) flip::i#2 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] )
  [42] if((byte) flip::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@3 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] )
  to:flip::@return
flip::@return: scope:[flip]  from flip::@3
  [43] return  [ ] ( main:2::flip:12 [ ] )
  to:@return
prepare: scope:[prepare]  from main
  [44] phi() [ ] ( main:2::prepare:5 [ ] )
  to:prepare::@1
prepare::@1: scope:[prepare]  from prepare prepare::@1
  [45] (byte) prepare::i#2 ← phi( prepare/(byte/signed byte/word/signed word/dword/signed dword) 0 prepare::@1/(byte) prepare::i#1 ) [ prepare::i#2 ] ( main:2::prepare:5 [ prepare::i#2 ] )
  [46] *((const byte[256]) buffer1#0 + (byte) prepare::i#2) ← (byte) prepare::i#2 [ prepare::i#2 ] ( main:2::prepare:5 [ prepare::i#2 ] )
  [47] (byte) prepare::i#1 ← ++ (byte) prepare::i#2 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] )
  [48] if((byte) prepare::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto prepare::@1 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] )
  to:prepare::@return
prepare::@return: scope:[prepare]  from prepare::@1
  [49] return  [ ] ( main:2::prepare:5 [ ] )
  to:@return

DOMINATORS
@begin dominated by  @begin 
@4 dominated by  @begin @4 
@end dominated by  @end @begin @4 
main dominated by  main @begin @4 
main::@3 dominated by  main main::@3 @begin @4 
main::@4 dominated by  main main::@3 main::@4 @begin @4 
main::@6 dominated by  main main::@6 main::@3 main::@4 @begin @4 
main::@7 dominated by  main::@7 main main::@6 main::@3 main::@4 @begin @4 
main::@10 dominated by  main::@7 main main::@6 main::@3 main::@4 @begin main::@10 @4 
main::@11 dominated by  main::@7 main main::@6 main::@3 main::@4 main::@11 @begin main::@10 @4 
main::@return dominated by  main::@return main::@7 main main::@6 main::@3 main::@4 main::@11 @begin main::@10 @4 
plot dominated by  main::@7 main plot main::@6 main::@3 main::@4 @begin main::@10 @4 
plot::@1 dominated by  main::@7 main plot main::@6 main::@3 plot::@1 main::@4 @begin main::@10 @4 
plot::@2 dominated by  main::@7 main plot main::@6 main::@3 plot::@1 main::@4 plot::@2 @begin main::@10 @4 
plot::@3 dominated by  main::@7 main plot plot::@3 main::@6 main::@3 plot::@1 main::@4 plot::@2 @begin main::@10 @4 
plot::@return dominated by  main::@7 main plot plot::@3 main::@6 main::@3 plot::@1 main::@4 plot::@2 @begin main::@10 @4 plot::@return 
flip dominated by  main::@7 main main::@6 flip main::@3 main::@4 @begin @4 
flip::@1 dominated by  main::@7 main flip::@1 main::@6 flip main::@3 main::@4 @begin @4 
flip::@2 dominated by  main::@7 main flip::@2 flip::@1 main::@6 flip main::@3 main::@4 @begin @4 
flip::@4 dominated by  main::@7 main flip::@2 flip::@1 main::@6 flip main::@3 main::@4 @begin flip::@4 @4 
flip::@3 dominated by  main::@7 main flip::@2 flip::@1 main::@6 flip main::@3 main::@4 @begin flip::@4 flip::@3 @4 
flip::@return dominated by  main::@7 main flip::@2 flip::@return flip::@1 main::@6 flip main::@3 main::@4 @begin flip::@4 flip::@3 @4 
prepare dominated by  prepare main @begin @4 
prepare::@1 dominated by  prepare main prepare::@1 @begin @4 
prepare::@return dominated by  prepare main prepare::@1 prepare::@return @begin @4 

NATURAL LOOPS
Found back edge: Loop head: main::@3 tails: main::@3 blocks: null
Found back edge: Loop head: main::@4 tails: main::@4 blocks: null
Found back edge: Loop head: main::@3 tails: main::@6 blocks: null
Found back edge: Loop head: main::@3 tails: main::@11 blocks: null
Found back edge: Loop head: plot::@2 tails: plot::@2 blocks: null
Found back edge: Loop head: plot::@1 tails: plot::@3 blocks: null
Found back edge: Loop head: flip::@2 tails: flip::@2 blocks: null
Found back edge: Loop head: flip::@1 tails: flip::@4 blocks: null
Found back edge: Loop head: flip::@3 tails: flip::@3 blocks: null
Found back edge: Loop head: prepare::@1 tails: prepare::@1 blocks: null
Populated: Loop head: main::@3 tails: main::@3 blocks: main::@3 
Populated: Loop head: main::@4 tails: main::@4 blocks: main::@4 
Populated: Loop head: main::@3 tails: main::@6 blocks: main::@6 main::@4 main::@3 
Populated: Loop head: main::@3 tails: main::@11 blocks: main::@11 main::@10 main::@7 main::@6 main::@4 main::@3 
Populated: Loop head: plot::@2 tails: plot::@2 blocks: plot::@2 
Populated: Loop head: plot::@1 tails: plot::@3 blocks: plot::@3 plot::@2 plot::@1 
Populated: Loop head: flip::@2 tails: flip::@2 blocks: flip::@2 
Populated: Loop head: flip::@1 tails: flip::@4 blocks: flip::@4 flip::@2 flip::@1 
Populated: Loop head: flip::@3 tails: flip::@3 blocks: flip::@3 
Populated: Loop head: prepare::@1 tails: prepare::@1 blocks: prepare::@1 
Loop head: main::@3 tails: main::@3 blocks: main::@3 
Loop head: main::@4 tails: main::@4 blocks: main::@4 
Loop head: main::@3 tails: main::@6 blocks: main::@6 main::@4 main::@3 
Loop head: main::@3 tails: main::@11 blocks: main::@11 main::@10 main::@7 main::@6 main::@4 main::@3 
Loop head: plot::@2 tails: plot::@2 blocks: plot::@2 
Loop head: plot::@1 tails: plot::@3 blocks: plot::@3 plot::@2 plot::@1 
Loop head: flip::@2 tails: flip::@2 blocks: flip::@2 
Loop head: flip::@1 tails: flip::@4 blocks: flip::@4 flip::@2 flip::@1 
Loop head: flip::@3 tails: flip::@3 blocks: flip::@3 
Loop head: prepare::@1 tails: prepare::@1 blocks: prepare::@1 

NATURAL LOOPS WITH DEPTH
Found 0 loops in scope []
Found 4 loops in scope [main]
  Loop head: main::@3 tails: main::@3 blocks: main::@3 
  Loop head: main::@4 tails: main::@4 blocks: main::@4 
  Loop head: main::@3 tails: main::@6 blocks: main::@6 main::@4 main::@3 
  Loop head: main::@3 tails: main::@11 blocks: main::@11 main::@10 main::@7 main::@6 main::@4 main::@3 
Found 1 loops in scope [prepare]
  Loop head: prepare::@1 tails: prepare::@1 blocks: prepare::@1 
Found 3 loops in scope [flip]
  Loop head: flip::@2 tails: flip::@2 blocks: flip::@2 
  Loop head: flip::@1 tails: flip::@4 blocks: flip::@4 flip::@2 flip::@1 
  Loop head: flip::@3 tails: flip::@3 blocks: flip::@3 
Found 2 loops in scope [plot]
  Loop head: plot::@2 tails: plot::@2 blocks: plot::@2 
  Loop head: plot::@1 tails: plot::@3 blocks: plot::@3 plot::@2 plot::@1 
Loop head: main::@3 tails: main::@3 blocks: main::@3  depth: 3
Loop head: main::@4 tails: main::@4 blocks: main::@4  depth: 3
Loop head: main::@3 tails: main::@6 blocks: main::@6 main::@4 main::@3  depth: 2
Loop head: main::@3 tails: main::@11 blocks: main::@11 main::@10 main::@7 main::@6 main::@4 main::@3  depth: 1
Loop head: plot::@2 tails: plot::@2 blocks: plot::@2  depth: 3
Loop head: plot::@1 tails: plot::@3 blocks: plot::@3 plot::@2 plot::@1  depth: 2
Loop head: flip::@2 tails: flip::@2 blocks: flip::@2  depth: 3
Loop head: flip::@1 tails: flip::@4 blocks: flip::@4 flip::@2 flip::@1  depth: 2
Loop head: flip::@3 tails: flip::@3 blocks: flip::@3  depth: 2
Loop head: prepare::@1 tails: prepare::@1 blocks: prepare::@1  depth: 1


VARIABLE REGISTER WEIGHTS
(byte*) RASTER
(byte*) SCREEN
(byte[256]) buffer1
(byte[256]) buffer2
(void()) flip()
(byte) flip::c
(byte) flip::c#1 1501.5
(byte) flip::c#2 500.5
(byte) flip::dstIdx
(byte) flip::dstIdx#1 701.0
(byte) flip::dstIdx#2 67.33333333333333
(byte) flip::dstIdx#3 1034.6666666666667
(byte) flip::dstIdx#5 202.0
(byte) flip::i
(byte) flip::i#1 151.5
(byte) flip::i#2 202.0
(byte) flip::r
(byte) flip::r#1 151.5
(byte) flip::r#4 25.25
(byte) flip::srcIdx
(byte) flip::srcIdx#1 300.42857142857144
(byte) flip::srcIdx#2 1552.0
(byte) flip::srcIdx#3 202.0
(void()) main()
(byte) main::c
(byte) main::c#1 151.5
(byte) main::c#4 67.33333333333333
(void()) plot()
(byte) plot::i
(byte) plot::i#1 350.5
(byte) plot::i#2 1552.0
(byte) plot::i#3 202.0
(byte*) plot::line
(byte*) plot::line#1 67.33333333333333
(byte*) plot::line#4 200.50000000000003
(byte) plot::x
(byte) plot::x#1 1501.5
(byte) plot::x#2 1001.0
(byte) plot::y
(byte) plot::y#1 151.5
(byte) plot::y#4 28.857142857142858
(void()) prepare()
(byte) prepare::i
(byte) prepare::i#1 16.5
(byte) prepare::i#2 22.0

Initial phi equivalence classes
[ main::c#4 main::c#1 ]
[ plot::line#4 plot::line#1 ]
[ plot::y#4 plot::y#1 ]
[ plot::i#2 plot::i#3 plot::i#1 ]
[ plot::x#2 plot::x#1 ]
[ flip::r#4 flip::r#1 ]
[ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ]
[ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ]
[ flip::c#2 flip::c#1 ]
[ flip::i#2 flip::i#1 ]
[ prepare::i#2 prepare::i#1 ]
Complete equivalence classes
[ main::c#4 main::c#1 ]
[ plot::line#4 plot::line#1 ]
[ plot::y#4 plot::y#1 ]
[ plot::i#2 plot::i#3 plot::i#1 ]
[ plot::x#2 plot::x#1 ]
[ flip::r#4 flip::r#1 ]
[ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ]
[ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ]
[ flip::c#2 flip::c#1 ]
[ flip::i#2 flip::i#1 ]
[ prepare::i#2 prepare::i#1 ]
Allocated zp ZP_BYTE:2 [ main::c#4 main::c#1 ]
Allocated zp ZP_WORD:3 [ plot::line#4 plot::line#1 ]
Allocated zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ]
Allocated zp ZP_BYTE:6 [ plot::i#2 plot::i#3 plot::i#1 ]
Allocated zp ZP_BYTE:7 [ plot::x#2 plot::x#1 ]
Allocated zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ]
Allocated zp ZP_BYTE:9 [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ]
Allocated zp ZP_BYTE:10 [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ]
Allocated zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ]
Allocated zp ZP_BYTE:12 [ flip::i#2 flip::i#1 ]
Allocated zp ZP_BYTE:13 [ prepare::i#2 prepare::i#1 ]

INITIAL ASM
//SEG0 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
//SEG1 Global Constants & labels
  .label RASTER = $d012
  .label SCREEN = $400
//SEG2 @begin
bbegin:
//SEG3 [1] phi from @begin to @4 [phi:@begin->@4]
b4_from_bbegin:
  jmp b4
//SEG4 @4
b4:
//SEG5 [2] call main param-assignment [ ] ( )
//SEG6 [4] phi from @4 to main [phi:@4->main]
main_from_b4:
  jsr main
//SEG7 [3] phi from @4 to @end [phi:@4->@end]
bend_from_b4:
  jmp bend
//SEG8 @end
bend:
//SEG9 main
main: {
    .label c = 2
  //SEG10 [5] call prepare param-assignment [ ] ( main:2 [ ] )
  //SEG11 [44] phi from main to prepare [phi:main->prepare]
  prepare_from_main:
    jsr prepare
  //SEG12 [6] phi from main main::@11 to main::@3 [phi:main/main::@11->main::@3]
  b3_from_main:
  b3_from_b11:
  //SEG13 [6] phi (byte) main::c#4 = (byte/signed byte/word/signed word/dword/signed dword) 25 [phi:main/main::@11->main::@3#0] -- vbuz1=vbuc1 
    lda #$19
    sta c
    jmp b3
  //SEG14 [6] phi from main::@3 to main::@3 [phi:main::@3->main::@3]
  b3_from_b3:
    jmp b3
  //SEG15 [6] phi from main::@6 to main::@3 [phi:main::@6->main::@3]
  b3_from_b6:
  //SEG16 [6] phi (byte) main::c#4 = (byte) main::c#1 [phi:main::@6->main::@3#0] -- register_copy 
    jmp b3
  //SEG17 main::@3
  b3:
  //SEG18 [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$fe
    bne b3_from_b3
    jmp b4
  //SEG19 main::@4
  b4:
  //SEG20 [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$ff
    bne b4
    jmp b6
  //SEG21 main::@6
  b6:
  //SEG22 [9] (byte) main::c#1 ← -- (byte) main::c#4 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuz1=_dec_vbuz1 
    dec c
  //SEG23 [10] if((byte) main::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@3 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuz1_neq_0_then_la1 
    lda c
    bne b3_from_b6
  //SEG24 [11] phi from main::@6 to main::@7 [phi:main::@6->main::@7]
  b7_from_b6:
    jmp b7
  //SEG25 main::@7
  b7:
  //SEG26 [12] call flip param-assignment [ ] ( main:2 [ ] )
  //SEG27 [28] phi from main::@7 to flip [phi:main::@7->flip]
  flip_from_b7:
    jsr flip
  //SEG28 [13] phi from main::@7 to main::@10 [phi:main::@7->main::@10]
  b10_from_b7:
    jmp b10
  //SEG29 main::@10
  b10:
  //SEG30 [14] call plot param-assignment [ ] ( main:2 [ ] )
  //SEG31 [17] phi from main::@10 to plot [phi:main::@10->plot]
  plot_from_b10:
    jsr plot
    jmp b11
  //SEG32 main::@11
  b11:
  //SEG33 [15] if(true) goto main::@3 [ ] ( main:2 [ ] ) -- true_then_la1 
    jmp b3_from_b11
    jmp breturn
  //SEG34 main::@return
  breturn:
  //SEG35 [16] return  [ ] ( main:2 [ ] )
    rts
}
//SEG36 plot
plot: {
    .label i = 6
    .label x = 7
    .label line = 3
    .label y = 5
  //SEG37 [18] phi from plot to plot::@1 [phi:plot->plot::@1]
  b1_from_plot:
  //SEG38 [18] phi (byte) plot::y#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:plot->plot::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta y
  //SEG39 [18] phi (byte*) plot::line#4 = (const byte*) SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 12 [phi:plot->plot::@1#1] -- pbuz1=pbuc1 
    lda #<SCREEN+5*$28+$c
    sta line
    lda #>SCREEN+5*$28+$c
    sta line+1
  //SEG40 [18] phi (byte) plot::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot->plot::@1#2] -- vbuz1=vbuc1 
    lda #0
    sta i
    jmp b1
  //SEG41 [18] phi from plot::@3 to plot::@1 [phi:plot::@3->plot::@1]
  b1_from_b3:
  //SEG42 [18] phi (byte) plot::y#4 = (byte) plot::y#1 [phi:plot::@3->plot::@1#0] -- register_copy 
  //SEG43 [18] phi (byte*) plot::line#4 = (byte*) plot::line#1 [phi:plot::@3->plot::@1#1] -- register_copy 
  //SEG44 [18] phi (byte) plot::i#3 = (byte) plot::i#1 [phi:plot::@3->plot::@1#2] -- register_copy 
    jmp b1
  //SEG45 plot::@1
  b1:
  //SEG46 [19] phi from plot::@1 to plot::@2 [phi:plot::@1->plot::@2]
  b2_from_b1:
  //SEG47 [19] phi (byte) plot::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot::@1->plot::@2#0] -- vbuz1=vbuc1 
    lda #0
    sta x
  //SEG48 [19] phi (byte) plot::i#2 = (byte) plot::i#3 [phi:plot::@1->plot::@2#1] -- register_copy 
    jmp b2
  //SEG49 [19] phi from plot::@2 to plot::@2 [phi:plot::@2->plot::@2]
  b2_from_b2:
  //SEG50 [19] phi (byte) plot::x#2 = (byte) plot::x#1 [phi:plot::@2->plot::@2#0] -- register_copy 
  //SEG51 [19] phi (byte) plot::i#2 = (byte) plot::i#1 [phi:plot::@2->plot::@2#1] -- register_copy 
    jmp b2
  //SEG52 plot::@2
  b2:
  //SEG53 [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ) -- pbuz1_derefidx_vbuz2=pbuc1_derefidx_vbuz3 
    ldy i
    lda buffer1,y
    ldy x
    sta (line),y
  //SEG54 [21] (byte) plot::i#1 ← ++ (byte) plot::i#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ) -- vbuz1=_inc_vbuz1 
    inc i
  //SEG55 [22] (byte) plot::x#1 ← ++ (byte) plot::x#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuz1=_inc_vbuz1 
    inc x
  //SEG56 [23] if((byte) plot::x#1<(byte/signed byte/word/signed word/dword/signed dword) 16) goto plot::@2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuz1_lt_vbuc1_then_la1 
    lda x
    cmp #$10
    bcc b2_from_b2
    jmp b3
  //SEG57 plot::@3
  b3:
  //SEG58 [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] ) -- pbuz1=pbuz1_plus_vbuc1 
    lda line
    clc
    adc #$28
    sta line
    bcc !+
    inc line+1
  !:
  //SEG59 [25] (byte) plot::y#1 ← -- (byte) plot::y#4 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1=_dec_vbuz1 
    dec y
  //SEG60 [26] if((byte) plot::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto plot::@1 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1_neq_0_then_la1 
    lda y
    bne b1_from_b3
    jmp breturn
  //SEG61 plot::@return
  breturn:
  //SEG62 [27] return  [ ] ( main:2::plot:14 [ ] )
    rts
}
//SEG63 flip
flip: {
    .label srcIdx = 9
    .label dstIdx = $a
    .label c = $b
    .label r = 8
    .label i = $c
  //SEG64 [29] phi from flip to flip::@1 [phi:flip->flip::@1]
  b1_from_flip:
  //SEG65 [29] phi (byte) flip::r#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip->flip::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta r
  //SEG66 [29] phi (byte) flip::dstIdx#5 = (byte/signed byte/word/signed word/dword/signed dword) 15 [phi:flip->flip::@1#1] -- vbuz1=vbuc1 
    lda #$f
    sta dstIdx
  //SEG67 [29] phi (byte) flip::srcIdx#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip->flip::@1#2] -- vbuz1=vbuc1 
    lda #0
    sta srcIdx
    jmp b1
  //SEG68 [29] phi from flip::@4 to flip::@1 [phi:flip::@4->flip::@1]
  b1_from_b4:
  //SEG69 [29] phi (byte) flip::r#4 = (byte) flip::r#1 [phi:flip::@4->flip::@1#0] -- register_copy 
  //SEG70 [29] phi (byte) flip::dstIdx#5 = (byte) flip::dstIdx#2 [phi:flip::@4->flip::@1#1] -- register_copy 
  //SEG71 [29] phi (byte) flip::srcIdx#3 = (byte) flip::srcIdx#1 [phi:flip::@4->flip::@1#2] -- register_copy 
    jmp b1
  //SEG72 flip::@1
  b1:
  //SEG73 [30] phi from flip::@1 to flip::@2 [phi:flip::@1->flip::@2]
  b2_from_b1:
  //SEG74 [30] phi (byte) flip::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip::@1->flip::@2#0] -- vbuz1=vbuc1 
    lda #$10
    sta c
  //SEG75 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#5 [phi:flip::@1->flip::@2#1] -- register_copy 
  //SEG76 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#3 [phi:flip::@1->flip::@2#2] -- register_copy 
    jmp b2
  //SEG77 [30] phi from flip::@2 to flip::@2 [phi:flip::@2->flip::@2]
  b2_from_b2:
  //SEG78 [30] phi (byte) flip::c#2 = (byte) flip::c#1 [phi:flip::@2->flip::@2#0] -- register_copy 
  //SEG79 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#1 [phi:flip::@2->flip::@2#1] -- register_copy 
  //SEG80 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#1 [phi:flip::@2->flip::@2#2] -- register_copy 
    jmp b2
  //SEG81 flip::@2
  b2:
  //SEG82 [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ) -- pbuc1_derefidx_vbuz1=pbuc2_derefidx_vbuz2 
    ldy srcIdx
    lda buffer1,y
    ldy dstIdx
    sta buffer2,y
  //SEG83 [32] (byte) flip::srcIdx#1 ← ++ (byte) flip::srcIdx#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ) -- vbuz1=_inc_vbuz1 
    inc srcIdx
  //SEG84 [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ) -- vbuz1=vbuz1_plus_vbuc1 
    lda #$10
    clc
    adc dstIdx
    sta dstIdx
  //SEG85 [34] (byte) flip::c#1 ← -- (byte) flip::c#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1=_dec_vbuz1 
    dec c
  //SEG86 [35] if((byte) flip::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1_neq_0_then_la1 
    lda c
    bne b2_from_b2
    jmp b4
  //SEG87 flip::@4
  b4:
  //SEG88 [36] (byte) flip::dstIdx#2 ← -- (byte) flip::dstIdx#1 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ) -- vbuz1=_dec_vbuz1 
    dec dstIdx
  //SEG89 [37] (byte) flip::r#1 ← -- (byte) flip::r#4 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1=_dec_vbuz1 
    dec r
  //SEG90 [38] if((byte) flip::r#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@1 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1_neq_0_then_la1 
    lda r
    bne b1_from_b4
  //SEG91 [39] phi from flip::@4 to flip::@3 [phi:flip::@4->flip::@3]
  b3_from_b4:
  //SEG92 [39] phi (byte) flip::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip::@4->flip::@3#0] -- vbuz1=vbuc1 
    lda #0
    sta i
    jmp b3
  //SEG93 [39] phi from flip::@3 to flip::@3 [phi:flip::@3->flip::@3]
  b3_from_b3:
  //SEG94 [39] phi (byte) flip::i#2 = (byte) flip::i#1 [phi:flip::@3->flip::@3#0] -- register_copy 
    jmp b3
  //SEG95 flip::@3
  b3:
  //SEG96 [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] ) -- pbuc1_derefidx_vbuz1=pbuc2_derefidx_vbuz1 
    ldy i
    lda buffer2,y
    sta buffer1,y
  //SEG97 [41] (byte) flip::i#1 ← ++ (byte) flip::i#2 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuz1=_inc_vbuz1 
    inc i
  //SEG98 [42] if((byte) flip::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@3 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuz1_neq_0_then_la1 
    lda i
    bne b3_from_b3
    jmp breturn
  //SEG99 flip::@return
  breturn:
  //SEG100 [43] return  [ ] ( main:2::flip:12 [ ] )
    rts
}
//SEG101 prepare
prepare: {
    .label i = $d
  //SEG102 [45] phi from prepare to prepare::@1 [phi:prepare->prepare::@1]
  b1_from_prepare:
  //SEG103 [45] phi (byte) prepare::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:prepare->prepare::@1#0] -- vbuz1=vbuc1 
    lda #0
    sta i
    jmp b1
  //SEG104 [45] phi from prepare::@1 to prepare::@1 [phi:prepare::@1->prepare::@1]
  b1_from_b1:
  //SEG105 [45] phi (byte) prepare::i#2 = (byte) prepare::i#1 [phi:prepare::@1->prepare::@1#0] -- register_copy 
    jmp b1
  //SEG106 prepare::@1
  b1:
  //SEG107 [46] *((const byte[256]) buffer1#0 + (byte) prepare::i#2) ← (byte) prepare::i#2 [ prepare::i#2 ] ( main:2::prepare:5 [ prepare::i#2 ] ) -- pbuc1_derefidx_vbuz1=vbuz1 
    ldy i
    tya
    sta buffer1,y
  //SEG108 [47] (byte) prepare::i#1 ← ++ (byte) prepare::i#2 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuz1=_inc_vbuz1 
    inc i
  //SEG109 [48] if((byte) prepare::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto prepare::@1 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuz1_neq_0_then_la1 
    lda i
    bne b1_from_b1
    jmp breturn
  //SEG110 prepare::@return
  breturn:
  //SEG111 [49] return  [ ] ( main:2::prepare:5 [ ] )
    rts
}
  buffer1: .fill $100, 0
  buffer2: .fill $100, 0

REGISTER UPLIFT POTENTIAL REGISTERS
Statement [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:2 [ main::c#4 main::c#1 ]
Statement [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] ) always clobbers reg byte a 
Statement [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:6 [ plot::i#2 plot::i#3 plot::i#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:7 [ plot::x#2 plot::x#1 ]
Statement [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] ) always clobbers reg byte a 
Statement [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:9 [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:10 [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ]
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ]
Statement [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ) always clobbers reg byte a 
Statement [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] ) always clobbers reg byte a 
Removing always clobbered register reg byte a as potential for zp ZP_BYTE:12 [ flip::i#2 flip::i#1 ]
Statement [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] ) always clobbers reg byte a 
Statement [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] ) always clobbers reg byte a 
Statement [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ) always clobbers reg byte a 
Statement [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] ) always clobbers reg byte a 
Statement [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ) always clobbers reg byte a 
Statement [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ) always clobbers reg byte a 
Statement [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] ) always clobbers reg byte a 
Potential registers zp ZP_BYTE:2 [ main::c#4 main::c#1 ] : zp ZP_BYTE:2 , reg byte x , reg byte y , 
Potential registers zp ZP_WORD:3 [ plot::line#4 plot::line#1 ] : zp ZP_WORD:3 , 
Potential registers zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ] : zp ZP_BYTE:5 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:6 [ plot::i#2 plot::i#3 plot::i#1 ] : zp ZP_BYTE:6 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:7 [ plot::x#2 plot::x#1 ] : zp ZP_BYTE:7 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ] : zp ZP_BYTE:8 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:9 [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ] : zp ZP_BYTE:9 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:10 [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ] : zp ZP_BYTE:10 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ] : zp ZP_BYTE:11 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:12 [ flip::i#2 flip::i#1 ] : zp ZP_BYTE:12 , reg byte x , reg byte y , 
Potential registers zp ZP_BYTE:13 [ prepare::i#2 prepare::i#1 ] : zp ZP_BYTE:13 , reg byte a , reg byte x , reg byte y , 

REGISTER UPLIFT SCOPES
Uplift Scope [flip] 2,054.43: zp ZP_BYTE:9 [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ] 2,005: zp ZP_BYTE:10 [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ] 2,002: zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ] 353.5: zp ZP_BYTE:12 [ flip::i#2 flip::i#1 ] 176.75: zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ] 
Uplift Scope [plot] 2,502.5: zp ZP_BYTE:7 [ plot::x#2 plot::x#1 ] 2,104.5: zp ZP_BYTE:6 [ plot::i#2 plot::i#3 plot::i#1 ] 267.83: zp ZP_WORD:3 [ plot::line#4 plot::line#1 ] 180.36: zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ] 
Uplift Scope [main] 218.83: zp ZP_BYTE:2 [ main::c#4 main::c#1 ] 
Uplift Scope [prepare] 38.5: zp ZP_BYTE:13 [ prepare::i#2 prepare::i#1 ] 
Uplift Scope [] 

Uplifting [flip] best 141722 combination reg byte y [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ] reg byte x [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ] zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ] reg byte x [ flip::i#2 flip::i#1 ] zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ] 
Uplifting [plot] best 123422 combination reg byte y [ plot::x#2 plot::x#1 ] reg byte x [ plot::i#2 plot::i#3 plot::i#1 ] zp ZP_WORD:3 [ plot::line#4 plot::line#1 ] zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ] 
Uplifting [main] best 120022 combination reg byte x [ main::c#4 main::c#1 ] 
Uplifting [prepare] best 119922 combination reg byte x [ prepare::i#2 prepare::i#1 ] 
Uplifting [] best 119922 combination 
Attempting to uplift remaining variables inzp ZP_BYTE:11 [ flip::c#2 flip::c#1 ]
Uplifting [flip] best 119922 combination zp ZP_BYTE:11 [ flip::c#2 flip::c#1 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:5 [ plot::y#4 plot::y#1 ]
Uplifting [plot] best 119922 combination zp ZP_BYTE:5 [ plot::y#4 plot::y#1 ] 
Attempting to uplift remaining variables inzp ZP_BYTE:8 [ flip::r#4 flip::r#1 ]
Uplifting [flip] best 119922 combination zp ZP_BYTE:8 [ flip::r#4 flip::r#1 ] 
Allocated (was zp ZP_WORD:3) zp ZP_WORD:2 [ plot::line#4 plot::line#1 ]
Allocated (was zp ZP_BYTE:5) zp ZP_BYTE:4 [ plot::y#4 plot::y#1 ]
Allocated (was zp ZP_BYTE:8) zp ZP_BYTE:5 [ flip::r#4 flip::r#1 ]
Allocated (was zp ZP_BYTE:11) zp ZP_BYTE:6 [ flip::c#2 flip::c#1 ]

ASSEMBLER BEFORE OPTIMIZATION
//SEG0 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
//SEG1 Global Constants & labels
  .label RASTER = $d012
  .label SCREEN = $400
//SEG2 @begin
bbegin:
//SEG3 [1] phi from @begin to @4 [phi:@begin->@4]
b4_from_bbegin:
  jmp b4
//SEG4 @4
b4:
//SEG5 [2] call main param-assignment [ ] ( )
//SEG6 [4] phi from @4 to main [phi:@4->main]
main_from_b4:
  jsr main
//SEG7 [3] phi from @4 to @end [phi:@4->@end]
bend_from_b4:
  jmp bend
//SEG8 @end
bend:
//SEG9 main
main: {
  //SEG10 [5] call prepare param-assignment [ ] ( main:2 [ ] )
  //SEG11 [44] phi from main to prepare [phi:main->prepare]
  prepare_from_main:
    jsr prepare
  //SEG12 [6] phi from main main::@11 to main::@3 [phi:main/main::@11->main::@3]
  b3_from_main:
  b3_from_b11:
  //SEG13 [6] phi (byte) main::c#4 = (byte/signed byte/word/signed word/dword/signed dword) 25 [phi:main/main::@11->main::@3#0] -- vbuxx=vbuc1 
    ldx #$19
    jmp b3
  //SEG14 [6] phi from main::@3 to main::@3 [phi:main::@3->main::@3]
  b3_from_b3:
    jmp b3
  //SEG15 [6] phi from main::@6 to main::@3 [phi:main::@6->main::@3]
  b3_from_b6:
  //SEG16 [6] phi (byte) main::c#4 = (byte) main::c#1 [phi:main::@6->main::@3#0] -- register_copy 
    jmp b3
  //SEG17 main::@3
  b3:
  //SEG18 [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$fe
    bne b3_from_b3
    jmp b4
  //SEG19 main::@4
  b4:
  //SEG20 [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$ff
    bne b4
    jmp b6
  //SEG21 main::@6
  b6:
  //SEG22 [9] (byte) main::c#1 ← -- (byte) main::c#4 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuxx=_dec_vbuxx 
    dex
  //SEG23 [10] if((byte) main::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@3 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3_from_b6
  //SEG24 [11] phi from main::@6 to main::@7 [phi:main::@6->main::@7]
  b7_from_b6:
    jmp b7
  //SEG25 main::@7
  b7:
  //SEG26 [12] call flip param-assignment [ ] ( main:2 [ ] )
  //SEG27 [28] phi from main::@7 to flip [phi:main::@7->flip]
  flip_from_b7:
    jsr flip
  //SEG28 [13] phi from main::@7 to main::@10 [phi:main::@7->main::@10]
  b10_from_b7:
    jmp b10
  //SEG29 main::@10
  b10:
  //SEG30 [14] call plot param-assignment [ ] ( main:2 [ ] )
  //SEG31 [17] phi from main::@10 to plot [phi:main::@10->plot]
  plot_from_b10:
    jsr plot
    jmp b11
  //SEG32 main::@11
  b11:
  //SEG33 [15] if(true) goto main::@3 [ ] ( main:2 [ ] ) -- true_then_la1 
    jmp b3_from_b11
    jmp breturn
  //SEG34 main::@return
  breturn:
  //SEG35 [16] return  [ ] ( main:2 [ ] )
    rts
}
//SEG36 plot
plot: {
    .label line = 2
    .label y = 4
  //SEG37 [18] phi from plot to plot::@1 [phi:plot->plot::@1]
  b1_from_plot:
  //SEG38 [18] phi (byte) plot::y#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:plot->plot::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta y
  //SEG39 [18] phi (byte*) plot::line#4 = (const byte*) SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 12 [phi:plot->plot::@1#1] -- pbuz1=pbuc1 
    lda #<SCREEN+5*$28+$c
    sta line
    lda #>SCREEN+5*$28+$c
    sta line+1
  //SEG40 [18] phi (byte) plot::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot->plot::@1#2] -- vbuxx=vbuc1 
    ldx #0
    jmp b1
  //SEG41 [18] phi from plot::@3 to plot::@1 [phi:plot::@3->plot::@1]
  b1_from_b3:
  //SEG42 [18] phi (byte) plot::y#4 = (byte) plot::y#1 [phi:plot::@3->plot::@1#0] -- register_copy 
  //SEG43 [18] phi (byte*) plot::line#4 = (byte*) plot::line#1 [phi:plot::@3->plot::@1#1] -- register_copy 
  //SEG44 [18] phi (byte) plot::i#3 = (byte) plot::i#1 [phi:plot::@3->plot::@1#2] -- register_copy 
    jmp b1
  //SEG45 plot::@1
  b1:
  //SEG46 [19] phi from plot::@1 to plot::@2 [phi:plot::@1->plot::@2]
  b2_from_b1:
  //SEG47 [19] phi (byte) plot::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot::@1->plot::@2#0] -- vbuyy=vbuc1 
    ldy #0
  //SEG48 [19] phi (byte) plot::i#2 = (byte) plot::i#3 [phi:plot::@1->plot::@2#1] -- register_copy 
    jmp b2
  //SEG49 [19] phi from plot::@2 to plot::@2 [phi:plot::@2->plot::@2]
  b2_from_b2:
  //SEG50 [19] phi (byte) plot::x#2 = (byte) plot::x#1 [phi:plot::@2->plot::@2#0] -- register_copy 
  //SEG51 [19] phi (byte) plot::i#2 = (byte) plot::i#1 [phi:plot::@2->plot::@2#1] -- register_copy 
    jmp b2
  //SEG52 plot::@2
  b2:
  //SEG53 [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ) -- pbuz1_derefidx_vbuyy=pbuc1_derefidx_vbuxx 
    lda buffer1,x
    sta (line),y
  //SEG54 [21] (byte) plot::i#1 ← ++ (byte) plot::i#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG55 [22] (byte) plot::x#1 ← ++ (byte) plot::x#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuyy=_inc_vbuyy 
    iny
  //SEG56 [23] if((byte) plot::x#1<(byte/signed byte/word/signed word/dword/signed dword) 16) goto plot::@2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuyy_lt_vbuc1_then_la1 
    cpy #$10
    bcc b2_from_b2
    jmp b3
  //SEG57 plot::@3
  b3:
  //SEG58 [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] ) -- pbuz1=pbuz1_plus_vbuc1 
    lda line
    clc
    adc #$28
    sta line
    bcc !+
    inc line+1
  !:
  //SEG59 [25] (byte) plot::y#1 ← -- (byte) plot::y#4 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1=_dec_vbuz1 
    dec y
  //SEG60 [26] if((byte) plot::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto plot::@1 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1_neq_0_then_la1 
    lda y
    bne b1_from_b3
    jmp breturn
  //SEG61 plot::@return
  breturn:
  //SEG62 [27] return  [ ] ( main:2::plot:14 [ ] )
    rts
}
//SEG63 flip
flip: {
    .label c = 6
    .label r = 5
  //SEG64 [29] phi from flip to flip::@1 [phi:flip->flip::@1]
  b1_from_flip:
  //SEG65 [29] phi (byte) flip::r#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip->flip::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta r
  //SEG66 [29] phi (byte) flip::dstIdx#5 = (byte/signed byte/word/signed word/dword/signed dword) 15 [phi:flip->flip::@1#1] -- vbuxx=vbuc1 
    ldx #$f
  //SEG67 [29] phi (byte) flip::srcIdx#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip->flip::@1#2] -- vbuyy=vbuc1 
    ldy #0
    jmp b1
  //SEG68 [29] phi from flip::@4 to flip::@1 [phi:flip::@4->flip::@1]
  b1_from_b4:
  //SEG69 [29] phi (byte) flip::r#4 = (byte) flip::r#1 [phi:flip::@4->flip::@1#0] -- register_copy 
  //SEG70 [29] phi (byte) flip::dstIdx#5 = (byte) flip::dstIdx#2 [phi:flip::@4->flip::@1#1] -- register_copy 
  //SEG71 [29] phi (byte) flip::srcIdx#3 = (byte) flip::srcIdx#1 [phi:flip::@4->flip::@1#2] -- register_copy 
    jmp b1
  //SEG72 flip::@1
  b1:
  //SEG73 [30] phi from flip::@1 to flip::@2 [phi:flip::@1->flip::@2]
  b2_from_b1:
  //SEG74 [30] phi (byte) flip::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip::@1->flip::@2#0] -- vbuz1=vbuc1 
    lda #$10
    sta c
  //SEG75 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#5 [phi:flip::@1->flip::@2#1] -- register_copy 
  //SEG76 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#3 [phi:flip::@1->flip::@2#2] -- register_copy 
    jmp b2
  //SEG77 [30] phi from flip::@2 to flip::@2 [phi:flip::@2->flip::@2]
  b2_from_b2:
  //SEG78 [30] phi (byte) flip::c#2 = (byte) flip::c#1 [phi:flip::@2->flip::@2#0] -- register_copy 
  //SEG79 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#1 [phi:flip::@2->flip::@2#1] -- register_copy 
  //SEG80 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#1 [phi:flip::@2->flip::@2#2] -- register_copy 
    jmp b2
  //SEG81 flip::@2
  b2:
  //SEG82 [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ) -- pbuc1_derefidx_vbuxx=pbuc2_derefidx_vbuyy 
    lda buffer1,y
    sta buffer2,x
  //SEG83 [32] (byte) flip::srcIdx#1 ← ++ (byte) flip::srcIdx#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ) -- vbuyy=_inc_vbuyy 
    iny
  //SEG84 [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ) -- vbuxx=vbuxx_plus_vbuc1 
    txa
    clc
    adc #$10
    tax
  //SEG85 [34] (byte) flip::c#1 ← -- (byte) flip::c#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1=_dec_vbuz1 
    dec c
  //SEG86 [35] if((byte) flip::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1_neq_0_then_la1 
    lda c
    bne b2_from_b2
    jmp b4
  //SEG87 flip::@4
  b4:
  //SEG88 [36] (byte) flip::dstIdx#2 ← -- (byte) flip::dstIdx#1 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ) -- vbuxx=_dec_vbuxx 
    dex
  //SEG89 [37] (byte) flip::r#1 ← -- (byte) flip::r#4 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1=_dec_vbuz1 
    dec r
  //SEG90 [38] if((byte) flip::r#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@1 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1_neq_0_then_la1 
    lda r
    bne b1_from_b4
  //SEG91 [39] phi from flip::@4 to flip::@3 [phi:flip::@4->flip::@3]
  b3_from_b4:
  //SEG92 [39] phi (byte) flip::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip::@4->flip::@3#0] -- vbuxx=vbuc1 
    ldx #0
    jmp b3
  //SEG93 [39] phi from flip::@3 to flip::@3 [phi:flip::@3->flip::@3]
  b3_from_b3:
  //SEG94 [39] phi (byte) flip::i#2 = (byte) flip::i#1 [phi:flip::@3->flip::@3#0] -- register_copy 
    jmp b3
  //SEG95 flip::@3
  b3:
  //SEG96 [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] ) -- pbuc1_derefidx_vbuxx=pbuc2_derefidx_vbuxx 
    lda buffer2,x
    sta buffer1,x
  //SEG97 [41] (byte) flip::i#1 ← ++ (byte) flip::i#2 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG98 [42] if((byte) flip::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@3 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3_from_b3
    jmp breturn
  //SEG99 flip::@return
  breturn:
  //SEG100 [43] return  [ ] ( main:2::flip:12 [ ] )
    rts
}
//SEG101 prepare
prepare: {
  //SEG102 [45] phi from prepare to prepare::@1 [phi:prepare->prepare::@1]
  b1_from_prepare:
  //SEG103 [45] phi (byte) prepare::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:prepare->prepare::@1#0] -- vbuxx=vbuc1 
    ldx #0
    jmp b1
  //SEG104 [45] phi from prepare::@1 to prepare::@1 [phi:prepare::@1->prepare::@1]
  b1_from_b1:
  //SEG105 [45] phi (byte) prepare::i#2 = (byte) prepare::i#1 [phi:prepare::@1->prepare::@1#0] -- register_copy 
    jmp b1
  //SEG106 prepare::@1
  b1:
  //SEG107 [46] *((const byte[256]) buffer1#0 + (byte) prepare::i#2) ← (byte) prepare::i#2 [ prepare::i#2 ] ( main:2::prepare:5 [ prepare::i#2 ] ) -- pbuc1_derefidx_vbuxx=vbuxx 
    txa
    sta buffer1,x
  //SEG108 [47] (byte) prepare::i#1 ← ++ (byte) prepare::i#2 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG109 [48] if((byte) prepare::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto prepare::@1 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b1_from_b1
    jmp breturn
  //SEG110 prepare::@return
  breturn:
  //SEG111 [49] return  [ ] ( main:2::prepare:5 [ ] )
    rts
}
  buffer1: .fill $100, 0
  buffer2: .fill $100, 0

ASSEMBLER OPTIMIZATIONS
Removing instruction jmp b4
Removing instruction jmp bend
Removing instruction jmp b3
Removing instruction jmp b4
Removing instruction jmp b6
Removing instruction jmp b7
Removing instruction jmp b10
Removing instruction jmp b11
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b3
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b4
Removing instruction jmp b3
Removing instruction jmp breturn
Removing instruction jmp b1
Removing instruction jmp breturn
Succesful ASM optimization Pass5NextJumpElimination
Replacing label b3_from_b6 with b3
Replacing label b2_from_b2 with b2
Replacing label b1_from_b3 with b1
Replacing label b2_from_b2 with b2
Replacing label b1_from_b4 with b1
Replacing label b3_from_b3 with b3
Replacing label b1_from_b1 with b1
Removing instruction bbegin:
Removing instruction b4_from_bbegin:
Removing instruction main_from_b4:
Removing instruction bend_from_b4:
Removing instruction b3_from_main:
Removing instruction b3_from_b6:
Removing instruction b7_from_b6:
Removing instruction flip_from_b7:
Removing instruction b10_from_b7:
Removing instruction plot_from_b10:
Removing instruction b1_from_b3:
Removing instruction b2_from_b1:
Removing instruction b2_from_b2:
Removing instruction b1_from_b4:
Removing instruction b2_from_b1:
Removing instruction b2_from_b2:
Removing instruction b3_from_b3:
Removing instruction b1_from_b1:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction b4:
Removing instruction bend:
Removing instruction prepare_from_main:
Removing instruction b6:
Removing instruction b7:
Removing instruction b10:
Removing instruction b11:
Removing instruction breturn:
Removing instruction b1_from_plot:
Removing instruction b3:
Removing instruction breturn:
Removing instruction b1_from_flip:
Removing instruction b4:
Removing instruction b3_from_b4:
Removing instruction breturn:
Removing instruction b1_from_prepare:
Removing instruction breturn:
Succesful ASM optimization Pass5UnusedLabelElimination
Skipping double jump to b3 in bne b3_from_b3
Succesful ASM optimization Pass5DoubleJumpElimination
Removing unreachable instruction rts
Succesful ASM optimization Pass5UnreachableCodeElimination
Relabelling long label b3_from_b11 to b1
Relabelling long label b3_from_b3 to b2
Succesful ASM optimization Pass5RelabelLongLabels
Removing instruction jmp b3
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b1
Removing instruction jmp b2
Removing instruction jmp b3
Removing instruction jmp b1
Succesful ASM optimization Pass5NextJumpElimination
Removing instruction b2:
Succesful ASM optimization Pass5RedundantLabelElimination
Removing instruction jmp b3
Succesful ASM optimization Pass5NextJumpElimination

FINAL SYMBOL TABLE
(label) @4
(label) @begin
(label) @end
(byte*) RASTER
(const byte*) RASTER#0 RASTER = ((byte*))(word/dword/signed dword) 53266
(byte*) SCREEN
(const byte*) SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
(byte[256]) buffer1
(const byte[256]) buffer1#0 buffer1 = { fill( 256, 0) }
(byte[256]) buffer2
(const byte[256]) buffer2#0 buffer2 = { fill( 256, 0) }
(void()) flip()
(label) flip::@1
(label) flip::@2
(label) flip::@3
(label) flip::@4
(label) flip::@return
(byte) flip::c
(byte) flip::c#1 c zp ZP_BYTE:6 1501.5
(byte) flip::c#2 c zp ZP_BYTE:6 500.5
(byte) flip::dstIdx
(byte) flip::dstIdx#1 reg byte x 701.0
(byte) flip::dstIdx#2 reg byte x 67.33333333333333
(byte) flip::dstIdx#3 reg byte x 1034.6666666666667
(byte) flip::dstIdx#5 reg byte x 202.0
(byte) flip::i
(byte) flip::i#1 reg byte x 151.5
(byte) flip::i#2 reg byte x 202.0
(byte) flip::r
(byte) flip::r#1 r zp ZP_BYTE:5 151.5
(byte) flip::r#4 r zp ZP_BYTE:5 25.25
(byte) flip::srcIdx
(byte) flip::srcIdx#1 reg byte y 300.42857142857144
(byte) flip::srcIdx#2 reg byte y 1552.0
(byte) flip::srcIdx#3 reg byte y 202.0
(void()) main()
(label) main::@10
(label) main::@11
(label) main::@3
(label) main::@4
(label) main::@6
(label) main::@7
(label) main::@return
(byte) main::c
(byte) main::c#1 reg byte x 151.5
(byte) main::c#4 reg byte x 67.33333333333333
(void()) plot()
(label) plot::@1
(label) plot::@2
(label) plot::@3
(label) plot::@return
(byte) plot::i
(byte) plot::i#1 reg byte x 350.5
(byte) plot::i#2 reg byte x 1552.0
(byte) plot::i#3 reg byte x 202.0
(byte*) plot::line
(byte*) plot::line#1 line zp ZP_WORD:2 67.33333333333333
(byte*) plot::line#4 line zp ZP_WORD:2 200.50000000000003
(byte) plot::x
(byte) plot::x#1 reg byte y 1501.5
(byte) plot::x#2 reg byte y 1001.0
(byte) plot::y
(byte) plot::y#1 y zp ZP_BYTE:4 151.5
(byte) plot::y#4 y zp ZP_BYTE:4 28.857142857142858
(void()) prepare()
(label) prepare::@1
(label) prepare::@return
(byte) prepare::i
(byte) prepare::i#1 reg byte x 16.5
(byte) prepare::i#2 reg byte x 22.0

reg byte x [ main::c#4 main::c#1 ]
zp ZP_WORD:2 [ plot::line#4 plot::line#1 ]
zp ZP_BYTE:4 [ plot::y#4 plot::y#1 ]
reg byte x [ plot::i#2 plot::i#3 plot::i#1 ]
reg byte y [ plot::x#2 plot::x#1 ]
zp ZP_BYTE:5 [ flip::r#4 flip::r#1 ]
reg byte y [ flip::srcIdx#2 flip::srcIdx#3 flip::srcIdx#1 ]
reg byte x [ flip::dstIdx#3 flip::dstIdx#5 flip::dstIdx#2 flip::dstIdx#1 ]
zp ZP_BYTE:6 [ flip::c#2 flip::c#1 ]
reg byte x [ flip::i#2 flip::i#1 ]
reg byte x [ prepare::i#2 prepare::i#1 ]


FINAL ASSEMBLER
Score: 84327

//SEG0 Basic Upstart
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
//SEG1 Global Constants & labels
  .label RASTER = $d012
  .label SCREEN = $400
//SEG2 @begin
//SEG3 [1] phi from @begin to @4 [phi:@begin->@4]
//SEG4 @4
//SEG5 [2] call main param-assignment [ ] ( )
//SEG6 [4] phi from @4 to main [phi:@4->main]
  jsr main
//SEG7 [3] phi from @4 to @end [phi:@4->@end]
//SEG8 @end
//SEG9 main
main: {
  //SEG10 [5] call prepare param-assignment [ ] ( main:2 [ ] )
  //SEG11 [44] phi from main to prepare [phi:main->prepare]
    jsr prepare
  //SEG12 [6] phi from main main::@11 to main::@3 [phi:main/main::@11->main::@3]
  b1:
  //SEG13 [6] phi (byte) main::c#4 = (byte/signed byte/word/signed word/dword/signed dword) 25 [phi:main/main::@11->main::@3#0] -- vbuxx=vbuc1 
    ldx #$19
  //SEG14 [6] phi from main::@3 to main::@3 [phi:main::@3->main::@3]
  //SEG15 [6] phi from main::@6 to main::@3 [phi:main::@6->main::@3]
  //SEG16 [6] phi (byte) main::c#4 = (byte) main::c#1 [phi:main::@6->main::@3#0] -- register_copy 
  //SEG17 main::@3
  b3:
  //SEG18 [7] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@3 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$fe
    bne b3
  //SEG19 main::@4
  b4:
  //SEG20 [8] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ main::c#4 ] ( main:2 [ main::c#4 ] ) -- _deref_pbuc1_neq_vbuc2_then_la1 
    lda RASTER
    cmp #$ff
    bne b4
  //SEG21 main::@6
  //SEG22 [9] (byte) main::c#1 ← -- (byte) main::c#4 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuxx=_dec_vbuxx 
    dex
  //SEG23 [10] if((byte) main::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@3 [ main::c#1 ] ( main:2 [ main::c#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3
  //SEG24 [11] phi from main::@6 to main::@7 [phi:main::@6->main::@7]
  //SEG25 main::@7
  //SEG26 [12] call flip param-assignment [ ] ( main:2 [ ] )
  //SEG27 [28] phi from main::@7 to flip [phi:main::@7->flip]
    jsr flip
  //SEG28 [13] phi from main::@7 to main::@10 [phi:main::@7->main::@10]
  //SEG29 main::@10
  //SEG30 [14] call plot param-assignment [ ] ( main:2 [ ] )
  //SEG31 [17] phi from main::@10 to plot [phi:main::@10->plot]
    jsr plot
  //SEG32 main::@11
  //SEG33 [15] if(true) goto main::@3 [ ] ( main:2 [ ] ) -- true_then_la1 
    jmp b1
  //SEG34 main::@return
  //SEG35 [16] return  [ ] ( main:2 [ ] )
}
//SEG36 plot
plot: {
    .label line = 2
    .label y = 4
  //SEG37 [18] phi from plot to plot::@1 [phi:plot->plot::@1]
  //SEG38 [18] phi (byte) plot::y#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:plot->plot::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta y
  //SEG39 [18] phi (byte*) plot::line#4 = (const byte*) SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 5*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 12 [phi:plot->plot::@1#1] -- pbuz1=pbuc1 
    lda #<SCREEN+5*$28+$c
    sta line
    lda #>SCREEN+5*$28+$c
    sta line+1
  //SEG40 [18] phi (byte) plot::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot->plot::@1#2] -- vbuxx=vbuc1 
    ldx #0
  //SEG41 [18] phi from plot::@3 to plot::@1 [phi:plot::@3->plot::@1]
  //SEG42 [18] phi (byte) plot::y#4 = (byte) plot::y#1 [phi:plot::@3->plot::@1#0] -- register_copy 
  //SEG43 [18] phi (byte*) plot::line#4 = (byte*) plot::line#1 [phi:plot::@3->plot::@1#1] -- register_copy 
  //SEG44 [18] phi (byte) plot::i#3 = (byte) plot::i#1 [phi:plot::@3->plot::@1#2] -- register_copy 
  //SEG45 plot::@1
  b1:
  //SEG46 [19] phi from plot::@1 to plot::@2 [phi:plot::@1->plot::@2]
  //SEG47 [19] phi (byte) plot::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:plot::@1->plot::@2#0] -- vbuyy=vbuc1 
    ldy #0
  //SEG48 [19] phi (byte) plot::i#2 = (byte) plot::i#3 [phi:plot::@1->plot::@2#1] -- register_copy 
  //SEG49 [19] phi from plot::@2 to plot::@2 [phi:plot::@2->plot::@2]
  //SEG50 [19] phi (byte) plot::x#2 = (byte) plot::x#1 [phi:plot::@2->plot::@2#0] -- register_copy 
  //SEG51 [19] phi (byte) plot::i#2 = (byte) plot::i#1 [phi:plot::@2->plot::@2#1] -- register_copy 
  //SEG52 plot::@2
  b2:
  //SEG53 [20] *((byte*) plot::line#4 + (byte) plot::x#2) ← *((const byte[256]) buffer1#0 + (byte) plot::i#2) [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#2 plot::x#2 ] ) -- pbuz1_derefidx_vbuyy=pbuc1_derefidx_vbuxx 
    lda buffer1,x
    sta (line),y
  //SEG54 [21] (byte) plot::i#1 ← ++ (byte) plot::i#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#2 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG55 [22] (byte) plot::x#1 ← ++ (byte) plot::x#2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuyy=_inc_vbuyy 
    iny
  //SEG56 [23] if((byte) plot::x#1<(byte/signed byte/word/signed word/dword/signed dword) 16) goto plot::@2 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ( main:2::plot:14 [ plot::line#4 plot::y#4 plot::i#1 plot::x#1 ] ) -- vbuyy_lt_vbuc1_then_la1 
    cpy #$10
    bcc b2
  //SEG57 plot::@3
  //SEG58 [24] (byte*) plot::line#1 ← (byte*) plot::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ plot::y#4 plot::i#1 plot::line#1 ] ( main:2::plot:14 [ plot::y#4 plot::i#1 plot::line#1 ] ) -- pbuz1=pbuz1_plus_vbuc1 
    lda line
    clc
    adc #$28
    sta line
    bcc !+
    inc line+1
  !:
  //SEG59 [25] (byte) plot::y#1 ← -- (byte) plot::y#4 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1=_dec_vbuz1 
    dec y
  //SEG60 [26] if((byte) plot::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto plot::@1 [ plot::i#1 plot::line#1 plot::y#1 ] ( main:2::plot:14 [ plot::i#1 plot::line#1 plot::y#1 ] ) -- vbuz1_neq_0_then_la1 
    lda y
    bne b1
  //SEG61 plot::@return
  //SEG62 [27] return  [ ] ( main:2::plot:14 [ ] )
    rts
}
//SEG63 flip
flip: {
    .label c = 6
    .label r = 5
  //SEG64 [29] phi from flip to flip::@1 [phi:flip->flip::@1]
  //SEG65 [29] phi (byte) flip::r#4 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip->flip::@1#0] -- vbuz1=vbuc1 
    lda #$10
    sta r
  //SEG66 [29] phi (byte) flip::dstIdx#5 = (byte/signed byte/word/signed word/dword/signed dword) 15 [phi:flip->flip::@1#1] -- vbuxx=vbuc1 
    ldx #$f
  //SEG67 [29] phi (byte) flip::srcIdx#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip->flip::@1#2] -- vbuyy=vbuc1 
    ldy #0
  //SEG68 [29] phi from flip::@4 to flip::@1 [phi:flip::@4->flip::@1]
  //SEG69 [29] phi (byte) flip::r#4 = (byte) flip::r#1 [phi:flip::@4->flip::@1#0] -- register_copy 
  //SEG70 [29] phi (byte) flip::dstIdx#5 = (byte) flip::dstIdx#2 [phi:flip::@4->flip::@1#1] -- register_copy 
  //SEG71 [29] phi (byte) flip::srcIdx#3 = (byte) flip::srcIdx#1 [phi:flip::@4->flip::@1#2] -- register_copy 
  //SEG72 flip::@1
  b1:
  //SEG73 [30] phi from flip::@1 to flip::@2 [phi:flip::@1->flip::@2]
  //SEG74 [30] phi (byte) flip::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 16 [phi:flip::@1->flip::@2#0] -- vbuz1=vbuc1 
    lda #$10
    sta c
  //SEG75 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#5 [phi:flip::@1->flip::@2#1] -- register_copy 
  //SEG76 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#3 [phi:flip::@1->flip::@2#2] -- register_copy 
  //SEG77 [30] phi from flip::@2 to flip::@2 [phi:flip::@2->flip::@2]
  //SEG78 [30] phi (byte) flip::c#2 = (byte) flip::c#1 [phi:flip::@2->flip::@2#0] -- register_copy 
  //SEG79 [30] phi (byte) flip::dstIdx#3 = (byte) flip::dstIdx#1 [phi:flip::@2->flip::@2#1] -- register_copy 
  //SEG80 [30] phi (byte) flip::srcIdx#2 = (byte) flip::srcIdx#1 [phi:flip::@2->flip::@2#2] -- register_copy 
  //SEG81 flip::@2
  b2:
  //SEG82 [31] *((const byte[256]) buffer2#0 + (byte) flip::dstIdx#3) ← *((const byte[256]) buffer1#0 + (byte) flip::srcIdx#2) [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#2 flip::dstIdx#3 flip::c#2 ] ) -- pbuc1_derefidx_vbuxx=pbuc2_derefidx_vbuyy 
    lda buffer1,y
    sta buffer2,x
  //SEG83 [32] (byte) flip::srcIdx#1 ← ++ (byte) flip::srcIdx#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#3 flip::c#2 ] ) -- vbuyy=_inc_vbuyy 
    iny
  //SEG84 [33] (byte) flip::dstIdx#1 ← (byte) flip::dstIdx#3 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::c#2 flip::dstIdx#1 ] ) -- vbuxx=vbuxx_plus_vbuc1 
    txa
    clc
    adc #$10
    tax
  //SEG85 [34] (byte) flip::c#1 ← -- (byte) flip::c#2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1=_dec_vbuz1 
    dec c
  //SEG86 [35] if((byte) flip::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@2 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#1 flip::c#1 ] ) -- vbuz1_neq_0_then_la1 
    lda c
    bne b2
  //SEG87 flip::@4
  //SEG88 [36] (byte) flip::dstIdx#2 ← -- (byte) flip::dstIdx#1 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ( main:2::flip:12 [ flip::r#4 flip::srcIdx#1 flip::dstIdx#2 ] ) -- vbuxx=_dec_vbuxx 
    dex
  //SEG89 [37] (byte) flip::r#1 ← -- (byte) flip::r#4 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1=_dec_vbuz1 
    dec r
  //SEG90 [38] if((byte) flip::r#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@1 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ( main:2::flip:12 [ flip::srcIdx#1 flip::dstIdx#2 flip::r#1 ] ) -- vbuz1_neq_0_then_la1 
    lda r
    bne b1
  //SEG91 [39] phi from flip::@4 to flip::@3 [phi:flip::@4->flip::@3]
  //SEG92 [39] phi (byte) flip::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:flip::@4->flip::@3#0] -- vbuxx=vbuc1 
    ldx #0
  //SEG93 [39] phi from flip::@3 to flip::@3 [phi:flip::@3->flip::@3]
  //SEG94 [39] phi (byte) flip::i#2 = (byte) flip::i#1 [phi:flip::@3->flip::@3#0] -- register_copy 
  //SEG95 flip::@3
  b3:
  //SEG96 [40] *((const byte[256]) buffer1#0 + (byte) flip::i#2) ← *((const byte[256]) buffer2#0 + (byte) flip::i#2) [ flip::i#2 ] ( main:2::flip:12 [ flip::i#2 ] ) -- pbuc1_derefidx_vbuxx=pbuc2_derefidx_vbuxx 
    lda buffer2,x
    sta buffer1,x
  //SEG97 [41] (byte) flip::i#1 ← ++ (byte) flip::i#2 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG98 [42] if((byte) flip::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto flip::@3 [ flip::i#1 ] ( main:2::flip:12 [ flip::i#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b3
  //SEG99 flip::@return
  //SEG100 [43] return  [ ] ( main:2::flip:12 [ ] )
    rts
}
//SEG101 prepare
prepare: {
  //SEG102 [45] phi from prepare to prepare::@1 [phi:prepare->prepare::@1]
  //SEG103 [45] phi (byte) prepare::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:prepare->prepare::@1#0] -- vbuxx=vbuc1 
    ldx #0
  //SEG104 [45] phi from prepare::@1 to prepare::@1 [phi:prepare::@1->prepare::@1]
  //SEG105 [45] phi (byte) prepare::i#2 = (byte) prepare::i#1 [phi:prepare::@1->prepare::@1#0] -- register_copy 
  //SEG106 prepare::@1
  b1:
  //SEG107 [46] *((const byte[256]) buffer1#0 + (byte) prepare::i#2) ← (byte) prepare::i#2 [ prepare::i#2 ] ( main:2::prepare:5 [ prepare::i#2 ] ) -- pbuc1_derefidx_vbuxx=vbuxx 
    txa
    sta buffer1,x
  //SEG108 [47] (byte) prepare::i#1 ← ++ (byte) prepare::i#2 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuxx=_inc_vbuxx 
    inx
  //SEG109 [48] if((byte) prepare::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto prepare::@1 [ prepare::i#1 ] ( main:2::prepare:5 [ prepare::i#1 ] ) -- vbuxx_neq_0_then_la1 
    cpx #0
    bne b1
  //SEG110 prepare::@return
  //SEG111 [49] return  [ ] ( main:2::prepare:5 [ ] )
    rts
}
  buffer1: .fill $100, 0
  buffer2: .fill $100, 0

