print array function is inefficient when applied on function that returns an array.
Consider println pss(3), where pss(3) :: Int -> Arr[62] Int
The code generated by Ziria is:
for (int print_cnt_96 = 0; print_cnt_96 < 62;
print_cnt_96++) {
calign complex16 print_val_97;
print array function is inefficient when applied on function that returns an array. Consider println pss(3), where pss(3) :: Int -> Arr[62] Int The code generated by Ziria is: for (int print_cnt_96 = 0; print_cnt_96 < 62; print_cnt_96++) { calign complex16 print_val_97;
So we actually call pss function 62 times in this case! (which is potentially also incorrect).