#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*/ EXIT_FAILURE;
double **array2d(int, int);
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fillarray2d(double **, int, int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, size_t);
size_t fread(double *, int, int, int /*<<< orphan*/ *);
size_t fwrite(double *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printarray2d(double **, int, int);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  double **bw;
  double **br;
  FILE *file;
  int i, j;
  size_t ret, total;
  assert(argc == 2);
  file = fopen(argv[1], "wb");
  assert(file);
  bw = array2d(8, 8);
  fillarray2d(bw, 8, 8);
  total = 0;
  for (i = 0; i < 8; i++) {
    ret = fwrite(bw[i], sizeof(double), 8, file);
    assert(ret == 8);
    total += ret * sizeof(double);
  }
  fprintf(stdout, "%ld bytes written.\n", total);
  fclose(file);
  file = fopen(argv[1], "rb");
  assert(file);
  br = array2d(8, 8);
  total = 0;
  for (i = 0; i < 8; i++) {
    ret = fread(br[i], sizeof(double), 8, file);
    assert(ret == 8);
    total += ret * sizeof(double);
  }
  fprintf(stdout, "%ld bytes read.\n", total);
  printarray2d(br, 8, 8);
  fclose(file);
  exit(EXIT_FAILURE);
}


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)
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe2a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x8,%esi
mov    %esi,%edi
call   1050 <array2d@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x8,%edx
mov    %edx,%esi
call   1060 <fillarray2d@plt>
movq   $0x0,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    1273 <main+0xd3>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x8,%edx
mov    %edx,%esi
call   10c0 <fwrite@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x8,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x38(%rbp),%rax
shl    $0x3,%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1219 <main+0x79>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
lea    0xd7c(%rip),%rsi
call   1090 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd73(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x8,%esi
mov    %esi,%edi
call   1050 <array2d@plt>
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    1331 <main+0x191>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x8,%edx
mov    %edx,%esi
call   1030 <fread@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x8,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x38(%rbp),%rax
shl    $0x3,%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12d7 <main+0x137>
mov    0x2ca0(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
lea    0xcd5(%rip),%rsi
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x8,%edx
mov    %edx,%esi
call   1070 <printarray2d@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2c76(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,%r14
xor    %eax,%eax
cmp    $0x2,%edi
sete   %al
mov    %eax,%edi
call   1080 <assert@plt>
mov    0x8(%r14),%rdi
lea    0xe3a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
mov    %r15d,%edi
call   1080 <assert@plt>
mov    $0x8,%edi
mov    $0x8,%esi
call   1050 <array2d@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
call   1060 <fillarray2d@plt>
mov    (%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
mov    0x8(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%rbx
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x10(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x18(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x20(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x28(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x30(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r13
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r13,%rbx
mov    0x38(%r12),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
shl    $0x3,%rbx
mov    0x2c77(%rip),%r13
mov    0x0(%r13),%edi
lea    0xc97(%rip),%rsi
mov    %rbx,%rdx
call   1090 <fprintf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    0x8(%r14),%rdi
lea    0xc90(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
mov    %r15d,%edi
call   1080 <assert@plt>
mov    $0x8,%edi
mov    $0x8,%esi
call   1050 <array2d@plt>
mov    %rax,%r14
mov    (%rax),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
mov    0x8(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%rbx
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x10(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x18(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x20(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x28(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x30(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
mov    0x38(%r14),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
mov    %rax,%r12
xor    %edi,%edi
cmp    $0x8,%rax
sete   %dil
call   1080 <assert@plt>
add    %r12,%rbx
shl    $0x3,%rbx
mov    0x0(%r13),%edi
lea    0xb0e(%rip),%rsi
mov    %rbx,%rdx
call   1090 <fprintf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
call   1070 <printarray2d@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    0x2aab(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"wb\00"
@stdout = global i32 0
@.str.1 = [20 x i8] c"%ld bytes written.\0A\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [17 x i8] c"%ld bytes read.\0A\00"
@EXIT_FAILURE = global i32 0
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 i32
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 2
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %20, i32** %8
%21 = load i32*, i32** %8
%22 = ptrtoint i32* %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = call double** @array2d(i32 8, i32 8)
store double** %24, double*** %6
%25 = load double**, double*** %6
%26 = call i32 @fillarray2d(double** %25, i32 8, i32 8)
store i64 0, i64* %12
store i32 0, i32* %9
br label %27
27: ; preds = %46, %2
%28 = load i32, i32* %9
%29 = icmp slt i32 %28, 8
br i1 %29, label %30, label %49
30: ; preds = %27
%31 = load double**, double*** %6
%32 = load i32, i32* %9
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double*, double** %31, i64 %33
%35 = load double*, double** %34
%36 = load i32*, i32** %8
%37 = call i64 @fwrite(double* %35, i32 8, i32 8, i32* %36)
store i64 %37, i64* %11
%38 = load i64, i64* %11
%39 = icmp eq i64 %38, 8
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = load i64, i64* %11
%43 = mul i64 %42, 8
%44 = load i64, i64* %12
%45 = add i64 %44, %43
store i64 %45, i64* %12
br label %46
46: ; preds = %30
%47 = load i32, i32* %9
%48 = add nsw i32 %47, 1
store i32 %48, i32* %9
br label %27
49: ; preds = %27
%50 = load i32, i32* @stdout
%51 = load i64, i64* %12
%52 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 %51)
%53 = load i32*, i32** %8
%54 = call i32 @fclose(i32* %53)
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i32* @fopen(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %58, i32** %8
%59 = load i32*, i32** %8
%60 = ptrtoint i32* %59 to i32
%61 = call i32 @assert(i32 %60)
%62 = call double** @array2d(i32 8, i32 8)
store double** %62, double*** %7
store i64 0, i64* %12
store i32 0, i32* %9
br label %63
63: ; preds = %82, %49
%64 = load i32, i32* %9
%65 = icmp slt i32 %64, 8
br i1 %65, label %66, label %85
66: ; preds = %63
%67 = load double**, double*** %7
%68 = load i32, i32* %9
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double*, double** %67, i64 %69
%71 = load double*, double** %70
%72 = load i32*, i32** %8
%73 = call i64 @fread(double* %71, i32 8, i32 8, i32* %72)
store i64 %73, i64* %11
%74 = load i64, i64* %11
%75 = icmp eq i64 %74, 8
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = load i64, i64* %11
%79 = mul i64 %78, 8
%80 = load i64, i64* %12
%81 = add i64 %80, %79
store i64 %81, i64* %12
br label %82
82: ; preds = %66
%83 = load i32, i32* %9
%84 = add nsw i32 %83, 1
store i32 %84, i32* %9
br label %63
85: ; preds = %63
%86 = load i32, i32* @stdout
%87 = load i64, i64* %12
%88 = call i32 @fprintf(i32 %86, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 %87)
%89 = load double**, double*** %7
%90 = call i32 @printarray2d(double** %89, i32 8, i32 8)
%91 = load i32*, i32** %8
%92 = call i32 @fclose(i32* %91)
%93 = load i32, i32* @EXIT_FAILURE
%94 = call i32 @exit(i32 %93)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"wb\00"
@stdout = global i32 0
@.str.1 = [20 x i8] c"%ld bytes written.\0A\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [17 x i8] c"%ld bytes read.\0A\00"
@EXIT_FAILURE = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32* @fopen(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = ptrtoint i32* %8 to i64
%10 = trunc i64 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = tail call double** @array2d(i32 8, i32 8)
%13 = tail call i32 @fillarray2d(double** %12, i32 8, i32 8)
%14 = load double*, double** %12
%15 = tail call i64 @fwrite(double* %14, i32 8, i32 8, i32* %8)
%16 = icmp eq i64 %15, 8
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = getelementptr inbounds double*, double** %12, i64 1
%20 = load double*, double** %19
%21 = tail call i64 @fwrite(double* %20, i32 8, i32 8, i32* %8)
%22 = icmp eq i64 %21, 8
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = add i64 %21, %15
%26 = getelementptr inbounds double*, double** %12, i64 2
%27 = load double*, double** %26
%28 = tail call i64 @fwrite(double* %27, i32 8, i32 8, i32* %8)
%29 = icmp eq i64 %28, 8
%30 = zext i1 %29 to i32
%31 = tail call i32 @assert(i32 %30)
%32 = add i64 %28, %25
%33 = getelementptr inbounds double*, double** %12, i64 3
%34 = load double*, double** %33
%35 = tail call i64 @fwrite(double* %34, i32 8, i32 8, i32* %8)
%36 = icmp eq i64 %35, 8
%37 = zext i1 %36 to i32
%38 = tail call i32 @assert(i32 %37)
%39 = add i64 %35, %32
%40 = getelementptr inbounds double*, double** %12, i64 4
%41 = load double*, double** %40
%42 = tail call i64 @fwrite(double* %41, i32 8, i32 8, i32* %8)
%43 = icmp eq i64 %42, 8
%44 = zext i1 %43 to i32
%45 = tail call i32 @assert(i32 %44)
%46 = add i64 %42, %39
%47 = getelementptr inbounds double*, double** %12, i64 5
%48 = load double*, double** %47
%49 = tail call i64 @fwrite(double* %48, i32 8, i32 8, i32* %8)
%50 = icmp eq i64 %49, 8
%51 = zext i1 %50 to i32
%52 = tail call i32 @assert(i32 %51)
%53 = add i64 %49, %46
%54 = getelementptr inbounds double*, double** %12, i64 6
%55 = load double*, double** %54
%56 = tail call i64 @fwrite(double* %55, i32 8, i32 8, i32* %8)
%57 = icmp eq i64 %56, 8
%58 = zext i1 %57 to i32
%59 = tail call i32 @assert(i32 %58)
%60 = add i64 %56, %53
%61 = getelementptr inbounds double*, double** %12, i64 7
%62 = load double*, double** %61
%63 = tail call i64 @fwrite(double* %62, i32 8, i32 8, i32* %8)
%64 = icmp eq i64 %63, 8
%65 = zext i1 %64 to i32
%66 = tail call i32 @assert(i32 %65)
%67 = add i64 %63, %60
%68 = shl i64 %67, 3
%69 = load i32, i32* @stdout
%70 = tail call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 %68)
%71 = tail call i32 @fclose(i32* %8)
%72 = load i8*, i8** %6
%73 = tail call i32* @fopen(i8* %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%74 = ptrtoint i32* %73 to i64
%75 = trunc i64 %74 to i32
%76 = tail call i32 @assert(i32 %75)
%77 = tail call double** @array2d(i32 8, i32 8)
%78 = load double*, double** %77
%79 = tail call i64 @fread(double* %78, i32 8, i32 8, i32* %73)
%80 = icmp eq i64 %79, 8
%81 = zext i1 %80 to i32
%82 = tail call i32 @assert(i32 %81)
%83 = getelementptr inbounds double*, double** %77, i64 1
%84 = load double*, double** %83
%85 = tail call i64 @fread(double* %84, i32 8, i32 8, i32* %73)
%86 = icmp eq i64 %85, 8
%87 = zext i1 %86 to i32
%88 = tail call i32 @assert(i32 %87)
%89 = add i64 %85, %79
%90 = getelementptr inbounds double*, double** %77, i64 2
%91 = load double*, double** %90
%92 = tail call i64 @fread(double* %91, i32 8, i32 8, i32* %73)
%93 = icmp eq i64 %92, 8
%94 = zext i1 %93 to i32
%95 = tail call i32 @assert(i32 %94)
%96 = add i64 %92, %89
%97 = getelementptr inbounds double*, double** %77, i64 3
%98 = load double*, double** %97
%99 = tail call i64 @fread(double* %98, i32 8, i32 8, i32* %73)
%100 = icmp eq i64 %99, 8
%101 = zext i1 %100 to i32
%102 = tail call i32 @assert(i32 %101)
%103 = add i64 %99, %96
%104 = getelementptr inbounds double*, double** %77, i64 4
%105 = load double*, double** %104
%106 = tail call i64 @fread(double* %105, i32 8, i32 8, i32* %73)
%107 = icmp eq i64 %106, 8
%108 = zext i1 %107 to i32
%109 = tail call i32 @assert(i32 %108)
%110 = add i64 %106, %103
%111 = getelementptr inbounds double*, double** %77, i64 5
%112 = load double*, double** %111
%113 = tail call i64 @fread(double* %112, i32 8, i32 8, i32* %73)
%114 = icmp eq i64 %113, 8
%115 = zext i1 %114 to i32
%116 = tail call i32 @assert(i32 %115)
%117 = add i64 %113, %110
%118 = getelementptr inbounds double*, double** %77, i64 6
%119 = load double*, double** %118
%120 = tail call i64 @fread(double* %119, i32 8, i32 8, i32* %73)
%121 = icmp eq i64 %120, 8
%122 = zext i1 %121 to i32
%123 = tail call i32 @assert(i32 %122)
%124 = add i64 %120, %117
%125 = getelementptr inbounds double*, double** %77, i64 7
%126 = load double*, double** %125
%127 = tail call i64 @fread(double* %126, i32 8, i32 8, i32* %73)
%128 = icmp eq i64 %127, 8
%129 = zext i1 %128 to i32
%130 = tail call i32 @assert(i32 %129)
%131 = add i64 %127, %124
%132 = shl i64 %131, 3
%133 = load i32, i32* @stdout
%134 = tail call i32 @fprintf(i32 %133, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 %132)
%135 = tail call i32 @printarray2d(double** %77, i32 8, i32 8)
%136 = tail call i32 @fclose(i32* %73)
%137 = load i32, i32* @EXIT_FAILURE
%138 = tail call i32 @exit(i32 %137)
unreachable
}