#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 */
double fabs(double);
double fmax(double, double);
double pow(double, double);
void calculateNumericalDiffusionJaffre(
    int nElements_global, int nQuadraturePoints_element, int nSpace,
    double shockCapturingDiffusion, double beta, double *elementDiameter,
    double *strong_residual, double *grad_u, double *numDiff) {
  int eN, k, I;
  double h, num, hfactor, n_grad_u[nQuadraturePoints_element], n_R_eN,
      maxNumDiff;
  for (eN = 0; eN < nElements_global; eN++) {
    h = elementDiameter[eN];
    hfactor = pow(h, 2.0 - beta);
    for (k = 0; k < nQuadraturePoints_element; k++) {
      num = shockCapturingDiffusion * hfactor *
            fabs(strong_residual[eN * nQuadraturePoints_element + k]);
      numDiff[eN * nQuadraturePoints_element + k] = num;
    }
    maxNumDiff = 0.0;
    for (k = 0; k < nQuadraturePoints_element; k++) {
      maxNumDiff =
          fmax(maxNumDiff, numDiff[eN * nQuadraturePoints_element + k]);
    }
    for (k = 0; k < nQuadraturePoints_element; k++)
      numDiff[eN * nQuadraturePoints_element + k] = maxNumDiff;
  }
}


