#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();
int pow(double, int);
double dLnPws_(double TDryBulb) {
  double dLnPws, T;
  if (isIP()) {
    T = GetTRankineFromTFahrenheit(TDryBulb);
    if (TDryBulb <= 32.018)
      dLnPws = 1.0214165E+04 / pow(T, 2) - 5.3765794E-03 +
               2 * 1.9202377E-07 * T + 3 * 3.5575832E-10 * pow(T, 2) -
               4 * 9.0344688E-14 * pow(T, 3) + 4.1635019 / T;
    else
      dLnPws = 1.0440397E+04 / pow(T, 2) - 2.7022355E-02 +
               2 * 1.2890360E-05 * T - 3 * 2.4780681E-09 * pow(T, 2) +
               6.5459673 / T;
  } else {
    T = GetTKelvinFromTCelsius(TDryBulb);
    if (TDryBulb <= 0.01)
      dLnPws = 5.6745359E+03 / pow(T, 2) - 9.677843E-03 +
               2 * 6.2215701E-07 * T + 3 * 2.0747825E-09 * pow(T, 2) -
               4 * 9.484024E-13 * pow(T, 3) + 4.1635019 / T;
    else
      dLnPws = 5.8002206E+03 / pow(T, 2) - 4.8640239E-02 +
               2 * 4.1764768E-05 * T - 3 * 1.4452093E-08 * pow(T, 2) +
               6.5459673 / T;
  }
  return dLnPws;
}


