#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);
scalar_t__ spm_malloc(int, int);
int main(int argc, char **argv) {
  int i, j;
  int nx = 1000;
  int ny = 1000;
  double *A = (double *)spm_malloc(1024 * 1024 * 16, 1);
  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    $0x1000000,%edi
mov    $0x1,%esi
call   1070 <spm_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    1212 <main+0xc2>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe0d(%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    11da <main+0x8a>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a9 <main+0x159>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xdce(%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    1296 <main+0x146>
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    124a <main+0xfa>
jmp    129b <main+0x14b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1219 <main+0xc9>
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    12e3 <main+0x193>
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    12b9 <main+0x169>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13c4 <main+0x274>
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    13b1 <main+0x261>
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    130d <main+0x1bd>
jmp    13b6 <main+0x266>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12ea <main+0x19a>
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    0xc07(%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    $0x1000000,%edi
mov    $0x1,%esi
call   1080 <spm_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 0xe47(%rip),%xmm0
mov    $0x6,%eax
movdqa 0xe49(%rip),%xmm8
movapd 0xe51(%rip),%xmm2
movdqa 0xe59(%rip),%xmm3
movdqa 0xe61(%rip),%xmm4
movdqa 0xe69(%rip),%xmm5
nopw   0x0(%rax,%rax,1)
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    11f0 <main+0x90>
xor    %eax,%eax
movsd  0xe40(%rip),%xmm8
movdqa 0xdf7(%rip),%xmm9
pcmpeqd %xmm2,%xmm2
movapd 0xdfb(%rip),%xmm3
movdqa 0xe03(%rip),%xmm4
movdqa 0xe0b(%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    12c0 <main+0x160>
add    $0x1,%rax
add    $0x1f40,%rcx
cmp    $0x3e8,%rax
jne    1290 <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    1350 <main+0x1f0>
add    $0x1,%rbp
add    $0x1f40,%rax
cmp    $0x3e8,%rbp
jne    1340 <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    0xcdd(%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 = call i64 @spm_malloc(i32 16777216, i32 1)
%16 = inttoptr i64 %15 to double*
store double* %16, double** %10
%17 = load i32, i32* %9
%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** %11
%23 = load i32, i32* %8
%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** %12
%29 = load i32, i32* %9
%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** %13
%35 = load i32, i32* %8
%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** %14
store i32 0, i32* %6
br label %41
41: ; preds = %53, %2
%42 = load i32, i32* %6
%43 = load i32, i32* %9
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %56
45: ; preds = %41
%46 = load i32, i32* %6
%47 = sitofp i32 %46 to double
%48 = fmul double %47, 0x400921FAFC8B007A
%49 = load double*, double** %14
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %49, i64 %51
store double %48, double* %52
br label %53
53: ; preds = %45
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
store i32 %55, i32* %6
br label %41
56: ; preds = %41
store i32 0, i32* %6
br label %57
57: ; preds = %95, %56
%58 = load i32, i32* %6
%59 = load i32, i32* %8
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %98
61: ; preds = %57
%62 = load i32, i32* %6
%63 = sitofp i32 %62 to double
%64 = fmul double %63, 0x400921FAFC8B007A
%65 = load double*, double** %13
%66 = load i32, i32* %6
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
store double %64, double* %68
store i32 0, i32* %7
br label %69
69: ; preds = %91, %61
%70 = load i32, i32* %7
%71 = load i32, i32* %9
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %94
73: ; preds = %69
%74 = load i32, i32* %6
%75 = sitofp i32 %74 to double
%76 = load i32, i32* %7
%77 = add nsw i32 %76, 1
%78 = sitofp i32 %77 to double
%79 = fmul double %75, %78
%80 = load i32, i32* %8
%81 = sitofp i32 %80 to double
%82 = fdiv double %79, %81
%83 = load double*, double** %10
%84 = load i32, i32* %6
%85 = load i32, i32* %8
%86 = mul nsw i32 %84, %85
%87 = load i32, i32* %7
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %83, i64 %89
store double %82, double* %90
br label %91
91: ; preds = %73
%92 = load i32, i32* %7
%93 = add nsw i32 %92, 1
store i32 %93, i32* %7
br label %69
94: ; preds = %69
br label %95
95: ; preds = %94
%96 = load i32, i32* %6
%97 = add nsw i32 %96, 1
store i32 %97, i32* %6
br label %57
98: ; preds = %57
%99 = call i32 @m5_reset_stats(i32 0, i32 0)
store i32 0, i32* %6
br label %100
100: ; preds = %109, %98
%101 = load i32, i32* %6
%102 = load i32, i32* %8
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %112
104: ; preds = %100
%105 = load double*, double** %11
%106 = load i32, i32* %6
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
store double 0.000000e+00, double* %108
br label %109
109: ; preds = %104
%110 = load i32, i32* %6
%111 = add nsw i32 %110, 1
store i32 %111, i32* %6
br label %100
112: ; preds = %100
store i32 0, i32* %6
br label %113
113: ; preds = %179, %112
%114 = load i32, i32* %6
%115 = load i32, i32* %8
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %182
117: ; preds = %113
%118 = load double*, double** %12
%119 = load i32, i32* %6
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
store double 0.000000e+00, double* %121
store i32 0, i32* %7
br label %122
122: ; preds = %175, %117
%123 = load i32, i32* %7
%124 = load i32, i32* %9
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %178
126: ; preds = %122
%127 = load double*, double** %11
%128 = load i32, i32* %7
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, double* %127, i64 %129
%131 = load double, double* %130
%132 = load double*, double** %13
%133 = load i32, i32* %6
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %132, i64 %134
%136 = load double, double* %135
%137 = load double*, double** %10
%138 = load i32, i32* %6
%139 = load i32, i32* %8
%140 = mul nsw i32 %138, %139
%141 = load i32, i32* %7
%142 = add nsw i32 %140, %141
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, double* %137, i64 %143
%145 = load double, double* %144
%146 = call double @llvm.fmuladd.f64(double %136, double %145, double %131)
%147 = load double*, double** %11
%148 = load i32, i32* %7
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
store double %146, double* %150
%151 = load double*, double** %12
%152 = load i32, i32* %6
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %151, i64 %153
%155 = load double, double* %154
%156 = load double*, double** %10
%157 = load i32, i32* %6
%158 = load i32, i32* %8
%159 = mul nsw i32 %157, %158
%160 = load i32, i32* %7
%161 = add nsw i32 %159, %160
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %156, i64 %162
%164 = load double, double* %163
%165 = load double*, double** %14
%166 = load i32, i32* %7
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %165, i64 %167
%169 = load double, double* %168
%170 = call double @llvm.fmuladd.f64(double %164, double %169, double %155)
%171 = load double*, double** %12
%172 = load i32, i32* %6
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %171, i64 %173
store double %170, double* %174
br label %175
175: ; preds = %126
%176 = load i32, i32* %7
%177 = add nsw i32 %176, 1
store i32 %177, i32* %7
br label %122
178: ; preds = %122
br label %179
179: ; preds = %178
%180 = load i32, i32* %6
%181 = add nsw i32 %180, 1
store i32 %181, i32* %6
br label %113
182: ; preds = %113
%183 = call i32 @m5_dump_stats(i32 0, i32 0)
%184 = load double*, double** %10
%185 = getelementptr inbounds double, double* %184, i64 11
%186 = load double, double* %185
%187 = load double*, double** %14
%188 = getelementptr inbounds double, double* %187, i64 11
%189 = load double, double* %188
%190 = load double*, double** %12
%191 = getelementptr inbounds double, double* %190, i64 11
%192 = load double, double* %191
%193 = load double*, double** %13
%194 = getelementptr inbounds double, double* %193, i64 11
%195 = load double, double* %194
%196 = load double*, double** %11
%197 = getelementptr inbounds double, double* %196, i64 11
%198 = load double, double* %197
%199 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), double %186, double %189, double %192, double %195, double %198)
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 @spm_malloc(i32 16777216, i32 1)
%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
}