#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 difm5(double x, double h) {
  double f1, f2, f3, f4, f5;
  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);
  return (2100. * f1 - 600. * f2 + 150. * f3 - 25. * f4 + 2. * f5) / 2520. / h;
}


x86 assembly (clang, -O0):
<difm5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%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,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%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  0xea4(%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  0xe78(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%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  0xe40(%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  0xe14(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%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  0xddc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xdb0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xd7d(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd51(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xd34(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd17(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcf2(%rip),%xmm1
divsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<difm5>:
sub    $0x38,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
addsd  %xmm1,%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x28(%rsp)
movsd  (%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%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,0x18(%rsp)
movsd  0xe1e(%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  0xdfe(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0xde8(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1030 <_f@plt>
movsd  0x30(%rsp),%xmm2
subsd  %xmm0,%xmm2
movsd  0x20(%rsp),%xmm1
mulsd  0xdc8(%rip),%xmm1
movsd  0x28(%rsp),%xmm0
mulsd  0xdc2(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xdb8(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  0xdae(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
divsd  0xd9e(%rip),%xmm1
divsd  0x8(%rsp),%xmm1
movapd %xmm1,%xmm0
add    $0x38,%rsp
ret

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

LLVM IR (-O2):
define double @difm5(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 = fmul double %12, -6.000000e+02
%29 = tail call double @llvm.fmuladd.f64(double %7, double 2.100000e+03, double %28)
%30 = tail call double @llvm.fmuladd.f64(double %17, double 1.500000e+02, double %29)
%31 = tail call double @llvm.fmuladd.f64(double %22, double -2.500000e+01, double %30)
%32 = tail call double @llvm.fmuladd.f64(double %27, double 2.000000e+00, double %31)
%33 = fdiv double %32, 2.520000e+03
%34 = fdiv double %33, %1
ret double %34
}