x86 assembly (clang, -O0):
<dLnPws_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    $0x0,%al
call   1050 <isIP@plt>
cmp    $0x0,%rax
je     12bd <dLnPws_+0x17d>
movsd  -0x8(%rbp),%xmm0
call   1060 <GetTRankineFromTFahrenheit@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xeeb(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     1235 <dLnPws_+0xf5>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xf0d(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xef9(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xee0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x28(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xeab(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
movsd  -0x20(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xe76(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe0e(%rip),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    12b8 <dLnPws_+0x178>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe30(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe1c(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe03(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x30(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xdce(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd5e(%rip),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    141c <dLnPws_+0x2dc>
movsd  -0x8(%rbp),%xmm0
call   1030 <GetTKelvinFromTCelsius@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xd2c(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     1394 <dLnPws_+0x254>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd5e(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xd4a(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xd31(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x40(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xcfc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
movsd  -0x38(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xcc7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcaf(%rip),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1417 <dLnPws_+0x2d7>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc79(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xc65(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xc4c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x48(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
movsd  0xc17(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xbff(%rip),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    141c <dLnPws_+0x2dc>
movsd  -0x10(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dLnPws_>:
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <isIP@plt>
test   %rax,%rax
je     11db <dLnPws_+0x9b>
movsd  0x8(%rsp),%xmm0
call   1060 <GetTRankineFromTFahrenheit@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  0xe83(%rip),%xmm0
ucomisd 0x8(%rsp),%xmm0
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
jae    126d <dLnPws_+0x12d>
movsd  0xea0(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  0xe9c(%rip),%xmm1
movsd  0xe9c(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xe77(%rip),%xmm1
jmp    125a <dLnPws_+0x11a>
movsd  0x8(%rsp),%xmm0
call   1030 <GetTKelvinFromTCelsius@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  0xe62(%rip),%xmm0
ucomisd 0x8(%rsp),%xmm0
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
jae    12e3 <dLnPws_+0x1a3>
movsd  0xe77(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  0xe73(%rip),%xmm1
movsd  0xe73(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xe4e(%rip),%xmm1
addsd  0x8(%rsp),%xmm1
movsd  0xdf0(%rip),%xmm0
jmp    1365 <dLnPws_+0x225>
movsd  0xd93(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  0xd8f(%rip),%xmm1
movsd  0xd8f(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd6a(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xd47(%rip),%xmm1
jmp    1357 <dLnPws_+0x217>
movsd  0xd7d(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  0xd79(%rip),%xmm1
movsd  0xd79(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd54(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xd31(%rip),%xmm1
addsd  0x8(%rsp),%xmm1
movsd  0xccb(%rip),%xmm0
divsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @dLnPws_(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
%5 = call i64 (...) @isIP()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %47
7: ; preds = %1
%8 = load double, double* %2
%9 = call double @GetTRankineFromTFahrenheit(double %8)
store double %9, double* %4
%10 = load double, double* %2
%11 = fcmp ole double %10, 3.201800e+01
br i1 %11, label %12, label %31
12: ; preds = %7
%13 = load double, double* %4
%14 = call i32 @pow(double %13, i32 2)
%15 = sitofp i32 %14 to double
%16 = fdiv double 0x40C3F3151EB851EC, %15
%17 = fsub double %16, 0x3F7605C08AFF5FE3
%18 = load double, double* %4
%19 = call double @llvm.fmuladd.f64(double 0x3E99C5E2F18256EE, double %18, double %17)
%20 = load double, double* %4
%21 = call i32 @pow(double %20, i32 2)
%22 = sitofp i32 %21 to double
%23 = call double @llvm.fmuladd.f64(double 0x3E1255ECC72D982A, double %22, double %19)
%24 = load double, double* %4
%25 = call i32 @pow(double %24, i32 3)
%26 = sitofp i32 %25 to double
%27 = call double @llvm.fmuladd.f64(double 0xBD596E0556843A5B, double %26, double %23)
%28 = load double, double* %4
%29 = fdiv double 0x4010A76D0AC555E0, %28
%30 = fadd double %27, %29
store double %30, double* %3
br label %46
31: ; preds = %7
%32 = load double, double* %4
%33 = call i32 @pow(double %32, i32 2)
%34 = sitofp i32 %33 to double
%35 = fdiv double 0x40C46432D0E56042, %34
%36 = fsub double %35, 0x3F9BABBF8BF19051
%37 = load double, double* %4
%38 = call double @llvm.fmuladd.f64(double 0x3EFB0875969957D5, double %37, double %36)
%39 = load double, double* %4
%40 = call i32 @pow(double %39, i32 2)
%41 = sitofp i32 %40 to double
%42 = call double @llvm.fmuladd.f64(double 0xBE3FEDFE7B71C565, double %41, double %38)
%43 = load double, double* %4
%44 = fdiv double 0x401A2F120D48BDDF, %43
%45 = fadd double %42, %44
store double %45, double* %3
br label %46
46: ; preds = %31, %12
br label %87
47: ; preds = %1
%48 = load double, double* %2
%49 = call double @GetTKelvinFromTCelsius(double %48)
store double %49, double* %4
%50 = load double, double* %2
%51 = fcmp ole double %50, 1.000000e-02
br i1 %51, label %52, label %71
52: ; preds = %47
%53 = load double, double* %4
%54 = call i32 @pow(double %53, i32 2)
%55 = sitofp i32 %54 to double
%56 = fdiv double 0x40B62A8930BE0DED, %55
%57 = fsub double %56, 0x3F83D1FA19725315
%58 = load double, double* %4
%59 = call double @llvm.fmuladd.f64(double 0x3EB4E049BBCCDCB5, double %58, double %57)
%60 = load double, double* %4
%61 = call i32 @pow(double %60, i32 2)
%62 = sitofp i32 %61 to double
%63 = call double @llvm.fmuladd.f64(double 0x3E3ABBBE114E5578, double %62, double %59)
%64 = load double, double* %4
%65 = call i32 @pow(double %64, i32 3)
%66 = sitofp i32 %65 to double
%67 = call double @llvm.fmuladd.f64(double 0xBD90AF3985A087B4, double %66, double %63)
%68 = load double, double* %4
%69 = fdiv double 0x4010A76D0AC555E0, %68
%70 = fadd double %67, %69
store double %70, double* %3
br label %86
71: ; preds = %47
%72 = load double, double* %4
%73 = call i32 @pow(double %72, i32 2)
%74 = sitofp i32 %73 to double
%75 = fdiv double 0x40B6A838793DD97F, %74
%76 = fsub double %75, 0x3FA8E75F978C9B7C
%77 = load double, double* %4
%78 = call double @llvm.fmuladd.f64(double 0x3F15E592806101F3, double %77, double %76)
%79 = load double, double* %4
%80 = call i32 @pow(double %79, i32 2)
%81 = sitofp i32 %80 to double
%82 = call double @llvm.fmuladd.f64(double 0xBE6746D773E5AB22, double %81, double %78)
%83 = load double, double* %4
%84 = fdiv double 0x401A2F120D48BDDF, %83
%85 = fadd double %82, %84
store double %85, double* %3
br label %86
86: ; preds = %71, %52
br label %87
87: ; preds = %86, %46
%88 = load double, double* %3
ret double %88
}

LLVM IR (-O2):
define double @dLnPws_(double %0) {
%2 = tail call i64 (...) @isIP()
%3 = icmp eq i64 %2, 0
br i1 %3, label %30, label %4
4: ; preds = %1
%5 = tail call double @GetTRankineFromTFahrenheit(double %0)
%6 = fcmp ugt double %0, 3.201800e+01
%7 = tail call i32 @pow(double %5, i32 2)
%8 = sitofp i32 %7 to double
br i1 %6, label %21, label %9
9: ; preds = %4
%10 = fdiv double 0x40C3F3151EB851EC, %8
%11 = fadd double %10, 0xBF7605C08AFF5FE3
%12 = tail call double @llvm.fmuladd.f64(double %5, double 0x3E99C5E2F18256EE, double %11)
%13 = tail call i32 @pow(double %5, i32 2)
%14 = sitofp i32 %13 to double
%15 = tail call double @llvm.fmuladd.f64(double %14, double 0x3E1255ECC72D982A, double %12)
%16 = tail call i32 @pow(double %5, i32 3)
%17 = sitofp i32 %16 to double
%18 = tail call double @llvm.fmuladd.f64(double %17, double 0xBD596E0556843A5B, double %15)
%19 = fdiv double 0x4010A76D0AC555E0, %5
%20 = fadd double %19, %18
br label %56
21: ; preds = %4
%22 = fdiv double 0x40C46432D0E56042, %8
%23 = fadd double %22, 0xBF9BABBF8BF19051
%24 = tail call double @llvm.fmuladd.f64(double %5, double 0x3EFB0875969957D5, double %23)
%25 = tail call i32 @pow(double %5, i32 2)
%26 = sitofp i32 %25 to double
%27 = tail call double @llvm.fmuladd.f64(double %26, double 0xBE3FEDFE7B71C565, double %24)
%28 = fdiv double 0x401A2F120D48BDDF, %5
%29 = fadd double %28, %27
br label %56
30: ; preds = %1
%31 = tail call double @GetTKelvinFromTCelsius(double %0)
%32 = fcmp ugt double %0, 1.000000e-02
%33 = tail call i32 @pow(double %31, i32 2)
%34 = sitofp i32 %33 to double
br i1 %32, label %47, label %35
35: ; preds = %30
%36 = fdiv double 0x40B62A8930BE0DED, %34
%37 = fadd double %36, 0xBF83D1FA19725315
%38 = tail call double @llvm.fmuladd.f64(double %31, double 0x3EB4E049BBCCDCB5, double %37)
%39 = tail call i32 @pow(double %31, i32 2)
%40 = sitofp i32 %39 to double
%41 = tail call double @llvm.fmuladd.f64(double %40, double 0x3E3ABBBE114E5578, double %38)
%42 = tail call i32 @pow(double %31, i32 3)
%43 = sitofp i32 %42 to double
%44 = tail call double @llvm.fmuladd.f64(double %43, double 0xBD90AF3985A087B4, double %41)
%45 = fdiv double 0x4010A76D0AC555E0, %31
%46 = fadd double %45, %44
br label %56
47: ; preds = %30
%48 = fdiv double 0x40B6A838793DD97F, %34
%49 = fadd double %48, 0xBFA8E75F978C9B7C
%50 = tail call double @llvm.fmuladd.f64(double %31, double 0x3F15E592806101F3, double %49)
%51 = tail call i32 @pow(double %31, i32 2)
%52 = sitofp i32 %51 to double
%53 = tail call double @llvm.fmuladd.f64(double %52, double 0xBE6746D773E5AB22, double %50)
%54 = fdiv double 0x401A2F120D48BDDF, %31
%55 = fadd double %54, %53
br label %56
56: ; preds = %35, %47, %9, %21
%57 = phi double [ %20, %9 ], [ %29, %21 ], [ %46, %35 ], [ %55, %47 ]
ret double %57
}