#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 pow(double, int);
void evaluateU(double x, double y, double z, double *U, double *Ux, double *Uy,
               double *Uz, double *Uxx, double *Uyy, double *Uzz,
               int isPeriodic) {
  double shift = 0.0;
  if (isPeriodic)
    shift = -1.0 / 30.0;
  double X = 1.0 * pow(x, 4) - 2.0 * pow(x, 3) + 1.0 * pow(x, 2) + shift;
  double Y = 1.0 * pow(y, 4) - 2.0 * pow(y, 3) + 1.0 * pow(y, 2) + shift;
  double Z = 1.0 * pow(z, 4) - 2.0 * pow(z, 3) + 1.0 * pow(z, 2) + shift;
  double Xx = 4.0 * pow(x, 3) - 6.0 * pow(x, 2) + 2.0 * x;
  double Yy = 4.0 * pow(y, 3) - 6.0 * pow(y, 2) + 2.0 * y;
  double Zz = 4.0 * pow(z, 3) - 6.0 * pow(z, 2) + 2.0 * z;
  double Xxx = 12.0 * pow(x, 2) - 12.0 * x + 2.0;
  double Yyy = 12.0 * pow(y, 2) - 12.0 * y + 2.0;
  double Zzz = 12.0 * pow(z, 2) - 12.0 * z + 2.0;
  *U = X * Y * Z;
  *Ux = Xx * Y * Z;
  *Uy = X * Yy * Z;
  *Uz = X * Y * Zz;
  *Uxx = Xxx * Y * Z;
  *Uyy = X * Yyy * Z;
  *Uzz = X * Y * Zzz;
}


