#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 sqrt(double);
double gsw_entropy_part_zerop(double sa, double pt0) {
  double sfac, x2, x, y, g03, g08, return_value;
  sfac = 0.0248826675584615;
  x2 = sfac * sa;
  x = sqrt(x2);
  y = pt0 * 0.025;
  g03 =
      y *
      (-24715.571866078e0 +
       y * (2210.2236124548363e0 +
            y * (-592.743745734632e0 +
                 y * (290.12956292128547e0 +
                      y * (-113.90630790850321e0 + y * 21.35571525415769e0)))));
  g08 = x2 *
        (x * (x * (y *
                   (-137.1145018408982e0 +
                    y * (148.10030845687618e0 +
                         y * (-68.5590309679152e0 + 12.4848504784754e0 * y)))) +
              y * (-86.1329351956084e0 +
                   y * (-30.0682112585625e0 + y * 3.50240264723578e0))) +
         y * (1760.062705994408e0 +
              y * (-675.802947790203e0 +
                   y * (365.7041791005036e0 + y * (-108.30162043765552e0 +
                                                   12.78101825083098e0 * y)))));
  return_value = -(g03 + g08) * 0.025;
  return (return_value);
}


x86 assembly (clang, -O0):
<gsw_entropy_part_zerop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf6e(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xeab(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  0xf03(%rip),%xmm6
mulsd  %xmm6,%xmm5
movsd  0xeff(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
movsd  0xedf(%rip),%xmm5
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm3
movsd  0xec7(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
movsd  0xeaf(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe97(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm5
movsd  -0x30(%rbp),%xmm6
movsd  0xe4f(%rip),%xmm7
mulsd  %xmm7,%xmm6
movsd  0xe4b(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm5
movsd  0xe2b(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm2
movsd  0xe13(%rip),%xmm5
addsd  %xmm5,%xmm2
mulsd  %xmm2,%xmm4
movsd  -0x30(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm5
movsd  -0x30(%rbp),%xmm6
movsd  0xde4(%rip),%xmm7
mulsd  %xmm7,%xmm6
movsd  0xde0(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm5
movsd  0xdc0(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm2
mulsd  %xmm4,%xmm3
addsd  %xmm2,%xmm3
movsd  -0x30(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  -0x30(%rbp),%xmm6
movsd  -0x30(%rbp),%xmm7
movsd  0xd7e(%rip),%xmm8
mulsd  %xmm8,%xmm7
movsd  0xd78(%rip),%xmm8
addsd  %xmm8,%xmm7
mulsd  %xmm7,%xmm6
movsd  0xd57(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm5
movsd  0xd3f(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
movsd  0xd27(%rip),%xmm5
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xcdd(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gsw_entropy_part_zerop>:
sub    $0x18,%rsp
unpcklpd %xmm0,%xmm1
mulpd  0xee0(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jb     1138 <gsw_entropy_part_zerop+0x28>
sqrtsd %xmm0,%xmm0
jmp    1147 <gsw_entropy_part_zerop+0x37>
movapd %xmm1,(%rsp)
call   1030 <sqrt@plt>
movapd (%rsp),%xmm1
movsd  0xee1(%rip),%xmm4
mulsd  %xmm1,%xmm4
addsd  0xedd(%rip),%xmm4
mulsd  %xmm1,%xmm4
addsd  0xed9(%rip),%xmm4
mulsd  %xmm1,%xmm4
addsd  0xed5(%rip),%xmm4
movsd  0xed5(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xed1(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xecd(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xec9(%rip),%xmm2
mulsd  %xmm1,%xmm2
unpcklpd %xmm2,%xmm4
movsd  0xec1(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xebd(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xeb9(%rip),%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm1,%xmm3
unpcklpd %xmm0,%xmm3
movapd 0xe35(%rip),%xmm0
unpcklpd %xmm2,%xmm0
mulpd  %xmm3,%xmm4
movsd  0xe9d(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe99(%rip),%xmm2
addpd  %xmm0,%xmm4
mulsd  %xmm1,%xmm2
addsd  0xe91(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe8d(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe89(%rip),%xmm2
mulsd  %xmm1,%xmm2
movapd 0xdf5(%rip),%xmm0
unpcklpd %xmm2,%xmm0
mulpd  %xmm3,%xmm4
addpd  %xmm0,%xmm4
mulpd  %xmm1,%xmm4
movapd %xmm4,%xmm0
unpckhpd %xmm4,%xmm0
addsd  %xmm4,%xmm0
mulsd  0xe61(%rip),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @gsw_entropy_part_zerop(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
store double 0x3F997AD78D9A73C9, double* %5
%12 = load double, double* %5
%13 = load double, double* %3
%14 = fmul double %12, %13
store double %14, double* %6
%15 = load double, double* %6
%16 = call double @sqrt(double %15)
store double %16, double* %7
%17 = load double, double* %4
%18 = fmul double %17, 2.500000e-02
store double %18, double* %8
%19 = load double, double* %8
%20 = load double, double* %8
%21 = load double, double* %8
%22 = load double, double* %8
%23 = load double, double* %8
%24 = load double, double* %8
%25 = call double @llvm.fmuladd.f64(double %24, double 0x40355B1027A74BAD, double 0xC05C7A00F2E2C828)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x40722212B091DB20)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0xC08285F330F6B645)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x40A144727D54E900)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0xC0D822E499742DAD)
%30 = fmul double %19, %29
store double %30, double* %9
%31 = load double, double* %6
%32 = load double, double* %7
%33 = load double, double* %7
%34 = load double, double* %8
%35 = load double, double* %8
%36 = load double, double* %8
%37 = load double, double* %8
%38 = call double @llvm.fmuladd.f64(double 0x4028F83E526900EB, double %37, double 0xC05123C729D32969)
%39 = call double @llvm.fmuladd.f64(double %36, double %38, double 0x40628335BA14B974)
%40 = call double @llvm.fmuladd.f64(double %35, double %39, double 0xC06123A9FFC3BFAB)
%41 = fmul double %34, %40
%42 = load double, double* %8
%43 = load double, double* %8
%44 = load double, double* %8
%45 = call double @llvm.fmuladd.f64(double %44, double 0x400C04EBADDA6979, double 0xC03E11764B04BEB4)
%46 = call double @llvm.fmuladd.f64(double %43, double %45, double 0xC0558882029F6807)
%47 = fmul double %42, %46
%48 = call double @llvm.fmuladd.f64(double %33, double %41, double %47)
%49 = load double, double* %8
%50 = load double, double* %8
%51 = load double, double* %8
%52 = load double, double* %8
%53 = load double, double* %8
%54 = call double @llvm.fmuladd.f64(double 0x40298FE19FC9CBDF, double %53, double 0xC05B134DBFCEE248)
%55 = call double @llvm.fmuladd.f64(double %52, double %54, double 0x4076DB44514DF309)
%56 = call double @llvm.fmuladd.f64(double %51, double %55, double 0xC0851E6C6FE41A8A)
%57 = call double @llvm.fmuladd.f64(double %50, double %56, double 0x409B804036000CFB)
%58 = fmul double %49, %57
%59 = call double @llvm.fmuladd.f64(double %32, double %48, double %58)
%60 = fmul double %31, %59
store double %60, double* %10
%61 = load double, double* %9
%62 = load double, double* %10
%63 = fadd double %61, %62
%64 = fneg double %63
%65 = fmul double %64, 2.500000e-02
store double %65, double* %11
%66 = load double, double* %11
ret double %66
}

LLVM IR (-O2):
define double @gsw_entropy_part_zerop(double %0, double %1) {
%3 = insertelement <2 x double> poison, double %1, i64 0
%4 = insertelement <2 x double> %3, double %0, i64 1
%5 = fmul <2 x double> %4, <double 2.500000e-02, double 0x3F997AD78D9A73C9>
%6 = extractelement <2 x double> %5, i64 1
%7 = tail call double @sqrt(double %6)
%8 = extractelement <2 x double> %5, i64 0
%9 = tail call double @llvm.fmuladd.f64(double %8, double 0x40355B1027A74BAD, double 0xC05C7A00F2E2C828)
%10 = tail call double @llvm.fmuladd.f64(double %8, double %9, double 0x40722212B091DB20)
%11 = tail call double @llvm.fmuladd.f64(double %8, double %10, double 0xC08285F330F6B645)
%12 = tail call double @llvm.fmuladd.f64(double %8, double 0x4028F83E526900EB, double 0xC05123C729D32969)
%13 = tail call double @llvm.fmuladd.f64(double %8, double %12, double 0x40628335BA14B974)
%14 = tail call double @llvm.fmuladd.f64(double %8, double %13, double 0xC06123A9FFC3BFAB)
%15 = fmul double %8, %14
%16 = tail call double @llvm.fmuladd.f64(double %8, double 0x400C04EBADDA6979, double 0xC03E11764B04BEB4)
%17 = tail call double @llvm.fmuladd.f64(double %8, double %16, double 0xC0558882029F6807)
%18 = fmul double %8, %17
%19 = insertelement <2 x double> %5, double %7, i64 1
%20 = insertelement <2 x double> poison, double %11, i64 0
%21 = insertelement <2 x double> %20, double %15, i64 1
%22 = insertelement <2 x double> <double 0x40A144727D54E900, double poison>, double %18, i64 1
%23 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %21, <2 x double> %22)
%24 = tail call double @llvm.fmuladd.f64(double %8, double 0x40298FE19FC9CBDF, double 0xC05B134DBFCEE248)
%25 = tail call double @llvm.fmuladd.f64(double %8, double %24, double 0x4076DB44514DF309)
%26 = tail call double @llvm.fmuladd.f64(double %8, double %25, double 0xC0851E6C6FE41A8A)
%27 = tail call double @llvm.fmuladd.f64(double %8, double %26, double 0x409B804036000CFB)
%28 = fmul double %8, %27
%29 = insertelement <2 x double> <double 0xC0D822E499742DAD, double poison>, double %28, i64 1
%30 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %23, <2 x double> %29)
%31 = fmul <2 x double> %5, %30
%32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%33 = fadd <2 x double> %31, %32
%34 = extractelement <2 x double> %33, i64 0
%35 = fmul double %34, -2.500000e-02
ret double %35
}