double Derivative7_4(i, f)
int i;
double f[];
{
  double tmp;
  tmp = 1.66666666667e-2 * (-1.0 * f[i - 3] + 9.0 * f[i - 2] - 45.0 * f[i - 1] +
                            45.0 * f[i + 1] - 9.0 * f[i + 2] + 1.0 * f[i + 3]);
  return tmp;
}


x86 assembly (clang, -O0):
<Derivative7_4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xeee(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
subsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xec3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xe99(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe6f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe41(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Derivative7_4>:
movslq %edi,%rax
movsd  -0x10(%rsi,%rax,8),%xmm0
mulsd  0xeef(%rip),%xmm0
subsd  -0x18(%rsi,%rax,8),%xmm0
movsd  -0x8(%rsi,%rax,8),%xmm1
mulsd  0xee3(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x8(%rsi,%rax,8),%xmm2
mulsd  0xed9(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  0x10(%rsi,%rax,8),%xmm0
mulsd  0xecf(%rip),%xmm0
addsd  %xmm2,%xmm0
addsd  0x18(%rsi,%rax,8),%xmm0
mulsd  0xec5(%rip),%xmm0
ret

LLVM IR (-O0):
define double @Derivative7_4(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca double
store i32 %0, i32* %3
store double* %1, double** %4
%6 = load double*, double** %4
%7 = load i32, i32* %3
%8 = sub nsw i32 %7, 3
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds double, double* %6, i64 %9
%11 = load double, double* %10
%12 = load double*, double** %4
%13 = load i32, i32* %3
%14 = sub nsw i32 %13, 2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, double* %12, i64 %15
%17 = load double, double* %16
%18 = fmul double 9.000000e+00, %17
%19 = call double @llvm.fmuladd.f64(double -1.000000e+00, double %11, double %18)
%20 = load double*, double** %4
%21 = load i32, i32* %3
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %20, i64 %23
%25 = load double, double* %24
%26 = call double @llvm.fmuladd.f64(double -4.500000e+01, double %25, double %19)
%27 = load double*, double** %4
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
%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 4.500000e+01, double %32, double %26)
%34 = load double*, double** %4
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 2
%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 = load double*, double** %4
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %41, i64 %44
%46 = load double, double* %45
%47 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %46, double %40)
%48 = fmul double 0x3F91111111113699, %47
store double %48, double* %5
%49 = load double, double* %5
ret double %49
}

LLVM IR (-O2):
define double @Derivative7_4(i32 %0, double* nocapture %1) {
%3 = add nsw i32 %0, -3
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds double, double* %1, i64 %4
%6 = load double, double* %5
%7 = add nsw i32 %0, -2
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds double, double* %1, i64 %8
%10 = load double, double* %9
%11 = fmul double %10, 9.000000e+00
%12 = tail call double @llvm.fmuladd.f64(double %6, double -1.000000e+00, double %11)
%13 = add nsw i32 %0, -1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, double* %1, i64 %14
%16 = load double, double* %15
%17 = tail call double @llvm.fmuladd.f64(double %16, double -4.500000e+01, double %12)
%18 = add nsw i32 %0, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, double* %1, i64 %19
%21 = load double, double* %20
%22 = tail call double @llvm.fmuladd.f64(double %21, double 4.500000e+01, double %17)
%23 = add nsw i32 %0, 2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, double* %1, i64 %24
%26 = load double, double* %25
%27 = tail call double @llvm.fmuladd.f64(double %26, double -9.000000e+00, double %22)
%28 = add nsw i32 %0, 3
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %1, i64 %29
%31 = load double, double* %30
%32 = fadd double %31, %27
%33 = fmul double %32, 0x3F91111111113699
ret double %33
}