x86 assembly (clang, -O0):
<evaluateU>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
cmpl   $0x0,0x18(%rbp)
je     1168 <evaluateU+0x58>
movsd  0xe9d(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0xe0(%rbp),%xmm0
ff
movsd  0xe67(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xd8(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0xd0(%rbp),%xmm0
ff
movsd  0xde2(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xc8(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0xc0(%rbp),%xmm0
ff
movsd  0xd5d(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xb8(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  0xcf0(%rip),%xmm0
mulsd  %xmm2,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xcc5(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xa8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  0xc7a(%rip),%xmm0
mulsd  %xmm2,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xc4f(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  0xc04(%rip),%xmm0
mulsd  %xmm2,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xbd9(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0xba0(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xb7c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb64(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0xb49(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xb25(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb0d(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0xaf2(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xace(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xab6(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x68(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluateU>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,0x8(%rsp)
cmpl   $0x0,0x88(%rsp)
xorps  %xmm1,%xmm1
je     1151 <evaluateU+0x41>
movsd  0xeaf(%rip),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x10(%rsp)
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
addsd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
addsd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
addsd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulsd  0xd7c(%rip),%xmm0
movsd  (%rsp),%xmm1
mulsd  0xd77(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulsd  0xd2a(%rip),%xmm0
movsd  0x30(%rsp),%xmm1
mulsd  0xd24(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulsd  0xcd6(%rip),%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  0xcd0(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xca2(%rip),%xmm1
mulsd  0xca2(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xc9e(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xc6a(%rip),%xmm1
mulsd  0xc6a(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xc66(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0xc32(%rip),%xmm1
mulsd  0xc32(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xc2e(%rip),%xmm0
movsd  0x40(%rsp),%xmm3
movapd %xmm3,%xmm1
movsd  0x38(%rsp),%xmm4
mulsd  %xmm4,%xmm1
movapd %xmm1,%xmm2
movsd  0x20(%rsp),%xmm5
mulsd  %xmm5,%xmm2
movsd  %xmm2,0x0(%rbp)
movsd  (%rsp),%xmm2
mulsd  %xmm4,%xmm2
mulsd  %xmm5,%xmm2
movsd  %xmm2,(%rbx)
movsd  0x30(%rsp),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm5,%xmm2
movsd  %xmm2,0x0(%r13)
movsd  0x28(%rsp),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,(%r12)
movsd  0x10(%rsp),%xmm2
mulsd  %xmm4,%xmm2
mulsd  %xmm5,%xmm2
movsd  %xmm2,(%r15)
movsd  0x8(%rsp),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm5,%xmm2
movsd  %xmm2,(%r14)
mulsd  %xmm0,%xmm1
mov    0x80(%rsp),%rax
movsd  %xmm1,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @evaluateU(double %0, double %1, double %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9, i32 %10) {
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca i32
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
store double %0, double* %12
store double %1, double* %13
store double %2, double* %14
store double* %3, double** %15
store double* %4, double** %16
store double* %5, double** %17
store double* %6, double** %18
store double* %7, double** %19
store double* %8, double** %20
store double* %9, double** %21
store i32 %10, i32* %22
store double 0.000000e+00, double* %23
%33 = load i32, i32* %22
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %11
store double 0xBFA1111111111111, double* %23
br label %36
36: ; preds = %35, %11
%37 = load double, double* %12
%38 = call double @pow(double %37, i32 4)
%39 = load double, double* %12
%40 = call double @pow(double %39, i32 3)
%41 = fmul double 2.000000e+00, %40
%42 = fneg double %41
%43 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %38, double %42)
%44 = load double, double* %12
%45 = call double @pow(double %44, i32 2)
%46 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %45, double %43)
%47 = load double, double* %23
%48 = fadd double %46, %47
store double %48, double* %24
%49 = load double, double* %13
%50 = call double @pow(double %49, i32 4)
%51 = load double, double* %13
%52 = call double @pow(double %51, i32 3)
%53 = fmul double 2.000000e+00, %52
%54 = fneg double %53
%55 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %50, double %54)
%56 = load double, double* %13
%57 = call double @pow(double %56, i32 2)
%58 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %57, double %55)
%59 = load double, double* %23
%60 = fadd double %58, %59
store double %60, double* %25
%61 = load double, double* %14
%62 = call double @pow(double %61, i32 4)
%63 = load double, double* %14
%64 = call double @pow(double %63, i32 3)
%65 = fmul double 2.000000e+00, %64
%66 = fneg double %65
%67 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %62, double %66)
%68 = load double, double* %14
%69 = call double @pow(double %68, i32 2)
%70 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %69, double %67)
%71 = load double, double* %23
%72 = fadd double %70, %71
store double %72, double* %26
%73 = load double, double* %12
%74 = call double @pow(double %73, i32 3)
%75 = load double, double* %12
%76 = call double @pow(double %75, i32 2)
%77 = fmul double 6.000000e+00, %76
%78 = fneg double %77
%79 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %74, double %78)
%80 = load double, double* %12
%81 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %80, double %79)
store double %81, double* %27
%82 = load double, double* %13
%83 = call double @pow(double %82, i32 3)
%84 = load double, double* %13
%85 = call double @pow(double %84, i32 2)
%86 = fmul double 6.000000e+00, %85
%87 = fneg double %86
%88 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %83, double %87)
%89 = load double, double* %13
%90 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %89, double %88)
store double %90, double* %28
%91 = load double, double* %14
%92 = call double @pow(double %91, i32 3)
%93 = load double, double* %14
%94 = call double @pow(double %93, i32 2)
%95 = fmul double 6.000000e+00, %94
%96 = fneg double %95
%97 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %92, double %96)
%98 = load double, double* %14
%99 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %98, double %97)
store double %99, double* %29
%100 = load double, double* %12
%101 = call double @pow(double %100, i32 2)
%102 = load double, double* %12
%103 = fmul double 1.200000e+01, %102
%104 = fneg double %103
%105 = call double @llvm.fmuladd.f64(double 1.200000e+01, double %101, double %104)
%106 = fadd double %105, 2.000000e+00
store double %106, double* %30
%107 = load double, double* %13
%108 = call double @pow(double %107, i32 2)
%109 = load double, double* %13
%110 = fmul double 1.200000e+01, %109
%111 = fneg double %110
%112 = call double @llvm.fmuladd.f64(double 1.200000e+01, double %108, double %111)
%113 = fadd double %112, 2.000000e+00
store double %113, double* %31
%114 = load double, double* %14
%115 = call double @pow(double %114, i32 2)
%116 = load double, double* %14
%117 = fmul double 1.200000e+01, %116
%118 = fneg double %117
%119 = call double @llvm.fmuladd.f64(double 1.200000e+01, double %115, double %118)
%120 = fadd double %119, 2.000000e+00
store double %120, double* %32
%121 = load double, double* %24
%122 = load double, double* %25
%123 = fmul double %121, %122
%124 = load double, double* %26
%125 = fmul double %123, %124
%126 = load double*, double** %15
store double %125, double* %126
%127 = load double, double* %27
%128 = load double, double* %25
%129 = fmul double %127, %128
%130 = load double, double* %26
%131 = fmul double %129, %130
%132 = load double*, double** %16
store double %131, double* %132
%133 = load double, double* %24
%134 = load double, double* %28
%135 = fmul double %133, %134
%136 = load double, double* %26
%137 = fmul double %135, %136
%138 = load double*, double** %17
store double %137, double* %138
%139 = load double, double* %24
%140 = load double, double* %25
%141 = fmul double %139, %140
%142 = load double, double* %29
%143 = fmul double %141, %142
%144 = load double*, double** %18
store double %143, double* %144
%145 = load double, double* %30
%146 = load double, double* %25
%147 = fmul double %145, %146
%148 = load double, double* %26
%149 = fmul double %147, %148
%150 = load double*, double** %19
store double %149, double* %150
%151 = load double, double* %24
%152 = load double, double* %31
%153 = fmul double %151, %152
%154 = load double, double* %26
%155 = fmul double %153, %154
%156 = load double*, double** %20
store double %155, double* %156
%157 = load double, double* %24
%158 = load double, double* %25
%159 = fmul double %157, %158
%160 = load double, double* %32
%161 = fmul double %159, %160
%162 = load double*, double** %21
store double %161, double* %162
ret void
}

LLVM IR (-O2):
define void @evaluateU(double %0, double %1, double %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture writeonly %6, double* nocapture writeonly %7, double* nocapture writeonly %8, double* nocapture writeonly %9, i32 %10) {
%12 = icmp eq i32 %10, 0
%13 = select i1 %12, double 0.000000e+00, double 0xBFA1111111111111
%14 = tail call double @pow(double %0, i32 4)
%15 = tail call double @pow(double %0, i32 3)
%16 = fmul double %15, 2.000000e+00
%17 = fsub double %14, %16
%18 = tail call double @pow(double %0, i32 2)
%19 = fadd double %18, %17
%20 = fadd double %13, %19
%21 = tail call double @pow(double %1, i32 4)
%22 = tail call double @pow(double %1, i32 3)
%23 = fmul double %22, 2.000000e+00
%24 = fsub double %21, %23
%25 = tail call double @pow(double %1, i32 2)
%26 = fadd double %25, %24
%27 = fadd double %13, %26
%28 = tail call double @pow(double %2, i32 4)
%29 = tail call double @pow(double %2, i32 3)
%30 = fmul double %29, 2.000000e+00
%31 = fsub double %28, %30
%32 = tail call double @pow(double %2, i32 2)
%33 = fadd double %32, %31
%34 = fadd double %13, %33
%35 = tail call double @pow(double %0, i32 3)
%36 = tail call double @pow(double %0, i32 2)
%37 = fmul double %36, -6.000000e+00
%38 = tail call double @llvm.fmuladd.f64(double %35, double 4.000000e+00, double %37)
%39 = tail call double @llvm.fmuladd.f64(double %0, double 2.000000e+00, double %38)
%40 = tail call double @pow(double %1, i32 3)
%41 = tail call double @pow(double %1, i32 2)
%42 = fmul double %41, -6.000000e+00
%43 = tail call double @llvm.fmuladd.f64(double %40, double 4.000000e+00, double %42)
%44 = tail call double @llvm.fmuladd.f64(double %1, double 2.000000e+00, double %43)
%45 = tail call double @pow(double %2, i32 3)
%46 = tail call double @pow(double %2, i32 2)
%47 = fmul double %46, -6.000000e+00
%48 = tail call double @llvm.fmuladd.f64(double %45, double 4.000000e+00, double %47)
%49 = tail call double @llvm.fmuladd.f64(double %2, double 2.000000e+00, double %48)
%50 = tail call double @pow(double %0, i32 2)
%51 = fmul double %0, -1.200000e+01
%52 = tail call double @llvm.fmuladd.f64(double %50, double 1.200000e+01, double %51)
%53 = fadd double %52, 2.000000e+00
%54 = tail call double @pow(double %1, i32 2)
%55 = fmul double %1, -1.200000e+01
%56 = tail call double @llvm.fmuladd.f64(double %54, double 1.200000e+01, double %55)
%57 = fadd double %56, 2.000000e+00
%58 = tail call double @pow(double %2, i32 2)
%59 = fmul double %2, -1.200000e+01
%60 = tail call double @llvm.fmuladd.f64(double %58, double 1.200000e+01, double %59)
%61 = fadd double %60, 2.000000e+00
%62 = fmul double %20, %27
%63 = fmul double %62, %34
store double %63, double* %3
%64 = fmul double %27, %39
%65 = fmul double %34, %64
store double %65, double* %4
%66 = fmul double %20, %44
%67 = fmul double %34, %66
store double %67, double* %5
%68 = fmul double %62, %49
store double %68, double* %6
%69 = fmul double %27, %53
%70 = fmul double %34, %69
store double %70, double* %7
%71 = fmul double %20, %57
%72 = fmul double %34, %71
store double %72, double* %8
%73 = fmul double %62, %61
store double %73, double* %9
ret void
}