#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 pow(double, int);
double k(double x) {
  return -2.43712 * pow(10, -20) * pow(x, 7) +
         1.12669 * pow(10, -16) * pow(x, 6) -
         2.17325 * pow(10, -13) * pow(x, 5) +
         2.27935 * pow(10, -10) * pow(x, 4) -
         1.41146 * pow(10, -7) * pow(x, 3) + 0.0000519794 * pow(x, 2) -
         0.010683 * x + 2.30172;
}


x86 assembly (clang, -O0):
<k>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xefb(%rip),%xmm0
mov    $0xffffffec,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xf06(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x7,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xec1(%rip),%xmm0
mov    $0xfffffff0,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xec4(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x6,%edi
call   1030 <pow@plt>
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe69(%rip),%xmm0
mov    $0xfffffff3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe64(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x5,%edi
call   1030 <pow@plt>
movsd  -0x40(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe03(%rip),%xmm0
mov    $0xfffffff6,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xdf6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xdb4(%rip),%xmm0
mov    $0xfffffff9,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xd97(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xd27(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xd0a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcf2(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<k>:
sub    $0x28,%rsp
movsd  %xmm0,0x18(%rsp)
movsd  0xede(%rip),%xmm0
mov    $0xffffffec,%edi
call   1030 <pow@plt>
mulsd  0xed4(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x7,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xea8(%rip),%xmm0
mov    $0xfffffff0,%edi
call   1030 <pow@plt>
mulsd  0xea6(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x6,%edi
call   1030 <pow@plt>
mulsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe5c(%rip),%xmm0
mov    $0xfffffff3,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x5,%edi
call   1030 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xe46(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe16(%rip),%xmm0
mov    $0xfffffff6,%edi
call   1030 <pow@plt>
mulsd  0xe24(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdd4(%rip),%xmm0
mov    $0xfffffff9,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xdce(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulsd  0xdae(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xda8(%rip),%xmm1
addsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
addsd  0xd9e(%rip),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @k(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double @pow(double 1.000000e+01, i32 -20)
%4 = fmul double -2.437120e+00, %3
%5 = load double, double* %2
%6 = call double @pow(double %5, i32 7)
%7 = call double @pow(double 1.000000e+01, i32 -16)
%8 = fmul double 1.126690e+00, %7
%9 = load double, double* %2
%10 = call double @pow(double %9, i32 6)
%11 = fmul double %8, %10
%12 = call double @llvm.fmuladd.f64(double %4, double %6, double %11)
%13 = call double @pow(double 1.000000e+01, i32 -13)
%14 = fmul double 2.173250e+00, %13
%15 = load double, double* %2
%16 = call double @pow(double %15, i32 5)
%17 = fneg double %14
%18 = call double @llvm.fmuladd.f64(double %17, double %16, double %12)
%19 = call double @pow(double 1.000000e+01, i32 -10)
%20 = fmul double 2.279350e+00, %19
%21 = load double, double* %2
%22 = call double @pow(double %21, i32 4)
%23 = call double @llvm.fmuladd.f64(double %20, double %22, double %18)
%24 = call double @pow(double 1.000000e+01, i32 -7)
%25 = fmul double 1.411460e+00, %24
%26 = load double, double* %2
%27 = call double @pow(double %26, i32 3)
%28 = fneg double %25
%29 = call double @llvm.fmuladd.f64(double %28, double %27, double %23)
%30 = load double, double* %2
%31 = call double @pow(double %30, i32 2)
%32 = call double @llvm.fmuladd.f64(double 5.197940e-05, double %31, double %29)
%33 = load double, double* %2
%34 = call double @llvm.fmuladd.f64(double -1.068300e-02, double %33, double %32)
%35 = fadd double %34, 2.301720e+00
ret double %35
}

LLVM IR (-O2):
define double @k(double %0) {
%2 = tail call double @pow(double 1.000000e+01, i32 -20)
%3 = fmul double %2, -2.437120e+00
%4 = tail call double @pow(double %0, i32 7)
%5 = tail call double @pow(double 1.000000e+01, i32 -16)
%6 = fmul double %5, 1.126690e+00
%7 = tail call double @pow(double %0, i32 6)
%8 = fmul double %6, %7
%9 = tail call double @llvm.fmuladd.f64(double %3, double %4, double %8)
%10 = tail call double @pow(double 1.000000e+01, i32 -13)
%11 = tail call double @pow(double %0, i32 5)
%12 = fmul double %10, -2.173250e+00
%13 = tail call double @llvm.fmuladd.f64(double %12, double %11, double %9)
%14 = tail call double @pow(double 1.000000e+01, i32 -10)
%15 = fmul double %14, 2.279350e+00
%16 = tail call double @pow(double %0, i32 4)
%17 = tail call double @llvm.fmuladd.f64(double %15, double %16, double %13)
%18 = tail call double @pow(double 1.000000e+01, i32 -7)
%19 = tail call double @pow(double %0, i32 3)
%20 = fmul double %18, -1.411460e+00
%21 = tail call double @llvm.fmuladd.f64(double %20, double %19, double %17)
%22 = tail call double @pow(double %0, i32 2)
%23 = tail call double @llvm.fmuladd.f64(double %22, double 5.197940e-05, double %21)
%24 = tail call double @llvm.fmuladd.f64(double %0, double -1.068300e-02, double %23)
%25 = fadd double %24, 2.301720e+00
ret double %25
}