#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 _f(double);
double difb5(double x, double h) {
  double f1, f2, f3, f4, f5;
  f1 = _f(x - h) - _f(x);
  f2 = _f(x - 2. * h) - _f(x);
  f3 = _f(x - 3. * h) - _f(x);
  f4 = _f(x - 4. * h) - _f(x);
  f5 = _f(x - 5. * h) - _f(x);
  return -(5. * (f1 - f2) + 10. * f3 / 3. - 1.25 * f4 + 0.2 * f5) / h;
}


x86 assembly (clang, -O0):
<difb5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe9e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe57(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe10(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  0xdc9(%rip),%xmm1
mulsd  -0x28(%rbp),%xmm1
movsd  0xdb4(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xda0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd83(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xd66(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x10(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<difb5>:
sub    $0x48,%rsp
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x8(%rsp)
subsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x18(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xe6a(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xe38(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0xe06(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movapd %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movapd 0x30(%rsp),%xmm3
subsd  %xmm0,%xmm3
movsd  0x10(%rsp),%xmm0
mulsd  0xdd4(%rip),%xmm0
divsd  0xdd4(%rip),%xmm0
movapd %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  0xdca(%rip),%xmm0
movsd  0x28(%rsp),%xmm2
mulsd  0xdc4(%rip),%xmm2
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm2
movapd %xmm3,%xmm0
mulsd  0xdb8(%rip),%xmm0
addsd  %xmm2,%xmm0
xorpd  0xdb4(%rip),%xmm0
divsd  0x20(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @difb5(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %3
store double %1, double* %4
%10 = load double, double* %3
%11 = load double, double* %4
%12 = fsub double %10, %11
%13 = call double @_f(double %12)
%14 = load double, double* %3
%15 = call double @_f(double %14)
%16 = fsub double %13, %15
store double %16, double* %5
%17 = load double, double* %3
%18 = load double, double* %4
%19 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %18, double %17)
%20 = call double @_f(double %19)
%21 = load double, double* %3
%22 = call double @_f(double %21)
%23 = fsub double %20, %22
store double %23, double* %6
%24 = load double, double* %3
%25 = load double, double* %4
%26 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %25, double %24)
%27 = call double @_f(double %26)
%28 = load double, double* %3
%29 = call double @_f(double %28)
%30 = fsub double %27, %29
store double %30, double* %7
%31 = load double, double* %3
%32 = load double, double* %4
%33 = call double @llvm.fmuladd.f64(double -4.000000e+00, double %32, double %31)
%34 = call double @_f(double %33)
%35 = load double, double* %3
%36 = call double @_f(double %35)
%37 = fsub double %34, %36
store double %37, double* %8
%38 = load double, double* %3
%39 = load double, double* %4
%40 = call double @llvm.fmuladd.f64(double -5.000000e+00, double %39, double %38)
%41 = call double @_f(double %40)
%42 = load double, double* %3
%43 = call double @_f(double %42)
%44 = fsub double %41, %43
store double %44, double* %9
%45 = load double, double* %5
%46 = load double, double* %6
%47 = fsub double %45, %46
%48 = load double, double* %7
%49 = fmul double 1.000000e+01, %48
%50 = fdiv double %49, 3.000000e+00
%51 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %47, double %50)
%52 = load double, double* %8
%53 = call double @llvm.fmuladd.f64(double -1.250000e+00, double %52, double %51)
%54 = load double, double* %9
%55 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %54, double %53)
%56 = fneg double %55
%57 = load double, double* %4
%58 = fdiv double %56, %57
ret double %58
}

LLVM IR (-O2):
define double @difb5(double %0, double %1) {
%3 = fsub double %0, %1
%4 = tail call double @_f(double %3)
%5 = tail call double @_f(double %0)
%6 = fsub double %4, %5
%7 = tail call double @llvm.fmuladd.f64(double %1, double -2.000000e+00, double %0)
%8 = tail call double @_f(double %7)
%9 = tail call double @_f(double %0)
%10 = fsub double %8, %9
%11 = tail call double @llvm.fmuladd.f64(double %1, double -3.000000e+00, double %0)
%12 = tail call double @_f(double %11)
%13 = tail call double @_f(double %0)
%14 = fsub double %12, %13
%15 = tail call double @llvm.fmuladd.f64(double %1, double -4.000000e+00, double %0)
%16 = tail call double @_f(double %15)
%17 = tail call double @_f(double %0)
%18 = fsub double %16, %17
%19 = tail call double @llvm.fmuladd.f64(double %1, double -5.000000e+00, double %0)
%20 = tail call double @_f(double %19)
%21 = tail call double @_f(double %0)
%22 = fsub double %20, %21
%23 = fsub double %6, %10
%24 = fmul double %14, 1.000000e+01
%25 = fdiv double %24, 3.000000e+00
%26 = tail call double @llvm.fmuladd.f64(double %23, double 5.000000e+00, double %25)
%27 = tail call double @llvm.fmuladd.f64(double %18, double -1.250000e+00, double %26)
%28 = tail call double @llvm.fmuladd.f64(double %22, double 2.000000e-01, double %27)
%29 = fneg double %28
%30 = fdiv double %29, %1
ret double %30
}