#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 */
scalar_t__ calloc(unsigned int, int);
int /*<<< orphan*/ printf(char *);
double ****dmatrix4d(int nbl, int nbh, int nsl, int nsh, int nrl, int nrh,
                     int ncl, int nch) {
  int i, j, k;
  double ****m;
  m = (double ****)calloc((unsigned)(nbh - nbl + 1), sizeof(double ***));
  if (!m)
    printf("allocation failure 1 in dmatrix4d()");
  m -= nbl;
  for (k = nbl; k <= nbh; k++) {
    m[k] = (double ***)calloc((unsigned)(nsh - nsl + 1), sizeof(double **));
    if (!m[k])
      printf("allocation failure 2 in dmatrix4d()");
    m[k] -= nsl;
    for (j = nsl; j <= nsh; j++) {
      m[k][j] = (double **)calloc((unsigned)(nrh - nrl + 1), sizeof(double *));
      if (!m[k][j])
        printf("allocation failure 3 in dmatrix4d()");
      m[k][j] -= nrl;
      for (i = nrl; i <= nrh; i++) {
        m[k][j][i] =
            (double *)calloc((unsigned)(nch - ncl + 1), sizeof(double));
        if (!m[k][j][i])
          printf("allocation failure 4 in dmatrix4d()");
        m[k][j][i] -= ncl;
      }
    }
  }
  return m;
}


