#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 fabs(double);
double heatCap(double t) {
  double cp;
  double t2, t3, t4;
  t2 = t * t;
  t3 = t2 * t;
  t4 = t3 * t;
  cp = -3.6125 + 2.7431 * t + 2.3616e-003 * t2 + -1.2340e-005 * t3 +
       8.9093e-009 * t4;
  return (fabs(cp));
}


x86 assembly (clang, -O0):
<heatCap>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xee5(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xee1(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xec0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xea3(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xe86(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xe5d(%rip),%xmm1
pand   %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<heatCap>:
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm0,%xmm3
mulsd  0xee0(%rip),%xmm0
addsd  0xee0(%rip),%xmm0
mulsd  0xee0(%rip),%xmm1
addsd  %xmm1,%xmm0
mulsd  0xedc(%rip),%xmm2
mulsd  0xedc(%rip),%xmm3
addsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
andpd  0xedc(%rip),%xmm0
ret

LLVM IR (-O0):
define double @heatCap(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %2
%7 = load double, double* %2
%8 = load double, double* %2
%9 = fmul double %7, %8
store double %9, double* %4
%10 = load double, double* %4
%11 = load double, double* %2
%12 = fmul double %10, %11
store double %12, double* %5
%13 = load double, double* %5
%14 = load double, double* %2
%15 = fmul double %13, %14
store double %15, double* %6
%16 = load double, double* %2
%17 = call double @llvm.fmuladd.f64(double 2.743100e+00, double %16, double -3.612500e+00)
%18 = load double, double* %4
%19 = call double @llvm.fmuladd.f64(double 2.361600e-03, double %18, double %17)
%20 = load double, double* %5
%21 = call double @llvm.fmuladd.f64(double -1.234000e-05, double %20, double %19)
%22 = load double, double* %6
%23 = call double @llvm.fmuladd.f64(double 8.909300e-09, double %22, double %21)
store double %23, double* %3
%24 = load double, double* %3
%25 = call double @llvm.fabs.f64(double %24)
ret double %25
}

LLVM IR (-O2):
define double @heatCap(double %0) {
%2 = fmul double %0, %0
%3 = fmul double %2, %0
%4 = fmul double %3, %0
%5 = tail call double @llvm.fmuladd.f64(double %0, double 2.743100e+00, double -3.612500e+00)
%6 = tail call double @llvm.fmuladd.f64(double %2, double 2.361600e-03, double %5)
%7 = tail call double @llvm.fmuladd.f64(double %3, double -1.234000e-05, double %6)
%8 = tail call double @llvm.fmuladd.f64(double %4, double 8.909300e-09, double %7)
%9 = tail call double @llvm.fabs.f64(double %8)
ret double %9
}