#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*/ m5_dump_stats(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ m5_reset_stats(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, double, double, double, double, double);
int main(int argc, char **argv) {
  int i, j;
  int nx = 1000;
  int ny = 1000;
  double *A = (double *)malloc(ny * nx * sizeof(double));
  double *s = (double *)malloc(ny * sizeof(double));
  double *q = (double *)malloc(nx * sizeof(double));
  double *r = (double *)malloc(ny * sizeof(double));
  double *p = (double *)malloc(nx * sizeof(double));
  for (i = 0; i < ny; i++)
    p[i] = i * 3.141592;
  for (i = 0; i < nx; i++) {
    r[i] = i * 3.141592;
    for (j = 0; j < ny; j++)
      A[i * nx + j] = ((double)i * (j + 1)) / nx;
  }
  m5_reset_stats(0, 0);
#pragma scop
  for (i = 0; i < nx; i++)
    s[i] = 0;
  for (i = 0; i < nx; i++) {
    q[i] = 0;
    for (j = 0; j < ny; j++) {
      s[j] = s[j] + r[i] * A[i * nx + j];
      q[i] = q[i] + A[i * nx + j] * p[j];
    }
  }
#pragma endscop
  m5_dump_stats(0, 0);
  printf("%f, %f, %f, %f, %f\n", A[11], p[11], q[11], r[11], s[11]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3e8,-0x1c(%rbp)
movl   $0x3e8,-0x20(%rbp)
mov    -0x20(%rbp),%eax
imul   -0x1c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1207 <main+0xc7>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe18(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11cf <main+0x8f>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    129e <main+0x15e>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xdd9(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    128b <main+0x14b>
cvtsi2sdl -0x14(%rbp),%xmm0
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    123f <main+0xff>
jmp    1290 <main+0x150>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    120e <main+0xce>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <m5_reset_stats@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12d8 <main+0x198>
mov    -0x30(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12ae <main+0x16e>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13b9 <main+0x279>
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13a6 <main+0x266>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1302 <main+0x1c2>
jmp    13ab <main+0x26b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12df <main+0x19f>
xor    %esi,%esi
mov    %esi,%edi
call   1030 <m5_dump_stats@plt>
mov    -0x28(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x48(%rbp),%rax
movsd  0x58(%rax),%xmm1
mov    -0x38(%rbp),%rax
movsd  0x58(%rax),%xmm2
mov    -0x40(%rbp),%rax
movsd  0x58(%rax),%xmm3
mov    -0x30(%rbp),%rax
movsd  0x58(%rax),%xmm4
lea    0xc12(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x7a1200,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
mov    $0x1f40,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0x1f40,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    $0x1f40,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    $0x1f40,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
movdqa 0xe5c(%rip),%xmm0
mov    $0x6,%eax
movdqa 0xe5e(%rip),%xmm8
movapd 0xe66(%rip),%xmm2
movdqa 0xe6e(%rip),%xmm3
movdqa 0xe76(%rip),%xmm4
movdqa 0xe7e(%rip),%xmm5
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqa %xmm0,%xmm6
cvtdq2pd %xmm0,%xmm7
paddd  %xmm8,%xmm6
cvtdq2pd %xmm6,%xmm6
mulpd  %xmm2,%xmm7
mulpd  %xmm2,%xmm6
movupd %xmm7,-0x30(%r13,%rax,8)
movdqa %xmm0,%xmm7
paddd  %xmm3,%xmm7
movdqa %xmm0,%xmm1
paddd  %xmm4,%xmm1
cvtdq2pd %xmm7,%xmm7
cvtdq2pd %xmm1,%xmm1
movupd %xmm6,-0x20(%r13,%rax,8)
mulpd  %xmm2,%xmm7
mulpd  %xmm2,%xmm1
movupd %xmm7,-0x10(%r13,%rax,8)
movupd %xmm1,0x0(%r13,%rax,8)
paddd  %xmm5,%xmm0
add    $0x8,%rax
cmp    $0x3ee,%rax
jne    11e0 <main+0x90>
xor    %eax,%eax
movsd  0xe50(%rip),%xmm8
movdqa 0xe07(%rip),%xmm9
pcmpeqd %xmm2,%xmm2
movapd 0xe0b(%rip),%xmm3
movdqa 0xe13(%rip),%xmm4
movdqa 0xe1b(%rip),%xmm5
mov    %r14,%rcx
nopl   0x0(%rax,%rax,1)
xorps  %xmm6,%xmm6
cvtsi2sd %eax,%xmm6
movapd %xmm6,%xmm7
mulsd  %xmm8,%xmm7
movsd  %xmm7,(%r12,%rax,8)
unpcklpd %xmm6,%xmm6
mov    $0x2,%edx
movdqa %xmm9,%xmm7
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
pshufd $0xe8,%xmm7,%xmm1
movdqa %xmm1,%xmm0
psubd  %xmm2,%xmm0
cvtdq2pd %xmm0,%xmm0
mulpd  %xmm6,%xmm0
divpd  %xmm3,%xmm0
movupd %xmm0,-0x10(%rcx,%rdx,8)
paddd  %xmm4,%xmm1
cvtdq2pd %xmm1,%xmm0
mulpd  %xmm6,%xmm0
divpd  %xmm3,%xmm0
movupd %xmm0,(%rcx,%rdx,8)
paddq  %xmm5,%xmm7
add    $0x4,%rdx
cmp    $0x3ea,%rdx
jne    12b0 <main+0x160>
add    $0x1,%rax
add    $0x1f40,%rcx
cmp    $0x3e8,%rax
jne    1280 <main+0x130>
xor    %ebp,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1060 <m5_reset_stats@plt>
mov    $0x1f40,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r14,%rax
nopl   0x0(%rax)
movq   $0x0,(%rbx,%rbp,8)
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movsd  (%r12,%rbp,8),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
addsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%r15,%rcx,8)
movsd  (%rax,%rcx,8),%xmm0
mulsd  0x0(%r13,%rcx,8),%xmm0
addsd  (%rbx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
add    $0x1,%rcx
cmp    $0x3e8,%rcx
jne    1340 <main+0x1f0>
add    $0x1,%rbp
add    $0x1f40,%rax
cmp    $0x3e8,%rbp
jne    1330 <main+0x1e0>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <m5_dump_stats@plt>
movsd  0x58(%r14),%xmm0
movsd  0x58(%r13),%xmm1
movsd  0x58(%rbx),%xmm2
movsd  0x58(%r12),%xmm3
movsd  0x58(%r15),%xmm4
lea    0xced(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [20 x i8] c"%f, %f, %f, %f, %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @malloc(i32 8000000)
%4 = tail call i64 @malloc(i32 8000)
%5 = tail call i64 @malloc(i32 8000)
%6 = tail call i64 @malloc(i32 8000)
%7 = tail call i64 @malloc(i32 8000)
%8 = inttoptr i64 %7 to double*
br label %9
9: ; preds = %9, %2
%10 = phi i64 [ 0, %2 ], [ %32, %9 ]
%11 = phi <2 x i32> [ <i32 0, i32 1>, %2 ], [ %33, %9 ]
%12 = add <2 x i32> %11, <i32 2, i32 2>
%13 = sitofp <2 x i32> %11 to <2 x double>
%14 = sitofp <2 x i32> %12 to <2 x double>
%15 = fmul <2 x double> %13, <double 0x400921FAFC8B007A, double 0x400921FAFC8B007A>
%16 = fmul <2 x double> %14, <double 0x400921FAFC8B007A, double 0x400921FAFC8B007A>
%17 = getelementptr inbounds double, double* %8, i64 %10
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> %15, <2 x double>* %18
%19 = getelementptr inbounds double, double* %17, i64 2
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> %16, <2 x double>* %20
%21 = or i64 %10, 4
%22 = add <2 x i32> %11, <i32 4, i32 4>
%23 = add <2 x i32> %11, <i32 6, i32 6>
%24 = sitofp <2 x i32> %22 to <2 x double>
%25 = sitofp <2 x i32> %23 to <2 x double>
%26 = fmul <2 x double> %24, <double 0x400921FAFC8B007A, double 0x400921FAFC8B007A>
%27 = fmul <2 x double> %25, <double 0x400921FAFC8B007A, double 0x400921FAFC8B007A>
%28 = getelementptr inbounds double, double* %8, i64 %21
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> %26, <2 x double>* %29
%30 = getelementptr inbounds double, double* %28, i64 2
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> %27, <2 x double>* %31
%32 = add nuw nsw i64 %10, 8
%33 = add <2 x i32> %11, <i32 8, i32 8>
%34 = icmp eq i64 %32, 1000
br i1 %34, label %35, label %9
35: ; preds = %9
%36 = inttoptr i64 %3 to double*
%37 = inttoptr i64 %4 to double*
%38 = inttoptr i64 %4 to i8*
%39 = inttoptr i64 %6 to double*
br label %40
40: ; preds = %35, %72
%41 = phi i64 [ 0, %35 ], [ %73, %72 ]
%42 = trunc i64 %41 to i32
%43 = sitofp i32 %42 to double
%44 = fmul double %43, 0x400921FAFC8B007A
%45 = getelementptr inbounds double, double* %39, i64 %41
store double %44, double* %45
%46 = mul nuw nsw i64 %41, 1000
%47 = insertelement <2 x double> poison, double %43, i64 0
%48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
br label %49
49: ; preds = %49, %40
%50 = phi i64 [ 0, %40 ], [ %69, %49 ]
%51 = phi <2 x i64> [ <i64 0, i64 1>, %40 ], [ %70, %49 ]
%52 = trunc <2 x i64> %51 to <2 x i32>
%53 = add <2 x i32> %52, <i32 1, i32 1>
%54 = sitofp <2 x i32> %53 to <2 x double>
%55 = fmul <2 x double> %48, %54
%56 = fdiv <2 x double> %55, <double 1.000000e+03, double 1.000000e+03>
%57 = add nuw nsw i64 %50, %46
%58 = getelementptr inbounds double, double* %36, i64 %57
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %56, <2 x double>* %59
%60 = or i64 %50, 2
%61 = trunc <2 x i64> %51 to <2 x i32>
%62 = add <2 x i32> %61, <i32 3, i32 3>
%63 = sitofp <2 x i32> %62 to <2 x double>
%64 = fmul <2 x double> %48, %63
%65 = fdiv <2 x double> %64, <double 1.000000e+03, double 1.000000e+03>
%66 = add nuw nsw i64 %60, %46
%67 = getelementptr inbounds double, double* %36, i64 %66
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> %65, <2 x double>* %68
%69 = add nuw nsw i64 %50, 4
%70 = add <2 x i64> %51, <i64 4, i64 4>
%71 = icmp eq i64 %69, 1000
br i1 %71, label %72, label %49
72: ; preds = %49
%73 = add nuw nsw i64 %41, 1
%74 = icmp eq i64 %73, 1000
br i1 %74, label %75, label %40
75: ; preds = %72
%76 = tail call i32 @m5_reset_stats(i32 0, i32 0)
%77 = inttoptr i64 %5 to double*
br label %78
78: ; preds = %75, %99
%79 = phi i64 [ 0, %75 ], [ %100, %99 ]
%80 = getelementptr inbounds double, double* %77, i64 %79
store double 0.000000e+00, double* %80
%81 = getelementptr inbounds double, double* %39, i64 %79
%82 = mul nuw nsw i64 %79, 1000
br label %83
83: ; preds = %78, %83
%84 = phi i64 [ 0, %78 ], [ %97, %83 ]
%85 = getelementptr inbounds double, double* %37, i64 %84
%86 = load double, double* %85
%87 = load double, double* %81
%88 = add nuw nsw i64 %84, %82
%89 = getelementptr inbounds double, double* %36, i64 %88
%90 = load double, double* %89
%91 = tail call double @llvm.fmuladd.f64(double %87, double %90, double %86)
store double %91, double* %85
%92 = load double, double* %80
%93 = load double, double* %89
%94 = getelementptr inbounds double, double* %8, i64 %84
%95 = load double, double* %94
%96 = tail call double @llvm.fmuladd.f64(double %93, double %95, double %92)
store double %96, double* %80
%97 = add nuw nsw i64 %84, 1
%98 = icmp eq i64 %97, 1000
br i1 %98, label %99, label %83
99: ; preds = %83
%100 = add nuw nsw i64 %79, 1
%101 = icmp eq i64 %100, 1000
br i1 %101, label %102, label %78
102: ; preds = %99
%103 = tail call i32 @m5_dump_stats(i32 0, i32 0)
%104 = getelementptr inbounds double, double* %36, i64 11
%105 = load double, double* %104
%106 = getelementptr inbounds double, double* %8, i64 11
%107 = load double, double* %106
%108 = getelementptr inbounds double, double* %77, i64 11
%109 = load double, double* %108
%110 = getelementptr inbounds double, double* %39, i64 11
%111 = load double, double* %110
%112 = getelementptr inbounds double, double* %37, i64 11
%113 = load double, double* %112
%114 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), double %105, double %107, double %109, double %111, double %113)
ret i32 0
}