x86 assembly (clang, -O0):
<dmatrix4d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x8(%rbp),%edi
sub    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1170 <dmatrix4d+0x50>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1365 <dmatrix4d+0x245>
mov    -0x10(%rbp),%edi
sub    -0xc(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    11dd <dmatrix4d+0xbd>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq %esi,%rdi
xor    %esi,%esi
sub    %rdi,%rsi
shl    $0x3,%rsi
add    %rsi,%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1352 <dmatrix4d+0x232>
mov    -0x18(%rbp),%edi
sub    -0x14(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    1262 <dmatrix4d+0x142>
lea    0xdeb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq %esi,%rdi
xor    %esi,%esi
sub    %rdi,%rsi
shl    $0x3,%rsi
add    %rsi,%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     133f <dmatrix4d+0x21f>
mov    0x18(%rbp),%edi
sub    0x10(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    12ff <dmatrix4d+0x1df>
lea    0xd72(%rip),%rdi
call   1030 <printf@plt>
mov    0x10(%rbp),%esi
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq %esi,%rdi
xor    %esi,%esi
sub    %rdi,%rsi
shl    $0x3,%rsi
add    %rsi,%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1292 <dmatrix4d+0x172>
jmp    1344 <dmatrix4d+0x224>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1205 <dmatrix4d+0xe5>
jmp    1357 <dmatrix4d+0x237>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1190 <dmatrix4d+0x70>
mov    -0x30(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dmatrix4d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9d,0x8(%rsp)
mov    %r8d,0x4(%rsp)
mov    %rcx,0x20(%rsp)
mov    %edx,(%rsp)
mov    %esi,%r15d
mov    %edi,%r14d
mov    %esi,%edi
sub    %r14d,%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    116c <dmatrix4d+0x4c>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
movslq %r14d,%r12
lea    0x0(,%r12,8),%rax
sub    %rax,%rbx
cmp    %r15d,%r14d
jle    1191 <dmatrix4d+0x71>
mov    %rbx,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x88(%rsp),%edi
mov    0x80(%rsp),%eax
mov    0x20(%rsp),%rdx
mov    %edx,%esi
mov    (%rsp),%ecx
sub    %ecx,%esi
add    $0x1,%esi
mov    %esi,0x10(%rsp)
movslq %ecx,%rcx
mov    %rcx,0x28(%rsp)
neg    %rcx
mov    %rcx,0x30(%rsp)
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%ecx
sub    %ecx,%esi
add    $0x1,%esi
mov    %esi,0xc(%rsp)
movslq %ecx,%rcx
mov    %rcx,0x38(%rsp)
neg    %rcx
mov    %rcx,0x40(%rsp)
sub    %eax,%edi
add    $0x1,%edi
mov    %edi,0x1c(%rsp)
movslq %eax,%rbp
neg    %rbp
lea    0x1(%rdx),%eax
mov    %eax,0x18(%rsp)
add    $0x1,%r15d
mov    %r15d,0x14(%rsp)
jmp    1222 <dmatrix4d+0x102>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r12
mov    0x14(%rsp),%r15d
cmp    %r12d,%r15d
je     117f <dmatrix4d+0x5f>
mov    0x10(%rsp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,(%rbx,%r12,8)
test   %rax,%rax
jne    1249 <dmatrix4d+0x129>
lea    0xde4(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx,%r12,8),%rax
mov    0x30(%rsp),%rcx
lea    (%rax,%rcx,8),%rax
mov    %rax,(%rbx,%r12,8)
mov    (%rsp),%eax
cmp    0x20(%rsp),%eax
jg     1210 <dmatrix4d+0xf0>
mov    0x28(%rsp),%r13
jmp    127b <dmatrix4d+0x15b>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    %r13d,0x18(%rsp)
je     1210 <dmatrix4d+0xf0>
mov    0xc(%rsp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    (%rbx,%r12,8),%rcx
mov    %rax,(%rcx,%r13,8)
mov    (%rbx,%r12,8),%rax
mov    (%rax,%r13,8),%rcx
test   %rcx,%rcx
jne    12b2 <dmatrix4d+0x192>
lea    0xda3(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx,%r12,8),%rax
mov    (%rax,%r13,8),%rcx
mov    0x40(%rsp),%rdx
lea    (%rcx,%rdx,8),%rcx
mov    %rcx,(%rax,%r13,8)
mov    0x4(%rsp),%eax
cmp    0x8(%rsp),%eax
jg     1270 <dmatrix4d+0x150>
mov    0xc(%rsp),%r15d
mov    0x38(%rsp),%r14
jmp    12f6 <dmatrix4d+0x1d6>
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%rcx,%rbp,8),%rcx
mov    %rcx,(%rax,%r14,8)
add    $0x1,%r14
add    $0xffffffff,%r15d
je     1270 <dmatrix4d+0x150>
mov    0x1c(%rsp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    (%rbx,%r12,8),%rcx
mov    (%rcx,%r13,8),%rcx
mov    %rax,(%rcx,%r14,8)
mov    (%rbx,%r12,8),%rax
mov    (%rax,%r13,8),%rax
mov    (%rax,%r14,8),%rcx
test   %rcx,%rcx
jne    12e0 <dmatrix4d+0x1c0>
lea    0xd44(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx,%r12,8),%rax
mov    (%rax,%r13,8),%rax
mov    (%rax,%r14,8),%rcx
jmp    12e0 <dmatrix4d+0x1c0>

LLVM IR (-O0):
@.str = [36 x i8] c"allocation failure 1 in dmatrix4d()\00"
@.str.1 = [36 x i8] c"allocation failure 2 in dmatrix4d()\00"
@.str.2 = [36 x i8] c"allocation failure 3 in dmatrix4d()\00"
@.str.3 = [36 x i8] c"allocation failure 4 in dmatrix4d()\00"
define double**** @dmatrix4d(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca double****
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%21 = load i32, i32* %10
%22 = load i32, i32* %9
%23 = sub nsw i32 %21, %22
%24 = add nsw i32 %23, 1
%25 = call i64 @calloc(i32 %24, i32 8)
%26 = inttoptr i64 %25 to double****
store double**** %26, double***** %20
%27 = load double****, double***** %20
%28 = icmp ne double**** %27, null
br i1 %28, label %31, label %29
29: ; preds = %8
%30 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
br label %31
31: ; preds = %29, %8
%32 = load i32, i32* %9
%33 = load double****, double***** %20
%34 = sext i32 %32 to i64
%35 = sub i64 0, %34
%36 = getelementptr inbounds double***, double**** %33, i64 %35
store double**** %36, double***** %20
%37 = load i32, i32* %9
store i32 %37, i32* %19
br label %38
38: ; preds = %183, %31
%39 = load i32, i32* %19
%40 = load i32, i32* %10
%41 = icmp sle i32 %39, %40
br i1 %41, label %42, label %186
42: ; preds = %38
%43 = load i32, i32* %12
%44 = load i32, i32* %11
%45 = sub nsw i32 %43, %44
%46 = add nsw i32 %45, 1
%47 = call i64 @calloc(i32 %46, i32 8)
%48 = inttoptr i64 %47 to double***
%49 = load double****, double***** %20
%50 = load i32, i32* %19
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double***, double**** %49, i64 %51
store double*** %48, double**** %52
%53 = load double****, double***** %20
%54 = load i32, i32* %19
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double***, double**** %53, i64 %55
%57 = load double***, double**** %56
%58 = icmp ne double*** %57, null
br i1 %58, label %61, label %59
59: ; preds = %42
%60 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
br label %61
61: ; preds = %59, %42
%62 = load i32, i32* %11
%63 = load double****, double***** %20
%64 = load i32, i32* %19
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double***, double**** %63, i64 %65
%67 = load double***, double**** %66
%68 = sext i32 %62 to i64
%69 = sub i64 0, %68
%70 = getelementptr inbounds double**, double*** %67, i64 %69
store double*** %70, double**** %66
%71 = load i32, i32* %11
store i32 %71, i32* %18
br label %72
72: ; preds = %179, %61
%73 = load i32, i32* %18
%74 = load i32, i32* %12
%75 = icmp sle i32 %73, %74
br i1 %75, label %76, label %182
76: ; preds = %72
%77 = load i32, i32* %14
%78 = load i32, i32* %13
%79 = sub nsw i32 %77, %78
%80 = add nsw i32 %79, 1
%81 = call i64 @calloc(i32 %80, i32 8)
%82 = inttoptr i64 %81 to double**
%83 = load double****, double***** %20
%84 = load i32, i32* %19
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double***, double**** %83, i64 %85
%87 = load double***, double**** %86
%88 = load i32, i32* %18
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double**, double*** %87, i64 %89
store double** %82, double*** %90
%91 = load double****, double***** %20
%92 = load i32, i32* %19
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double***, double**** %91, i64 %93
%95 = load double***, double**** %94
%96 = load i32, i32* %18
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double**, double*** %95, i64 %97
%99 = load double**, double*** %98
%100 = icmp ne double** %99, null
br i1 %100, label %103, label %101
101: ; preds = %76
%102 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
br label %103
103: ; preds = %101, %76
%104 = load i32, i32* %13
%105 = load double****, double***** %20
%106 = load i32, i32* %19
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double***, double**** %105, i64 %107
%109 = load double***, double**** %108
%110 = load i32, i32* %18
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double**, double*** %109, i64 %111
%113 = load double**, double*** %112
%114 = sext i32 %104 to i64
%115 = sub i64 0, %114
%116 = getelementptr inbounds double*, double** %113, i64 %115
store double** %116, double*** %112
%117 = load i32, i32* %13
store i32 %117, i32* %17
br label %118
118: ; preds = %175, %103
%119 = load i32, i32* %17
%120 = load i32, i32* %14
%121 = icmp sle i32 %119, %120
br i1 %121, label %122, label %178
122: ; preds = %118
%123 = load i32, i32* %16
%124 = load i32, i32* %15
%125 = sub nsw i32 %123, %124
%126 = add nsw i32 %125, 1
%127 = call i64 @calloc(i32 %126, i32 8)
%128 = inttoptr i64 %127 to double*
%129 = load double****, double***** %20
%130 = load i32, i32* %19
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double***, double**** %129, i64 %131
%133 = load double***, double**** %132
%134 = load i32, i32* %18
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double**, double*** %133, i64 %135
%137 = load double**, double*** %136
%138 = load i32, i32* %17
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double*, double** %137, i64 %139
store double* %128, double** %140
%141 = load double****, double***** %20
%142 = load i32, i32* %19
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double***, double**** %141, i64 %143
%145 = load double***, double**** %144
%146 = load i32, i32* %18
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double**, double*** %145, i64 %147
%149 = load double**, double*** %148
%150 = load i32, i32* %17
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double*, double** %149, i64 %151
%153 = load double*, double** %152
%154 = icmp ne double* %153, null
br i1 %154, label %157, label %155
155: ; preds = %122
%156 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
br label %157
157: ; preds = %155, %122
%158 = load i32, i32* %15
%159 = load double****, double***** %20
%160 = load i32, i32* %19
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double***, double**** %159, i64 %161
%163 = load double***, double**** %162
%164 = load i32, i32* %18
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double**, double*** %163, i64 %165
%167 = load double**, double*** %166
%168 = load i32, i32* %17
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double*, double** %167, i64 %169
%171 = load double*, double** %170
%172 = sext i32 %158 to i64
%173 = sub i64 0, %172
%174 = getelementptr inbounds double, double* %171, i64 %173
store double* %174, double** %170
br label %175
175: ; preds = %157
%176 = load i32, i32* %17
%177 = add nsw i32 %176, 1
store i32 %177, i32* %17
br label %118
178: ; preds = %118
br label %179
179: ; preds = %178
%180 = load i32, i32* %18
%181 = add nsw i32 %180, 1
store i32 %181, i32* %18
br label %72
182: ; preds = %72
br label %183
183: ; preds = %182
%184 = load i32, i32* %19
%185 = add nsw i32 %184, 1
store i32 %185, i32* %19
br label %38
186: ; preds = %38
%187 = load double****, double***** %20
ret double**** %187
}

LLVM IR (-O2):
@.str = [36 x i8] c"allocation failure 1 in dmatrix4d()\00"
@.str.1 = [36 x i8] c"allocation failure 2 in dmatrix4d()\00"
@.str.2 = [36 x i8] c"allocation failure 3 in dmatrix4d()\00"
@.str.3 = [36 x i8] c"allocation failure 4 in dmatrix4d()\00"
define double**** @dmatrix4d(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = sub i32 1, %0
%10 = add i32 %9, %1
%11 = tail call i64 @calloc(i32 %10, i32 8)
%12 = inttoptr i64 %11 to double****
%13 = icmp eq i64 %11, 0
br i1 %13, label %14, label %16
14: ; preds = %8
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
br label %16
16: ; preds = %14, %8
%17 = sext i32 %0 to i64
%18 = sub nsw i64 0, %17
%19 = getelementptr inbounds double***, double**** %12, i64 %18
%20 = icmp sgt i32 %0, %1
br i1 %20, label %108, label %21
21: ; preds = %16
%22 = sub i32 1, %2
%23 = add i32 %22, %3
%24 = sext i32 %2 to i64
%25 = sub nsw i64 0, %24
%26 = icmp sgt i32 %2, %3
%27 = sub i32 1, %4
%28 = add i32 %27, %5
%29 = sext i32 %4 to i64
%30 = sub nsw i64 0, %29
%31 = icmp sgt i32 %4, %5
%32 = sub i32 1, %6
%33 = add i32 %32, %7
%34 = sext i32 %6 to i64
%35 = sub nsw i64 0, %34
%36 = add i32 %5, 1
%37 = add i32 %3, 1
%38 = add i32 %1, 1
br label %39
39: ; preds = %21, %104
%40 = phi i64 [ %17, %21 ], [ %105, %104 ]
%41 = tail call i64 @calloc(i32 %23, i32 8)
%42 = inttoptr i64 %41 to double***
%43 = getelementptr inbounds double***, double**** %19, i64 %40
store double*** %42, double**** %43
%44 = icmp eq i64 %41, 0
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%47 = load double***, double**** %43
br label %48
48: ; preds = %45, %39
%49 = phi double*** [ %47, %45 ], [ %42, %39 ]
%50 = getelementptr inbounds double**, double*** %49, i64 %25
store double*** %50, double**** %43
br i1 %26, label %104, label %51
51: ; preds = %48, %100
%52 = phi i64 [ %101, %100 ], [ %24, %48 ]
%53 = tail call i64 @calloc(i32 %28, i32 8)
%54 = inttoptr i64 %53 to double**
%55 = load double***, double**** %43
%56 = getelementptr inbounds double**, double*** %55, i64 %52
store double** %54, double*** %56
%57 = load double***, double**** %43
%58 = getelementptr inbounds double**, double*** %57, i64 %52
%59 = load double**, double*** %58
%60 = icmp eq double** %59, null
br i1 %60, label %61, label %66
61: ; preds = %51
%62 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%63 = load double***, double**** %43
%64 = getelementptr inbounds double**, double*** %63, i64 %52
%65 = load double**, double*** %64
br label %66
66: ; preds = %61, %51
%67 = phi double** [ %65, %61 ], [ %59, %51 ]
%68 = phi double*** [ %63, %61 ], [ %57, %51 ]
%69 = getelementptr inbounds double**, double*** %68, i64 %52
%70 = getelementptr inbounds double*, double** %67, i64 %30
store double** %70, double*** %69
br i1 %31, label %100, label %71
71: ; preds = %66, %92
%72 = phi i64 [ %97, %92 ], [ %29, %66 ]
%73 = tail call i64 @calloc(i32 %33, i32 8)
%74 = inttoptr i64 %73 to double*
%75 = load double***, double**** %43
%76 = getelementptr inbounds double**, double*** %75, i64 %52
%77 = load double**, double*** %76
%78 = getelementptr inbounds double*, double** %77, i64 %72
store double* %74, double** %78
%79 = load double***, double**** %43
%80 = getelementptr inbounds double**, double*** %79, i64 %52
%81 = load double**, double*** %80
%82 = getelementptr inbounds double*, double** %81, i64 %72
%83 = load double*, double** %82
%84 = icmp eq double* %83, null
br i1 %84, label %85, label %92
85: ; preds = %71
%86 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%87 = load double***, double**** %43
%88 = getelementptr inbounds double**, double*** %87, i64 %52
%89 = load double**, double*** %88
%90 = getelementptr inbounds double*, double** %89, i64 %72
%91 = load double*, double** %90
br label %92
92: ; preds = %85, %71
%93 = phi double* [ %91, %85 ], [ %83, %71 ]
%94 = phi double** [ %89, %85 ], [ %81, %71 ]
%95 = getelementptr inbounds double*, double** %94, i64 %72
%96 = getelementptr inbounds double, double* %93, i64 %35
store double* %96, double** %95
%97 = add nsw i64 %72, 1
%98 = trunc i64 %97 to i32
%99 = icmp eq i32 %36, %98
br i1 %99, label %100, label %71
100: ; preds = %92, %66
%101 = add nsw i64 %52, 1
%102 = trunc i64 %101 to i32
%103 = icmp eq i32 %37, %102
br i1 %103, label %104, label %51
104: ; preds = %100, %48
%105 = add nsw i64 %40, 1
%106 = trunc i64 %105 to i32
%107 = icmp eq i32 %38, %106
br i1 %107, label %108, label %39
108: ; preds = %104, %16
ret double**** %19
}