#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ read_csv_file(int /*<<< orphan*/ *, int, int, double *);
int /*<<< orphan*/ write_csv_file(int /*<<< orphan*/ *, int, double *);
int test_csv_IO() {
  double x[10];
  double y[10];
  double z[10];
  double mat[30];
  int i, j;
  FILE *csvfile;
  csvfile = fopen("csv_file.dat", "w");
  for (i = 0; i < 10; ++i) {
    x[i] = (double)i;
    y[i] = (double)i * 2;
    z[i] = (double)i * 3;
  }
  write_csv_file(csvfile, 10, x);
  write_csv_file(csvfile, 10, y);
  write_csv_file(csvfile, 10, z);
  fclose(csvfile);
  for (i = 0; i < 30; ++i) {
    mat[i] = 0;
  }
  csvfile = fopen("csv_file.dat", "r");
  read_csv_file(csvfile, 3, 10, mat);
  for (i = 0; i < 3; ++i) {
    for (j = 0; j < 10; ++j) {
      if (mat[i * (int)10 + j] != (double)j * (i + 1))
        return EXIT_FAILURE;
    }
  }
  fclose(csvfile);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<test_csv_IO>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
lea    0xebe(%rip),%rdi
lea    0xec4(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x200(%rbp)
movl   $0x0,-0x1f4(%rbp)
cmpl   $0xa,-0x1f4(%rbp)
jge    11ed <test_csv_IO+0xad>
cvtsi2sdl -0x1f4(%rbp),%xmm0
ff
movslq -0x1f4(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
cvtsi2sdl -0x1f4(%rbp),%xmm0
ff
movsd  0xe67(%rip),%xmm1
mulsd  %xmm1,%xmm0
movslq -0x1f4(%rbp),%rax
movsd  %xmm0,-0xb0(%rbp,%rax,8)
ff ff
cvtsi2sdl -0x1f4(%rbp),%xmm0
ff
movsd  0xe3b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movslq -0x1f4(%rbp),%rax
movsd  %xmm0,-0x100(%rbp,%rax,8)
ff ff
mov    -0x1f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f4(%rbp)
jmp    116f <test_csv_IO+0x2f>
mov    -0x200(%rbp),%rdi
lea    -0x60(%rbp),%rdx
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
mov    -0x200(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
mov    -0x200(%rbp),%rdi
lea    -0x100(%rbp),%rdx
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
mov    -0x200(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x1f4(%rbp)
cmpl   $0x1e,-0x1f4(%rbp)
jge    127c <test_csv_IO+0x13c>
movslq -0x1f4(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1f0(%rbp,%rax,8)
ff ff
mov    -0x1f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f4(%rbp)
jmp    1248 <test_csv_IO+0x108>
lea    0xd8d(%rip),%rdi
lea    0xd95(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x200(%rbp)
mov    -0x200(%rbp),%rdi
lea    -0x1f0(%rbp),%rcx
mov    $0x3,%esi
mov    $0xa,%edx
call   1040 <read_csv_file@plt>
movl   $0x0,-0x1f4(%rbp)
cmpl   $0x3,-0x1f4(%rbp)
jge    136a <test_csv_IO+0x22a>
movl   $0x0,-0x1f8(%rbp)
cmpl   $0xa,-0x1f8(%rbp)
jge    1351 <test_csv_IO+0x211>
imul   $0xa,-0x1f4(%rbp),%eax
add    -0x1f8(%rbp),%eax
cltq
movsd  -0x1f0(%rbp,%rax,8),%xmm0
ff ff
cvtsi2sdl -0x1f8(%rbp),%xmm1
mov    -0x1f4(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    1327 <test_csv_IO+0x1e7>
jp     1327 <test_csv_IO+0x1e7>
jmp    1338 <test_csv_IO+0x1f8>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1382 <test_csv_IO+0x242>
jmp    133d <test_csv_IO+0x1fd>
mov    -0x1f8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f8(%rbp)
jmp    12d4 <test_csv_IO+0x194>
jmp    1356 <test_csv_IO+0x216>
mov    -0x1f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f4(%rbp)
jmp    12bd <test_csv_IO+0x17d>
mov    -0x200(%rbp),%rdi
call   1030 <fclose@plt>
mov    0x2c5b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_csv_IO>:
push   %r14
push   %rbx
sub    $0x1e8,%rsp
lea    0xfff(%rip),%r14
lea    0x1005(%rip),%rsi
mov    %r14,%rdi
call   1050 <fopen@plt>
mov    %rax,%rbx
xorps  %xmm0,%xmm0
movhps 0xe93(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
xorps  %xmm0,%xmm0
movhps 0xe89(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
xorps  %xmm0,%xmm0
movhps 0xe7f(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xef3(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xef4(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xef8(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xefb(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
lea    0x190(%rsp),%rdx
mov    %rax,%rdi
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
lea    0x140(%rsp),%rdx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
lea    0xf0(%rsp),%rdx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1060 <write_csv_file@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
lea    0xe62(%rip),%rsi
mov    %r14,%rdi
call   1050 <fopen@plt>
mov    %rax,%rbx
mov    %rsp,%rcx
mov    %rax,%rdi
mov    $0x3,%esi
mov    $0xa,%edx
call   1040 <read_csv_file@plt>
movsd  (%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x2caf(%rip),%rax
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x8(%rsp),%xmm0
ucomisd 0xcb5(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x10(%rsp),%xmm0
ucomisd 0xca3(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x18(%rsp),%xmm0
ucomisd 0xc91(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x20(%rsp),%xmm0
ucomisd 0xc7f(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x28(%rsp),%xmm0
ucomisd 0xc6d(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x30(%rsp),%xmm0
ucomisd 0xc5b(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x38(%rsp),%xmm0
ucomisd 0xc49(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x40(%rsp),%xmm0
ucomisd 0xc37(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x48(%rsp),%xmm0
ucomisd 0xc25(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x50(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x58(%rsp),%xmm0
ucomisd 0xbb9(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x60(%rsp),%xmm0
ucomisd 0xbaf(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x68(%rsp),%xmm0
ucomisd 0xba5(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x70(%rsp),%xmm0
ucomisd 0xb9b(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x78(%rsp),%xmm0
ucomisd 0xb91(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x80(%rsp),%xmm0
ucomisd 0xb7c(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x88(%rsp),%xmm0
ucomisd 0xb67(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x90(%rsp),%xmm0
ucomisd 0xb52(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0x98(%rsp),%xmm0
ucomisd 0xb3d(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xa0(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xa8(%rsp),%xmm0
ucomisd 0xaab(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xb0(%rsp),%xmm0
ucomisd 0xaa6(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xb8(%rsp),%xmm0
ucomisd 0xaa1(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xc0(%rsp),%xmm0
ucomisd 0xa94(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xc8(%rsp),%xmm0
ucomisd 0xa9f(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xd0(%rsp),%xmm0
ucomisd 0xa82(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xd8(%rsp),%xmm0
ucomisd 0xa7d(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xe0(%rsp),%xmm0
ucomisd 0xa70(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
movsd  0xe8(%rsp),%xmm0
ucomisd 0xa63(%rip),%xmm0
jne    1638 <test_csv_IO+0x4f8>
jp     1638 <test_csv_IO+0x4f8>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    0x29a0(%rip),%rax
mov    (%rax),%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [13 x i8] c"csv_file.dat\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"r\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @test_csv_IO() {
%1 = alloca i32
%2 = alloca [10 x double]
%3 = alloca [10 x double]
%4 = alloca [10 x double]
%5 = alloca [30 x double]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %9, i32** %8
store i32 0, i32* %6
br label %10
10: ; preds = %31, %0
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %34
13: ; preds = %10
%14 = load i32, i32* %6
%15 = sitofp i32 %14 to double
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %17
store double %15, double* %18
%19 = load i32, i32* %6
%20 = sitofp i32 %19 to double
%21 = fmul double %20, 2.000000e+00
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %23
store double %21, double* %24
%25 = load i32, i32* %6
%26 = sitofp i32 %25 to double
%27 = fmul double %26, 3.000000e+00
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x double], [10 x double]* %4, i64 0, i64 %29
store double %27, double* %30
br label %31
31: ; preds = %13
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %10
34: ; preds = %10
%35 = load i32*, i32** %8
%36 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 0
%37 = call i32 @write_csv_file(i32* %35, i32 10, double* %36)
%38 = load i32*, i32** %8
%39 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 0
%40 = call i32 @write_csv_file(i32* %38, i32 10, double* %39)
%41 = load i32*, i32** %8
%42 = getelementptr inbounds [10 x double], [10 x double]* %4, i64 0, i64 0
%43 = call i32 @write_csv_file(i32* %41, i32 10, double* %42)
%44 = load i32*, i32** %8
%45 = call i32 @fclose(i32* %44)
store i32 0, i32* %6
br label %46
46: ; preds = %53, %34
%47 = load i32, i32* %6
%48 = icmp slt i32 %47, 30
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [30 x double], [30 x double]* %5, i64 0, i64 %51
store double 0.000000e+00, double* %52
br label %53
53: ; preds = %49
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
store i32 %55, i32* %6
br label %46
56: ; preds = %46
%57 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %57, i32** %8
%58 = load i32*, i32** %8
%59 = getelementptr inbounds [30 x double], [30 x double]* %5, i64 0, i64 0
%60 = call i32 @read_csv_file(i32* %58, i32 3, i32 10, double* %59)
store i32 0, i32* %6
br label %61
61: ; preds = %90, %56
%62 = load i32, i32* %6
%63 = icmp slt i32 %62, 3
br i1 %63, label %64, label %93
64: ; preds = %61
store i32 0, i32* %7
br label %65
65: ; preds = %86, %64
%66 = load i32, i32* %7
%67 = icmp slt i32 %66, 10
br i1 %67, label %68, label %89
68: ; preds = %65
%69 = load i32, i32* %6
%70 = mul nsw i32 %69, 10
%71 = load i32, i32* %7
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [30 x double], [30 x double]* %5, i64 0, i64 %73
%75 = load double, double* %74
%76 = load i32, i32* %7
%77 = sitofp i32 %76 to double
%78 = load i32, i32* %6
%79 = add nsw i32 %78, 1
%80 = sitofp i32 %79 to double
%81 = fmul double %77, %80
%82 = fcmp une double %75, %81
br i1 %82, label %83, label %85
83: ; preds = %68
%84 = load i32, i32* @EXIT_FAILURE
store i32 %84, i32* %1
br label %97
85: ; preds = %68
br label %86
86: ; preds = %85
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
br label %65
89: ; preds = %65
br label %90
90: ; preds = %89
%91 = load i32, i32* %6
%92 = add nsw i32 %91, 1
store i32 %92, i32* %6
br label %61
93: ; preds = %61
%94 = load i32*, i32** %8
%95 = call i32 @fclose(i32* %94)
%96 = load i32, i32* @EXIT_SUCCESS
store i32 %96, i32* %1
br label %97
97: ; preds = %93, %83
%98 = load i32, i32* %1
ret i32 %98
}

LLVM IR (-O2):
@.str = [13 x i8] c"csv_file.dat\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"r\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @test_csv_IO() {
%1 = alloca [10 x double]
%2 = alloca [10 x double]
%3 = alloca [10 x double]
%4 = alloca [30 x double]
%5 = bitcast [30 x double]* %4 to i8*
%6 = bitcast [10 x double]* %1 to i8*
%7 = bitcast [10 x double]* %2 to i8*
%8 = bitcast [10 x double]* %3 to i8*
%9 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 0
%11 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 0
%12 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 0
%13 = bitcast [10 x double]* %1 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 1.000000e+00>, <2 x double>* %13
%14 = bitcast [10 x double]* %2 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 2.000000e+00>, <2 x double>* %14
%15 = bitcast [10 x double]* %3 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 3.000000e+00>, <2 x double>* %15
%16 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 2
%17 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 2
%18 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 2
%19 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 3.000000e+00>, <2 x double>* %19
%20 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 6.000000e+00>, <2 x double>* %20
%21 = bitcast double* %18 to <2 x double>*
store <2 x double> <double 6.000000e+00, double 9.000000e+00>, <2 x double>* %21
%22 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 4
%23 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 4
%24 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 4
%25 = bitcast double* %22 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 5.000000e+00>, <2 x double>* %25
%26 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 8.000000e+00, double 1.000000e+01>, <2 x double>* %26
%27 = bitcast double* %24 to <2 x double>*
store <2 x double> <double 1.200000e+01, double 1.500000e+01>, <2 x double>* %27
%28 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 6
%29 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 6
%30 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 6
%31 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 6.000000e+00, double 7.000000e+00>, <2 x double>* %31
%32 = bitcast double* %29 to <2 x double>*
store <2 x double> <double 1.200000e+01, double 1.400000e+01>, <2 x double>* %32
%33 = bitcast double* %30 to <2 x double>*
store <2 x double> <double 1.800000e+01, double 2.100000e+01>, <2 x double>* %33
%34 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 8
%35 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 8
%36 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 8
%37 = bitcast double* %34 to <2 x double>*
store <2 x double> <double 8.000000e+00, double 9.000000e+00>, <2 x double>* %37
%38 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 1.600000e+01, double 1.800000e+01>, <2 x double>* %38
%39 = bitcast double* %36 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.700000e+01>, <2 x double>* %39
%40 = call i32 @write_csv_file(i32* %9, i32 10, double* %10)
%41 = call i32 @write_csv_file(i32* %9, i32 10, double* %11)
%42 = call i32 @write_csv_file(i32* %9, i32 10, double* %12)
%43 = call i32 @fclose(i32* %9)
%44 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 0
%46 = call i32 @read_csv_file(i32* %44, i32 3, i32 10, double* %45)
%47 = load double, double* %45
%48 = fcmp une double %47, 0.000000e+00
%49 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 1
%50 = load double, double* %49
%51 = fcmp une double %50, 1.000000e+00
%52 = select i1 %48, i1 true, i1 %51
%53 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 2
%54 = load double, double* %53
%55 = fcmp une double %54, 2.000000e+00
%56 = select i1 %52, i1 true, i1 %55
%57 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 3
%58 = load double, double* %57
%59 = fcmp une double %58, 3.000000e+00
%60 = select i1 %56, i1 true, i1 %59
%61 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 4
%62 = load double, double* %61
%63 = fcmp une double %62, 4.000000e+00
%64 = select i1 %60, i1 true, i1 %63
%65 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 5
%66 = load double, double* %65
%67 = fcmp une double %66, 5.000000e+00
%68 = select i1 %64, i1 true, i1 %67
%69 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 6
%70 = load double, double* %69
%71 = fcmp une double %70, 6.000000e+00
%72 = select i1 %68, i1 true, i1 %71
%73 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 7
%74 = load double, double* %73
%75 = fcmp une double %74, 7.000000e+00
%76 = select i1 %72, i1 true, i1 %75
%77 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 8
%78 = load double, double* %77
%79 = fcmp une double %78, 8.000000e+00
%80 = select i1 %76, i1 true, i1 %79
%81 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 9
%82 = load double, double* %81
%83 = fcmp une double %82, 9.000000e+00
%84 = select i1 %80, i1 true, i1 %83
%85 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 10
%86 = load double, double* %85
%87 = fcmp une double %86, 0.000000e+00
%88 = select i1 %84, i1 true, i1 %87
%89 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 11
%90 = load double, double* %89
%91 = fcmp une double %90, 2.000000e+00
%92 = select i1 %88, i1 true, i1 %91
%93 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 12
%94 = load double, double* %93
%95 = fcmp une double %94, 4.000000e+00
%96 = select i1 %92, i1 true, i1 %95
%97 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 13
%98 = load double, double* %97
%99 = fcmp une double %98, 6.000000e+00
%100 = select i1 %96, i1 true, i1 %99
%101 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 14
%102 = load double, double* %101
%103 = fcmp une double %102, 8.000000e+00
%104 = select i1 %100, i1 true, i1 %103
%105 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 15
%106 = load double, double* %105
%107 = fcmp une double %106, 1.000000e+01
%108 = select i1 %104, i1 true, i1 %107
%109 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 16
%110 = load double, double* %109
%111 = fcmp une double %110, 1.200000e+01
%112 = select i1 %108, i1 true, i1 %111
%113 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 17
%114 = load double, double* %113
%115 = fcmp une double %114, 1.400000e+01
%116 = select i1 %112, i1 true, i1 %115
%117 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 18
%118 = load double, double* %117
%119 = fcmp une double %118, 1.600000e+01
%120 = select i1 %116, i1 true, i1 %119
%121 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 19
%122 = load double, double* %121
%123 = fcmp une double %122, 1.800000e+01
%124 = select i1 %120, i1 true, i1 %123
%125 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 20
%126 = load double, double* %125
%127 = fcmp une double %126, 0.000000e+00
%128 = select i1 %124, i1 true, i1 %127
%129 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 21
%130 = load double, double* %129
%131 = fcmp une double %130, 3.000000e+00
%132 = select i1 %128, i1 true, i1 %131
%133 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 22
%134 = load double, double* %133
%135 = fcmp une double %134, 6.000000e+00
%136 = select i1 %132, i1 true, i1 %135
%137 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 23
%138 = load double, double* %137
%139 = fcmp une double %138, 9.000000e+00
%140 = select i1 %136, i1 true, i1 %139
%141 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 24
%142 = load double, double* %141
%143 = fcmp une double %142, 1.200000e+01
%144 = select i1 %140, i1 true, i1 %143
%145 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 25
%146 = load double, double* %145
%147 = fcmp une double %146, 1.500000e+01
%148 = select i1 %144, i1 true, i1 %147
%149 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 26
%150 = load double, double* %149
%151 = fcmp une double %150, 1.800000e+01
%152 = select i1 %148, i1 true, i1 %151
%153 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 27
%154 = load double, double* %153
%155 = fcmp une double %154, 2.100000e+01
%156 = select i1 %152, i1 true, i1 %155
%157 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 28
%158 = load double, double* %157
%159 = fcmp une double %158, 2.400000e+01
%160 = select i1 %156, i1 true, i1 %159
%161 = getelementptr inbounds [30 x double], [30 x double]* %4, i64 0, i64 29
%162 = load double, double* %161
%163 = fcmp une double %162, 2.700000e+01
%164 = select i1 %160, i1 true, i1 %163
br i1 %164, label %167, label %165
165: ; preds = %0
%166 = call i32 @fclose(i32* %44)
br label %167
167: ; preds = %0, %165
%168 = phi i32* [ @EXIT_SUCCESS, %165 ], [ @EXIT_FAILURE, %0 ]
%169 = load i32, i32* %168
ret i32 %169
}