#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ CosEvalPts(int, double *);
int /*<<< orphan*/ CosEvalPts2(int, double *);
int /*<<< orphan*/ SinEvalPts(int, double *);
int /*<<< orphan*/ SinEvalPts2(int, double *);
int atoi(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ genWig_L2(int, int, int, double *, double *, double *,
                             double *, double *, double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  int i, m1, m2, bw, n;
  int m;
  double *workspace, *scratch;
  double *sinPts, *cosPts, *result;
  double *sinPts2, *cosPts2;
  FILE *fp;
  if (argc < 5) {
    fprintf(stdout, "Usage: test_genWig m1 m2 bw output_file_name\n");
    exit(0);
  }
  m1 = atoi(argv[1]);
  m2 = atoi(argv[2]);
  bw = atoi(argv[3]);
  m = ((((m1) > 0 ? (m1) : (-m1))) > (((m2) > 0 ? (m2) : (-m2)))
           ? (((m1) > 0 ? (m1) : (-m1)))
           : (((m2) > 0 ? (m2) : (-m2))));
  n = 2 * bw;
  result = (double *)malloc(sizeof(double) * n * (bw - m));
  workspace = (double *)malloc(sizeof(double) * (4 + 6) * n);
  sinPts = workspace;
  cosPts = sinPts + n;
  sinPts2 = cosPts + n;
  cosPts2 = sinPts2 + n;
  scratch = cosPts2 + n;
  SinEvalPts(n, sinPts);
  CosEvalPts(n, cosPts);
  SinEvalPts2(n, sinPts2);
  CosEvalPts2(n, cosPts2);
  genWig_L2(m1, m2, bw, sinPts, cosPts, sinPts2, cosPts2, result, scratch);
  fp = fopen(argv[4], "w");
  for (i = 0; i < n * (bw - m); i++)
    fprintf(fp, "%.15f\n", result[i]);
  fclose(fp);
  free(workspace);
  free(result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1202 <main+0x42>
mov    0x2df6(%rip),%rax
movslq (%rax),%rdi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    1247 <main+0x87>
mov    -0x18(%rbp),%eax
mov    %eax,-0x6c(%rbp)
jmp    124f <main+0x8f>
xor    %eax,%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    126a <main+0xaa>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x74(%rbp)
jmp    1272 <main+0xb2>
xor    %eax,%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    -0x74(%rbp),%ecx
cmp    %ecx,%eax
jle    12a8 <main+0xe8>
cmpl   $0x0,-0x18(%rbp)
jle    1295 <main+0xd5>
mov    -0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
jmp    129d <main+0xdd>
xor    %eax,%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x7c(%rbp)
jmp    12cb <main+0x10b>
cmpl   $0x0,-0x1c(%rbp)
jle    12bd <main+0xfd>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    12c5 <main+0x105>
xor    %eax,%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x24(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    -0x20(%rbp),%ecx
sub    -0x28(%rbp),%ecx
movslq %ecx,%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x24(%rbp),%rax
imul   $0x50,%rax,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x40(%rbp),%rsi
call   1090 <SinEvalPts@plt>
mov    -0x24(%rbp),%edi
mov    -0x48(%rbp),%rsi
call   10b0 <CosEvalPts@plt>
mov    -0x24(%rbp),%edi
mov    -0x58(%rbp),%rsi
call   1070 <SinEvalPts2@plt>
mov    -0x24(%rbp),%edi
mov    -0x60(%rbp),%rsi
call   1050 <CosEvalPts2@plt>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x60(%rbp),%r11
mov    -0x50(%rbp),%r10
mov    -0x38(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <genWig_L2@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xc5a(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
sub    -0x28(%rbp),%edx
imul   %edx,%ecx
cmp    %ecx,%eax
jge    1428 <main+0x268>
mov    -0x68(%rbp),%rdi
mov    -0x50(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc1d(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13e4 <main+0x224>
mov    -0x68(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x4,%edi
jle    1367 <main+0x197>
mov    0x8(%rsi),%rdi
mov    %rsi,%rbx
mov    %rsi,0x30(%rsp)
call   10d0 <atoi@plt>
mov    %eax,%r14d
mov    0x10(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    0x18(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %r14d,(%rsp)
mov    %r14d,%esi
neg    %esi
cmovs  %r14d,%esi
mov    %ebp,0xc(%rsp)
mov    %ebp,%ecx
neg    %ecx
cmovs  %ebp,%ecx
cmp    %ecx,%esi
cmova  %esi,%ecx
mov    %rax,%rdx
add    %eax,%eax
movslq %eax,%r14
mov    %edx,%r12d
sub    %ecx,%r12d
mov    %edx,%edi
mov    %rdx,%rbx
mov    %rdx,0x28(%rsp)
imul   %r12d,%edi
shl    $0x4,%edi
call   10a0 <malloc@plt>
mov    %rax,%r13
mov    %ebx,%eax
shl    $0x5,%eax
lea    (%rax,%rax,4),%edi
call   10a0 <malloc@plt>
mov    %rax,%rbp
lea    (%rax,%r14,8),%rbx
lea    (%rbx,%r14,8),%r15
mov    %rbx,0x10(%rsp)
lea    (%r15,%r14,8),%rax
mov    %rax,0x18(%rsp)
lea    (%rax,%r14,8),%rcx
mov    %rcx,0x20(%rsp)
mov    %r14d,%edi
mov    %rbp,%rsi
call   1090 <SinEvalPts@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
call   10b0 <CosEvalPts@plt>
mov    %r14d,%edi
mov    %r15,%rsi
call   1070 <SinEvalPts2@plt>
mov    %r14d,%edi
mov    0x18(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <CosEvalPts2@plt>
sub    $0x8,%rsp
mov    0x8(%rsp),%edi
mov    0x14(%rsp),%esi
mov    0x30(%rsp),%rdx
mov    %rbp,0x8(%rsp)
mov    %rbp,%rcx
mov    0x18(%rsp),%r8
mov    %r15,%r9
push   0x28(%rsp)
push   %r13
push   %rbx
call   1040 <genWig_L2@plt>
add    $0x20,%rsp
mov    0x30(%rsp),%rax
mov    0x20(%rax),%rdi
lea    0xd3a(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
imul   %r14d,%r12d
test   %r12d,%r12d
jle    133d <main+0x16d>
mov    %r12d,%ebx
shl    $0x3,%rbx
xor    %ebp,%ebp
lea    0xd1b(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%r13,%rbp,1),%xmm0
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
add    $0x8,%rbp
cmp    %rbp,%rbx
jne    1320 <main+0x150>
mov    %r15,%rdi
call   1060 <fclose@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c72(%rip),%rax
movslq (%rax),%rcx
lea    0xc88(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
call   10f0 <fwrite@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [46 x i8] c"Usage: test_genWig m1 m2 bw output_file_name\0A\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [7 x i8] c"%.15f\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 5
br i1 %21, label %22, label %28
22: ; preds = %2
%23 = load i32, i32* @stdout
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i32*
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%27 = call i32 @exit(i32 0)
unreachable
28: ; preds = %2
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @atoi(i8* %31)
store i32 %32, i32* %7
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i32 @atoi(i8* %35)
store i32 %36, i32* %8
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 3
%39 = load i8*, i8** %38
%40 = call i32 @atoi(i8* %39)
store i32 %40, i32* %9
%41 = load i32, i32* %7
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %28
%44 = load i32, i32* %7
br label %48
45: ; preds = %28
%46 = load i32, i32* %7
%47 = sub nsw i32 0, %46
br label %48
48: ; preds = %45, %43
%49 = phi i32 [ %44, %43 ], [ %47, %45 ]
%50 = load i32, i32* %8
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = load i32, i32* %8
br label %57
54: ; preds = %48
%55 = load i32, i32* %8
%56 = sub nsw i32 0, %55
br label %57
57: ; preds = %54, %52
%58 = phi i32 [ %53, %52 ], [ %56, %54 ]
%59 = icmp sgt i32 %49, %58
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = load i32, i32* %7
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = load i32, i32* %7
br label %68
65: ; preds = %60
%66 = load i32, i32* %7
%67 = sub nsw i32 0, %66
br label %68
68: ; preds = %65, %63
%69 = phi i32 [ %64, %63 ], [ %67, %65 ]
br label %80
70: ; preds = %57
%71 = load i32, i32* %8
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = load i32, i32* %8
br label %78
75: ; preds = %70
%76 = load i32, i32* %8
%77 = sub nsw i32 0, %76
br label %78
78: ; preds = %75, %73
%79 = phi i32 [ %74, %73 ], [ %77, %75 ]
br label %80
80: ; preds = %78, %68
%81 = phi i32 [ %69, %68 ], [ %79, %78 ]
store i32 %81, i32* %11
%82 = load i32, i32* %9
%83 = mul nsw i32 2, %82
store i32 %83, i32* %10
%84 = load i32, i32* %10
%85 = sext i32 %84 to i64
%86 = mul i64 8, %85
%87 = load i32, i32* %9
%88 = load i32, i32* %11
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = mul i64 %86, %90
%92 = trunc i64 %91 to i32
%93 = call i64 @malloc(i32 %92)
%94 = inttoptr i64 %93 to double*
store double* %94, double** %16
%95 = load i32, i32* %10
%96 = sext i32 %95 to i64
%97 = mul i64 80, %96
%98 = trunc i64 %97 to i32
%99 = call i64 @malloc(i32 %98)
%100 = inttoptr i64 %99 to double*
store double* %100, double** %12
%101 = load double*, double** %12
store double* %101, double** %14
%102 = load double*, double** %14
%103 = load i32, i32* %10
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
store double* %105, double** %15
%106 = load double*, double** %15
%107 = load i32, i32* %10
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %106, i64 %108
store double* %109, double** %17
%110 = load double*, double** %17
%111 = load i32, i32* %10
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
store double* %113, double** %18
%114 = load double*, double** %18
%115 = load i32, i32* %10
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %114, i64 %116
store double* %117, double** %13
%118 = load i32, i32* %10
%119 = load double*, double** %14
%120 = call i32 @SinEvalPts(i32 %118, double* %119)
%121 = load i32, i32* %10
%122 = load double*, double** %15
%123 = call i32 @CosEvalPts(i32 %121, double* %122)
%124 = load i32, i32* %10
%125 = load double*, double** %17
%126 = call i32 @SinEvalPts2(i32 %124, double* %125)
%127 = load i32, i32* %10
%128 = load double*, double** %18
%129 = call i32 @CosEvalPts2(i32 %127, double* %128)
%130 = load i32, i32* %7
%131 = load i32, i32* %8
%132 = load i32, i32* %9
%133 = load double*, double** %14
%134 = load double*, double** %15
%135 = load double*, double** %17
%136 = load double*, double** %18
%137 = load double*, double** %16
%138 = load double*, double** %13
%139 = call i32 @genWig_L2(i32 %130, i32 %131, i32 %132, double* %133, double* %134, double* %135, double* %136, double* %137, double* %138)
%140 = load i8**, i8*** %5
%141 = getelementptr inbounds i8*, i8** %140, i64 4
%142 = load i8*, i8** %141
%143 = call i32* @fopen(i8* %142, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %143, i32** %19
store i32 0, i32* %6
br label %144
144: ; preds = %160, %80
%145 = load i32, i32* %6
%146 = load i32, i32* %10
%147 = load i32, i32* %9
%148 = load i32, i32* %11
%149 = sub nsw i32 %147, %148
%150 = mul nsw i32 %146, %149
%151 = icmp slt i32 %145, %150
br i1 %151, label %152, label %163
152: ; preds = %144
%153 = load i32*, i32** %19
%154 = load double*, double** %16
%155 = load i32, i32* %6
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = call i32 (i32*, i8*, ...) @fprintf(i32* %153, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %158)
br label %160
160: ; preds = %152
%161 = load i32, i32* %6
%162 = add nsw i32 %161, 1
store i32 %162, i32* %6
br label %144
163: ; preds = %144
%164 = load i32*, i32** %19
%165 = call i32 @fclose(i32* %164)
%166 = load double*, double** %12
%167 = call i32 @free(double* %166)
%168 = load double*, double** %16
%169 = call i32 @free(double* %168)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [46 x i8] c"Usage: test_genWig m1 m2 bw output_file_name\0A\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [7 x i8] c"%.15f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 5
br i1 %3, label %4, label %10
4: ; preds = %2
%5 = load i32, i32* @stdout
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i32*
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i64 45, i64 1, i32* %7)
%9 = tail call i32 @exit(i32 0)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = getelementptr inbounds i8*, i8** %1, i64 3
%18 = load i8*, i8** %17
%19 = tail call i32 @atoi(i8* %18)
%20 = tail call i32 @llvm.abs.i32(i32 %13, i1 true)
%21 = tail call i32 @llvm.abs.i32(i32 %16, i1 true)
%22 = icmp ugt i32 %20, %21
%23 = select i1 %22, i32 %20, i32 %21
%24 = shl nsw i32 %19, 1
%25 = sext i32 %24 to i64
%26 = shl i32 %19, 4
%27 = sub nsw i32 %19, %23
%28 = mul i32 %26, %27
%29 = tail call i64 @malloc(i32 %28)
%30 = inttoptr i64 %29 to double*
%31 = mul i32 %19, 160
%32 = tail call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to double*
%34 = getelementptr inbounds double, double* %33, i64 %25
%35 = getelementptr inbounds double, double* %34, i64 %25
%36 = getelementptr inbounds double, double* %35, i64 %25
%37 = getelementptr inbounds double, double* %36, i64 %25
%38 = tail call i32 @SinEvalPts(i32 %24, double* %33)
%39 = tail call i32 @CosEvalPts(i32 %24, double* %34)
%40 = tail call i32 @SinEvalPts2(i32 %24, double* %35)
%41 = tail call i32 @CosEvalPts2(i32 %24, double* %36)
%42 = tail call i32 @genWig_L2(i32 %13, i32 %16, i32 %19, double* %33, double* %34, double* %35, double* %36, double* %30, double* %37)
%43 = getelementptr inbounds i8*, i8** %1, i64 4
%44 = load i8*, i8** %43
%45 = tail call i32* @fopen(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%46 = mul i32 %27, %24
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %57
48: ; preds = %10
%49 = zext i32 %46 to i64
br label %50
50: ; preds = %48, %50
%51 = phi i64 [ 0, %48 ], [ %55, %50 ]
%52 = getelementptr inbounds double, double* %30, i64 %51
%53 = load double, double* %52
%54 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %53)
%55 = add nuw nsw i64 %51, 1
%56 = icmp eq i64 %55, %49
br i1 %56, label %57, label %50
57: ; preds = %50, %10
%58 = tail call i32 @fclose(i32* %45)
%59 = tail call i32 @free(double* %33)
%60 = tail call i32 @free(double* %30)
ret i32 0
}