#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
double amortize(double amt, double rate, double inflation, int months,
                int selloff_month, double extra_payoff, int verbose,
                double *interest_pv, double *duration,
                double *monthly_payment) {
  double total_interest = 0;
  *interest_pv = 0;
  double mrate = rate / 1200;
  *monthly_payment = amt * mrate / (1 - pow(1 + mrate, -months)) + extra_payoff;
  if (verbose)
    printf("Your total monthly payment: %g\n\n", *monthly_payment);
  int end_month =
      (selloff_month && selloff_month < months) ? selloff_month : months;
  if (verbose)
    printf("yr/mon\t Princ.\t\tInt.\t|  PV Princ.\t PV Int.\t  Ratio\n");
  int m;
  for (m = 0; m < end_month && amt > 0; m++) {
    double interest_payment = amt * mrate;
    double principal_payment = *monthly_payment - interest_payment;
    if (amt <= 0)
      principal_payment = interest_payment = 0;
    amt -= principal_payment;
    double deflator = pow(1 + inflation / 100, -m / 12.);
    *interest_pv += interest_payment * deflator;
    total_interest += interest_payment;
    if (verbose)
      printf("%i/%i\t%7.2f\t\t%7.2f\t| %7.2f\t %7.2f\t%7.2f\n", m / 12,
             m - 12 * (m / 12) + 1, principal_payment, interest_payment,
             principal_payment * deflator, interest_payment * deflator,
             principal_payment / (principal_payment + interest_payment) * 100);
  }
  *duration = m / 12.;
  return total_interest;
}


