# Omega Calculator v1.2 (based on Omega Library 1.2, August, 2000): # T := {[i,j] -> [i+10j]}; # # I := {[0:9,0:9]}; # # # Version 1.0.0 incorrectly generates references to i and j # codegen T:I; for(t1 = 0; t1 <= 99; t1++) { s1(intDiv(t1+-10*j,1),intDiv(t1-i,10)); } # # # # Version 1.0.0 doesn't generate an assignment for t2 # codegen {[p,i,j] : 0 <= i,j <= 9 && p = i+10j}; for(t1 = 0; t1 <= 99; t1++) { for(t2 = intMod(t1,10); t2 <= 9; t2 += 10) { t3=intDiv((-t2+t1+9),10); s1(t2+10*t3,t2,t3); } } #