#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*/ printf(char *, ...);
float sqrt(int);
int main() {
  printf("Hi this is a program to test the performance characteristics of a "
         "couple specific things from lesson 8 of Halide's tutorial.\n");
  float result[4][4];
  float result2[4][4];
  float producer_storage[5][5];
  int y, x;
  for (y = 0; y < 5; y++) {
    for (x = 0; x < 5; x++) {
      producer_storage[y][x] = sqrt(x * y);
      printf("|%f|", producer_storage[y][x]);
    }
    printf("\n");
  }
  for (y = 0; y < 4; y++) {
    for (x = 0; x < 4; x++) {
      result[y][x] =
          (producer_storage[y][x] + producer_storage[y + 1][x] +
           producer_storage[y][x + 1] + producer_storage[y + 1][x + 1]);
      printf("|%f|", result[y][x]);
    }
    printf("\n");
  }
  for (y = 0; y < 4; y++) {
    for (x = 0; x < 4; x++) {
      result2[x][y] =
          (producer_storage[y][x] + producer_storage[y + 1][x] +
           producer_storage[y][x + 1] + producer_storage[y + 1][x + 1]);
    }
  }
  return 42;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x104(%rbp)
cmpl   $0x5,-0x104(%rbp)
jge    120a <main+0xea>
movl   $0x0,-0x108(%rbp)
cmpl   $0x5,-0x108(%rbp)
jge    11e8 <main+0xc8>
mov    -0x108(%rbp),%edi
imul   -0x104(%rbp),%edi
call   1040 <sqrt@plt>
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    1161 <main+0x41>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104(%rbp)
jmp    114a <main+0x2a>
movl   $0x0,-0x104(%rbp)
cmpl   $0x4,-0x104(%rbp)
jge    1354 <main+0x234>
movl   $0x0,-0x108(%rbp)
cmpl   $0x4,-0x108(%rbp)
jge    1332 <main+0x212>
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x104(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x108(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0x104(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x108(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
movslq -0x104(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movslq -0x104(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd67(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    122b <main+0x10b>
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104(%rbp)
jmp    1214 <main+0xf4>
movl   $0x0,-0x104(%rbp)
cmpl   $0x4,-0x104(%rbp)
jge    1468 <main+0x348>
movl   $0x0,-0x108(%rbp)
cmpl   $0x4,-0x108(%rbp)
jge    144f <main+0x32f>
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x104(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x108(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movslq -0x104(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x108(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0x104(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x100(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x108(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
movslq -0x108(%rbp),%rcx
lea    -0x90(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x104(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    1375 <main+0x255>
jmp    1454 <main+0x334>
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104(%rbp)
jmp    135e <main+0x23e>
mov    $0x2a,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
lea    0x20(%rsp),%rbx
xor    %r15d,%r15d
lea    0xe97(%rip),%r14
xor    %r12d,%r12d
xor    %r13d,%r13d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x10(%rbx)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %ebp,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0xc(%rbx)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r15d,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x8(%rbx)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r12d,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x4(%rbx)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r13d,%edi
call   1060 <sqrt@plt>
movss  %xmm0,(%rbx)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
add    $0x4,%r13d
add    $0x3,%r12d
add    $0x2,%r15d
add    $0x14,%rbx
cmp    $0x5,%rbp
jne    1180 <main+0x40>
movss  0x10(%rsp),%xmm0
movss  0x14(%rsp),%xmm3
mov    $0x24,%ebp
lea    0xdbc(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  %xmm3,(%rsp)
movss  (%rsp,%rbp,1),%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x4(%rsp,%rbp,1),%xmm2
movss  %xmm2,0x8(%rsp)
addss  %xmm1,%xmm0
addss  %xmm3,%xmm0
addss  %xmm2,%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm2
addss  0x8(%rsp),%xmm2
movss  -0xc(%rsp,%rbp,1),%xmm0
movss  %xmm0,(%rsp)
movss  0x8(%rsp,%rbp,1),%xmm1
movss  %xmm1,0x4(%rsp)
addss  %xmm0,%xmm2
addss  %xmm1,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
addss  0x4(%rsp),%xmm0
movss  -0x8(%rsp,%rbp,1),%xmm1
movss  %xmm1,(%rsp)
movss  0xc(%rsp,%rbp,1),%xmm2
movss  %xmm2,0x4(%rsp)
addss  %xmm1,%xmm0
addss  %xmm2,%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
addss  0x4(%rsp),%xmm0
addss  -0x4(%rsp,%rbp,1),%xmm0
addss  0x10(%rsp,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbp
movss  0x8(%rsp),%xmm3
movss  0xc(%rsp),%xmm0
cmp    $0x74,%rbp
jne    1250 <main+0x110>
mov    $0x2a,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [126 x i8] c"Hi this is a program to test the performance characteristics of a couple specific things from lesson 8 of Halide's tutorial.\0A\00"
@.str.1 = [5 x i8] c"|%f|\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [4 x float]]
%3 = alloca [4 x [4 x float]]
%4 = alloca [5 x [5 x float]]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %8
8: ; preds = %40, %0
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %43
11: ; preds = %8
store i32 0, i32* %6
br label %12
12: ; preds = %35, %11
%13 = load i32, i32* %6
%14 = icmp slt i32 %13, 5
br i1 %14, label %15, label %38
15: ; preds = %12
%16 = load i32, i32* %6
%17 = load i32, i32* %5
%18 = mul nsw i32 %16, %17
%19 = call float @sqrt(i32 %18)
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %21
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x float], [5 x float]* %22, i64 0, i64 %24
store float %19, float* %25
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %27
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x float], [5 x float]* %28, i64 0, i64 %30
%32 = load float, float* %31
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %33)
br label %35
35: ; preds = %15
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %12
38: ; preds = %12
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %40
40: ; preds = %38
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %8
43: ; preds = %8
store i32 0, i32* %5
br label %44
44: ; preds = %107, %43
%45 = load i32, i32* %5
%46 = icmp slt i32 %45, 4
br i1 %46, label %47, label %110
47: ; preds = %44
store i32 0, i32* %6
br label %48
48: ; preds = %102, %47
%49 = load i32, i32* %6
%50 = icmp slt i32 %49, 4
br i1 %50, label %51, label %105
51: ; preds = %48
%52 = load i32, i32* %5
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %53
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [5 x float], [5 x float]* %54, i64 0, i64 %56
%58 = load float, float* %57
%59 = load i32, i32* %5
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %61
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [5 x float], [5 x float]* %62, i64 0, i64 %64
%66 = load float, float* %65
%67 = fadd float %58, %66
%68 = load i32, i32* %5
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %69
%71 = load i32, i32* %6
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [5 x float], [5 x float]* %70, i64 0, i64 %73
%75 = load float, float* %74
%76 = fadd float %67, %75
%77 = load i32, i32* %5
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %79
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [5 x float], [5 x float]* %80, i64 0, i64 %83
%85 = load float, float* %84
%86 = fadd float %76, %85
%87 = load i32, i32* %5
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %2, i64 0, i64 %88
%90 = load i32, i32* %6
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [4 x float], [4 x float]* %89, i64 0, i64 %91
store float %86, float* %92
%93 = load i32, i32* %5
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %2, i64 0, i64 %94
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [4 x float], [4 x float]* %95, i64 0, i64 %97
%99 = load float, float* %98
%100 = fpext float %99 to double
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %100)
br label %102
102: ; preds = %51
%103 = load i32, i32* %6
%104 = add nsw i32 %103, 1
store i32 %104, i32* %6
br label %48
105: ; preds = %48
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %107
107: ; preds = %105
%108 = load i32, i32* %5
%109 = add nsw i32 %108, 1
store i32 %109, i32* %5
br label %44
110: ; preds = %44
store i32 0, i32* %5
br label %111
111: ; preds = %164, %110
%112 = load i32, i32* %5
%113 = icmp slt i32 %112, 4
br i1 %113, label %114, label %167
114: ; preds = %111
store i32 0, i32* %6
br label %115
115: ; preds = %160, %114
%116 = load i32, i32* %6
%117 = icmp slt i32 %116, 4
br i1 %117, label %118, label %163
118: ; preds = %115
%119 = load i32, i32* %5
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %120
%122 = load i32, i32* %6
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [5 x float], [5 x float]* %121, i64 0, i64 %123
%125 = load float, float* %124
%126 = load i32, i32* %5
%127 = add nsw i32 %126, 1
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %128
%130 = load i32, i32* %6
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [5 x float], [5 x float]* %129, i64 0, i64 %131
%133 = load float, float* %132
%134 = fadd float %125, %133
%135 = load i32, i32* %5
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %136
%138 = load i32, i32* %6
%139 = add nsw i32 %138, 1
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [5 x float], [5 x float]* %137, i64 0, i64 %140
%142 = load float, float* %141
%143 = fadd float %134, %142
%144 = load i32, i32* %5
%145 = add nsw i32 %144, 1
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %4, i64 0, i64 %146
%148 = load i32, i32* %6
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [5 x float], [5 x float]* %147, i64 0, i64 %150
%152 = load float, float* %151
%153 = fadd float %143, %152
%154 = load i32, i32* %6
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %3, i64 0, i64 %155
%157 = load i32, i32* %5
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [4 x float], [4 x float]* %156, i64 0, i64 %158
store float %153, float* %159
br label %160
160: ; preds = %118
%161 = load i32, i32* %6
%162 = add nsw i32 %161, 1
store i32 %162, i32* %6
br label %115
163: ; preds = %115
br label %164
164: ; preds = %163
%165 = load i32, i32* %5
%166 = add nsw i32 %165, 1
store i32 %166, i32* %5
br label %111
167: ; preds = %111
ret i32 42
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"|%f|\00"
@str = [125 x i8] c"Hi this is a program to test the performance characteristics of a couple specific things from lesson 8 of Halide's tutorial.\00"
define i32 @main() {
%1 = alloca [5 x [5 x float]]
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([125 x i8], [125 x i8]* @str, i64 0, i64 0))
%3 = bitcast [5 x [5 x float]]* %1 to i8*
br label %4
4: ; preds = %0, %4
%5 = phi i64 [ 0, %0 ], [ %34, %4 ]
%6 = tail call float @sqrt(i32 0)
%7 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %5, i64 0
store float %6, float* %7
%8 = fpext float %6 to double
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %8)
%10 = trunc i64 %5 to i32
%11 = tail call float @sqrt(i32 %10)
%12 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %5, i64 1
store float %11, float* %12
%13 = fpext float %11 to double
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %13)
%15 = trunc i64 %5 to i32
%16 = shl i32 %15, 1
%17 = tail call float @sqrt(i32 %16)
%18 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %5, i64 2
store float %17, float* %18
%19 = fpext float %17 to double
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %19)
%21 = trunc i64 %5 to i32
%22 = mul i32 %21, 3
%23 = tail call float @sqrt(i32 %22)
%24 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %5, i64 3
store float %23, float* %24
%25 = fpext float %23 to double
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %25)
%27 = trunc i64 %5 to i32
%28 = shl i32 %27, 2
%29 = tail call float @sqrt(i32 %28)
%30 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %5, i64 4
store float %29, float* %30
%31 = fpext float %29 to double
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %31)
%33 = tail call i32 @putchar(i32 10)
%34 = add nuw nsw i64 %5, 1
%35 = icmp eq i64 %34, 5
br i1 %35, label %36, label %4
36: ; preds = %4
%37 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 0, i64 0
%38 = load float, float* %37
%39 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 0, i64 1
%40 = load float, float* %39
br label %41
41: ; preds = %36, %41
%42 = phi float [ %40, %36 ], [ %51, %41 ]
%43 = phi float [ %38, %36 ], [ %47, %41 ]
%44 = phi i64 [ 0, %36 ], [ %45, %41 ]
%45 = add nuw nsw i64 %44, 1
%46 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %45, i64 0
%47 = load float, float* %46
%48 = fadd float %43, %47
%49 = fadd float %48, %42
%50 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %45, i64 1
%51 = load float, float* %50
%52 = fadd float %49, %51
%53 = fpext float %52 to double
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %53)
%55 = fadd float %42, %51
%56 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %44, i64 2
%57 = load float, float* %56
%58 = fadd float %55, %57
%59 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %45, i64 2
%60 = load float, float* %59
%61 = fadd float %58, %60
%62 = fpext float %61 to double
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %62)
%64 = fadd float %57, %60
%65 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %44, i64 3
%66 = load float, float* %65
%67 = fadd float %64, %66
%68 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %45, i64 3
%69 = load float, float* %68
%70 = fadd float %67, %69
%71 = fpext float %70 to double
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %71)
%73 = fadd float %66, %69
%74 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %44, i64 4
%75 = load float, float* %74
%76 = fadd float %73, %75
%77 = getelementptr inbounds [5 x [5 x float]], [5 x [5 x float]]* %1, i64 0, i64 %45, i64 4
%78 = load float, float* %77
%79 = fadd float %76, %78
%80 = fpext float %79 to double
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %80)
%82 = tail call i32 @putchar(i32 10)
%83 = icmp eq i64 %45, 4
br i1 %83, label %84, label %41
84: ; preds = %41
ret i32 42
}