#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 gsw_gibbs(int, int, int, double, double, double);
double gsw_enthalpy_t_exact(double sa, double t, double p) {
  int n0, n1;
  n0 = 0;
  n1 = 1;
  return (gsw_gibbs(n0, n0, n0, sa, t, p) -
          (t + 273.15e0) * gsw_gibbs(n0, n1, n0, sa, t, p));
}


x86 assembly (clang, -O0):
<gsw_enthalpy_t_exact>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x1c(%rbp),%edx
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <gsw_gibbs@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xea1(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <gsw_gibbs@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gsw_enthalpy_t_exact>:
sub    $0x28,%rsp
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x10(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <gsw_gibbs@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xec2(%rip),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm2
call   1030 <gsw_gibbs@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @gsw_enthalpy_t_exact(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
store i32 0, i32* %7
store i32 1, i32* %8
%9 = load i32, i32* %7
%10 = load i32, i32* %7
%11 = load i32, i32* %7
%12 = load double, double* %4
%13 = load double, double* %5
%14 = load double, double* %6
%15 = call double @gsw_gibbs(i32 %9, i32 %10, i32 %11, double %12, double %13, double %14)
%16 = load double, double* %5
%17 = fadd double %16, 2.731500e+02
%18 = load i32, i32* %7
%19 = load i32, i32* %8
%20 = load i32, i32* %7
%21 = load double, double* %4
%22 = load double, double* %5
%23 = load double, double* %6
%24 = call double @gsw_gibbs(i32 %18, i32 %19, i32 %20, double %21, double %22, double %23)
%25 = fneg double %17
%26 = call double @llvm.fmuladd.f64(double %25, double %24, double %15)
ret double %26
}

LLVM IR (-O2):
define double @gsw_enthalpy_t_exact(double %0, double %1, double %2) {
%4 = tail call double @gsw_gibbs(i32 0, i32 0, i32 0, double %0, double %1, double %2)
%5 = fadd double %1, 2.731500e+02
%6 = tail call double @gsw_gibbs(i32 0, i32 1, i32 0, double %0, double %1, double %2)
%7 = fneg double %5
%8 = tail call double @llvm.fmuladd.f64(double %7, double %6, double %4)
ret double %8
}