x86 assembly (clang, -O0):
<amortize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %edx,-0x2c(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  0xe94(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe6c(%rip),%xmm0
addsd  -0x58(%rbp),%xmm0
cvttsd2si %xmm0,%edi
xor    %esi,%esi
sub    -0x1c(%rbp),%esi
call   1040 <pow@plt>
movsd  -0x80(%rbp),%xmm0
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
addsd  -0x28(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x0,-0x2c(%rbp)
je     11ea <amortize+0xca>
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xe3d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
je     120e <amortize+0xee>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    120e <amortize+0xee>
mov    -0x20(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1217 <amortize+0xf7>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x5c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1238 <amortize+0x118>
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%ecx
xor    %eax,%eax
cmp    -0x5c(%rbp),%ecx
mov    %al,-0x85(%rbp)
jge    1268 <amortize+0x148>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x85(%rbp)
mov    -0x85(%rbp),%al
test   $0x1,%al
jne    127b <amortize+0x15b>
jmp    13d9 <amortize+0x2b9>
movsd  -0x8(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     12ba <amortize+0x19a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xd3e(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xd1a(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
xor    %eax,%eax
sub    -0x60(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xd11(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13c6 <amortize+0x2a6>
mov    -0x60(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    -0x60(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x60(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
mov    -0x8c(%rbp),%edx
imul   $0xc,%eax,%eax
sub    %eax,%edx
add    $0x1,%edx
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
mulsd  -0x78(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
mulsd  -0x78(%rbp),%xmm3
movsd  -0x70(%rbp),%xmm4
movsd  -0x70(%rbp),%xmm5
addsd  -0x68(%rbp),%xmm5
divsd  %xmm5,%xmm4
movsd  0xc64(%rip),%xmm5
mulsd  %xmm5,%xmm4
lea    0xcb6(%rip),%rdi
mov    $0x5,%al
call   1030 <printf@plt>
jmp    13cb <amortize+0x2ab>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    123f <amortize+0x11f>
cvtsi2sdl -0x60(%rbp),%xmm0
movsd  0xc2a(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<amortize>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%rbp
mov    %r8,0x30(%rsp)
mov    %rcx,%rbx
mov    %edx,%r12d
movsd  %xmm3,0x8(%rsp)
mov    %esi,%r13d
mov    %edi,%r14d
movsd  %xmm2,0x20(%rsp)
movq   $0x0,(%rcx)
divsd  0xe93(%rip),%xmm1
movapd %xmm1,%xmm2
movsd  %xmm0,0x10(%rsp)
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  0xe7f(%rip),%xmm0
movsd  %xmm1,0x40(%rsp)
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
mov    %r14d,%esi
neg    %esi
call   1050 <pow@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
addsd  0x8(%rsp),%xmm0
mov    %rbp,0x38(%rsp)
movsd  %xmm0,0x0(%rbp)
test   %r12d,%r12d
je     11ff <amortize+0xcf>
lea    0xe4f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmp    %r14d,%r13d
mov    %r14d,%ebp
cmovl  %r13d,%ebp
test   %r13d,%r13d
cmove  %r14d,%ebp
lea    0xe7a(%rip),%rdi
call   1030 <puts@plt>
jmp    1210 <amortize+0xe0>
cmp    %r14d,%r13d
mov    %r14d,%ebp
cmovl  %r13d,%ebp
test   %r13d,%r13d
cmove  %r14d,%ebp
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
test   %ebp,%ebp
movsd  0x10(%rsp),%xmm4
jle    13a7 <amortize+0x277>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm4
jbe    13a7 <amortize+0x277>
movsd  0x20(%rsp),%xmm0
divsd  0xdcf(%rip),%xmm0
addsd  0xdbf(%rip),%xmm0
cvttsd2si %xmm0,%r14d
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm4,0x10(%rsp)
movsd  0x40(%rsp),%xmm1
mulsd  %xmm4,%xmm1
xorpd  %xmm2,%xmm2
ucomisd %xmm4,%xmm2
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,0x20(%rsp)
jb     1290 <amortize+0x160>
xorpd  %xmm0,%xmm0
jmp    129d <amortize+0x16d>
nopl   0x0(%rax)
mov    0x38(%rsp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r13d,%eax
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xd61(%rip),%xmm0
cvttsd2si %xmm0,%esi
mov    %r14d,%edi
call   1050 <pow@plt>
movsd  0x10(%rsp),%xmm4
movapd %xmm4,%xmm1
cmpnlesd 0xd4a(%rip),%xmm1
andpd  0x20(%rsp),%xmm1
xorps  %xmm3,%xmm3
cvtsi2sd %eax,%xmm3
movapd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
addsd  (%rbx),%xmm0
movsd  %xmm0,(%rbx)
test   %r12d,%r12d
je     1380 <amortize+0x250>
mov    %r13d,%esi
mov    $0xaaaaaaab,%eax
imul   %rax,%rsi
shr    $0x23,%rsi
lea    0x0(,%rsi,4),%eax
lea    (%rax,%rax,2),%eax
mov    %r13d,%r15d
add    $0x1,%r15d
neg    %eax
lea    (%rax,%r13,1),%edx
add    $0x1,%edx
movsd  0x8(%rsp),%xmm0
movapd %xmm0,%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm3
movapd %xmm1,%xmm5
addsd  %xmm0,%xmm5
movapd %xmm0,%xmm4
divsd  %xmm5,%xmm4
mulsd  0xcc0(%rip),%xmm4
lea    0xcf2(%rip),%rdi
mov    $0x5,%al
movapd %xmm1,0x20(%rsp)
call   1040 <printf@plt>
movapd 0x20(%rsp),%xmm1
movsd  0x10(%rsp),%xmm4
mov    %r15d,%r13d
jmp    1384 <amortize+0x254>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13d
movsd  0x18(%rsp),%xmm0
addsd  %xmm1,%xmm0
cmp    %ebp,%r13d
jge    13a7 <amortize+0x277>
subsd  0x8(%rsp),%xmm4
ucomisd 0xc7f(%rip),%xmm4
ja     1260 <amortize+0x130>
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
divsd  0xc61(%rip),%xmm1
mov    0x30(%rsp),%rax
movsd  %xmm1,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Your total monthly payment: %g\0A\0A\00"
@.str.1 = [52 x i8] c"yr/mon\09 Princ.\09\09Int.\09| PV Princ.\09 PV Int.\09 Ratio\0A\00"
@.str.2 = [41 x i8] c"%i/%i\09%7.2f\09\09%7.2f\09| %7.2f\09 %7.2f\09%7.2f\0A\00"
define double @amortize(double %0, double %1, double %2, i32 %3, i32 %4, double %5, i32 %6, double* %7, double* %8, double* %9) {
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca i32
%15 = alloca i32
%16 = alloca double
%17 = alloca i32
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double
%22 = alloca double
%23 = alloca i32
%24 = alloca i32
%25 = alloca double
%26 = alloca double
%27 = alloca double
store double %0, double* %11
store double %1, double* %12
store double %2, double* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store double %5, double* %16
store i32 %6, i32* %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
store double 0.000000e+00, double* %21
%28 = load double*, double** %18
store double 0.000000e+00, double* %28
%29 = load double, double* %12
%30 = fdiv double %29, 1.200000e+03
store double %30, double* %22
%31 = load double, double* %11
%32 = load double, double* %22
%33 = fmul double %31, %32
%34 = load double, double* %22
%35 = fadd double 1.000000e+00, %34
%36 = fptosi double %35 to i32
%37 = load i32, i32* %14
%38 = sub nsw i32 0, %37
%39 = call i32 @pow(i32 %36, i32 %38)
%40 = sub nsw i32 1, %39
%41 = sitofp i32 %40 to double
%42 = fdiv double %33, %41
%43 = load double, double* %16
%44 = fadd double %42, %43
%45 = load double*, double** %20
store double %44, double* %45
%46 = load i32, i32* %17
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %10
%49 = load double*, double** %20
%50 = load double, double* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double %50)
br label %52
52: ; preds = %48, %10
%53 = load i32, i32* %15
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %52
%56 = load i32, i32* %15
%57 = load i32, i32* %14
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load i32, i32* %15
br label %63
61: ; preds = %55, %52
%62 = load i32, i32* %14
br label %63
63: ; preds = %61, %59
%64 = phi i32 [ %60, %59 ], [ %62, %61 ]
store i32 %64, i32* %23
%65 = load i32, i32* %17
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
br label %69
69: ; preds = %67, %63
store i32 0, i32* %24
br label %70
70: ; preds = %140, %69
%71 = load i32, i32* %24
%72 = load i32, i32* %23
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = load double, double* %11
%76 = fcmp ogt double %75, 0.000000e+00
br label %77
77: ; preds = %74, %70
%78 = phi i1 [ false, %70 ], [ %76, %74 ]
br i1 %78, label %79, label %143
79: ; preds = %77
%80 = load double, double* %11
%81 = load double, double* %22
%82 = fmul double %80, %81
store double %82, double* %25
%83 = load double*, double** %20
%84 = load double, double* %83
%85 = load double, double* %25
%86 = fsub double %84, %85
store double %86, double* %26
%87 = load double, double* %11
%88 = fcmp ole double %87, 0.000000e+00
br i1 %88, label %89, label %90
89: ; preds = %79
store double 0.000000e+00, double* %25
store double 0.000000e+00, double* %26
br label %90
90: ; preds = %89, %79
%91 = load double, double* %26
%92 = load double, double* %11
%93 = fsub double %92, %91
store double %93, double* %11
%94 = load double, double* %13
%95 = fdiv double %94, 1.000000e+02
%96 = fadd double 1.000000e+00, %95
%97 = fptosi double %96 to i32
%98 = load i32, i32* %24
%99 = sub nsw i32 0, %98
%100 = sitofp i32 %99 to double
%101 = fdiv double %100, 1.200000e+01
%102 = fptosi double %101 to i32
%103 = call i32 @pow(i32 %97, i32 %102)
%104 = sitofp i32 %103 to double
store double %104, double* %27
%105 = load double, double* %25
%106 = load double, double* %27
%107 = load double*, double** %18
%108 = load double, double* %107
%109 = call double @llvm.fmuladd.f64(double %105, double %106, double %108)
store double %109, double* %107
%110 = load double, double* %25
%111 = load double, double* %21
%112 = fadd double %111, %110
store double %112, double* %21
%113 = load i32, i32* %17
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %139
115: ; preds = %90
%116 = load i32, i32* %24
%117 = sdiv i32 %116, 12
%118 = load i32, i32* %24
%119 = load i32, i32* %24
%120 = sdiv i32 %119, 12
%121 = mul nsw i32 12, %120
%122 = sub nsw i32 %118, %121
%123 = add nsw i32 %122, 1
%124 = load double, double* %26
%125 = load double, double* %25
%126 = load double, double* %26
%127 = load double, double* %27
%128 = fmul double %126, %127
%129 = load double, double* %25
%130 = load double, double* %27
%131 = fmul double %129, %130
%132 = load double, double* %26
%133 = load double, double* %26
%134 = load double, double* %25
%135 = fadd double %133, %134
%136 = fdiv double %132, %135
%137 = fmul double %136, 1.000000e+02
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %117, i32 %123, double %124, double %125, double %128, double %131, double %137)
br label %139
139: ; preds = %115, %90
br label %140
140: ; preds = %139
%141 = load i32, i32* %24
%142 = add nsw i32 %141, 1
store i32 %142, i32* %24
br label %70
143: ; preds = %77
%144 = load i32, i32* %24
%145 = sitofp i32 %144 to double
%146 = fdiv double %145, 1.200000e+01
%147 = load double*, double** %19
store double %146, double* %147
%148 = load double, double* %21
ret double %148
}

LLVM IR (-O2):
@.str = [33 x i8] c"Your total monthly payment: %g\0A\0A\00"
@.str.2 = [41 x i8] c"%i/%i\09%7.2f\09\09%7.2f\09| %7.2f\09 %7.2f\09%7.2f\0A\00"
@str = [51 x i8] c"yr/mon\09 Princ.\09\09Int.\09| PV Princ.\09 PV Int.\09 Ratio\00"
define double @amortize(double %0, double %1, double %2, i32 %3, i32 %4, double %5, i32 %6, double* nocapture %7, double* nocapture writeonly %8, double* nocapture %9) {
store double 0.000000e+00, double* %7
%11 = fdiv double %1, 1.200000e+03
%12 = fmul double %11, %0
%13 = fadd double %11, 1.000000e+00
%14 = fptosi double %13 to i32
%15 = sub nsw i32 0, %3
%16 = tail call i32 @pow(i32 %14, i32 %15)
%17 = sub nsw i32 1, %16
%18 = sitofp i32 %17 to double
%19 = fdiv double %12, %18
%20 = fadd double %19, %5
store double %20, double* %9
%21 = icmp eq i32 %6, 0
br i1 %21, label %22, label %27
22: ; preds = %10
%23 = icmp ne i32 %4, 0
%24 = icmp slt i32 %4, %3
%25 = and i1 %23, %24
%26 = select i1 %25, i32 %4, i32 %3
br label %34
27: ; preds = %10
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double %20)
%29 = icmp ne i32 %4, 0
%30 = icmp slt i32 %4, %3
%31 = and i1 %29, %30
%32 = select i1 %31, i32 %4, i32 %3
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
br label %34
34: ; preds = %22, %27
%35 = phi i32 [ %26, %22 ], [ %32, %27 ]
%36 = icmp sgt i32 %35, 0
%37 = fcmp ogt double %0, 0.000000e+00
%38 = and i1 %36, %37
br i1 %38, label %39, label %81
39: ; preds = %34
%40 = fdiv double %2, 1.000000e+02
%41 = fadd double %40, 1.000000e+00
%42 = fptosi double %41 to i32
br label %43
43: ; preds = %39, %76
%44 = phi double [ %0, %39 ], [ %53, %76 ]
%45 = phi i32 [ 0, %39 ], [ %77, %76 ]
%46 = phi double [ 0.000000e+00, %39 ], [ %62, %76 ]
%47 = fmul double %11, %44
%48 = load double, double* %9
%49 = fsub double %48, %47
%50 = fcmp ugt double %44, 0.000000e+00
%51 = select i1 %50, double %47, double 0.000000e+00
%52 = select i1 %50, double %49, double 0.000000e+00
%53 = fsub double %44, %52
%54 = sub nsw i32 0, %45
%55 = sitofp i32 %54 to double
%56 = fdiv double %55, 1.200000e+01
%57 = fptosi double %56 to i32
%58 = tail call i32 @pow(i32 %42, i32 %57)
%59 = sitofp i32 %58 to double
%60 = load double, double* %7
%61 = tail call double @llvm.fmuladd.f64(double %51, double %59, double %60)
store double %61, double* %7
%62 = fadd double %46, %51
br i1 %21, label %63, label %65
63: ; preds = %43
%64 = add nuw nsw i32 %45, 1
br label %76
65: ; preds = %43
%66 = udiv i32 %45, 12
%67 = mul i32 %66, -12
%68 = add nuw nsw i32 %45, 1
%69 = add i32 %68, %67
%70 = fmul double %52, %59
%71 = fmul double %51, %59
%72 = fadd double %51, %52
%73 = fdiv double %52, %72
%74 = fmul double %73, 1.000000e+02
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %66, i32 %69, double %52, double %51, double %70, double %71, double %74)
br label %76
76: ; preds = %63, %65
%77 = phi i32 [ %64, %63 ], [ %68, %65 ]
%78 = icmp slt i32 %77, %35
%79 = fcmp ogt double %53, 0.000000e+00
%80 = select i1 %78, i1 %79, i1 false
br i1 %80, label %43, label %81
81: ; preds = %76, %34
%82 = phi double [ 0.000000e+00, %34 ], [ %62, %76 ]
%83 = phi i32 [ 0, %34 ], [ %77, %76 ]
%84 = sitofp i32 %83 to double
%85 = fdiv double %84, 1.200000e+01
store double %85, double* %8
ret double %82
}