#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 difm6(double x, double h) {
  double f1, f2, f3, f4, f5, f6;
  f1 = _f(x + h) - _f(x - h);
  f2 = _f(x + 2. * h) - _f(x - 2. * h);
  f3 = _f(x + 3. * h) - _f(x - 3. * h);
  f4 = _f(x + 4. * h) - _f(x - 4. * h);
  f5 = _f(x + 5. * h) - _f(x - 5. * h);
  f6 = _f(x + 6. * h) - _f(x - 6. * h);
  return (23760. * f1 - 7425. * f2 + 2200. * f3 - 495. * f4 + 72. * f5 -
          5. * f6) /
         27720. / h;
}


x86 assembly (clang, -O0):
<difm6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xebc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe90(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe58(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe2c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xdf4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xd90(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xd98(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xd6c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xd39(%rip),%xmm1
mulsd  -0x20(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd0d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xcf0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xcd3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xcb6(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  0xc99(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc81(%rip),%xmm1
divsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<difm6>:
sub    $0x48,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x8(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x38(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0xe66(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xe4f(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x18(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xe2e(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0xe17(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0xdf6(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xdd9(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0xdbe(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0xda7(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x30(%rsp),%xmm2
mulsd  0xd90(%rip),%xmm2
movsd  0x38(%rsp),%xmm1
mulsd  0xd8a(%rip),%xmm1
movsd  0x40(%rsp),%xmm3
subsd  %xmm0,%xmm3
addsd  %xmm2,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  0xd76(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  0xd6c(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
mulsd  0xd62(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm3,%xmm1
mulsd  0xd1a(%rip),%xmm1
addsd  %xmm0,%xmm1
divsd  0xd4e(%rip),%xmm1
divsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @difm6(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
%10 = alloca double
store double %0, double* %3
store double %1, double* %4
%11 = load double, double* %3
%12 = load double, double* %4
%13 = fadd double %11, %12
%14 = call double @_f(double %13)
%15 = load double, double* %3
%16 = load double, double* %4
%17 = fsub double %15, %16
%18 = call double @_f(double %17)
%19 = fsub double %14, %18
store double %19, double* %5
%20 = load double, double* %3
%21 = load double, double* %4
%22 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %21, double %20)
%23 = call double @_f(double %22)
%24 = load double, double* %3
%25 = load double, double* %4
%26 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %25, double %24)
%27 = call double @_f(double %26)
%28 = fsub double %23, %27
store double %28, double* %6
%29 = load double, double* %3
%30 = load double, double* %4
%31 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %30, double %29)
%32 = call double @_f(double %31)
%33 = load double, double* %3
%34 = load double, double* %4
%35 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %34, double %33)
%36 = call double @_f(double %35)
%37 = fsub double %32, %36
store double %37, double* %7
%38 = load double, double* %3
%39 = load double, double* %4
%40 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %39, double %38)
%41 = call double @_f(double %40)
%42 = load double, double* %3
%43 = load double, double* %4
%44 = call double @llvm.fmuladd.f64(double -4.000000e+00, double %43, double %42)
%45 = call double @_f(double %44)
%46 = fsub double %41, %45
store double %46, double* %8
%47 = load double, double* %3
%48 = load double, double* %4
%49 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %48, double %47)
%50 = call double @_f(double %49)
%51 = load double, double* %3
%52 = load double, double* %4
%53 = call double @llvm.fmuladd.f64(double -5.000000e+00, double %52, double %51)
%54 = call double @_f(double %53)
%55 = fsub double %50, %54
store double %55, double* %9
%56 = load double, double* %3
%57 = load double, double* %4
%58 = call double @llvm.fmuladd.f64(double 6.000000e+00, double %57, double %56)
%59 = call double @_f(double %58)
%60 = load double, double* %3
%61 = load double, double* %4
%62 = call double @llvm.fmuladd.f64(double -6.000000e+00, double %61, double %60)
%63 = call double @_f(double %62)
%64 = fsub double %59, %63
store double %64, double* %10
%65 = load double, double* %5
%66 = load double, double* %6
%67 = fmul double 7.425000e+03, %66
%68 = fneg double %67
%69 = call double @llvm.fmuladd.f64(double 2.376000e+04, double %65, double %68)
%70 = load double, double* %7
%71 = call double @llvm.fmuladd.f64(double 2.200000e+03, double %70, double %69)
%72 = load double, double* %8
%73 = call double @llvm.fmuladd.f64(double -4.950000e+02, double %72, double %71)
%74 = load double, double* %9
%75 = call double @llvm.fmuladd.f64(double 7.200000e+01, double %74, double %73)
%76 = load double, double* %10
%77 = call double @llvm.fmuladd.f64(double -5.000000e+00, double %76, double %75)
%78 = fdiv double %77, 2.772000e+04
%79 = load double, double* %4
%80 = fdiv double %78, %79
ret double %80
}

LLVM IR (-O2):
define double @difm6(double %0, double %1) {
%3 = fadd double %0, %1
%4 = tail call double @_f(double %3)
%5 = fsub double %0, %1
%6 = tail call double @_f(double %5)
%7 = fsub double %4, %6
%8 = tail call double @llvm.fmuladd.f64(double %1, double 2.000000e+00, double %0)
%9 = tail call double @_f(double %8)
%10 = tail call double @llvm.fmuladd.f64(double %1, double -2.000000e+00, double %0)
%11 = tail call double @_f(double %10)
%12 = fsub double %9, %11
%13 = tail call double @llvm.fmuladd.f64(double %1, double 3.000000e+00, double %0)
%14 = tail call double @_f(double %13)
%15 = tail call double @llvm.fmuladd.f64(double %1, double -3.000000e+00, double %0)
%16 = tail call double @_f(double %15)
%17 = fsub double %14, %16
%18 = tail call double @llvm.fmuladd.f64(double %1, double 4.000000e+00, double %0)
%19 = tail call double @_f(double %18)
%20 = tail call double @llvm.fmuladd.f64(double %1, double -4.000000e+00, double %0)
%21 = tail call double @_f(double %20)
%22 = fsub double %19, %21
%23 = tail call double @llvm.fmuladd.f64(double %1, double 5.000000e+00, double %0)
%24 = tail call double @_f(double %23)
%25 = tail call double @llvm.fmuladd.f64(double %1, double -5.000000e+00, double %0)
%26 = tail call double @_f(double %25)
%27 = fsub double %24, %26
%28 = tail call double @llvm.fmuladd.f64(double %1, double 6.000000e+00, double %0)
%29 = tail call double @_f(double %28)
%30 = tail call double @llvm.fmuladd.f64(double %1, double -6.000000e+00, double %0)
%31 = tail call double @_f(double %30)
%32 = fsub double %29, %31
%33 = fmul double %12, -7.425000e+03
%34 = tail call double @llvm.fmuladd.f64(double %7, double 2.376000e+04, double %33)
%35 = tail call double @llvm.fmuladd.f64(double %17, double 2.200000e+03, double %34)
%36 = tail call double @llvm.fmuladd.f64(double %22, double -4.950000e+02, double %35)
%37 = tail call double @llvm.fmuladd.f64(double %27, double 7.200000e+01, double %36)
%38 = tail call double @llvm.fmuladd.f64(double %32, double -5.000000e+00, double %37)
%39 = fdiv double %38, 2.772000e+04
%40 = fdiv double %39, %1
ret double %40
}