double evalDisp(double coeff[], int ncoeff, double m, double wl) {
  double ix_r;
  switch (ncoeff) {
  case 1:
    ix_r = coeff[0];
    break;
  case 2:
    ix_r = coeff[0] + coeff[1] * m * wl;
    break;
  case 3:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl;
    break;
  case 4:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m;
    break;
  case 5:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m + coeff[4] * wl;
    break;
  case 6:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m + coeff[4] * wl + coeff[5] * m * m * wl;
    break;
  case 7:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m + coeff[4] * wl + coeff[5] * m * m * wl +
           coeff[6] * m * wl * wl;
    break;
  case 8:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m + coeff[4] * wl + coeff[5] * m * m * wl +
           coeff[6] * m * wl * wl + coeff[7] * m * m * m * wl * wl * wl;
    break;
  case 9:
    ix_r = coeff[0] + coeff[1] * m * wl + coeff[2] * m * m * wl * wl +
           coeff[3] * m + coeff[4] * wl + coeff[5] * m * m * wl +
           coeff[6] * m * wl * wl + coeff[7] * m * m * m * wl * wl * wl +
           coeff[8] * m * m;
    break;
  default:
    ix_r = -1000000.;
  }
  ix_r--;
  return ix_r;
}


x86 assembly (clang, -O0):
<evalDisp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x8,%eax
ja     1606 <evalDisp+0x506>
mov    -0x30(%rbp),%rax
lea    0xedb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1613 <evalDisp+0x513>
movsd  0x9f2(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0x9ed(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<evalDisp>:
add    $0xffffffff,%esi
cmp    $0x8,%esi
ja     1125 <evalDisp+0x25>
lea    0xf01(%rip),%rax
movslq (%rax,%rsi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
movsd  (%rdi),%xmm0
addsd  0xee4(%rip),%xmm0
ret
movsd  0xed3(%rip),%xmm0
addsd  0xed3(%rip),%xmm0
ret
mulsd  0x8(%rdi),%xmm0
mulsd  %xmm1,%xmm0
addsd  (%rdi),%xmm0
addsd  0xebd(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movapd %xmm3,%xmm0
addsd  0xe86(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
mulsd  0x18(%rdi),%xmm0
addsd  %xmm3,%xmm0
addsd  0xe4a(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
mulsd  0x18(%rdi),%xmm0
addsd  %xmm3,%xmm0
mulsd  0x20(%rdi),%xmm1
addsd  %xmm1,%xmm0
addsd  0xe05(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x18(%rdi),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  0x20(%rdi),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x28(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
jmp    1354 <evalDisp+0x254>
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x18(%rdi),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  0x20(%rdi),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x28(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
mulsd  0x30(%rdi),%xmm0
addsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
addsd  0xd3c(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x18(%rdi),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  0x20(%rdi),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x28(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  0x30(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x38(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movapd %xmm2,%xmm0
addsd  0xca0(%rip),%xmm0
ret
movsd  0x8(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi),%xmm2
movsd  0x10(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x18(%rdi),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  0x20(%rdi),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x28(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  0x30(%rdi),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0x38(%rdi),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  0x40(%rdi),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
addsd  0xbf3(%rip),%xmm0
ret

LLVM IR (-O0):
define double @evalDisp(double* %0, i32 %1, double %2, double %3) {
%5 = alloca double*
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double* %0, double** %5
store i32 %1, i32* %6
store double %2, double* %7
store double %3, double* %8
%10 = load i32, i32* %6
switch i32 %10, label %335 [
i32 1, label %11
i32 2, label %15
i32 3, label %26
i32 4, label %48
i32 5, label %75
i32 6, label %107
i32 7, label %148
i32 8, label %198
i32 9, label %263
]
11: ; preds = %4
%12 = load double*, double** %5
%13 = getelementptr inbounds double, double* %12, i64 0
%14 = load double, double* %13
store double %14, double* %9
br label %336
15: ; preds = %4
%16 = load double*, double** %5
%17 = getelementptr inbounds double, double* %16, i64 0
%18 = load double, double* %17
%19 = load double*, double** %5
%20 = getelementptr inbounds double, double* %19, i64 1
%21 = load double, double* %20
%22 = load double, double* %7
%23 = fmul double %21, %22
%24 = load double, double* %8
%25 = call double @llvm.fmuladd.f64(double %23, double %24, double %18)
store double %25, double* %9
br label %336
26: ; preds = %4
%27 = load double*, double** %5
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = load double*, double** %5
%31 = getelementptr inbounds double, double* %30, i64 1
%32 = load double, double* %31
%33 = load double, double* %7
%34 = fmul double %32, %33
%35 = load double, double* %8
%36 = call double @llvm.fmuladd.f64(double %34, double %35, double %29)
%37 = load double*, double** %5
%38 = getelementptr inbounds double, double* %37, i64 2
%39 = load double, double* %38
%40 = load double, double* %7
%41 = fmul double %39, %40
%42 = load double, double* %7
%43 = fmul double %41, %42
%44 = load double, double* %8
%45 = fmul double %43, %44
%46 = load double, double* %8
%47 = call double @llvm.fmuladd.f64(double %45, double %46, double %36)
store double %47, double* %9
br label %336
48: ; preds = %4
%49 = load double*, double** %5
%50 = getelementptr inbounds double, double* %49, i64 0
%51 = load double, double* %50
%52 = load double*, double** %5
%53 = getelementptr inbounds double, double* %52, i64 1
%54 = load double, double* %53
%55 = load double, double* %7
%56 = fmul double %54, %55
%57 = load double, double* %8
%58 = call double @llvm.fmuladd.f64(double %56, double %57, double %51)
%59 = load double*, double** %5
%60 = getelementptr inbounds double, double* %59, i64 2
%61 = load double, double* %60
%62 = load double, double* %7
%63 = fmul double %61, %62
%64 = load double, double* %7
%65 = fmul double %63, %64
%66 = load double, double* %8
%67 = fmul double %65, %66
%68 = load double, double* %8
%69 = call double @llvm.fmuladd.f64(double %67, double %68, double %58)
%70 = load double*, double** %5
%71 = getelementptr inbounds double, double* %70, i64 3
%72 = load double, double* %71
%73 = load double, double* %7
%74 = call double @llvm.fmuladd.f64(double %72, double %73, double %69)
store double %74, double* %9
br label %336
75: ; preds = %4
%76 = load double*, double** %5
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = load double*, double** %5
%80 = getelementptr inbounds double, double* %79, i64 1
%81 = load double, double* %80
%82 = load double, double* %7
%83 = fmul double %81, %82
%84 = load double, double* %8
%85 = call double @llvm.fmuladd.f64(double %83, double %84, double %78)
%86 = load double*, double** %5
%87 = getelementptr inbounds double, double* %86, i64 2
%88 = load double, double* %87
%89 = load double, double* %7
%90 = fmul double %88, %89
%91 = load double, double* %7
%92 = fmul double %90, %91
%93 = load double, double* %8
%94 = fmul double %92, %93
%95 = load double, double* %8
%96 = call double @llvm.fmuladd.f64(double %94, double %95, double %85)
%97 = load double*, double** %5
%98 = getelementptr inbounds double, double* %97, i64 3
%99 = load double, double* %98
%100 = load double, double* %7
%101 = call double @llvm.fmuladd.f64(double %99, double %100, double %96)
%102 = load double*, double** %5
%103 = getelementptr inbounds double, double* %102, i64 4
%104 = load double, double* %103
%105 = load double, double* %8
%106 = call double @llvm.fmuladd.f64(double %104, double %105, double %101)
store double %106, double* %9
br label %336
107: ; preds = %4
%108 = load double*, double** %5
%109 = getelementptr inbounds double, double* %108, i64 0
%110 = load double, double* %109
%111 = load double*, double** %5
%112 = getelementptr inbounds double, double* %111, i64 1
%113 = load double, double* %112
%114 = load double, double* %7
%115 = fmul double %113, %114
%116 = load double, double* %8
%117 = call double @llvm.fmuladd.f64(double %115, double %116, double %110)
%118 = load double*, double** %5
%119 = getelementptr inbounds double, double* %118, i64 2
%120 = load double, double* %119
%121 = load double, double* %7
%122 = fmul double %120, %121
%123 = load double, double* %7
%124 = fmul double %122, %123
%125 = load double, double* %8
%126 = fmul double %124, %125
%127 = load double, double* %8
%128 = call double @llvm.fmuladd.f64(double %126, double %127, double %117)
%129 = load double*, double** %5
%130 = getelementptr inbounds double, double* %129, i64 3
%131 = load double, double* %130
%132 = load double, double* %7
%133 = call double @llvm.fmuladd.f64(double %131, double %132, double %128)
%134 = load double*, double** %5
%135 = getelementptr inbounds double, double* %134, i64 4
%136 = load double, double* %135
%137 = load double, double* %8
%138 = call double @llvm.fmuladd.f64(double %136, double %137, double %133)
%139 = load double*, double** %5
%140 = getelementptr inbounds double, double* %139, i64 5
%141 = load double, double* %140
%142 = load double, double* %7
%143 = fmul double %141, %142
%144 = load double, double* %7
%145 = fmul double %143, %144
%146 = load double, double* %8
%147 = call double @llvm.fmuladd.f64(double %145, double %146, double %138)
store double %147, double* %9
br label %336
148: ; preds = %4
%149 = load double*, double** %5
%150 = getelementptr inbounds double, double* %149, i64 0
%151 = load double, double* %150
%152 = load double*, double** %5
%153 = getelementptr inbounds double, double* %152, i64 1
%154 = load double, double* %153
%155 = load double, double* %7
%156 = fmul double %154, %155
%157 = load double, double* %8
%158 = call double @llvm.fmuladd.f64(double %156, double %157, double %151)
%159 = load double*, double** %5
%160 = getelementptr inbounds double, double* %159, i64 2
%161 = load double, double* %160
%162 = load double, double* %7
%163 = fmul double %161, %162
%164 = load double, double* %7
%165 = fmul double %163, %164
%166 = load double, double* %8
%167 = fmul double %165, %166
%168 = load double, double* %8
%169 = call double @llvm.fmuladd.f64(double %167, double %168, double %158)
%170 = load double*, double** %5
%171 = getelementptr inbounds double, double* %170, i64 3
%172 = load double, double* %171
%173 = load double, double* %7
%174 = call double @llvm.fmuladd.f64(double %172, double %173, double %169)
%175 = load double*, double** %5
%176 = getelementptr inbounds double, double* %175, i64 4
%177 = load double, double* %176
%178 = load double, double* %8
%179 = call double @llvm.fmuladd.f64(double %177, double %178, double %174)
%180 = load double*, double** %5
%181 = getelementptr inbounds double, double* %180, i64 5
%182 = load double, double* %181
%183 = load double, double* %7
%184 = fmul double %182, %183
%185 = load double, double* %7
%186 = fmul double %184, %185
%187 = load double, double* %8
%188 = call double @llvm.fmuladd.f64(double %186, double %187, double %179)
%189 = load double*, double** %5
%190 = getelementptr inbounds double, double* %189, i64 6
%191 = load double, double* %190
%192 = load double, double* %7
%193 = fmul double %191, %192
%194 = load double, double* %8
%195 = fmul double %193, %194
%196 = load double, double* %8
%197 = call double @llvm.fmuladd.f64(double %195, double %196, double %188)
store double %197, double* %9
br label %336
198: ; preds = %4
%199 = load double*, double** %5
%200 = getelementptr inbounds double, double* %199, i64 0
%201 = load double, double* %200
%202 = load double*, double** %5
%203 = getelementptr inbounds double, double* %202, i64 1
%204 = load double, double* %203
%205 = load double, double* %7
%206 = fmul double %204, %205
%207 = load double, double* %8
%208 = call double @llvm.fmuladd.f64(double %206, double %207, double %201)
%209 = load double*, double** %5
%210 = getelementptr inbounds double, double* %209, i64 2
%211 = load double, double* %210
%212 = load double, double* %7
%213 = fmul double %211, %212
%214 = load double, double* %7
%215 = fmul double %213, %214
%216 = load double, double* %8
%217 = fmul double %215, %216
%218 = load double, double* %8
%219 = call double @llvm.fmuladd.f64(double %217, double %218, double %208)
%220 = load double*, double** %5
%221 = getelementptr inbounds double, double* %220, i64 3
%222 = load double, double* %221
%223 = load double, double* %7
%224 = call double @llvm.fmuladd.f64(double %222, double %223, double %219)
%225 = load double*, double** %5
%226 = getelementptr inbounds double, double* %225, i64 4
%227 = load double, double* %226
%228 = load double, double* %8
%229 = call double @llvm.fmuladd.f64(double %227, double %228, double %224)
%230 = load double*, double** %5
%231 = getelementptr inbounds double, double* %230, i64 5
%232 = load double, double* %231
%233 = load double, double* %7
%234 = fmul double %232, %233
%235 = load double, double* %7
%236 = fmul double %234, %235
%237 = load double, double* %8
%238 = call double @llvm.fmuladd.f64(double %236, double %237, double %229)
%239 = load double*, double** %5
%240 = getelementptr inbounds double, double* %239, i64 6
%241 = load double, double* %240
%242 = load double, double* %7
%243 = fmul double %241, %242
%244 = load double, double* %8
%245 = fmul double %243, %244
%246 = load double, double* %8
%247 = call double @llvm.fmuladd.f64(double %245, double %246, double %238)
%248 = load double*, double** %5
%249 = getelementptr inbounds double, double* %248, i64 7
%250 = load double, double* %249
%251 = load double, double* %7
%252 = fmul double %250, %251
%253 = load double, double* %7
%254 = fmul double %252, %253
%255 = load double, double* %7
%256 = fmul double %254, %255
%257 = load double, double* %8
%258 = fmul double %256, %257
%259 = load double, double* %8
%260 = fmul double %258, %259
%261 = load double, double* %8
%262 = call double @llvm.fmuladd.f64(double %260, double %261, double %247)
store double %262, double* %9
br label %336
263: ; preds = %4
%264 = load double*, double** %5
%265 = getelementptr inbounds double, double* %264, i64 0
%266 = load double, double* %265
%267 = load double*, double** %5
%268 = getelementptr inbounds double, double* %267, i64 1
%269 = load double, double* %268
%270 = load double, double* %7
%271 = fmul double %269, %270
%272 = load double, double* %8
%273 = call double @llvm.fmuladd.f64(double %271, double %272, double %266)
%274 = load double*, double** %5
%275 = getelementptr inbounds double, double* %274, i64 2
%276 = load double, double* %275
%277 = load double, double* %7
%278 = fmul double %276, %277
%279 = load double, double* %7
%280 = fmul double %278, %279
%281 = load double, double* %8
%282 = fmul double %280, %281
%283 = load double, double* %8
%284 = call double @llvm.fmuladd.f64(double %282, double %283, double %273)
%285 = load double*, double** %5
%286 = getelementptr inbounds double, double* %285, i64 3
%287 = load double, double* %286
%288 = load double, double* %7
%289 = call double @llvm.fmuladd.f64(double %287, double %288, double %284)
%290 = load double*, double** %5
%291 = getelementptr inbounds double, double* %290, i64 4
%292 = load double, double* %291
%293 = load double, double* %8
%294 = call double @llvm.fmuladd.f64(double %292, double %293, double %289)
%295 = load double*, double** %5
%296 = getelementptr inbounds double, double* %295, i64 5
%297 = load double, double* %296
%298 = load double, double* %7
%299 = fmul double %297, %298
%300 = load double, double* %7
%301 = fmul double %299, %300
%302 = load double, double* %8
%303 = call double @llvm.fmuladd.f64(double %301, double %302, double %294)
%304 = load double*, double** %5
%305 = getelementptr inbounds double, double* %304, i64 6
%306 = load double, double* %305
%307 = load double, double* %7
%308 = fmul double %306, %307
%309 = load double, double* %8
%310 = fmul double %308, %309
%311 = load double, double* %8
%312 = call double @llvm.fmuladd.f64(double %310, double %311, double %303)
%313 = load double*, double** %5
%314 = getelementptr inbounds double, double* %313, i64 7
%315 = load double, double* %314
%316 = load double, double* %7
%317 = fmul double %315, %316
%318 = load double, double* %7
%319 = fmul double %317, %318
%320 = load double, double* %7
%321 = fmul double %319, %320
%322 = load double, double* %8
%323 = fmul double %321, %322
%324 = load double, double* %8
%325 = fmul double %323, %324
%326 = load double, double* %8
%327 = call double @llvm.fmuladd.f64(double %325, double %326, double %312)
%328 = load double*, double** %5
%329 = getelementptr inbounds double, double* %328, i64 8
%330 = load double, double* %329
%331 = load double, double* %7
%332 = fmul double %330, %331
%333 = load double, double* %7
%334 = call double @llvm.fmuladd.f64(double %332, double %333, double %327)
store double %334, double* %9
br label %336
335: ; preds = %4
store double -1.000000e+06, double* %9
br label %336
336: ; preds = %335, %263, %198, %148, %107, %75, %48, %26, %15, %11
%337 = load double, double* %9
%338 = fadd double %337, -1.000000e+00
store double %338, double* %9
%339 = load double, double* %9
ret double %339
}

LLVM IR (-O2):
define double @evalDisp(double* %0, i32 %1, double %2, double %3) {
switch i32 %1, label %185 [
i32 1, label %5
i32 2, label %7
i32 3, label %13
i32 4, label %25
i32 5, label %40
i32 6, label %58
i32 7, label %81
i32 8, label %109
i32 9, label %145
]
5: ; preds = %4
%6 = load double, double* %0
br label %185
7: ; preds = %4
%8 = load double, double* %0
%9 = getelementptr inbounds double, double* %0, i64 1
%10 = load double, double* %9
%11 = fmul double %10, %2
%12 = tail call double @llvm.fmuladd.f64(double %11, double %3, double %8)
br label %185
13: ; preds = %4
%14 = load double, double* %0
%15 = getelementptr inbounds double, double* %0, i64 1
%16 = load double, double* %15
%17 = fmul double %16, %2
%18 = tail call double @llvm.fmuladd.f64(double %17, double %3, double %14)
%19 = getelementptr inbounds double, double* %0, i64 2
%20 = load double, double* %19
%21 = fmul double %20, %2
%22 = fmul double %21, %2
%23 = fmul double %22, %3
%24 = tail call double @llvm.fmuladd.f64(double %23, double %3, double %18)
br label %185
25: ; preds = %4
%26 = load double, double* %0
%27 = getelementptr inbounds double, double* %0, i64 1
%28 = load double, double* %27
%29 = fmul double %28, %2
%30 = tail call double @llvm.fmuladd.f64(double %29, double %3, double %26)
%31 = getelementptr inbounds double, double* %0, i64 2
%32 = load double, double* %31
%33 = fmul double %32, %2
%34 = fmul double %33, %2
%35 = fmul double %34, %3
%36 = tail call double @llvm.fmuladd.f64(double %35, double %3, double %30)
%37 = getelementptr inbounds double, double* %0, i64 3
%38 = load double, double* %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double %2, double %36)
br label %185
40: ; preds = %4
%41 = load double, double* %0
%42 = getelementptr inbounds double, double* %0, i64 1
%43 = load double, double* %42
%44 = fmul double %43, %2
%45 = tail call double @llvm.fmuladd.f64(double %44, double %3, double %41)
%46 = getelementptr inbounds double, double* %0, i64 2
%47 = load double, double* %46
%48 = fmul double %47, %2
%49 = fmul double %48, %2
%50 = fmul double %49, %3
%51 = tail call double @llvm.fmuladd.f64(double %50, double %3, double %45)
%52 = getelementptr inbounds double, double* %0, i64 3
%53 = load double, double* %52
%54 = tail call double @llvm.fmuladd.f64(double %53, double %2, double %51)
%55 = getelementptr inbounds double, double* %0, i64 4
%56 = load double, double* %55
%57 = tail call double @llvm.fmuladd.f64(double %56, double %3, double %54)
br label %185
58: ; preds = %4
%59 = load double, double* %0
%60 = getelementptr inbounds double, double* %0, i64 1
%61 = load double, double* %60
%62 = fmul double %61, %2
%63 = tail call double @llvm.fmuladd.f64(double %62, double %3, double %59)
%64 = getelementptr inbounds double, double* %0, i64 2
%65 = load double, double* %64
%66 = fmul double %65, %2
%67 = fmul double %66, %2
%68 = fmul double %67, %3
%69 = tail call double @llvm.fmuladd.f64(double %68, double %3, double %63)
%70 = getelementptr inbounds double, double* %0, i64 3
%71 = load double, double* %70
%72 = tail call double @llvm.fmuladd.f64(double %71, double %2, double %69)
%73 = getelementptr inbounds double, double* %0, i64 4
%74 = load double, double* %73
%75 = tail call double @llvm.fmuladd.f64(double %74, double %3, double %72)
%76 = getelementptr inbounds double, double* %0, i64 5
%77 = load double, double* %76
%78 = fmul double %77, %2
%79 = fmul double %78, %2
%80 = tail call double @llvm.fmuladd.f64(double %79, double %3, double %75)
br label %185
81: ; preds = %4
%82 = load double, double* %0
%83 = getelementptr inbounds double, double* %0, i64 1
%84 = load double, double* %83
%85 = fmul double %84, %2
%86 = tail call double @llvm.fmuladd.f64(double %85, double %3, double %82)
%87 = getelementptr inbounds double, double* %0, i64 2
%88 = load double, double* %87
%89 = fmul double %88, %2
%90 = fmul double %89, %2
%91 = fmul double %90, %3
%92 = tail call double @llvm.fmuladd.f64(double %91, double %3, double %86)
%93 = getelementptr inbounds double, double* %0, i64 3
%94 = load double, double* %93
%95 = tail call double @llvm.fmuladd.f64(double %94, double %2, double %92)
%96 = getelementptr inbounds double, double* %0, i64 4
%97 = load double, double* %96
%98 = tail call double @llvm.fmuladd.f64(double %97, double %3, double %95)
%99 = getelementptr inbounds double, double* %0, i64 5
%100 = load double, double* %99
%101 = fmul double %100, %2
%102 = fmul double %101, %2
%103 = tail call double @llvm.fmuladd.f64(double %102, double %3, double %98)
%104 = getelementptr inbounds double, double* %0, i64 6
%105 = load double, double* %104
%106 = fmul double %105, %2
%107 = fmul double %106, %3
%108 = tail call double @llvm.fmuladd.f64(double %107, double %3, double %103)
br label %185
109: ; preds = %4
%110 = load double, double* %0
%111 = getelementptr inbounds double, double* %0, i64 1
%112 = load double, double* %111
%113 = fmul double %112, %2
%114 = tail call double @llvm.fmuladd.f64(double %113, double %3, double %110)
%115 = getelementptr inbounds double, double* %0, i64 2
%116 = load double, double* %115
%117 = fmul double %116, %2
%118 = fmul double %117, %2
%119 = fmul double %118, %3
%120 = tail call double @llvm.fmuladd.f64(double %119, double %3, double %114)
%121 = getelementptr inbounds double, double* %0, i64 3
%122 = load double, double* %121
%123 = tail call double @llvm.fmuladd.f64(double %122, double %2, double %120)
%124 = getelementptr inbounds double, double* %0, i64 4
%125 = load double, double* %124
%126 = tail call double @llvm.fmuladd.f64(double %125, double %3, double %123)
%127 = getelementptr inbounds double, double* %0, i64 5
%128 = load double, double* %127
%129 = fmul double %128, %2
%130 = fmul double %129, %2
%131 = tail call double @llvm.fmuladd.f64(double %130, double %3, double %126)
%132 = getelementptr inbounds double, double* %0, i64 6
%133 = load double, double* %132
%134 = fmul double %133, %2
%135 = fmul double %134, %3
%136 = tail call double @llvm.fmuladd.f64(double %135, double %3, double %131)
%137 = getelementptr inbounds double, double* %0, i64 7
%138 = load double, double* %137
%139 = fmul double %138, %2
%140 = fmul double %139, %2
%141 = fmul double %140, %2
%142 = fmul double %141, %3
%143 = fmul double %142, %3
%144 = tail call double @llvm.fmuladd.f64(double %143, double %3, double %136)
br label %185
145: ; preds = %4
%146 = load double, double* %0
%147 = getelementptr inbounds double, double* %0, i64 1
%148 = load double, double* %147
%149 = fmul double %148, %2
%150 = tail call double @llvm.fmuladd.f64(double %149, double %3, double %146)
%151 = getelementptr inbounds double, double* %0, i64 2
%152 = load double, double* %151
%153 = fmul double %152, %2
%154 = fmul double %153, %2
%155 = fmul double %154, %3
%156 = tail call double @llvm.fmuladd.f64(double %155, double %3, double %150)
%157 = getelementptr inbounds double, double* %0, i64 3
%158 = load double, double* %157
%159 = tail call double @llvm.fmuladd.f64(double %158, double %2, double %156)
%160 = getelementptr inbounds double, double* %0, i64 4
%161 = load double, double* %160
%162 = tail call double @llvm.fmuladd.f64(double %161, double %3, double %159)
%163 = getelementptr inbounds double, double* %0, i64 5
%164 = load double, double* %163
%165 = fmul double %164, %2
%166 = fmul double %165, %2
%167 = tail call double @llvm.fmuladd.f64(double %166, double %3, double %162)
%168 = getelementptr inbounds double, double* %0, i64 6
%169 = load double, double* %168
%170 = fmul double %169, %2
%171 = fmul double %170, %3
%172 = tail call double @llvm.fmuladd.f64(double %171, double %3, double %167)
%173 = getelementptr inbounds double, double* %0, i64 7
%174 = load double, double* %173
%175 = fmul double %174, %2
%176 = fmul double %175, %2
%177 = fmul double %176, %2
%178 = fmul double %177, %3
%179 = fmul double %178, %3
%180 = tail call double @llvm.fmuladd.f64(double %179, double %3, double %172)
%181 = getelementptr inbounds double, double* %0, i64 8
%182 = load double, double* %181
%183 = fmul double %182, %2
%184 = tail call double @llvm.fmuladd.f64(double %183, double %2, double %180)
br label %185
185: ; preds = %4, %145, %109, %81, %58, %40, %25, %13, %7, %5
%186 = phi double [ %184, %145 ], [ %144, %109 ], [ %108, %81 ], [ %80, %58 ], [ %57, %40 ], [ %39, %25 ], [ %24, %13 ], [ %12, %7 ], [ %6, %5 ], [ -1.000000e+06, %4 ]
%187 = fadd double %186, -1.000000e+00
ret double %187
}