#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 GetTKelvinFromTCelsius(double);
double GetTRankineFromTFahrenheit(double);
scalar_t__ isIP();
double GetDryAirVolume(double TDryBulb, double Pressure) {
  if (isIP())
    return 53.350 * GetTRankineFromTFahrenheit(TDryBulb) / (144. * Pressure);
  else
    return 287.042 * GetTKelvinFromTCelsius(TDryBulb) / Pressure;
}


x86 assembly (clang, -O0):
<GetDryAirVolume>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    $0x0,%al
call   1040 <isIP@plt>
cmp    $0x0,%rax
je     1187 <GetDryAirVolume+0x57>
movsd  -0x10(%rbp),%xmm0
call   1050 <GetTRankineFromTFahrenheit@plt>
movaps %xmm0,%xmm1
movsd  0xea8(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe94(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11aa <GetDryAirVolume+0x7a>
movsd  -0x10(%rbp),%xmm0
call   1030 <GetTKelvinFromTCelsius@plt>
movaps %xmm0,%xmm1
movsd  0xe64(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetDryAirVolume>:
sub    $0x18,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1040 <isIP@plt>
test   %rax,%rax
je     1176 <GetDryAirVolume+0x46>
movsd  0x8(%rsp),%xmm0
call   1050 <GetTRankineFromTFahrenheit@plt>
mulsd  0xea1(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xe9b(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x18,%rsp
ret
movsd  0x8(%rsp),%xmm0
call   1030 <GetTKelvinFromTCelsius@plt>
mulsd  0xe87(%rip),%xmm0
divsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @GetDryAirVolume(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = call i64 (...) @isIP()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load double, double* %4
%10 = call double @GetTRankineFromTFahrenheit(double %9)
%11 = fmul double 5.335000e+01, %10
%12 = load double, double* %5
%13 = fmul double 1.440000e+02, %12
%14 = fdiv double %11, %13
store double %14, double* %3
br label %21
15: ; preds = %2
%16 = load double, double* %4
%17 = call double @GetTKelvinFromTCelsius(double %16)
%18 = fmul double 2.870420e+02, %17
%19 = load double, double* %5
%20 = fdiv double %18, %19
store double %20, double* %3
br label %21
21: ; preds = %15, %8
%22 = load double, double* %3
ret double %22
}

LLVM IR (-O2):
define double @GetDryAirVolume(double %0, double %1) {
%3 = tail call i64 (...) @isIP()
%4 = icmp eq i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = tail call double @GetTRankineFromTFahrenheit(double %0)
%7 = fmul double %6, 5.335000e+01
%8 = fmul double %1, 1.440000e+02
%9 = fdiv double %7, %8
br label %14
10: ; preds = %2
%11 = tail call double @GetTKelvinFromTCelsius(double %0)
%12 = fmul double %11, 2.870420e+02
%13 = fdiv double %12, %1
br label %14
14: ; preds = %10, %5
%15 = phi double [ %9, %5 ], [ %13, %10 ]
ret double %15
}