x86 assembly (clang, -O0):
<calculateNumericalDiffusionJaffre>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12b3 <calculateNumericalDiffusionJaffre+0x1a3>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xe82(%rip),%xmm1
subsd  -0x20(%rbp),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11fd <calculateNumericalDiffusionJaffre+0xed>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xe49(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1194 <calculateNumericalDiffusionJaffre+0x84>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1264 <calculateNumericalDiffusionJaffre+0x154>
movsd  -0x80(%rbp),%xmm3
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    120c <calculateNumericalDiffusionJaffre+0xfc>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a0 <calculateNumericalDiffusionJaffre+0x190>
movsd  -0x80(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    126b <calculateNumericalDiffusionJaffre+0x15b>
jmp    12a5 <calculateNumericalDiffusionJaffre+0x195>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1153 <calculateNumericalDiffusionJaffre+0x43>
mov    -0x68(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculateNumericalDiffusionJaffre>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,0x80(%rsp)
movsd  %xmm0,0x58(%rsp)
test   %edi,%edi
jle    1603 <calculateNumericalDiffusionJaffre+0x4f3>
mov    0xe0(%rsp),%r9
movsd  0xeb9(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x78(%rsp)
movslq %esi,%rax
mov    %edi,%ecx
mov    %rcx,0x70(%rsp)
mov    %eax,%r10d
mov    %r10d,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x18(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0x10(%rsp)
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
lea    -0x1(%r10),%rcx
mov    %rcx,0x20(%rsp)
movabs $0x7ffffffffffffffc,%rcx
ff ff 7f
or     $0x2,%rcx
and    %rdx,%rcx
mov    %rcx,0x30(%rsp)
mov    %r10d,%ecx
and    $0xfffffffe,%ecx
mov    %rcx,0x48(%rsp)
mov    %edx,%edi
and    $0x3,%edi
mov    %rdx,%rcx
mov    %rdx,0x40(%rsp)
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0x28(%rsp)
lea    0x30(%r9),%r11
mov    %rax,0x50(%rsp)
lea    0x0(,%rax,8),%rax
mov    %rax,0x68(%rsp)
mov    %rdi,0x38(%rsp)
mov    %rdi,%r12
shl    $0x5,%r12
lea    0x30(%r8),%r14
lea    0x8(%r8),%rbx
lea    0x8(%r9),%r13
lea    0x70(%r9),%rbp
lea    0x10(%r9),%r15
xor    %edi,%edi
mov    %r9,%rdx
mov    %r12,0x60(%rsp)
jmp    1229 <calculateNumericalDiffusionJaffre+0x119>
nop
add    $0x1,%rdi
mov    0x68(%rsp),%rax
add    %rax,%r11
add    %rax,%r14
add    %rax,%rbx
add    %rax,%r13
add    %rax,%rbp
add    %rax,%r15
add    %rax,%rdx
cmp    0x70(%rsp),%rdi
je     1603 <calculateNumericalDiffusionJaffre+0x4f3>
mov    %rdx,0x8(%rsp)
mov    %rdi,(%rsp)
mov    %r15,0x88(%rsp)
mov    %rbp,0x90(%rsp)
mov    %rbx,0x98(%rsp)
mov    %r14,0xa0(%rsp)
mov    0x80(%rsp),%rax
movsd  (%rax,%rdi,8),%xmm0
movsd  0x78(%rsp),%xmm1
mov    %r8,%r15
mov    %esi,%r14d
mov    %r9,%rbx
mov    %r10,%r12
mov    %r11,%rbp
call   1030 <pow@plt>
mov    0x8(%rsp),%rdx
mov    (%rsp),%rdi
movapd 0xd86(%rip),%xmm4
mov    %rbp,%r11
mov    %r12,%r10
mov    %rbx,%r9
mov    0x60(%rsp),%r12
mov    %r14d,%esi
mov    0x90(%rsp),%rbp
mov    0x98(%rsp),%rbx
mov    0xa0(%rsp),%r14
mov    %r15,%r8
mov    0x88(%rsp),%r15
test   %esi,%esi
jle    1200 <calculateNumericalDiffusionJaffre+0xf0>
mov    %rdi,%rax
imul   0x50(%rsp),%rax
mulsd  0x58(%rsp),%xmm0
cmp    $0x4,%esi
jae    12f0 <calculateNumericalDiffusionJaffre+0x1e0>
xor    %edx,%edx
movapd 0xd2c(%rip),%xmm5
jmp    1400 <calculateNumericalDiffusionJaffre+0x2f0>
nopl   0x0(%rax)
lea    (%rax,%r10,1),%rcx
lea    (%r9,%rax,8),%rdx
lea    (%r8,%rcx,8),%rdi
cmp    %rdi,%rdx
jae    1321 <calculateNumericalDiffusionJaffre+0x211>
lea    (%r9,%rcx,8),%rcx
lea    (%r8,%rax,8),%rdx
cmp    %rcx,%rdx
jae    1321 <calculateNumericalDiffusionJaffre+0x211>
xor    %edx,%edx
movapd 0xcf8(%rip),%xmm5
mov    (%rsp),%rdi
jmp    1400 <calculateNumericalDiffusionJaffre+0x2f0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,0x10(%rsp)
movapd 0xcd9(%rip),%xmm5
je     1546 <calculateNumericalDiffusionJaffre+0x436>
mov    0x30(%rsp),%rdx
xor    %ecx,%ecx
mov    (%rsp),%rdi
nopl   0x0(%rax,%rax,1)
movupd -0x30(%r14,%rcx,8),%xmm2
movupd -0x20(%r14,%rcx,8),%xmm3
andpd  %xmm5,%xmm2
andpd  %xmm5,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,-0x30(%r11,%rcx,8)
movupd %xmm3,-0x20(%r11,%rcx,8)
movupd -0x10(%r14,%rcx,8),%xmm2
movupd (%r14,%rcx,8),%xmm3
andpd  %xmm5,%xmm2
andpd  %xmm5,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,-0x10(%r11,%rcx,8)
movupd %xmm3,(%r11,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1350 <calculateNumericalDiffusionJaffre+0x240>
testb  $0x1,0x40(%rsp)
je     13e4 <calculateNumericalDiffusionJaffre+0x2d4>
add    %rax,%rcx
movupd (%r8,%rcx,8),%xmm2
movupd 0x10(%r8,%rcx,8),%xmm3
andpd  %xmm5,%xmm2
andpd  %xmm5,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,(%r9,%rcx,8)
movupd %xmm3,0x10(%r9,%rcx,8)
mov    0x18(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r10,%rcx
je     1462 <calculateNumericalDiffusionJaffre+0x352>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdx,%rcx
test   $0x1,%r10b
je     1428 <calculateNumericalDiffusionJaffre+0x318>
lea    (%rdx,%rax,1),%rcx
movsd  (%r8,%rcx,8),%xmm1
andpd  %xmm5,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r9,%rcx,8)
mov    %rdx,%rcx
or     $0x1,%rcx
cmp    %rdx,0x20(%rsp)
je     1462 <calculateNumericalDiffusionJaffre+0x352>
nop
movsd  -0x8(%rbx,%rcx,8),%xmm1
andpd  %xmm4,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%r13,%rcx,8)
movsd  (%rbx,%rcx,8),%xmm1
andpd  %xmm4,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%r13,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r10
jne    1430 <calculateNumericalDiffusionJaffre+0x320>
test   %esi,%esi
mov    0x8(%rsp),%rdx
jle    1200 <calculateNumericalDiffusionJaffre+0xf0>
cmpq   $0x0,0x20(%rsp)
je     14e3 <calculateNumericalDiffusionJaffre+0x3d3>
xorpd  %xmm1,%xmm1
xor    %ecx,%ecx
movapd %xmm1,%xmm0
mov    0x48(%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
movsd  -0x8(%r13,%rcx,8),%xmm2
movsd  0x0(%r13,%rcx,8),%xmm3
cmpunordsd %xmm0,%xmm0
movapd %xmm0,%xmm4
andpd  %xmm2,%xmm4
maxsd  %xmm1,%xmm2
andnpd %xmm2,%xmm0
orpd   %xmm4,%xmm0
movapd %xmm3,%xmm1
maxsd  %xmm0,%xmm1
cmpunordsd %xmm0,%xmm0
movapd %xmm0,%xmm2
andnpd %xmm1,%xmm2
andpd  %xmm3,%xmm0
orpd   %xmm2,%xmm0
add    $0x2,%rcx
movapd %xmm0,%xmm1
cmp    %rcx,%rdx
jne    1490 <calculateNumericalDiffusionJaffre+0x380>
jmp    14e9 <calculateNumericalDiffusionJaffre+0x3d9>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
test   $0x1,%r10b
mov    0x8(%rsp),%rdx
je     151e <calculateNumericalDiffusionJaffre+0x40e>
add    %rax,%rcx
movsd  (%r9,%rcx,8),%xmm1
movapd %xmm0,%xmm2
cmpunordsd %xmm0,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm1,%xmm3
maxsd  %xmm0,%xmm1
andnpd %xmm1,%xmm2
orpd   %xmm3,%xmm2
movapd %xmm2,%xmm0
test   %esi,%esi
jle    1200 <calculateNumericalDiffusionJaffre+0xf0>
cmp    $0x4,%esi
jae    1532 <calculateNumericalDiffusionJaffre+0x422>
xor    %eax,%eax
jmp    15f0 <calculateNumericalDiffusionJaffre+0x4e0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0xc,0x10(%rsp)
jae    155c <calculateNumericalDiffusionJaffre+0x44c>
xor    %eax,%eax
jmp    15aa <calculateNumericalDiffusionJaffre+0x49a>
xor    %ecx,%ecx
mov    (%rsp),%rdi
testb  $0x1,0x40(%rsp)
jne    13b7 <calculateNumericalDiffusionJaffre+0x2a7>
jmp    13e4 <calculateNumericalDiffusionJaffre+0x2d4>
mov    0x28(%rsp),%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd %xmm1,-0x70(%rbp,%rax,8)
movupd %xmm1,-0x60(%rbp,%rax,8)
movupd %xmm1,-0x50(%rbp,%rax,8)
movupd %xmm1,-0x40(%rbp,%rax,8)
movupd %xmm1,-0x30(%rbp,%rax,8)
movupd %xmm1,-0x20(%rbp,%rax,8)
movupd %xmm1,-0x10(%rbp,%rax,8)
movupd %xmm1,0x0(%rbp,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1570 <calculateNumericalDiffusionJaffre+0x460>
cmpq   $0x0,0x38(%rsp)
je     15d4 <calculateNumericalDiffusionJaffre+0x4c4>
lea    (%r15,%rax,8),%rax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd %xmm1,-0x10(%rax,%rcx,1)
movupd %xmm1,(%rax,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%r12
jne    15c0 <calculateNumericalDiffusionJaffre+0x4b0>
mov    0x18(%rsp),%rcx
mov    %rcx,%rax
cmp    %r10,%rcx
je     1200 <calculateNumericalDiffusionJaffre+0xf0>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm0,(%rdx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r10
jne    15f0 <calculateNumericalDiffusionJaffre+0x4e0>
jmp    1200 <calculateNumericalDiffusionJaffre+0xf0>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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