#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(double *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, ...);
void read_velocity_c(char *fname, int nx, int ny, int nz, double *array) {
  int i, j, k;
  FILE *fp;
  char errmsg[256];
  double *wbuf;
  fp = fopen(fname, "rb");
  if (fp == NULL) {
    snprintf(errmsg, 256, "WARNING: Unable to open DAT file (%s)", fname);
    perror(errmsg);
    return;
  }
  wbuf = (double *)malloc(3 * nx * ny * nz * sizeof(double));
  if (wbuf == NULL) {
    snprintf(errmsg, 256, "WARNING: Unable to allocate read buffer");
    perror(errmsg);
    return;
  }
  fread(wbuf, sizeof(double), 3 * nx * ny * nz, fp);
  for (i = 0; i < 3 * nx * ny * nz; i++) {
    array[2 * i] = wbuf[i];
    array[2 * i + 1] = 0.0;
  }
  free(wbuf);
  fclose(fp);
}


x86 assembly (clang, -O0):
<read_velocity_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11da <read_velocity_c+0x6a>
lea    -0x140(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x100,%esi
lea    0xe41(%rip),%rdx
mov    $0x0,%al
call   1060 <snprintf@plt>
lea    -0x140(%rbp),%rdi
call   1090 <perror@plt>
jmp    12cf <read_velocity_c+0x15f>
imul   $0x3,-0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x148(%rbp)
cmpq   $0x0,-0x148(%rbp)
jne    1233 <read_velocity_c+0xc3>
lea    -0x140(%rbp),%rdi
mov    $0x100,%esi
lea    0xe0e(%rip),%rdx
mov    $0x0,%al
call   1060 <snprintf@plt>
lea    -0x140(%rbp),%rdi
call   1090 <perror@plt>
jmp    12cf <read_velocity_c+0x15f>
mov    -0x148(%rbp),%rdi
imul   $0x3,-0xc(%rbp),%edx
imul   -0x10(%rbp),%edx
imul   -0x14(%rbp),%edx
mov    -0x38(%rbp),%rcx
mov    $0x8,%esi
call   1040 <fread@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
imul   $0x3,-0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
imul   -0x14(%rbp),%ecx
cmp    %ecx,%eax
jge    12ba <read_velocity_c+0x14a>
mov    -0x148(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    125b <read_velocity_c+0xeb>
mov    -0x148(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_velocity_c>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r8,%r14
mov    %ecx,%r13d
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r12
lea    0xe6b(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     13a2 <read_velocity_c+0x232>
mov    %rax,%r15
imul   %ebp,%ebx
imul   %r13d,%ebx
lea    (%rbx,%rbx,2),%r12d
lea    0x0(,%r12,8),%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     13c0 <read_velocity_c+0x250>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x8,%esi
mov    %r12d,%edx
mov    %r15,%rcx
call   1040 <fread@plt>
test   %r12d,%r12d
jle    1381 <read_velocity_c+0x211>
mov    %r12d,%eax
cmp    $0x4,%r12d
jb     120b <read_velocity_c+0x9b>
lea    (%rbx,%rax,8),%rcx
cmp    %r14,%rcx
jbe    1286 <read_velocity_c+0x116>
mov    %rax,%rcx
shl    $0x4,%rcx
add    %r14,%rcx
cmp    %rcx,%rbx
jae    1286 <read_velocity_c+0x116>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
je     1236 <read_velocity_c+0xc6>
movq   (%rbx,%rcx,8),%xmm0
mov    %rcx,%rsi
shl    $0x4,%rsi
movq   %xmm0,(%r14,%rsi,1)
movq   $0x0,0x8(%r14,%rsi,1)
or     $0x1,%rcx
add    %rax,%rdx
je     1381 <read_velocity_c+0x211>
mov    %rcx,%rdx
shl    $0x4,%rdx
add    %r14,%rdx
add    $0x18,%rdx
nopl   (%rax)
movsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,-0x18(%rdx)
movq   $0x0,-0x10(%rdx)
movq   0x8(%rbx,%rcx,8),%xmm0
movq   %xmm0,-0x8(%rdx)
movq   $0x0,(%rdx)
add    $0x2,%rcx
add    $0x20,%rdx
cmp    %rcx,%rax
jne    1250 <read_velocity_c+0xe0>
jmp    1381 <read_velocity_c+0x211>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     13f3 <read_velocity_c+0x283>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
lea    0x60(%r14),%rbp
xor    %edx,%edx
pxor   %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movdqu (%rbx,%rdx,8),%xmm1
movdqu 0x10(%rbx,%rdx,8),%xmm2
movq   %xmm1,%xmm3
punpckhqdq %xmm0,%xmm1
movdqu %xmm1,-0x50(%rbp)
movdqu %xmm3,-0x60(%rbp)
movq   %xmm2,%xmm1
punpckhqdq %xmm0,%xmm2
movdqu %xmm2,-0x30(%rbp)
movdqu %xmm1,-0x40(%rbp)
movdqu 0x20(%rbx,%rdx,8),%xmm1
movdqu 0x30(%rbx,%rdx,8),%xmm2
movq   %xmm1,%xmm3
punpckhqdq %xmm0,%xmm1
movdqu %xmm1,-0x10(%rbp)
movdqu %xmm3,-0x20(%rbp)
movq   %xmm2,%xmm1
punpckhqdq %xmm0,%xmm2
movdqu %xmm2,0x10(%rbp)
movdqu %xmm1,0x0(%rbp)
add    $0x8,%rdx
sub    $0xffffffffffffff80,%rbp
add    $0xfffffffffffffffe,%rdi
jne    12c0 <read_velocity_c+0x150>
test   $0x1,%sil
je     1378 <read_velocity_c+0x208>
movdqu (%rbx,%rdx,8),%xmm0
movdqu 0x10(%rbx,%rdx,8),%xmm1
shl    $0x4,%rdx
mov    %rdx,%rsi
or     $0x28,%rsi
movq   %xmm0,%xmm2
pxor   %xmm3,%xmm3
punpckhqdq %xmm3,%xmm0
movdqu %xmm0,0x10(%r14,%rdx,1)
movdqu %xmm2,(%r14,%rdx,1)
movq   %xmm1,%xmm0
punpckhqdq %xmm3,%xmm1
movdqu %xmm1,0x8(%r14,%rsi,1)
movdqu %xmm0,-0x8(%r14,%rsi,1)
cmp    %rax,%rcx
jne    120d <read_velocity_c+0x9d>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fclose@plt>
lea    0xc5a(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r12,%rcx
xor    %eax,%eax
call   1060 <snprintf@plt>
jmp    13d9 <read_velocity_c+0x269>
lea    0xc62(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1060 <snprintf@plt>
mov    %rbx,%rdi
call   1090 <perror@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    1333 <read_velocity_c+0x1c3>
jmp    1378 <read_velocity_c+0x208>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [38 x i8] c"WARNING: Unable to open DAT file (%s)\00"
@.str.2 = [40 x i8] c"WARNING: Unable to allocate read buffer\00"
define void @read_velocity_c(i8* %0, i32 %1, i32 %2, i32 %3, double* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32*
%15 = alloca [256 x i8]
%16 = alloca double*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store double* %4, double** %10
%17 = load i8*, i8** %6
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %18, i32** %14
%19 = load i32*, i32** %14
%20 = icmp eq i32* %19, null
br i1 %20, label %21, label %27
21: ; preds = %5
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%23 = load i8*, i8** %6
%24 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %22, i32 256, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%26 = call i32 @perror(i8* %25)
br label %90
27: ; preds = %5
%28 = load i32, i32* %7
%29 = mul nsw i32 3, %28
%30 = load i32, i32* %8
%31 = mul nsw i32 %29, %30
%32 = load i32, i32* %9
%33 = mul nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 8
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to double*
store double* %38, double** %16
%39 = load double*, double** %16
%40 = icmp eq double* %39, null
br i1 %40, label %41, label %46
41: ; preds = %27
%42 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%43 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %42, i32 256, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%45 = call i32 @perror(i8* %44)
br label %90
46: ; preds = %27
%47 = load double*, double** %16
%48 = load i32, i32* %7
%49 = mul nsw i32 3, %48
%50 = load i32, i32* %8
%51 = mul nsw i32 %49, %50
%52 = load i32, i32* %9
%53 = mul nsw i32 %51, %52
%54 = load i32*, i32** %14
%55 = call i32 @fread(double* %47, i32 8, i32 %53, i32* %54)
store i32 0, i32* %11
br label %56
56: ; preds = %82, %46
%57 = load i32, i32* %11
%58 = load i32, i32* %7
%59 = mul nsw i32 3, %58
%60 = load i32, i32* %8
%61 = mul nsw i32 %59, %60
%62 = load i32, i32* %9
%63 = mul nsw i32 %61, %62
%64 = icmp slt i32 %57, %63
br i1 %64, label %65, label %85
65: ; preds = %56
%66 = load double*, double** %16
%67 = load i32, i32* %11
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = load double*, double** %10
%72 = load i32, i32* %11
%73 = mul nsw i32 2, %72
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %71, i64 %74
store double %70, double* %75
%76 = load double*, double** %10
%77 = load i32, i32* %11
%78 = mul nsw i32 2, %77
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %76, i64 %80
store double 0.000000e+00, double* %81
br label %82
82: ; preds = %65
%83 = load i32, i32* %11
%84 = add nsw i32 %83, 1
store i32 %84, i32* %11
br label %56
85: ; preds = %56
%86 = load double*, double** %16
%87 = call i32 @free(double* %86)
%88 = load i32*, i32** %14
%89 = call i32 @fclose(i32* %88)
br label %90
90: ; preds = %85, %41, %21
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [38 x i8] c"WARNING: Unable to open DAT file (%s)\00"
@.str.2 = [40 x i8] c"WARNING: Unable to allocate read buffer\00"
define void @read_velocity_c(i8* %0, i32 %1, i32 %2, i32 %3, double* nocapture writeonly %4) {
%6 = alloca [256 x i8]
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%8 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %13
10: ; preds = %5
%11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %7, i32 256, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%12 = call i32 @perror(i8* %7)
br label %152
13: ; preds = %5
%14 = mul nsw i32 %1, 3
%15 = mul nsw i32 %14, %2
%16 = mul nsw i32 %15, %3
%17 = shl i32 %16, 3
%18 = tail call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to double*
%20 = inttoptr i64 %18 to i8*
%21 = icmp eq i64 %18, 0
br i1 %21, label %22, label %25
22: ; preds = %13
%23 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %7, i32 256, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 @perror(i8* %7)
br label %152
25: ; preds = %13
%26 = tail call i32 @fread(double* %19, i32 8, i32 %16, i32* %8)
%27 = icmp sgt i32 %16, 0
br i1 %27, label %28, label %149
28: ; preds = %25
%29 = zext i32 %16 to i64
%30 = icmp ult i32 %16, 4
br i1 %30, label %115, label %31
31: ; preds = %28
%32 = shl nuw nsw i64 %29, 1
%33 = getelementptr double, double* %4, i64 %32
%34 = bitcast double* %33 to i8*
%35 = getelementptr double, double* %19, i64 %29
%36 = icmp ugt double* %35, %4
%37 = icmp ult i8* %20, %34
%38 = and i1 %36, %37
br i1 %38, label %115, label %39
39: ; preds = %31
%40 = and i64 %29, 4294967292
%41 = add nsw i64 %40, -4
%42 = lshr exact i64 %41, 2
%43 = add nuw nsw i64 %42, 1
%44 = and i64 %43, 1
%45 = icmp eq i64 %41, 0
br i1 %45, label %91, label %46
46: ; preds = %39
%47 = and i64 %43, 9223372036854775806
%48 = getelementptr inbounds double, double* %4, i64 -1
%49 = getelementptr inbounds double, double* %4, i64 -1
%50 = getelementptr inbounds double, double* %4, i64 -1
%51 = getelementptr inbounds double, double* %4, i64 -1
br label %52
52: ; preds = %52, %46
%53 = phi i64 [ 0, %46 ], [ %88, %52 ]
%54 = phi i64 [ 0, %46 ], [ %89, %52 ]
%55 = getelementptr inbounds double, double* %19, i64 %53
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %55, i64 2
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = shl nuw nsw i64 %53, 1
%62 = shl i64 %53, 1
%63 = or i64 %61, 1
%64 = or i64 %62, 5
%65 = getelementptr inbounds double, double* %48, i64 %63
%66 = bitcast double* %65 to <4 x double>*
%67 = getelementptr inbounds double, double* %49, i64 %64
%68 = bitcast double* %67 to <4 x double>*
%69 = shufflevector <2 x double> %57, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %69, <4 x double>* %66
%70 = shufflevector <2 x double> %60, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %70, <4 x double>* %68
%71 = or i64 %53, 4
%72 = getelementptr inbounds double, double* %19, i64 %71
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = getelementptr inbounds double, double* %72, i64 2
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = shl nuw nsw i64 %71, 1
%79 = shl i64 %71, 1
%80 = or i64 %78, 1
%81 = or i64 %79, 5
%82 = getelementptr inbounds double, double* %50, i64 %80
%83 = bitcast double* %82 to <4 x double>*
%84 = getelementptr inbounds double, double* %51, i64 %81
%85 = bitcast double* %84 to <4 x double>*
%86 = shufflevector <2 x double> %74, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %86, <4 x double>* %83
%87 = shufflevector <2 x double> %77, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %87, <4 x double>* %85
%88 = add nuw i64 %53, 8
%89 = add i64 %54, 2
%90 = icmp eq i64 %89, %47
br i1 %90, label %91, label %52
91: ; preds = %52, %39
%92 = phi i64 [ 0, %39 ], [ %88, %52 ]
%93 = icmp eq i64 %44, 0
br i1 %93, label %113, label %94
94: ; preds = %91
%95 = getelementptr inbounds double, double* %19, i64 %92
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = getelementptr inbounds double, double* %95, i64 2
%99 = bitcast double* %98 to <2 x double>*
%100 = load <2 x double>, <2 x double>* %99
%101 = shl nuw nsw i64 %92, 1
%102 = shl i64 %92, 1
%103 = or i64 %101, 1
%104 = or i64 %102, 5
%105 = getelementptr inbounds double, double* %4, i64 -1
%106 = getelementptr inbounds double, double* %4, i64 -1
%107 = getelementptr inbounds double, double* %105, i64 %103
%108 = bitcast double* %107 to <4 x double>*
%109 = getelementptr inbounds double, double* %106, i64 %104
%110 = bitcast double* %109 to <4 x double>*
%111 = shufflevector <2 x double> %97, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %111, <4 x double>* %108
%112 = shufflevector <2 x double> %100, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %112, <4 x double>* %110
br label %113
113: ; preds = %91, %94
%114 = icmp eq i64 %40, %29
br i1 %114, label %149, label %115
115: ; preds = %31, %28, %113
%116 = phi i64 [ 0, %31 ], [ 0, %28 ], [ %40, %113 ]
%117 = xor i64 %116, -1
%118 = and i64 %29, 1
%119 = icmp eq i64 %118, 0
br i1 %119, label %128, label %120
120: ; preds = %115
%121 = getelementptr inbounds double, double* %19, i64 %116
%122 = load double, double* %121
%123 = shl nuw nsw i64 %116, 1
%124 = getelementptr inbounds double, double* %4, i64 %123
store double %122, double* %124
%125 = or i64 %123, 1
%126 = getelementptr inbounds double, double* %4, i64 %125
store double 0.000000e+00, double* %126
%127 = or i64 %116, 1
br label %128
128: ; preds = %120, %115
%129 = phi i64 [ %116, %115 ], [ %127, %120 ]
%130 = sub nsw i64 0, %29
%131 = icmp eq i64 %117, %130
br i1 %131, label %149, label %132
132: ; preds = %128, %132
%133 = phi i64 [ %147, %132 ], [ %129, %128 ]
%134 = getelementptr inbounds double, double* %19, i64 %133
%135 = load double, double* %134
%136 = shl nuw nsw i64 %133, 1
%137 = getelementptr inbounds double, double* %4, i64 %136
store double %135, double* %137
%138 = or i64 %136, 1
%139 = getelementptr inbounds double, double* %4, i64 %138
store double 0.000000e+00, double* %139
%140 = add nuw nsw i64 %133, 1
%141 = getelementptr inbounds double, double* %19, i64 %140
%142 = load double, double* %141
%143 = shl nuw nsw i64 %140, 1
%144 = getelementptr inbounds double, double* %4, i64 %143
store double %142, double* %144
%145 = or i64 %143, 1
%146 = getelementptr inbounds double, double* %4, i64 %145
store double 0.000000e+00, double* %146
%147 = add nuw nsw i64 %133, 2
%148 = icmp eq i64 %147, %29
br i1 %148, label %149, label %132
149: ; preds = %128, %132, %113, %25
%150 = tail call i32 @free(double* %19)
%151 = tail call i32 @fclose(i32* %8)
br label %152
152: ; preds = %149, %22, %10
ret void
}