#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 */
int /*<<< orphan*/ EXIT_FAILURE;
scalar_t__ calloc(int, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
double **matrix_addition(double **mat1, double scal1, int mat1_row,
                         int mat1_col, double **mat2, double scal2,
                         int mat2_row, int mat2_col, int subtract) {
  if (mat1_row != mat2_row && mat1_col != mat2_col) {
    fprintf(stderr, "ERROR: columns of mat1 and rows of mat2 are not matched!");
    exit(EXIT_FAILURE);
  }
  double **sum = (double **)calloc(mat1_row, sizeof(double *));
  for (int i = 0; i < mat1_row; i++)
    sum[i] = (double *)calloc(mat1_col, sizeof(double));
  int subtract_flag = 1;
  if (subtract)
    subtract_flag = -1;
  for (int i = 0; i < mat1_row; i++)
    for (int j = 0; j < mat1_col; j++)
      if (scal1 && scal2) {
        sum[i][j] = scal1 + (subtract * scal2);
      } else if (scal1) {
        sum[i][j] = scal1 + (subtract_flag * mat2[i][j]);
      } else if (scal2) {
        sum[i][j] = mat1[i][j] + (subtract_flag * scal2);
      } else {
        sum[i][j] = mat1[i][j] + (subtract_flag * mat2[i][j]);
      }
  return sum;
}


x86 assembly (clang, -O0):
<matrix_addition>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     1196 <matrix_addition+0x66>
mov    -0x18(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     1196 <matrix_addition+0x66>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xe7d(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11e4 <matrix_addition+0xb4>
mov    -0x18(%rbp),%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,%rdx
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11ae <matrix_addition+0x7e>
movl   $0x1,-0x40(%rbp)
cmpl   $0x0,0x10(%rbp)
je     11fc <matrix_addition+0xcc>
movl   $0xffffffff,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13c5 <matrix_addition+0x295>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13b2 <matrix_addition+0x282>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    123f <matrix_addition+0x10f>
jp     123f <matrix_addition+0x10f>
jmp    128d <matrix_addition+0x15d>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    125c <matrix_addition+0x12c>
jp     125c <matrix_addition+0x12c>
jmp    128d <matrix_addition+0x15d>
movsd  -0x10(%rbp),%xmm1
cvtsi2sdl 0x10(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    139f <matrix_addition+0x26f>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12aa <matrix_addition+0x17a>
jp     12aa <matrix_addition+0x17a>
jmp    12eb <matrix_addition+0x1bb>
movsd  -0x10(%rbp),%xmm1
cvtsi2sdl -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    139a <matrix_addition+0x26a>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1308 <matrix_addition+0x1d8>
jp     1308 <matrix_addition+0x1d8>
jmp    1349 <matrix_addition+0x219>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
cvtsi2sdl -0x40(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1395 <matrix_addition+0x265>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
cvtsi2sdl -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    139a <matrix_addition+0x26a>
jmp    139f <matrix_addition+0x26f>
jmp    13a4 <matrix_addition+0x274>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1216 <matrix_addition+0xe6>
jmp    13b7 <matrix_addition+0x287>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1203 <matrix_addition+0xd3>
mov    -0x38(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<matrix_addition>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movsd  %xmm1,0x10(%rsp)
mov    %rcx,%r14
mov    %edx,%r12d
mov    %esi,%ebp
movsd  %xmm0,0x8(%rsp)
mov    %rdi,%r15
cmp    %r8d,%esi
je     1163 <matrix_addition+0x33>
cmp    %r9d,%r12d
jne    129e <matrix_addition+0x16e>
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
test   %ebp,%ebp
jle    128c <matrix_addition+0x15c>
mov    %ebp,0x4(%rsp)
mov    %ebp,%r13d
mov    %r12d,%ebp
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,(%rbx,%r12,8)
add    $0x1,%r12
cmp    %r12,%r13
jne    1190 <matrix_addition+0x60>
cmpl   $0x0,0x4(%rsp)
movsd  0x10(%rsp),%xmm6
movsd  0x8(%rsp),%xmm7
jle    128c <matrix_addition+0x15c>
mov    %ebp,%r8d
mov    0x50(%rsp),%edi
mov    %edi,%eax
neg    %eax
sbb    %ecx,%ecx
or     $0x1,%ecx
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm7
setp   %al
setne  %dl
or     %al,%dl
ucomisd %xmm0,%xmm6
setp   %sil
setne  %al
or     %sil,%al
cvtsi2sd %ecx,%xmm1
and    %dl,%al
cvtsi2sd %edi,%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm7,%xmm2
mov    %ebp,%ecx
xor    %edx,%edx
movapd %xmm1,%xmm3
mulsd  %xmm6,%xmm3
jmp    1219 <matrix_addition+0xe9>
xchg   %ax,%ax
add    $0x1,%rdx
cmp    %r13,%rdx
je     128c <matrix_addition+0x15c>
test   %r8d,%r8d
jle    1210 <matrix_addition+0xe0>
mov    (%rbx,%rdx,8),%rsi
xor    %edi,%edi
jmp    1250 <matrix_addition+0x120>
cs nopw 0x0(%rax,%rax,1)
mov    (%r14,%rdx,8),%rbp
movsd  0x0(%rbp,%rdi,8),%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm7,%xmm4
movsd  %xmm4,(%rsi,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,%rcx
je     1210 <matrix_addition+0xe0>
movapd %xmm2,%xmm4
test   %al,%al
jne    1242 <matrix_addition+0x112>
ucomisd %xmm0,%xmm7
jne    1230 <matrix_addition+0x100>
jp     1230 <matrix_addition+0x100>
ucomisd %xmm0,%xmm6
mov    (%r15,%rdx,8),%rbp
movsd  0x0(%rbp,%rdi,8),%xmm4
jne    1272 <matrix_addition+0x142>
jnp    1278 <matrix_addition+0x148>
addsd  %xmm3,%xmm4
jmp    1242 <matrix_addition+0x112>
mov    (%r14,%rdx,8),%rbp
movsd  0x0(%rbp,%rdi,8),%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm5,%xmm4
jmp    1242 <matrix_addition+0x112>
mov    %rbx,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
lea    0xd52(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [57 x i8] c"ERROR: columns of mat1 and rows of mat2 are not matched!\00"
@EXIT_FAILURE = global i32 0
define double** @matrix_addition(double** nocapture %0, double %1, i32 %2, i32 %3, double** nocapture %4, double %5, i32 %6, i32 %7, i32 %8) {
%10 = icmp eq i32 %2, %6
%11 = icmp eq i32 %3, %7
%12 = or i1 %10, %11
br i1 %12, label %18, label %13
13: ; preds = %9
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* @EXIT_FAILURE
%17 = tail call i32 @exit(i32 %16)
unreachable
18: ; preds = %9
%19 = tail call i64 @calloc(i32 %2, i32 8)
%20 = inttoptr i64 %19 to double**
%21 = icmp sgt i32 %2, 0
br i1 %21, label %22, label %51
22: ; preds = %18
%23 = zext i32 %2 to i64
br label %37
24: ; preds = %37
br i1 %21, label %25, label %51
25: ; preds = %24
%26 = icmp eq i32 %8, 0
%27 = select i1 %26, i32 1, i32 -1
%28 = icmp sgt i32 %3, 0
%29 = fcmp une double %1, 0.000000e+00
%30 = fcmp une double %5, 0.000000e+00
%31 = and i1 %29, %30
%32 = sitofp i32 %27 to double
%33 = sitofp i32 %8 to double
%34 = tail call double @llvm.fmuladd.f64(double %33, double %5, double %1)
%35 = zext i32 %2 to i64
%36 = zext i32 %3 to i64
br label %44
37: ; preds = %22, %37
%38 = phi i64 [ 0, %22 ], [ %42, %37 ]
%39 = tail call i64 @calloc(i32 %3, i32 8)
%40 = inttoptr i64 %39 to double*
%41 = getelementptr inbounds double*, double** %20, i64 %38
store double* %40, double** %41
%42 = add nuw nsw i64 %38, 1
%43 = icmp eq i64 %42, %23
br i1 %43, label %24, label %37
44: ; preds = %25, %52
%45 = phi i64 [ 0, %25 ], [ %53, %52 ]
br i1 %28, label %46, label %52
46: ; preds = %44
%47 = getelementptr inbounds double*, double** %0, i64 %45
%48 = getelementptr inbounds double*, double** %4, i64 %45
%49 = getelementptr inbounds double*, double** %20, i64 %45
%50 = load double*, double** %49
br label %55
51: ; preds = %52, %18, %24
ret double** %20
52: ; preds = %74, %44
%53 = add nuw nsw i64 %45, 1
%54 = icmp eq i64 %53, %35
br i1 %54, label %51, label %44
55: ; preds = %46, %74
%56 = phi i64 [ 0, %46 ], [ %77, %74 ]
br i1 %31, label %74, label %57
57: ; preds = %55
br i1 %29, label %58, label %63
58: ; preds = %57
%59 = load double*, double** %48
%60 = getelementptr inbounds double, double* %59, i64 %56
%61 = load double, double* %60
%62 = tail call double @llvm.fmuladd.f64(double %32, double %61, double %1)
br label %74
63: ; preds = %57
%64 = load double*, double** %47
%65 = getelementptr inbounds double, double* %64, i64 %56
%66 = load double, double* %65
br i1 %30, label %67, label %69
67: ; preds = %63
%68 = tail call double @llvm.fmuladd.f64(double %32, double %5, double %66)
br label %74
69: ; preds = %63
%70 = load double*, double** %48
%71 = getelementptr inbounds double, double* %70, i64 %56
%72 = load double, double* %71
%73 = tail call double @llvm.fmuladd.f64(double %32, double %72, double %66)
br label %74
74: ; preds = %55, %67, %69, %58
%75 = phi double [ %68, %67 ], [ %73, %69 ], [ %62, %58 ], [ %34, %55 ]
%76 = getelementptr inbounds double, double* %50, i64 %56
store double %75, double* %76
%77 = add nuw nsw i64 %56, 1
%78 = icmp eq i64 %77, %36
br i1 %78, label %52, label %55
}