
void main()
main: scope:[main]  from
  [0] phi()
  [1] call sin16s_gen
  to:main::@5
main::@5: scope:[main]  from main
  [2] phi()
  [3] call print_cls
  to:main::@1
main::@1: scope:[main]  from main::@5 main::@7
  [4] print_char_cursor#20 = phi( main::@5/print_screen#0, main::@7/print_char_cursor#1 )
  [4] main::st1#2 = phi( main::@5/main::sintab1, main::@7/main::st1#1 )
  [5] if(main::st1#2<main::sintab1+main::wavelength*SIZEOF_INT) goto main::@2
  to:main::@return
main::@return: scope:[main]  from main::@1
  [6] return 
  to:@return
main::@2: scope:[main]  from main::@1
  [7] main::sw#0 = *main::st1#2
  [8] if(main::sw#0<0) goto main::@3
  to:main::@4
main::@4: scope:[main]  from main::@2
  [9] phi()
  [10] call print_str
  to:main::@3
main::@3: scope:[main]  from main::@2 main::@4
  [11] print_char_cursor#54 = phi( main::@2/print_char_cursor#20, main::@4/print_char_cursor#1 )
  [12] print_sint::w#1 = main::sw#0
  [13] call print_sint
  to:main::@6
main::@6: scope:[main]  from main::@3
  [14] phi()
  [15] call print_str
  to:main::@7
main::@7: scope:[main]  from main::@6
  [16] main::st1#1 = main::st1#2 + SIZEOF_INT
  to:main::@1

void sin16s_gen(int *sintab , unsigned int wavelength)
sin16s_gen: scope:[sin16s_gen]  from main
  [17] phi()
  [18] call div32u16u
  [19] div32u16u::return#0 = div32u16u::return#1
  to:sin16s_gen::@3
sin16s_gen::@3: scope:[sin16s_gen]  from sin16s_gen
  [20] sin16s_gen::step#0 = div32u16u::return#0
  to:sin16s_gen::@1
sin16s_gen::@1: scope:[sin16s_gen]  from sin16s_gen::@3 sin16s_gen::@4
  [21] sin16s_gen::sintab#2 = phi( sin16s_gen::@3/main::sintab1, sin16s_gen::@4/sin16s_gen::sintab#0 )
  [21] sin16s_gen::x#2 = phi( sin16s_gen::@3/0, sin16s_gen::@4/sin16s_gen::x#1 )
  [21] sin16s_gen::i#2 = phi( sin16s_gen::@3/0, sin16s_gen::@4/sin16s_gen::i#1 )
  [22] if(sin16s_gen::i#2<main::wavelength) goto sin16s_gen::@2
  to:sin16s_gen::@return
sin16s_gen::@return: scope:[sin16s_gen]  from sin16s_gen::@1
  [23] return 
  to:@return
sin16s_gen::@2: scope:[sin16s_gen]  from sin16s_gen::@1
  [24] sin16s::x#0 = sin16s_gen::x#2
  [25] call sin16s
  [26] sin16s::return#0 = sin16s::return#1
  to:sin16s_gen::@4
sin16s_gen::@4: scope:[sin16s_gen]  from sin16s_gen::@2
  [27] sin16s_gen::$2 = sin16s::return#0
  [28] *sin16s_gen::sintab#2 = sin16s_gen::$2
  [29] sin16s_gen::sintab#0 = sin16s_gen::sintab#2 + SIZEOF_INT
  [30] sin16s_gen::x#1 = sin16s_gen::x#2 + sin16s_gen::step#0
  [31] sin16s_gen::i#1 = ++ sin16s_gen::i#2
  to:sin16s_gen::@1

void print_cls()
print_cls: scope:[print_cls]  from main::@5
  [32] phi()
  [33] call memset
  to:print_cls::@return
print_cls::@return: scope:[print_cls]  from print_cls
  [34] return 
  to:@return

void print_str(char *str)
print_str: scope:[print_str]  from main::@4 main::@6
  [35] print_char_cursor#58 = phi( main::@4/print_char_cursor#20, main::@6/print_char_cursor#12 )
  [35] print_str::str#6 = phi( main::@4/main::str1, main::@6/main::str )
  to:print_str::@1
print_str::@1: scope:[print_str]  from print_str print_str::@3
  [36] print_char_cursor#1 = phi( print_str/print_char_cursor#58, print_str::@3/print_char_cursor#12 )
  [36] print_str::str#3 = phi( print_str/print_str::str#6, print_str::@3/print_str::str#0 )
  [37] if(0!=*print_str::str#3) goto print_str::@2
  to:print_str::@return
print_str::@return: scope:[print_str]  from print_str::@1
  [38] return 
  to:@return
print_str::@2: scope:[print_str]  from print_str::@1
  [39] print_char::ch#0 = *print_str::str#3
  [40] call print_char
  to:print_str::@3
print_str::@3: scope:[print_str]  from print_str::@2
  [41] print_str::str#0 = ++ print_str::str#3
  to:print_str::@1

void print_sint(int w)
print_sint: scope:[print_sint]  from main::@3
  [42] if(print_sint::w#1<0) goto print_sint::@1
  to:print_sint::@3
print_sint::@3: scope:[print_sint]  from print_sint
  [43] phi()
  [44] call print_char
  to:print_sint::@2
print_sint::@2: scope:[print_sint]  from print_sint::@3 print_sint::@4
  [45] print_sint::w#4 = phi( print_sint::@4/print_sint::w#0, print_sint::@3/print_sint::w#1 )
  [46] print_uint::w#0 = (unsigned int)print_sint::w#4
  [47] call print_uint
  to:print_sint::@return
print_sint::@return: scope:[print_sint]  from print_sint::@2
  [48] return 
  to:@return
print_sint::@1: scope:[print_sint]  from print_sint
  [49] phi()
  [50] call print_char
  to:print_sint::@4
print_sint::@4: scope:[print_sint]  from print_sint::@1
  [51] print_sint::w#0 = - print_sint::w#1
  to:print_sint::@2

unsigned long div32u16u(unsigned long dividend , unsigned int divisor)
div32u16u: scope:[div32u16u]  from sin16s_gen
  [52] phi()
  [53] call divr16u
  [54] divr16u::return#2 = divr16u::return#0
  to:div32u16u::@1
div32u16u::@1: scope:[div32u16u]  from div32u16u
  [55] div32u16u::quotient_hi#0 = divr16u::return#2
  [56] divr16u::rem#4 = rem16u#14
  [57] call divr16u
  [58] divr16u::return#3 = divr16u::return#0
  to:div32u16u::@2
div32u16u::@2: scope:[div32u16u]  from div32u16u::@1
  [59] div32u16u::quotient_lo#0 = divr16u::return#3
  [60] div32u16u::return#1 = div32u16u::quotient_hi#0 dw= div32u16u::quotient_lo#0
  to:div32u16u::@return
div32u16u::@return: scope:[div32u16u]  from div32u16u::@2
  [61] return 
  to:@return

int sin16s(unsigned long x)
sin16s: scope:[sin16s]  from sin16s_gen::@2
  [62] if(sin16s::x#0<PI_u4f28) goto sin16s::@1
  to:sin16s::@4
sin16s::@4: scope:[sin16s]  from sin16s
  [63] sin16s::x#1 = sin16s::x#0 - PI_u4f28
  to:sin16s::@1
sin16s::@1: scope:[sin16s]  from sin16s sin16s::@4
  [64] sin16s::isUpper#2 = phi( sin16s/0, sin16s::@4/1 )
  [64] sin16s::x#4 = phi( sin16s/sin16s::x#0, sin16s::@4/sin16s::x#1 )
  [65] if(sin16s::x#4<PI_HALF_u4f28) goto sin16s::@2
  to:sin16s::@5
sin16s::@5: scope:[sin16s]  from sin16s::@1
  [66] sin16s::x#2 = PI_u4f28 - sin16s::x#4
  to:sin16s::@2
sin16s::@2: scope:[sin16s]  from sin16s::@1 sin16s::@5
  [67] sin16s::x#6 = phi( sin16s::@1/sin16s::x#4, sin16s::@5/sin16s::x#2 )
  [68] sin16s::$4 = sin16s::x#6 << 3
  [69] sin16s::x1#0 = word1  sin16s::$4
  [70] mulu16_sel::v1#0 = sin16s::x1#0
  [71] mulu16_sel::v2#0 = sin16s::x1#0
  [72] call mulu16_sel
  [73] mulu16_sel::return#0 = mulu16_sel::return#12
  to:sin16s::@7
sin16s::@7: scope:[sin16s]  from sin16s::@2
  [74] sin16s::x2#0 = mulu16_sel::return#0
  [75] mulu16_sel::v1#1 = sin16s::x2#0
  [76] mulu16_sel::v2#1 = sin16s::x1#0
  [77] call mulu16_sel
  [78] mulu16_sel::return#1 = mulu16_sel::return#12
  to:sin16s::@8
sin16s::@8: scope:[sin16s]  from sin16s::@7
  [79] sin16s::x3#0 = mulu16_sel::return#1
  [80] mulu16_sel::v1#2 = sin16s::x3#0
  [81] call mulu16_sel
  [82] mulu16_sel::return#2 = mulu16_sel::return#12
  to:sin16s::@9
sin16s::@9: scope:[sin16s]  from sin16s::@8
  [83] sin16s::x3_6#0 = mulu16_sel::return#2
  [84] sin16s::usinx#0 = sin16s::x1#0 - sin16s::x3_6#0
  [85] mulu16_sel::v1#3 = sin16s::x3#0
  [86] mulu16_sel::v2#3 = sin16s::x1#0
  [87] call mulu16_sel
  [88] mulu16_sel::return#10 = mulu16_sel::return#12
  to:sin16s::@10
sin16s::@10: scope:[sin16s]  from sin16s::@9
  [89] sin16s::x4#0 = mulu16_sel::return#10
  [90] mulu16_sel::v1#4 = sin16s::x4#0
  [91] mulu16_sel::v2#4 = sin16s::x1#0
  [92] call mulu16_sel
  [93] mulu16_sel::return#11 = mulu16_sel::return#12
  to:sin16s::@11
sin16s::@11: scope:[sin16s]  from sin16s::@10
  [94] sin16s::x5#0 = mulu16_sel::return#11
  [95] sin16s::x5_128#0 = sin16s::x5#0 >> 4
  [96] sin16s::usinx#1 = sin16s::usinx#0 + sin16s::x5_128#0
  [97] if(sin16s::isUpper#2==0) goto sin16s::@12
  to:sin16s::@6
sin16s::@6: scope:[sin16s]  from sin16s::@11
  [98] sin16s::sinx#1 = - (int)sin16s::usinx#1
  to:sin16s::@3
sin16s::@3: scope:[sin16s]  from sin16s::@12 sin16s::@6
  [99] sin16s::return#1 = phi( sin16s::@12/sin16s::return#5, sin16s::@6/sin16s::sinx#1 )
  to:sin16s::@return
sin16s::@return: scope:[sin16s]  from sin16s::@3
  [100] return 
  to:@return
sin16s::@12: scope:[sin16s]  from sin16s::@11
  [101] sin16s::return#5 = (int)sin16s::usinx#1
  to:sin16s::@3

void * memset(void *str , char c , unsigned int num)
memset: scope:[memset]  from print_cls
  [102] phi()
  to:memset::@1
memset::@1: scope:[memset]  from memset memset::@2
  [103] memset::dst#2 = phi( memset/(char *)memset::str#0, memset::@2/memset::dst#1 )
  [104] if(memset::dst#2!=memset::end#0) goto memset::@2
  to:memset::@return
memset::@return: scope:[memset]  from memset::@1
  [105] return 
  to:@return
memset::@2: scope:[memset]  from memset::@1
  [106] *memset::dst#2 = memset::c#0
  [107] memset::dst#1 = ++ memset::dst#2
  to:memset::@1

void print_char(char ch)
print_char: scope:[print_char]  from print_sint::@1 print_sint::@3 print_str::@2 print_uchar print_uchar::@1
  [108] print_char_cursor#36 = phi( print_sint::@1/print_char_cursor#54, print_sint::@3/print_char_cursor#54, print_str::@2/print_char_cursor#1, print_uchar/print_char_cursor#12, print_uchar::@1/print_char_cursor#12 )
  [108] print_char::ch#5 = phi( print_sint::@1/'-', print_sint::@3/' ', print_str::@2/print_char::ch#0, print_uchar/print_char::ch#3, print_uchar::@1/print_char::ch#4 )
  [109] *print_char_cursor#36 = print_char::ch#5
  [110] print_char_cursor#12 = ++ print_char_cursor#36
  to:print_char::@return
print_char::@return: scope:[print_char]  from print_char
  [111] return 
  to:@return

void print_uint(unsigned int w)
print_uint: scope:[print_uint]  from print_sint::@2
  [112] print_uchar::b#0 = byte1  print_uint::w#0
  [113] call print_uchar
  to:print_uint::@1
print_uint::@1: scope:[print_uint]  from print_uint
  [114] print_uchar::b#1 = byte0  print_uint::w#0
  [115] call print_uchar
  to:print_uint::@return
print_uint::@return: scope:[print_uint]  from print_uint::@1
  [116] return 
  to:@return

unsigned int divr16u(unsigned int dividend , unsigned int divisor , unsigned int rem)
divr16u: scope:[divr16u]  from div32u16u div32u16u::@1
  [117] divr16u::dividend#5 = phi( div32u16u/word1 PI2_u4f28, div32u16u::@1/word0 PI2_u4f28 )
  [117] divr16u::rem#10 = phi( div32u16u/0, div32u16u::@1/divr16u::rem#4 )
  to:divr16u::@1
divr16u::@1: scope:[divr16u]  from divr16u divr16u::@3
  [118] divr16u::i#2 = phi( divr16u/0, divr16u::@3/divr16u::i#1 )
  [118] divr16u::quotient#3 = phi( divr16u/0, divr16u::@3/divr16u::return#0 )
  [118] divr16u::dividend#3 = phi( divr16u/divr16u::dividend#5, divr16u::@3/divr16u::dividend#0 )
  [118] divr16u::rem#5 = phi( divr16u/divr16u::rem#10, divr16u::@3/divr16u::rem#11 )
  [119] divr16u::rem#0 = divr16u::rem#5 << 1
  [120] divr16u::$1 = byte1  divr16u::dividend#3
  [121] divr16u::$2 = divr16u::$1 & $80
  [122] if(divr16u::$2==0) goto divr16u::@2
  to:divr16u::@4
divr16u::@4: scope:[divr16u]  from divr16u::@1
  [123] divr16u::rem#1 = divr16u::rem#0 | 1
  to:divr16u::@2
divr16u::@2: scope:[divr16u]  from divr16u::@1 divr16u::@4
  [124] divr16u::rem#6 = phi( divr16u::@1/divr16u::rem#0, divr16u::@4/divr16u::rem#1 )
  [125] divr16u::dividend#0 = divr16u::dividend#3 << 1
  [126] divr16u::quotient#1 = divr16u::quotient#3 << 1
  [127] if(divr16u::rem#6<main::wavelength) goto divr16u::@3
  to:divr16u::@5
divr16u::@5: scope:[divr16u]  from divr16u::@2
  [128] divr16u::quotient#2 = ++ divr16u::quotient#1
  [129] divr16u::rem#2 = divr16u::rem#6 - main::wavelength
  to:divr16u::@3
divr16u::@3: scope:[divr16u]  from divr16u::@2 divr16u::@5
  [130] divr16u::return#0 = phi( divr16u::@2/divr16u::quotient#1, divr16u::@5/divr16u::quotient#2 )
  [130] divr16u::rem#11 = phi( divr16u::@2/divr16u::rem#6, divr16u::@5/divr16u::rem#2 )
  [131] divr16u::i#1 = ++ divr16u::i#2
  [132] if(divr16u::i#1!=$10) goto divr16u::@1
  to:divr16u::@6
divr16u::@6: scope:[divr16u]  from divr16u::@3
  [133] rem16u#14 = divr16u::rem#11
  to:divr16u::@return
divr16u::@return: scope:[divr16u]  from divr16u::@6
  [134] return 
  to:@return

unsigned int mulu16_sel(unsigned int v1 , unsigned int v2 , char select)
mulu16_sel: scope:[mulu16_sel]  from sin16s::@10 sin16s::@2 sin16s::@7 sin16s::@8 sin16s::@9
  [135] mulu16_sel::select#5 = phi( sin16s::@10/0, sin16s::@2/0, sin16s::@7/1, sin16s::@8/1, sin16s::@9/0 )
  [135] mulu16_sel::v2#5 = phi( sin16s::@10/mulu16_sel::v2#4, sin16s::@2/mulu16_sel::v2#0, sin16s::@7/mulu16_sel::v2#1, sin16s::@8/(unsigned int)$10000/6, sin16s::@9/mulu16_sel::v2#3 )
  [135] mulu16_sel::v1#5 = phi( sin16s::@10/mulu16_sel::v1#4, sin16s::@2/mulu16_sel::v1#0, sin16s::@7/mulu16_sel::v1#1, sin16s::@8/mulu16_sel::v1#2, sin16s::@9/mulu16_sel::v1#3 )
  [136] mul16u::a#0 = mulu16_sel::v1#5
  [137] mul16u::b#0 = mulu16_sel::v2#5
  [138] call mul16u
  [139] mul16u::return#0 = mul16u::res#2
  to:mulu16_sel::@1
mulu16_sel::@1: scope:[mulu16_sel]  from mulu16_sel
  [140] mulu16_sel::$0 = mul16u::return#0
  [141] mulu16_sel::$1 = mulu16_sel::$0 << mulu16_sel::select#5
  [142] mulu16_sel::return#12 = word1  mulu16_sel::$1
  to:mulu16_sel::@return
mulu16_sel::@return: scope:[mulu16_sel]  from mulu16_sel::@1
  [143] return 
  to:@return

void print_uchar(char b)
print_uchar: scope:[print_uchar]  from print_uint print_uint::@1
  [144] print_uchar::b#2 = phi( print_uint/print_uchar::b#0, print_uint::@1/print_uchar::b#1 )
  [145] print_uchar::$0 = print_uchar::b#2 >> 4
  [146] print_char::ch#3 = print_hextab[print_uchar::$0]
  [147] call print_char
  to:print_uchar::@1
print_uchar::@1: scope:[print_uchar]  from print_uchar
  [148] print_uchar::$2 = print_uchar::b#2 & $f
  [149] print_char::ch#4 = print_hextab[print_uchar::$2]
  [150] call print_char
  to:print_uchar::@return
print_uchar::@return: scope:[print_uchar]  from print_uchar::@1
  [151] return 
  to:@return

unsigned long mul16u(unsigned int a , unsigned int b)
mul16u: scope:[mul16u]  from mulu16_sel
  [152] mul16u::mb#0 = (unsigned long)mul16u::b#0
  to:mul16u::@1
mul16u::@1: scope:[mul16u]  from mul16u mul16u::@3
  [153] mul16u::mb#2 = phi( mul16u/mul16u::mb#0, mul16u::@3/mul16u::mb#1 )
  [153] mul16u::res#2 = phi( mul16u/0, mul16u::@3/mul16u::res#6 )
  [153] mul16u::a#2 = phi( mul16u/mul16u::a#0, mul16u::@3/mul16u::a#1 )
  [154] if(mul16u::a#2!=0) goto mul16u::@2
  to:mul16u::@return
mul16u::@return: scope:[mul16u]  from mul16u::@1
  [155] return 
  to:@return
mul16u::@2: scope:[mul16u]  from mul16u::@1
  [156] mul16u::$1 = mul16u::a#2 & 1
  [157] if(mul16u::$1==0) goto mul16u::@3
  to:mul16u::@4
mul16u::@4: scope:[mul16u]  from mul16u::@2
  [158] mul16u::res#1 = mul16u::res#2 + mul16u::mb#2
  to:mul16u::@3
mul16u::@3: scope:[mul16u]  from mul16u::@2 mul16u::@4
  [159] mul16u::res#6 = phi( mul16u::@2/mul16u::res#2, mul16u::@4/mul16u::res#1 )
  [160] mul16u::a#1 = mul16u::a#2 >> 1
  [161] mul16u::mb#1 = mul16u::mb#2 << 1
  to:mul16u::@1
