> Any reason you don't make 'k' a function parameter? Yes, ISL'll generate the following code, if 'k' a function parameter:
for (int c1 = 0; c1 <= 24; c1 += 1) S_3(c1); However, we could use -fno-ipa-cp to get the ISL AST, which contains isl_ast_op_pdiv_r. What do you think about this? > Can you initialize res outside of the loop? Yes, I've implemented this in the improved version. -- Cheers, Roman Gareev.