#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 *);
double pow(int, int);
int /*<<< orphan*/ printf(char *, int, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  double principle = 0;
  double amount;
  int duration = 0;
  double interest_rate = 0;
  int capitalize = 1;
  if (argc < 6) {
    helptext(argv[0]);
    exit(-1);
  }
  int i = 1;
  while (i < argc) {
    if (strcmp(argv[i], "-a") == 0) {
      i++;
      principle = atof(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]);
    }
    if (strcmp(argv[i], "-c") == 0) {
      i++;
      capitalize = atoi(argv[i]);
    }
    i++;
  }
  if (principle == 0 || interest_rate == 0 || duration == 0) {
    helptext(argv[0]);
    exit(-1);
  }
  printf("Principle=£%.2f\nInterest=%5.2f%%\nDuration=%d years\n", principle,
         interest_rate, duration);
  if (capitalize > 1)
    printf("Capitialized %d times a year\n", capitalize);
  amount = principle * (pow(1 + ((interest_rate / 100) / capitalize),
                            (capitalize * duration)));
  printf("After %d years your investment will be worth £%.2f\n", duration,
         amount);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    11c4 <main+0x54>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <helptext@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12e5 <main+0x175>
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe26(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1218 <main+0xa8>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xde8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1259 <main+0xe9>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdaa(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1298 <main+0x128>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd6e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12d7 <main+0x167>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11cb <main+0x5b>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1302 <main+0x192>
jp     1302 <main+0x192>
jmp    1329 <main+0x1b9>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    131f <main+0x1af>
jp     131f <main+0x1af>
jmp    1329 <main+0x1b9>
cmpl   $0x0,-0x24(%rbp)
jne    133f <main+0x1cf>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <helptext@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
cvttsd2si -0x18(%rbp),%esi
movsd  -0x30(%rbp),%xmm0
mov    -0x24(%rbp),%edx
lea    0xcc9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x34(%rbp)
jle    1375 <main+0x205>
mov    -0x34(%rbp),%esi
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm1
movsd  0xc7c(%rip),%xmm0
divsd  %xmm0,%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
divsd  %xmm0,%xmm1
movsd  0xc5f(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
mov    -0x34(%rbp),%esi
imul   -0x24(%rbp),%esi
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x24(%rbp),%esi
movsd  -0x20(%rbp),%xmm0
lea    0xc9a(%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    $0x18,%rsp
mov    %rsi,%rbx
cmp    $0x6,%edi
jl     136d <main+0x1fd>
mov    %edi,%r13d
movl   $0x0,0x4(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%r14d
movl   $0x1,(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
jmp    11cd <main+0x5d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14d
cmp    %r13d,%r14d
jge    12b9 <main+0x149>
movslq %r14d,%r15
mov    (%rbx,%r15,8),%rdi
lea    0xe35(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11f0 <main+0x80>
mov    (%rbx,%r15,8),%r12
jmp    120e <main+0x9e>
nopl   0x0(%rax,%rax,1)
movslq %r14d,%r15
add    $0x1,%r14d
mov    0x8(%rbx,%r15,8),%r12
add    $0x1,%r15
mov    %r12,%rdi
call   1030 <atof@plt>
movsd  %xmm0,0x10(%rsp)
mov    %r12,%rdi
lea    0xdfb(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1230 <main+0xc0>
mov    (%rbx,%r15,8),%rbp
jmp    124e <main+0xde>
nopl   0x0(%rax,%rax,1)
movslq %r14d,%r15
add    $0x1,%r14d
mov    0x8(%rbx,%r15,8),%rbp
add    $0x1,%r15
mov    %rbp,%rdi
call   1030 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    %rbp,%rdi
lea    0xdbe(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1270 <main+0x100>
mov    (%rbx,%r15,8),%rbp
jmp    1288 <main+0x118>
nopl   0x0(%rax,%rax,1)
movslq %r14d,%rax
add    $0x1,%r14d
mov    0x8(%rbx,%rax,8),%rbp
mov    %rbp,%rdi
call   1080 <atoi@plt>
mov    %eax,0x4(%rsp)
mov    %rbp,%rdi
lea    0xd87(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11c0 <main+0x50>
movslq %r14d,%rax
add    $0x1,%r14d
mov    0x8(%rbx,%rax,8),%rdi
call   1080 <atoi@plt>
mov    %eax,(%rsp)
jmp    11c0 <main+0x50>
xorpd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
mov    0x4(%rsp),%ebp
jne    12d3 <main+0x163>
jnp    136d <main+0x1fd>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jne    12e5 <main+0x175>
jnp    136d <main+0x1fd>
test   %ebp,%ebp
je     136d <main+0x1fd>
cvttsd2si 0x10(%rsp),%esi
lea    0xd22(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %ebp,%edx
mov    $0x1,%al
call   1040 <printf@plt>
mov    (%rsp),%ebx
cmp    $0x2,%ebx
jl     1321 <main+0x1b1>
lea    0xd39(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm1
divsd  0xcd1(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
divsd  %xmm0,%xmm1
addsd  0xcc6(%rip),%xmm1
cvttsd2si %xmm1,%edi
imul   %ebp,%ebx
mov    %ebx,%esi
call   1070 <pow@plt>
mulsd  0x10(%rsp),%xmm0
lea    0xd12(%rip),%rdi
mov    %ebp,%esi
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 = [3 x i8] c"-c\00"
@.str.4 = [53 x i8] c"Principle=\C2\A3%.2f\0AInterest=%5.2f%%\0ADuration=%d years\0A\00"
@.str.5 = [30 x i8] c"Capitialized %d times a year\0A\00"
@.str.6 = [53 x i8] c"After %d years your investment will be worth \C2\A3%.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca i32
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %6
store i32 0, i32* %8
store double 0.000000e+00, double* %9
store i32 1, i32* %10
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 6
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @helptext(i8* %17)
%19 = call i32 @exit(i32 -1)
unreachable
20: ; preds = %2
store i32 1, i32* %11
br label %21
21: ; preds = %93, %20
%22 = load i32, i32* %11
%23 = load i32, i32* %4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %96
25: ; preds = %21
%26 = load i8**, i8*** %5
%27 = load i32, i32* %11
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %26, i64 %28
%30 = load i8*, i8** %29
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %25
%34 = load i32, i32* %11
%35 = add nsw i32 %34, 1
store i32 %35, i32* %11
%36 = load i8**, i8*** %5
%37 = load i32, i32* %11
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8*, i8** %36, i64 %38
%40 = load i8*, i8** %39
%41 = call double @atof(i8* %40)
store double %41, double* %6
br label %42
42: ; preds = %33, %25
%43 = load i8**, i8*** %5
%44 = load i32, i32* %11
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8*, i8** %43, i64 %45
%47 = load i8*, i8** %46
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %59
50: ; preds = %42
%51 = load i32, i32* %11
%52 = add nsw i32 %51, 1
store i32 %52, i32* %11
%53 = load i8**, i8*** %5
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8*, i8** %53, i64 %55
%57 = load i8*, i8** %56
%58 = call double @atof(i8* %57)
store double %58, double* %9
br label %59
59: ; preds = %50, %42
%60 = load i8**, i8*** %5
%61 = load i32, i32* %11
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %60, i64 %62
%64 = load i8*, i8** %63
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %76
67: ; preds = %59
%68 = load i32, i32* %11
%69 = add nsw i32 %68, 1
store i32 %69, i32* %11
%70 = load i8**, i8*** %5
%71 = load i32, i32* %11
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %70, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 @atoi(i8* %74)
store i32 %75, i32* %8
br label %76
76: ; preds = %67, %59
%77 = load i8**, i8*** %5
%78 = load i32, i32* %11
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8*, i8** %77, i64 %79
%81 = load i8*, i8** %80
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %93
84: ; preds = %76
%85 = load i32, i32* %11
%86 = add nsw i32 %85, 1
store i32 %86, i32* %11
%87 = load i8**, i8*** %5
%88 = load i32, i32* %11
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
%91 = load i8*, i8** %90
%92 = call i32 @atoi(i8* %91)
store i32 %92, i32* %10
br label %93
93: ; preds = %84, %76
%94 = load i32, i32* %11
%95 = add nsw i32 %94, 1
store i32 %95, i32* %11
br label %21
96: ; preds = %21
%97 = load double, double* %6
%98 = fcmp oeq double %97, 0.000000e+00
br i1 %98, label %105, label %99
99: ; preds = %96
%100 = load double, double* %9
%101 = fcmp oeq double %100, 0.000000e+00
br i1 %101, label %105, label %102
102: ; preds = %99
%103 = load i32, i32* %8
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %102, %99, %96
%106 = load i8**, i8*** %5
%107 = getelementptr inbounds i8*, i8** %106, i64 0
%108 = load i8*, i8** %107
%109 = call i32 @helptext(i8* %108)
%110 = call i32 @exit(i32 -1)
unreachable
111: ; preds = %102
%112 = load double, double* %6
%113 = fptosi double %112 to i32
%114 = load double, double* %9
%115 = load i32, i32* %8
%116 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %113, double %114, i32 %115)
%117 = load i32, i32* %10
%118 = icmp sgt i32 %117, 1
br i1 %118, label %119, label %122
119: ; preds = %111
%120 = load i32, i32* %10
%121 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %120)
br label %122
122: ; preds = %119, %111
%123 = load double, double* %6
%124 = load double, double* %9
%125 = fdiv double %124, 1.000000e+02
%126 = load i32, i32* %10
%127 = sitofp i32 %126 to double
%128 = fdiv double %125, %127
%129 = fadd double 1.000000e+00, %128
%130 = fptosi double %129 to i32
%131 = load i32, i32* %10
%132 = load i32, i32* %8
%133 = mul nsw i32 %131, %132
%134 = call double @pow(i32 %130, i32 %133)
%135 = fmul double %123, %134
store double %135, double* %7
%136 = load i32, i32* %8
%137 = load double, double* %7
%138 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 %136, double %137)
%139 = 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 = [3 x i8] c"-c\00"
@.str.4 = [53 x i8] c"Principle=\C2\A3%.2f\0AInterest=%5.2f%%\0ADuration=%d years\0A\00"
@.str.5 = [30 x i8] c"Capitialized %d times a year\0A\00"
@.str.6 = [53 x i8] c"After %d years your investment will be worth \C2\A3%.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, %71
%9 = phi i32 [ %74, %71 ], [ 1, %2 ]
%10 = phi i32 [ %72, %71 ], [ 1, %2 ]
%11 = phi double [ %46, %71 ], [ 0.000000e+00, %2 ]
%12 = phi i32 [ %61, %71 ], [ 0, %2 ]
%13 = phi double [ %30, %71 ], [ 0.000000e+00, %2 ]
%14 = sext i32 %9 to i64
%15 = getelementptr inbounds i8*, i8** %1, i64 %14
%16 = load i8*, i8** %15
%17 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %8
%20 = load i8*, i8** %15
br label %27
21: ; preds = %8
%22 = add nsw i32 %9, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %1, i64 %23
%25 = load i8*, i8** %24
%26 = tail call double @atof(i8* %25)
br label %27
27: ; preds = %19, %21
%28 = phi i8* [ %25, %21 ], [ %20, %19 ]
%29 = phi i64 [ %23, %21 ], [ %14, %19 ]
%30 = phi double [ %26, %21 ], [ %13, %19 ]
%31 = phi i32 [ %22, %21 ], [ %9, %19 ]
%32 = tail call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %27
%35 = getelementptr inbounds i8*, i8** %1, i64 %29
%36 = load i8*, i8** %35
br label %43
37: ; preds = %27
%38 = add nsw i32 %31, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8*, i8** %1, i64 %39
%41 = load i8*, i8** %40
%42 = tail call double @atof(i8* %41)
br label %43
43: ; preds = %34, %37
%44 = phi i8* [ %41, %37 ], [ %36, %34 ]
%45 = phi i64 [ %39, %37 ], [ %29, %34 ]
%46 = phi double [ %42, %37 ], [ %11, %34 ]
%47 = phi i32 [ %38, %37 ], [ %31, %34 ]
%48 = tail call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %43
%51 = getelementptr inbounds i8*, i8** %1, i64 %45
%52 = load i8*, i8** %51
br label %59
53: ; preds = %43
%54 = add nsw i32 %47, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8*, i8** %1, i64 %55
%57 = load i8*, i8** %56
%58 = tail call i32 @atoi(i8* %57)
br label %59
59: ; preds = %50, %53
%60 = phi i8* [ %57, %53 ], [ %52, %50 ]
%61 = phi i32 [ %58, %53 ], [ %12, %50 ]
%62 = phi i32 [ %54, %53 ], [ %47, %50 ]
%63 = tail call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %71
65: ; preds = %59
%66 = add nsw i32 %62, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8*, i8** %1, i64 %67
%69 = load i8*, i8** %68
%70 = tail call i32 @atoi(i8* %69)
br label %71
71: ; preds = %65, %59
%72 = phi i32 [ %70, %65 ], [ %10, %59 ]
%73 = phi i32 [ %66, %65 ], [ %62, %59 ]
%74 = add nsw i32 %73, 1
%75 = icmp slt i32 %74, %0
br i1 %75, label %8, label %76
76: ; preds = %71
%77 = fcmp oeq double %30, 0.000000e+00
%78 = fcmp oeq double %46, 0.000000e+00
%79 = select i1 %77, i1 true, i1 %78
%80 = icmp eq i32 %61, 0
%81 = select i1 %79, i1 true, i1 %80
br i1 %81, label %82, label %86
82: ; preds = %76
%83 = load i8*, i8** %1
%84 = tail call i32 @helptext(i8* %83)
%85 = tail call i32 @exit(i32 -1)
unreachable
86: ; preds = %76
%87 = fptosi double %30 to i32
%88 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %87, double %46, i32 %61)
%89 = icmp sgt i32 %72, 1
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %72)
br label %92
92: ; preds = %90, %86
%93 = fdiv double %46, 1.000000e+02
%94 = sitofp i32 %72 to double
%95 = fdiv double %93, %94
%96 = fadd double %95, 1.000000e+00
%97 = fptosi double %96 to i32
%98 = mul nsw i32 %72, %61
%99 = tail call double @pow(i32 %97, i32 %98)
%100 = fmul double %30, %99
%101 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 %61, double %100)
%102 = tail call i32 @exit(i32 0)
unreachable
}