#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 */
double atof(char *);
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ helptext(char *);
int pow(int, double);
int /*<<< orphan*/ printf(char *, double, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  int amount = 0;
  int duration = 0;
  double interest_rate = 0, rm, dm;
  double top_line, bottom_line, mp, ap;
  if (argc < 6) {
    helptext(argv[0]);
    exit(-1);
  }
  int i = 1;
  while (i < argc) {
    if (strcmp(argv[i], "-a") == 0) {
      i++;
      amount = atoi(argv[i]);
    }
    if (strcmp(argv[i], "-i") == 0) {
      i++;
      interest_rate = atof(argv[i]);
    }
    if (strcmp(argv[i], "-d") == 0) {
      i++;
      duration = atoi(argv[i]);
    }
    i++;
  }
  if (amount == 0 || interest_rate == 0 || duration == 0) {
    helptext(argv[0]);
    exit(-1);
  }
  printf("Amount=£%d\nInterest=%5.2f%%\nDuration=%d years\n", amount,
         interest_rate, duration);
  rm = interest_rate / 12;
  dm = duration * 12;
  top_line = (amount * rm * pow((1 + (rm / 100)), dm));
  bottom_line = 100 * (pow((1 + (rm / 100)), dm) - 1);
  mp = top_line / bottom_line;
  ap = mp * 12;
  printf("Annual replayments will be £%8.2f\n", ap);
  printf("Monthly replayments will be £%7.2f\n", mp);
  printf("Total cost of loan is £%8.2f\n", (ap * duration));
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    11bc <main+0x4c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <helptext@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    129c <main+0x12c>
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe36(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    120e <main+0x9e>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdfa(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    124f <main+0xdf>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdbc(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    128e <main+0x11e>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11c3 <main+0x53>
cmpl   $0x0,-0x14(%rbp)
je     12cd <main+0x15d>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12c3 <main+0x153>
jp     12c3 <main+0x153>
jmp    12cd <main+0x15d>
cmpl   $0x0,-0x18(%rbp)
jne    12e3 <main+0x173>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <helptext@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mov    -0x18(%rbp),%esi
lea    0xd2a(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  0xcf5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
imul   $0xc,-0x18(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  0xcd3(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xcbf(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x30(%rbp),%xmm0
call   1070 <pow@plt>
movsd  -0x60(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  0xc96(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xc82(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x30(%rbp),%xmm0
call   1070 <pow@plt>
sub    $0x1,%eax
imul   $0x64,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xc42(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xc7d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xc8e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
lea    0xc97(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
cmp    $0x6,%edi
jl     13af <main+0x23f>
mov    %edi,%r12d
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x1,%r13d
lea    0xe72(%rip),%r14
xor    %eax,%eax
mov    %rax,0x18(%rsp)
jmp    11cd <main+0x5d>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13d
cmp    %r12d,%r13d
jge    1279 <main+0x109>
movslq %r13d,%rbp
mov    (%rbx,%rbp,8),%rdi
lea    0xe3d(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11f0 <main+0x80>
mov    (%rbx,%rbp,8),%r15
jmp    120c <main+0x9c>
nopl   0x0(%rax,%rax,1)
movslq %r13d,%rbp
add    $0x1,%r13d
mov    0x8(%rbx,%rbp,8),%r15
add    $0x1,%rbp
mov    %r15,%rdi
call   1080 <atoi@plt>
mov    %eax,0x8(%rsp)
mov    %r15,%rdi
lea    0xe05(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1230 <main+0xc0>
mov    (%rbx,%rbp,8),%rbp
jmp    124a <main+0xda>
cs nopw 0x0(%rax,%rax,1)
movslq %r13d,%rax
add    $0x1,%r13d
mov    0x8(%rbx,%rax,8),%rbp
mov    %rbp,%rdi
call   1030 <atof@plt>
movsd  %xmm0,0x10(%rsp)
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11c0 <main+0x50>
movslq %r13d,%rax
add    $0x1,%r13d
mov    0x8(%rbx,%rax,8),%rdi
call   1080 <atoi@plt>
mov    %rax,0x18(%rsp)
jmp    11c0 <main+0x50>
mov    0x8(%rsp),%eax
test   %eax,%eax
mov    0x18(%rsp),%rbp
je     13af <main+0x23f>
xorpd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jne    12a0 <main+0x130>
jnp    13af <main+0x23f>
test   %ebp,%ebp
je     13af <main+0x23f>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd65(%rip),%rdi
movsd  0x10(%rsp),%xmm1
mov    %ebp,%esi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0x0(,%rbp,4),%eax
lea    (%rax,%rax,2),%eax
cvtsi2sd %eax,%xmm2
movsd  %xmm2,0x20(%rsp)
movsd  0x10(%rsp),%xmm1
divsd  0xd13(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
divsd  0xd03(%rip),%xmm1
addsd  0xd03(%rip),%xmm1
cvttsd2si %xmm1,%ebx
mov    %ebx,%edi
movapd %xmm2,%xmm0
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %ebx,%edi
movsd  0x20(%rsp),%xmm0
call   1070 <pow@plt>
imul   $0x64,%eax,%eax
add    $0xffffff9c,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xc9f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xcdf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xcf5(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0x8(%rsp),%xmm0
lea    0xcf9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    (%rbx),%rdi
call   1060 <helptext@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-a\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [48 x i8] c"Amount=\C2\A3%d\0AInterest=%5.2f%%\0ADuration=%d years\0A\00"
@.str.4 = [36 x i8] c"Annual replayments will be \C2\A3%8.2f\0A\00"
@.str.5 = [37 x i8] c"Monthly replayments will be \C2\A3%7.2f\0A\00"
@.str.6 = [31 x i8] c"Total cost of loan is \C2\A3%8.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store double 0.000000e+00, double* %8
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 6
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @helptext(i8* %21)
%23 = call i32 @exit(i32 -1)
unreachable
24: ; preds = %2
store i32 1, i32* %15
br label %25
25: ; preds = %80, %24
%26 = load i32, i32* %15
%27 = load i32, i32* %4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %83
29: ; preds = %25
%30 = load i8**, i8*** %5
%31 = load i32, i32* %15
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %30, i64 %32
%34 = load i8*, i8** %33
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %29
%38 = load i32, i32* %15
%39 = add nsw i32 %38, 1
store i32 %39, i32* %15
%40 = load i8**, i8*** %5
%41 = load i32, i32* %15
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %40, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 @atoi(i8* %44)
store i32 %45, i32* %6
br label %46
46: ; preds = %37, %29
%47 = load i8**, i8*** %5
%48 = load i32, i32* %15
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
%51 = load i8*, i8** %50
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %63
54: ; preds = %46
%55 = load i32, i32* %15
%56 = add nsw i32 %55, 1
store i32 %56, i32* %15
%57 = load i8**, i8*** %5
%58 = load i32, i32* %15
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8*, i8** %57, i64 %59
%61 = load i8*, i8** %60
%62 = call double @atof(i8* %61)
store double %62, double* %8
br label %63
63: ; preds = %54, %46
%64 = load i8**, i8*** %5
%65 = load i32, i32* %15
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8*, i8** %64, i64 %66
%68 = load i8*, i8** %67
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %80
71: ; preds = %63
%72 = load i32, i32* %15
%73 = add nsw i32 %72, 1
store i32 %73, i32* %15
%74 = load i8**, i8*** %5
%75 = load i32, i32* %15
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8*, i8** %74, i64 %76
%78 = load i8*, i8** %77
%79 = call i32 @atoi(i8* %78)
store i32 %79, i32* %7
br label %80
80: ; preds = %71, %63
%81 = load i32, i32* %15
%82 = add nsw i32 %81, 1
store i32 %82, i32* %15
br label %25
83: ; preds = %25
%84 = load i32, i32* %6
%85 = icmp eq i32 %84, 0
br i1 %85, label %92, label %86
86: ; preds = %83
%87 = load double, double* %8
%88 = fcmp oeq double %87, 0.000000e+00
br i1 %88, label %92, label %89
89: ; preds = %86
%90 = load i32, i32* %7
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %98
92: ; preds = %89, %86, %83
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 0
%95 = load i8*, i8** %94
%96 = call i32 @helptext(i8* %95)
%97 = call i32 @exit(i32 -1)
unreachable
98: ; preds = %89
%99 = load i32, i32* %6
%100 = sitofp i32 %99 to double
%101 = load double, double* %8
%102 = load i32, i32* %7
%103 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double %100, double %101, i32 %102)
%104 = load double, double* %8
%105 = fdiv double %104, 1.200000e+01
store double %105, double* %9
%106 = load i32, i32* %7
%107 = mul nsw i32 %106, 12
%108 = sitofp i32 %107 to double
store double %108, double* %10
%109 = load i32, i32* %6
%110 = sitofp i32 %109 to double
%111 = load double, double* %9
%112 = fmul double %110, %111
%113 = load double, double* %9
%114 = fdiv double %113, 1.000000e+02
%115 = fadd double 1.000000e+00, %114
%116 = fptosi double %115 to i32
%117 = load double, double* %10
%118 = call i32 @pow(i32 %116, double %117)
%119 = sitofp i32 %118 to double
%120 = fmul double %112, %119
store double %120, double* %11
%121 = load double, double* %9
%122 = fdiv double %121, 1.000000e+02
%123 = fadd double 1.000000e+00, %122
%124 = fptosi double %123 to i32
%125 = load double, double* %10
%126 = call i32 @pow(i32 %124, double %125)
%127 = sub nsw i32 %126, 1
%128 = mul nsw i32 100, %127
%129 = sitofp i32 %128 to double
store double %129, double* %12
%130 = load double, double* %11
%131 = load double, double* %12
%132 = fdiv double %130, %131
store double %132, double* %13
%133 = load double, double* %13
%134 = fmul double %133, 1.200000e+01
store double %134, double* %14
%135 = load double, double* %14
%136 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), double %135)
%137 = load double, double* %13
%138 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), double %137)
%139 = load double, double* %14
%140 = load i32, i32* %7
%141 = sitofp i32 %140 to double
%142 = fmul double %139, %141
%143 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), double %142)
%144 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-a\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [48 x i8] c"Amount=\C2\A3%d\0AInterest=%5.2f%%\0ADuration=%d years\0A\00"
@.str.4 = [36 x i8] c"Annual replayments will be \C2\A3%8.2f\0A\00"
@.str.5 = [37 x i8] c"Monthly replayments will be \C2\A3%7.2f\0A\00"
@.str.6 = [31 x i8] c"Total cost of loan is \C2\A3%8.2f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 6
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @helptext(i8* %5)
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %2, %54
%9 = phi i32 [ %57, %54 ], [ 1, %2 ]
%10 = phi i32 [ %29, %54 ], [ 0, %2 ]
%11 = phi i32 [ %55, %54 ], [ 0, %2 ]
%12 = phi double [ %44, %54 ], [ 0.000000e+00, %2 ]
%13 = sext i32 %9 to i64
%14 = getelementptr inbounds i8*, i8** %1, i64 %13
%15 = load i8*, i8** %14
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %8
%19 = load i8*, i8** %14
br label %26
20: ; preds = %8
%21 = add nsw i32 %9, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %1, i64 %22
%24 = load i8*, i8** %23
%25 = tail call i32 @atoi(i8* %24)
br label %26
26: ; preds = %18, %20
%27 = phi i8* [ %24, %20 ], [ %19, %18 ]
%28 = phi i64 [ %22, %20 ], [ %13, %18 ]
%29 = phi i32 [ %25, %20 ], [ %10, %18 ]
%30 = phi i32 [ %21, %20 ], [ %9, %18 ]
%31 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %26
%34 = getelementptr inbounds i8*, i8** %1, i64 %28
%35 = load i8*, i8** %34
br label %42
36: ; preds = %26
%37 = add nsw i32 %30, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8*, i8** %1, i64 %38
%40 = load i8*, i8** %39
%41 = tail call double @atof(i8* %40)
br label %42
42: ; preds = %33, %36
%43 = phi i8* [ %40, %36 ], [ %35, %33 ]
%44 = phi double [ %41, %36 ], [ %12, %33 ]
%45 = phi i32 [ %37, %36 ], [ %30, %33 ]
%46 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %42
%49 = add nsw i32 %45, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %1, i64 %50
%52 = load i8*, i8** %51
%53 = tail call i32 @atoi(i8* %52)
br label %54
54: ; preds = %48, %42
%55 = phi i32 [ %53, %48 ], [ %11, %42 ]
%56 = phi i32 [ %49, %48 ], [ %45, %42 ]
%57 = add nsw i32 %56, 1
%58 = icmp slt i32 %57, %0
br i1 %58, label %8, label %59
59: ; preds = %54
%60 = icmp eq i32 %29, 0
%61 = fcmp oeq double %44, 0.000000e+00
%62 = select i1 %60, i1 true, i1 %61
%63 = icmp eq i32 %55, 0
%64 = select i1 %62, i1 true, i1 %63
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load i8*, i8** %1
%67 = tail call i32 @helptext(i8* %66)
%68 = tail call i32 @exit(i32 -1)
unreachable
69: ; preds = %59
%70 = sitofp i32 %29 to double
%71 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double %70, double %44, i32 %55)
%72 = fdiv double %44, 1.200000e+01
%73 = mul nsw i32 %55, 12
%74 = sitofp i32 %73 to double
%75 = fmul double %72, %70
%76 = fdiv double %72, 1.000000e+02
%77 = fadd double %76, 1.000000e+00
%78 = fptosi double %77 to i32
%79 = tail call i32 @pow(i32 %78, double %74)
%80 = sitofp i32 %79 to double
%81 = fmul double %75, %80
%82 = tail call i32 @pow(i32 %78, double %74)
%83 = mul i32 %82, 100
%84 = add i32 %83, -100
%85 = sitofp i32 %84 to double
%86 = fdiv double %81, %85
%87 = fmul double %86, 1.200000e+01
%88 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), double %87)
%89 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), double %86)
%90 = sitofp i32 %55 to double
%91 = fmul double %87, %90
%92 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), double %91)
%93 = tail call i32 @exit(i32 0)
unreachable
}