double paw_Predictor_Out(int i, double y[], double f[]) {
  double tmp;
  tmp = y[i] + 4.16666666667e-2 * (55.0 * f[i] - 59.0 * f[i - 1] +
                                   37.0 * f[i - 2] - 9.0 * f[i - 3]);
  return tmp;
}


x86 assembly (clang, -O0):
<paw_Predictor_Out>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xee2(%rip),%xmm2
mulsd  (%rax,%rcx,8),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  0xeb6(%rip),%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  0xe8c(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm0,%xmm2
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe62(%rip),%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
movsd  0xe4a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<paw_Predictor_Out>:
movslq %edi,%rax
movsd  -0x8(%rdx,%rax,8),%xmm0
mulsd  0xeef(%rip),%xmm0
movsd  (%rdx,%rax,8),%xmm1
mulsd  0xeea(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rdx,%rax,8),%xmm0
movsd  -0x10(%rdx,%rax,8),%xmm2
mulsd  0xeda(%rip),%xmm2
addsd  %xmm1,%xmm2
mulsd  0xed6(%rip),%xmm0
addsd  %xmm2,%xmm0
mulsd  0xed2(%rip),%xmm0
addsd  (%rsi,%rax,8),%xmm0
ret

LLVM IR (-O0):
define double @paw_Predictor_Out(i32 %0, double* %1, double* %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
store i32 %0, i32* %4
store double* %1, double** %5
store double* %2, double** %6
%8 = load double*, double** %5
%9 = load i32, i32* %4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds double, double* %8, i64 %10
%12 = load double, double* %11
%13 = load double*, double** %6
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, double* %13, i64 %15
%17 = load double, double* %16
%18 = load double*, double** %6
%19 = load i32, i32* %4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %18, i64 %21
%23 = load double, double* %22
%24 = fmul double 5.900000e+01, %23
%25 = fneg double %24
%26 = call double @llvm.fmuladd.f64(double 5.500000e+01, double %17, double %25)
%27 = load double*, double** %6
%28 = load i32, i32* %4
%29 = sub nsw i32 %28, 2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %27, i64 %30
%32 = load double, double* %31
%33 = call double @llvm.fmuladd.f64(double 3.700000e+01, double %32, double %26)
%34 = load double*, double** %6
%35 = load i32, i32* %4
%36 = sub nsw i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %34, i64 %37
%39 = load double, double* %38
%40 = call double @llvm.fmuladd.f64(double -9.000000e+00, double %39, double %33)
%41 = call double @llvm.fmuladd.f64(double 0x3FA5555555556819, double %40, double %12)
store double %41, double* %7
%42 = load double, double* %7
ret double %42
}

LLVM IR (-O2):
define double @paw_Predictor_Out(i32 %0, double* nocapture %1, double* nocapture %2) {
%4 = sext i32 %0 to i64
%5 = getelementptr inbounds double, double* %1, i64 %4
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %2, i64 %4
%8 = load double, double* %7
%9 = add nsw i32 %0, -1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds double, double* %2, i64 %10
%12 = load double, double* %11
%13 = fmul double %12, -5.900000e+01
%14 = tail call double @llvm.fmuladd.f64(double %8, double 5.500000e+01, double %13)
%15 = add nsw i32 %0, -2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %2, i64 %16
%18 = load double, double* %17
%19 = tail call double @llvm.fmuladd.f64(double %18, double 3.700000e+01, double %14)
%20 = add nsw i32 %0, -3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %2, i64 %21
%23 = load double, double* %22
%24 = tail call double @llvm.fmuladd.f64(double %23, double -9.000000e+00, double %19)
%25 = tail call double @llvm.fmuladd.f64(double %24, double 0x3FA5555555556819, double %6)
ret double %25
}