#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*/ assert(int);
void l2projectVector(const int nSimplices, const int nPointsPerSimplex,
                     const int nSpace, double *dV, double *r) {
  int eN, k, I;
  double vol;
  double ravg[nSpace];
  for (eN = 0; eN < nSimplices; eN++) {
    vol = 0.0;
    for (I = 0; I < nSpace; I++)
      ravg[I] = 0.0;
    for (k = 0; k < nPointsPerSimplex; k++) {
      vol += dV[eN * nPointsPerSimplex + k];
      for (I = 0; I < nSpace; I++)
        ravg[I] += r[eN * nPointsPerSimplex * nSpace + k * nSpace + I] *
                   dV[eN * nPointsPerSimplex + k];
    }
    assert(vol > 0.0);
    for (k = 0; k < nPointsPerSimplex; k++) {
      for (I = 0; I < nSpace; I++)
        r[eN * nPointsPerSimplex * nSpace + k * nSpace + I] = ravg[I] / vol;
    }
  }
}


x86 assembly (clang, -O0):
<l2projectVector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12fe <l2projectVector+0x1ee>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    119c <l2projectVector+0x8c>
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1172 <l2projectVector+0x62>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1256 <l2projectVector+0x146>
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1243 <l2projectVector+0x133>
mov    -0x50(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%edx
imul   -0x8(%rbp),%edx
imul   -0xc(%rbp),%edx
mov    -0x28(%rbp),%esi
imul   -0xc(%rbp),%esi
add    %esi,%edx
add    -0x2c(%rbp),%edx
movslq %edx,%rdx
movsd  (%rcx,%rdx,8),%xmm0
mov    -0x18(%rbp),%rcx
mov    -0x24(%rbp),%edx
imul   -0x8(%rbp),%edx
add    -0x28(%rbp),%edx
movslq %edx,%rdx
movsd  (%rcx,%rdx,8),%xmm2
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11d6 <l2projectVector+0xc6>
jmp    1248 <l2projectVector+0x138>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11a3 <l2projectVector+0x93>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12eb <l2projectVector+0x1db>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12d8 <l2projectVector+0x1c8>
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
mov    -0x28(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1289 <l2projectVector+0x179>
jmp    12dd <l2projectVector+0x1cd>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1276 <l2projectVector+0x166>
jmp    12f0 <l2projectVector+0x1e0>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1157 <l2projectVector+0x47>
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<l2projectVector>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %esi,-0x2c(%rbp)
mov    %edx,%r12d
mov    %rsp,%rbx
lea    0xf(,%r12,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
test   %edi,%edi
jle    1539 <l2projectVector+0x419>
mov    %r8,%r15
mov    %edx,%r13d
lea    0x0(,%r12,8),%rax
mov    %rax,-0x68(%rbp)
mov    -0x2c(%rbp),%eax
movslq %eax,%rdx
mov    %edi,%esi
mov    %rsi,-0x70(%rbp)
mov    %rdx,-0x60(%rbp)
mov    %edx,%r14d
mov    %r12d,%edx
and    $0xfffffffc,%edx
mov    %rdx,-0xb8(%rbp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,-0xb0(%rbp)
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %r12d,%r11d
and    $0xfffffffe,%r11d
lea    -0x2(%r11),%rdx
mov    %rdx,-0xa0(%rbp)
mov    %rdx,%rdi
shr    %rdi
add    $0x1,%rdi
mov    %rsi,%rdx
mov    %rsi,-0xa8(%rbp)
and    $0xfffffffffffffffe,%rsi
mov    %rsi,-0x90(%rbp)
mov    %rdi,%rdx
mov    %rdi,-0x98(%rbp)
and    $0xfffffffffffffffe,%rdi
mov    %rdi,-0x80(%rbp)
mov    %r13d,%edx
imul   %eax,%edx
mov    %edx,-0x4c(%rbp)
lea    0x30(%r8),%rax
mov    %rax,-0x88(%rbp)
lea    0x10(%r8),%rax
mov    %rax,-0x78(%rbp)
xor    %eax,%eax
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
mov    %rax,-0x38(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r11,-0x58(%rbp)
jmp    124f <l2projectVector+0x12f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %edi,%edi
call   1040 <assert@plt>
mov    -0x48(%rbp),%rcx
mov    -0x38(%rbp),%rdx
add    $0x1,%rdx
mov    -0x40(%rbp),%rax
add    -0x4c(%rbp),%eax
mov    %rax,-0x40(%rbp)
mov    %rdx,%rax
mov    %rdx,-0x38(%rbp)
cmp    -0x70(%rbp),%rdx
je     1539 <l2projectVector+0x419>
test   %r13d,%r13d
jle    1266 <l2projectVector+0x146>
mov    %rbx,%rdi
xor    %esi,%esi
mov    -0x68(%rbp),%rdx
call   1030 <memset@plt>
mov    -0x48(%rbp),%rcx
cmpl   $0x0,-0x2c(%rbp)
jle    1220 <l2projectVector+0x100>
mov    -0x38(%rbp),%r8
imul   -0x60(%rbp),%r8
xorpd  %xmm4,%xmm4
mov    -0x40(%rbp),%rax
mov    %eax,%r11d
xor    %edx,%edx
jmp    12a4 <l2projectVector+0x184>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
addsd  %xmm0,%xmm4
add    $0x1,%rdx
add    %r13d,%r11d
cmp    %r14,%rdx
je     1400 <l2projectVector+0x2e0>
lea    (%rdx,%r8,1),%r10
movsd  (%rcx,%r10,8),%xmm0
test   %r13d,%r13d
jle    1290 <l2projectVector+0x170>
movslq %r11d,%r9
cmp    $0x4,%r13d
jae    12d0 <l2projectVector+0x1b0>
xor    %eax,%eax
jmp    13b0 <l2projectVector+0x290>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,-0xb0(%rbp)
je     13e1 <l2projectVector+0x2c1>
mov    -0x88(%rbp),%rax
lea    (%rax,%r9,8),%rsi
mov    -0x90(%rbp),%rdi
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd -0x30(%rsi,%rax,8),%xmm2
movupd -0x20(%rsi,%rax,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  (%rbx,%rax,8),%xmm2
mulpd  %xmm1,%xmm3
addpd  0x10(%rbx,%rax,8),%xmm3
movapd %xmm2,(%rbx,%rax,8)
movapd %xmm3,0x10(%rbx,%rax,8)
movupd -0x10(%rsi,%rax,8),%xmm2
mulpd  %xmm1,%xmm2
addpd  0x20(%rbx,%rax,8),%xmm2
movupd (%rsi,%rax,8),%xmm3
mulpd  %xmm1,%xmm3
addpd  0x30(%rbx,%rax,8),%xmm3
movapd %xmm2,0x20(%rbx,%rax,8)
movapd %xmm3,0x30(%rbx,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rdi
jne    1300 <l2projectVector+0x1e0>
testb  $0x1,-0xa8(%rbp)
je     139d <l2projectVector+0x27d>
imul   %r13d,%r10d
movslq %r10d,%rsi
add    %rax,%rsi
movupd (%r15,%rsi,8),%xmm2
movupd 0x10(%r15,%rsi,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  (%rbx,%rax,8),%xmm2
mulpd  %xmm1,%xmm3
addpd  0x10(%rbx,%rax,8),%xmm3
movapd %xmm2,(%rbx,%rax,8)
movapd %xmm3,0x10(%rbx,%rax,8)
mov    -0xb8(%rbp),%rsi
mov    %rsi,%rax
cmp    %r12,%rsi
je     1290 <l2projectVector+0x170>
lea    (%r15,%r9,8),%rsi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    13c0 <l2projectVector+0x2a0>
jmp    1290 <l2projectVector+0x170>
xor    %eax,%eax
testb  $0x1,-0xa8(%rbp)
jne    1368 <l2projectVector+0x248>
jmp    139d <l2projectVector+0x27d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %edi,%edi
ucomisd 0xbf6(%rip),%xmm4
seta   %dil
movapd %xmm4,-0xd0(%rbp)
ff
call   1040 <assert@plt>
movapd -0xd0(%rbp),%xmm2
ff
mov    -0x48(%rbp),%rcx
cmpl   $0x0,-0x2c(%rbp)
mov    -0x58(%rbp),%r11
jle    122b <l2projectVector+0x10b>
mov    -0x38(%rbp),%r8
imul   -0x2c(%rbp),%r8d
movapd %xmm2,%xmm0
unpcklpd %xmm2,%xmm0
mov    -0x40(%rbp),%rax
mov    %eax,%r10d
xor    %edx,%edx
jmp    1470 <l2projectVector+0x350>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
add    %r13d,%r10d
cmp    %r14,%rdx
je     122b <l2projectVector+0x10b>
test   %r13d,%r13d
jle    1460 <l2projectVector+0x340>
movslq %r10d,%r9
cmp    $0x1,%r13d
jne    1490 <l2projectVector+0x370>
xor    %eax,%eax
jmp    1509 <l2projectVector+0x3e9>
cs nopw 0x0(%rax,%rax,1)
nop
cmpq   $0x0,-0xa0(%rbp)
je     152c <l2projectVector+0x40c>
mov    -0x78(%rbp),%rax
lea    (%rax,%r9,8),%rax
mov    -0x80(%rbp),%rsi
xor    %edi,%edi
nopl   0x0(%rax)
movapd (%rbx,%rdi,8),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,-0x10(%rax,%rdi,8)
movapd 0x10(%rbx,%rdi,8),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,(%rax,%rdi,8)
add    $0x4,%rdi
add    $0xfffffffffffffffe,%rsi
jne    14b0 <l2projectVector+0x390>
testb  $0x1,-0x98(%rbp)
je     14fd <l2projectVector+0x3dd>
lea    (%r8,%rdx,1),%eax
imul   %r13d,%eax
cltq
movapd (%rbx,%rdi,8),%xmm1
divpd  %xmm0,%xmm1
add    %rdi,%rax
movupd %xmm1,(%r15,%rax,8)
mov    %r11,%rax
cmp    %r12,%r11
je     1460 <l2projectVector+0x340>
lea    (%r15,%r9,8),%rsi
nopl   (%rax)
movsd  (%rbx,%rax,8),%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,(%rsi,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    1510 <l2projectVector+0x3f0>
jmp    1460 <l2projectVector+0x340>
xor    %edi,%edi
testb  $0x1,-0x98(%rbp)
jne    14e1 <l2projectVector+0x3c1>
jmp    14fd <l2projectVector+0x3dd>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @l2projectVector(i32 %0, i32 %1, i32 %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca i8*
%16 = alloca i64
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store double* %3, double** %9
store double* %4, double** %10
%17 = load i32, i32* %8
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %15
%20 = alloca double, i64 %18
store i64 %18, i64* %16
store i32 0, i32* %11
br label %21
21: ; preds = %138, %5
%22 = load i32, i32* %11
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %141
25: ; preds = %21
store double 0.000000e+00, double* %14
store i32 0, i32* %13
br label %26
26: ; preds = %34, %25
%27 = load i32, i32* %13
%28 = load i32, i32* %8
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i32, i32* %13
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %20, i64 %32
store double 0.000000e+00, double* %33
br label %34
34: ; preds = %30
%35 = load i32, i32* %13
%36 = add nsw i32 %35, 1
store i32 %36, i32* %13
br label %26
37: ; preds = %26
store i32 0, i32* %12
br label %38
38: ; preds = %92, %37
%39 = load i32, i32* %12
%40 = load i32, i32* %7
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %95
42: ; preds = %38
%43 = load double*, double** %9
%44 = load i32, i32* %11
%45 = load i32, i32* %7
%46 = mul nsw i32 %44, %45
%47 = load i32, i32* %12
%48 = add nsw i32 %46, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %43, i64 %49
%51 = load double, double* %50
%52 = load double, double* %14
%53 = fadd double %52, %51
store double %53, double* %14
store i32 0, i32* %13
br label %54
54: ; preds = %88, %42
%55 = load i32, i32* %13
%56 = load i32, i32* %8
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %91
58: ; preds = %54
%59 = load double*, double** %10
%60 = load i32, i32* %11
%61 = load i32, i32* %7
%62 = mul nsw i32 %60, %61
%63 = load i32, i32* %8
%64 = mul nsw i32 %62, %63
%65 = load i32, i32* %12
%66 = load i32, i32* %8
%67 = mul nsw i32 %65, %66
%68 = add nsw i32 %64, %67
%69 = load i32, i32* %13
%70 = add nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %59, i64 %71
%73 = load double, double* %72
%74 = load double*, double** %9
%75 = load i32, i32* %11
%76 = load i32, i32* %7
%77 = mul nsw i32 %75, %76
%78 = load i32, i32* %12
%79 = add nsw i32 %77, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %74, i64 %80
%82 = load double, double* %81
%83 = load i32, i32* %13
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %20, i64 %84
%86 = load double, double* %85
%87 = call double @llvm.fmuladd.f64(double %73, double %82, double %86)
store double %87, double* %85
br label %88
88: ; preds = %58
%89 = load i32, i32* %13
%90 = add nsw i32 %89, 1
store i32 %90, i32* %13
br label %54
91: ; preds = %54
br label %92
92: ; preds = %91
%93 = load i32, i32* %12
%94 = add nsw i32 %93, 1
store i32 %94, i32* %12
br label %38
95: ; preds = %38
%96 = load double, double* %14
%97 = fcmp ogt double %96, 0.000000e+00
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 %98)
store i32 0, i32* %12
br label %100
100: ; preds = %134, %95
%101 = load i32, i32* %12
%102 = load i32, i32* %7
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %137
104: ; preds = %100
store i32 0, i32* %13
br label %105
105: ; preds = %130, %104
%106 = load i32, i32* %13
%107 = load i32, i32* %8
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %133
109: ; preds = %105
%110 = load i32, i32* %13
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %20, i64 %111
%113 = load double, double* %112
%114 = load double, double* %14
%115 = fdiv double %113, %114
%116 = load double*, double** %10
%117 = load i32, i32* %11
%118 = load i32, i32* %7
%119 = mul nsw i32 %117, %118
%120 = load i32, i32* %8
%121 = mul nsw i32 %119, %120
%122 = load i32, i32* %12
%123 = load i32, i32* %8
%124 = mul nsw i32 %122, %123
%125 = add nsw i32 %121, %124
%126 = load i32, i32* %13
%127 = add nsw i32 %125, %126
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %116, i64 %128
store double %115, double* %129
br label %130
130: ; preds = %109
%131 = load i32, i32* %13
%132 = add nsw i32 %131, 1
store i32 %132, i32* %13
br label %105
133: ; preds = %105
br label %134
134: ; preds = %133
%135 = load i32, i32* %12
%136 = add nsw i32 %135, 1
store i32 %136, i32* %12
br label %100
137: ; preds = %100
br label %138
138: ; preds = %137
%139 = load i32, i32* %11
%140 = add nsw i32 %139, 1
store i32 %140, i32* %11
br label %21
141: ; preds = %21
%142 = load i8*, i8** %15
ret void
}

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