1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| Read function definition:
define double @"binary:"(double %x, double %y) { entry: %x1 = alloca double, i64 0 store double %x, double* %x1 %y2 = alloca double, i64 0 store double %y, double* %y2 %y3 = load double, double* %y2 ret double %y3 } Read function definition:
define double @fibi(double %x) { entry: %x1 = alloca double, i64 0 store double %x, double* %x1 %a = alloca double, i64 0 store double 0.000000e+00, double* %a %b = alloca double, i64 0 store double 0.000000e+00, double* %b %c = alloca double, i64 0 store double 0.000000e+00, double* %c %i = alloca double, i64 0 store double 3.000000e+00, double* %i br label %loop
loop: %c2 = load double, double* %c store double %c2, double* %c %a3 = load double, double* %a store double %a3, double* %a %binaryOp = call double @"binary:"(double %c2, double %a3) %b4 = load double, double* %b store double %b4, double* %b %binaryOp5 = call double @"binary:"(double %binaryOp, double %b4) %i6 = load double, double* %i %x7 = load double, double* %x1 %boolCmp = fcmp olt double %i6, %x7 %loopCond = icmp ne i1 %boolCmp, false %0 = load double, double* %i %nextVal = fadd double %0, 1.000000e+00 store double %nextVal, double* %i br i1 %loopCond, label %loop, label %afterLoop
afterLoop: %b8 = load double, double* %b %binaryOp9 = call double @"binary:"(double 0.000000e+00, double %b8) ret double %binaryOp9 } Read top-level expression:
define double @__anon_expr() { entry: %call = call double @fibi(double 1.000000e+01) ret double %call } 0.0
|