1 # find the maximum value
2 # in a nul-terminated array
5 # the output is stored in $a
7 data $arr = { b 10, b -60, b 10, b 100, b 200, b 0 }
13 %max =w phi @start -1, @new %byt, @old %max
14 %loc =l phi @start $arr, @new %loc1, @old %loc1
19 %cmp =w cslew %max, %byt
31 # extern void test(void);
33 # int main() { test(); return !(a == 200); }