#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 difm7(double x, double h) {
  double f1, f2, f3, f4, f5, f6, f7;
  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);
  f7 = _f(x + 7. * h) - _f(x - 7. * h);
  return (315315. * f1 - 105105. * f2 + 35035. * f3 - 9555. * f4 + 1911. * f5 -
          245. * f6 + 15. * f7) /
         360360. / h;
}


x86 assembly (clang, -O0):
<difm7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%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,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xed9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xead(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe75(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe49(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe11(%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  0xde5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xdad(%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  0xd81(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xd49(%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  0xd1d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xcea(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xcbe(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xca1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xc84(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xc67(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xc4a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  0xc2d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc15(%rip),%xmm1
divsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<difm7>:
sub    $0x48,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x38(%rsp)
movsd  (%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x38(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x30(%rsp)
movsd  (%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0xe6a(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xe54(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xe34(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0xe1e(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0xdfe(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xde8(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0xdc8(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xdb2(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x18(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xd92(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0xd7c(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x30(%rsp),%xmm2
mulsd  0xd66(%rip),%xmm2
movsd  0x38(%rsp),%xmm1
mulsd  0xd60(%rip),%xmm1
movsd  0x40(%rsp),%xmm3
subsd  %xmm0,%xmm3
addsd  %xmm2,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0xd4c(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  0xd42(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
mulsd  0xd38(%rip),%xmm0
movsd  0x18(%rsp),%xmm2
mulsd  0xd32(%rip),%xmm2
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm2
movapd %xmm3,%xmm0
mulsd  0xd26(%rip),%xmm0
addsd  %xmm2,%xmm0
divsd  0xd22(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
add    $0x48,%rsp
ret

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

LLVM IR (-O2):
define double @difm7(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 = tail call double @llvm.fmuladd.f64(double %1, double 7.000000e+00, double %0)
%34 = tail call double @_f(double %33)
%35 = tail call double @llvm.fmuladd.f64(double %1, double -7.000000e+00, double %0)
%36 = tail call double @_f(double %35)
%37 = fsub double %34, %36
%38 = fmul double %12, -1.051050e+05
%39 = tail call double @llvm.fmuladd.f64(double %7, double 3.153150e+05, double %38)
%40 = tail call double @llvm.fmuladd.f64(double %17, double 3.503500e+04, double %39)
%41 = tail call double @llvm.fmuladd.f64(double %22, double -9.555000e+03, double %40)
%42 = tail call double @llvm.fmuladd.f64(double %27, double 1.911000e+03, double %41)
%43 = tail call double @llvm.fmuladd.f64(double %32, double -2.450000e+02, double %42)
%44 = tail call double @llvm.fmuladd.f64(double %37, double 1.500000e+01, double %43)
%45 = fdiv double %44, 3.603600e+05
%46 = fdiv double %45, %1
ret double %46
}