#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 */
int /*<<< orphan*/ Assert(char *, char *, int);
double GetHumRatioFromTDewPoint(double, double);
double GetTWetBulbFromHumRatio(double, double, double);
double GetTWetBulbFromTDewPoint(double TDryBulb, double TDewPoint,
                                double Pressure) {
  double HumRatio;
  if (!(TDewPoint <= TDryBulb)) {
    Assert("Dew point temperature is above dry bulb temperature",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/"
           "master/src/c/psychrolib.c",
           205);
  }
  HumRatio = GetHumRatioFromTDewPoint(TDewPoint, Pressure);
  return GetTWetBulbFromHumRatio(TDryBulb, HumRatio, Pressure);
}


x86 assembly (clang, -O0):
<GetTWetBulbFromTDewPoint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jae    1173 <GetTWetBulbFromTDewPoint+0x43>
lea    0xe9e(%rip),%rdi
lea    0xecb(%rip),%rsi
mov    $0xcd,%edx
call   1050 <Assert@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1030 <GetHumRatioFromTDewPoint@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1040 <GetTWetBulbFromHumRatio@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetTWetBulbFromTDewPoint>:
sub    $0x18,%rsp
movsd  %xmm2,(%rsp)
movsd  %xmm0,0x10(%rsp)
ucomisd %xmm1,%xmm0
jae    1169 <GetTWetBulbFromTDewPoint+0x39>
lea    0xeb4(%rip),%rdi
lea    0xee1(%rip),%rsi
mov    $0xcd,%edx
movsd  %xmm1,0x8(%rsp)
call   1050 <Assert@plt>
movsd  0x8(%rsp),%xmm1
movapd %xmm1,%xmm0
movsd  (%rsp),%xmm1
call   1030 <GetHumRatioFromTDewPoint@plt>
movapd %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm2
add    $0x18,%rsp
jmp    1040 <GetTWetBulbFromHumRatio@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"Dew point temperature is above dry bulb temperature\00"
@.str.1 = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00"
define double @GetTWetBulbFromTDewPoint(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %5
%9 = load double, double* %4
%10 = fcmp ole double %8, %9
br i1 %10, label %13, label %11
11: ; preds = %3
%12 = call i32 @Assert(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.1, i64 0, i64 0), i32 205)
br label %13
13: ; preds = %11, %3
%14 = load double, double* %5
%15 = load double, double* %6
%16 = call double @GetHumRatioFromTDewPoint(double %14, double %15)
store double %16, double* %7
%17 = load double, double* %4
%18 = load double, double* %7
%19 = load double, double* %6
%20 = call double @GetTWetBulbFromHumRatio(double %17, double %18, double %19)
ret double %20
}

LLVM IR (-O2):
@.str = [52 x i8] c"Dew point temperature is above dry bulb temperature\00"
@.str.1 = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00"
define double @GetTWetBulbFromTDewPoint(double %0, double %1, double %2) {
%4 = fcmp ugt double %1, %0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @Assert(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.1, i64 0, i64 0), i32 205)
br label %7
7: ; preds = %5, %3
%8 = tail call double @GetHumRatioFromTDewPoint(double %1, double %2)
%9 = tail call double @GetTWetBulbFromHumRatio(double %0, double %8, double %2)
ret double %9
}