; LLVM IR from zhenrong-wang/co2 :: co2_property_calc (hs_find_tsat)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.co2_prop = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

; Function Attrs: nounwind uwtable
declare dso_local void @co2_prop_calc_tr(ptr noundef, double noundef, double noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @calc_psat_t(ptr noundef, ptr noundef, ptr noundef, double noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @hs_find_tsat(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca %struct.co2_prop, align 8
  %29 = alloca %struct.co2_prop, align 8
  %30 = alloca %struct.co2_prop, align 8
  %31 = alloca %struct.co2_prop, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  store i32 0, ptr %35, align 4, !tbaa !11
  store double 2.165920e+02, ptr %10, align 8, !tbaa !9
  store double 0x4073020D1B71758E, ptr %11, align 8, !tbaa !9
  %37 = load double, ptr %10, align 8, !tbaa !9
  %38 = call i32 @calc_psat_t(ptr noundef %12, ptr noundef %22, ptr noundef %23, double noundef %37)
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %43

40:                                               ; preds = %4
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  store double -1.000000e+00, ptr %41, align 8, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  store double -1.000000e+00, ptr %42, align 8, !tbaa !9
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

43:                                               ; preds = %4
  %44 = load double, ptr %10, align 8, !tbaa !9
  %45 = load double, ptr %22, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %28, double noundef %44, double noundef %45)
  %46 = load double, ptr %10, align 8, !tbaa !9
  %47 = load double, ptr %23, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %29, double noundef %46, double noundef %47)
  %48 = load double, ptr %9, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %50 = load double, ptr %49, align 8, !tbaa !13
  %51 = fsub double %48, %50
  %52 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 4
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %55 = load double, ptr %54, align 8, !tbaa !13
  %56 = fsub double %53, %55
  %57 = fdiv double %51, %56
  store double %57, ptr %14, align 8, !tbaa !9
  %58 = load double, ptr %8, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 7
  %60 = load double, ptr %59, align 8, !tbaa !15
  %61 = fsub double %58, %60
  %62 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %63 = load double, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %65 = load double, ptr %64, align 8, !tbaa !15
  %66 = fsub double %63, %65
  %67 = fdiv double %61, %66
  store double %67, ptr %16, align 8, !tbaa !9
  %68 = load double, ptr %11, align 8, !tbaa !9
  %69 = call i32 @calc_psat_t(ptr noundef %13, ptr noundef %24, ptr noundef %25, double noundef %68)
  %70 = icmp eq i32 %69, -1
  br i1 %70, label %71, label %74

71:                                               ; preds = %43
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  store double -1.000000e+00, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  store double -1.000000e+00, ptr %73, align 8, !tbaa !9
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

74:                                               ; preds = %43
  %75 = load double, ptr %11, align 8, !tbaa !9
  %76 = load double, ptr %24, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %28, double noundef %75, double noundef %76)
  %77 = load double, ptr %11, align 8, !tbaa !9
  %78 = load double, ptr %25, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %29, double noundef %77, double noundef %78)
  %79 = load double, ptr %9, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %81 = load double, ptr %80, align 8, !tbaa !13
  %82 = fsub double %79, %81
  %83 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 4
  %84 = load double, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %86 = load double, ptr %85, align 8, !tbaa !13
  %87 = fsub double %84, %86
  %88 = fdiv double %82, %87
  store double %88, ptr %15, align 8, !tbaa !9
  %89 = load double, ptr %8, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 7
  %91 = load double, ptr %90, align 8, !tbaa !15
  %92 = fsub double %89, %91
  %93 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %94 = load double, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %96 = load double, ptr %95, align 8, !tbaa !15
  %97 = fsub double %94, %96
  %98 = fdiv double %92, %97
  store double %98, ptr %17, align 8, !tbaa !9
  %99 = load double, ptr %16, align 8, !tbaa !9
  %100 = load double, ptr %14, align 8, !tbaa !9
  %101 = fsub double %99, %100
  %102 = load double, ptr %17, align 8, !tbaa !9
  %103 = load double, ptr %15, align 8, !tbaa !9
  %104 = fsub double %102, %103
  %105 = fmul double %101, %104
  %106 = fcmp ogt double %105, 0.000000e+00
  br i1 %106, label %107, label %110

107:                                              ; preds = %74
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  store double -1.000000e+00, ptr %108, align 8, !tbaa !9
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  store double -1.000000e+00, ptr %109, align 8, !tbaa !9
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

110:                                              ; preds = %74
  br label %111

111:                                              ; preds = %187, %110
  %112 = load double, ptr %10, align 8, !tbaa !9
  %113 = load double, ptr %11, align 8, !tbaa !9
  %114 = fadd double %112, %113
  %115 = fmul double 5.000000e-01, %114
  store double %115, ptr %18, align 8, !tbaa !9
  %116 = load double, ptr %18, align 8, !tbaa !9
  %117 = call i32 @calc_psat_t(ptr noundef %19, ptr noundef %26, ptr noundef %27, double noundef %116)
  %118 = icmp eq i32 %117, -1
  br i1 %118, label %119, label %122

119:                                              ; preds = %111
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  store double -1.000000e+00, ptr %120, align 8, !tbaa !9
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  store double -1.000000e+00, ptr %121, align 8, !tbaa !9
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

122:                                              ; preds = %111
  %123 = load double, ptr %18, align 8, !tbaa !9
  %124 = load double, ptr %26, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %28, double noundef %123, double noundef %124)
  %125 = load double, ptr %18, align 8, !tbaa !9
  %126 = load double, ptr %27, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %29, double noundef %125, double noundef %126)
  %127 = load double, ptr %9, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %129 = load double, ptr %128, align 8, !tbaa !13
  %130 = fsub double %127, %129
  %131 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 4
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 4
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = fsub double %132, %134
  %136 = fdiv double %130, %135
  store double %136, ptr %21, align 8, !tbaa !9
  %137 = load double, ptr %8, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.co2_prop, ptr %28, i32 0, i32 7
  %139 = load double, ptr %138, align 8, !tbaa !15
  %140 = fsub double %137, %139
  %141 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %142 = load double, ptr %141, align 8, !tbaa !15
  %143 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %144 = load double, ptr %143, align 8, !tbaa !15
  %145 = fsub double %142, %144
  %146 = fdiv double %140, %145
  store double %146, ptr %20, align 8, !tbaa !9
  %147 = load i32, ptr %35, align 4, !tbaa !11
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %35, align 4, !tbaa !11
  %149 = load double, ptr %20, align 8, !tbaa !9
  %150 = load double, ptr %21, align 8, !tbaa !9
  %151 = fsub double %149, %150
  %152 = call double @llvm.fabs.f64(double %151)
  %153 = fcmp olt double %152, 0x3EB0C6F7A0B5ED8D
  br i1 %153, label %154, label %162

154:                                              ; preds = %122
  %155 = load double, ptr %18, align 8, !tbaa !9
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  store double %155, ptr %156, align 8, !tbaa !9
  %157 = load double, ptr %20, align 8, !tbaa !9
  %158 = load double, ptr %21, align 8, !tbaa !9
  %159 = fadd double %157, %158
  %160 = fmul double 5.000000e-01, %159
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  store double %160, ptr %161, align 8, !tbaa !9
  store i32 0, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

162:                                              ; preds = %122
  %163 = load double, ptr %20, align 8, !tbaa !9
  %164 = load double, ptr %21, align 8, !tbaa !9
  %165 = fsub double %163, %164
  %166 = load double, ptr %16, align 8, !tbaa !9
  %167 = load double, ptr %14, align 8, !tbaa !9
  %168 = fsub double %166, %167
  %169 = fmul double %165, %168
  %170 = fcmp ogt double %169, 0.000000e+00
  br i1 %170, label %171, label %173

171:                                              ; preds = %162
  %172 = load double, ptr %18, align 8, !tbaa !9
  store double %172, ptr %10, align 8, !tbaa !9
  br label %185

173:                                              ; preds = %162
  %174 = load double, ptr %20, align 8, !tbaa !9
  %175 = load double, ptr %21, align 8, !tbaa !9
  %176 = fsub double %174, %175
  %177 = load double, ptr %17, align 8, !tbaa !9
  %178 = load double, ptr %15, align 8, !tbaa !9
  %179 = fsub double %177, %178
  %180 = fmul double %176, %179
  %181 = fcmp ogt double %180, 0.000000e+00
  br i1 %181, label %182, label %184

182:                                              ; preds = %173
  %183 = load double, ptr %18, align 8, !tbaa !9
  store double %183, ptr %11, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %182, %173
  br label %185

185:                                              ; preds = %184, %171
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %35, align 4, !tbaa !11
  %189 = icmp slt i32 %188, 200
  br i1 %189, label %111, label %190, !llvm.loop !16

190:                                              ; preds = %187
  %191 = load i32, ptr %35, align 4, !tbaa !11
  %192 = icmp eq i32 %191, 200
  br i1 %192, label %193, label %196

193:                                              ; preds = %190
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  store double -1.000000e+00, ptr %194, align 8, !tbaa !9
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  store double -1.000000e+00, ptr %195, align 8, !tbaa !9
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %36, align 4
  br label %197

196:                                              ; preds = %190
  store i32 0, ptr %36, align 4
  br label %197

197:                                              ; preds = %196, %193, %154, %119, %107, %71, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %198 = load i32, ptr %36, align 4
  switch i32 %198, label %201 [
    i32 0, label %199
    i32 1, label %199
  ]

199:                                              ; preds = %197, %197
  %200 = load i32, ptr %5, align 4
  ret i32 %200

201:                                              ; preds = %197
  unreachable
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 32}
!14 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!15 = !{!14, !10, i64 56}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.co2_prop = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

; Function Attrs: nounwind uwtable
declare dso_local void @co2_prop_calc_tr(ptr noundef, double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @calc_psat_t(ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @hs_find_tsat(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, double noundef %2, double noundef %3) local_unnamed_addr #0 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %struct.co2_prop, align 8
  %15 = alloca %struct.co2_prop, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #3
  %16 = call i32 @calc_psat_t(ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %9, double noundef 2.165920e+02)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  store double -1.000000e+00, ptr %0, align 8, !tbaa !5
  br label %98

19:                                               ; preds = %4
  %20 = load double, ptr %8, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %14, double noundef 2.165920e+02, double noundef %20)
  %21 = load double, ptr %9, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %15, double noundef 2.165920e+02, double noundef %21)
  %22 = getelementptr inbounds i8, ptr %14, i64 32
  %23 = load <2 x double>, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %15, i64 32
  %25 = load <2 x double>, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %14, i64 56
  %27 = load <2 x double>, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %15, i64 56
  %29 = load <2 x double>, ptr %28, align 8
  %30 = call i32 @calc_psat_t(ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef nonnull %11, double noundef 0x4073020D1B71758E)
  %31 = icmp eq i32 %30, -1
  br i1 %31, label %32, label %33

32:                                               ; preds = %19
  store double -1.000000e+00, ptr %0, align 8, !tbaa !5
  br label %98

33:                                               ; preds = %19
  %34 = load double, ptr %10, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %14, double noundef 0x4073020D1B71758E, double noundef %34)
  %35 = load double, ptr %11, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %15, double noundef 0x4073020D1B71758E, double noundef %35)
  %36 = load double, ptr %22, align 8, !tbaa !9
  %37 = load double, ptr %24, align 8, !tbaa !9
  %38 = load double, ptr %26, align 8, !tbaa !11
  %39 = load double, ptr %28, align 8, !tbaa !11
  %40 = insertelement <2 x double> poison, double %3, i64 0
  %41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
  %42 = insertelement <2 x double> %23, double %36, i64 1
  %43 = fsub <2 x double> %41, %42
  %44 = insertelement <2 x double> %25, double %37, i64 1
  %45 = fsub <2 x double> %44, %42
  %46 = fdiv <2 x double> %43, %45
  %47 = insertelement <2 x double> poison, double %2, i64 0
  %48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
  %49 = insertelement <2 x double> %27, double %38, i64 1
  %50 = fsub <2 x double> %48, %49
  %51 = insertelement <2 x double> %29, double %39, i64 1
  %52 = fsub <2 x double> %51, %51
  %53 = fdiv <2 x double> %50, %52
  %54 = fsub <2 x double> %53, %46
  %55 = extractelement <2 x double> %54, i64 0
  %56 = extractelement <2 x double> %54, i64 1
  %57 = fmul double %55, %56
  %58 = fcmp ogt double %57, 0.000000e+00
  br i1 %58, label %60, label %.preheader.preheader

.preheader.preheader:                             ; preds = %33
  %59 = insertelement <2 x double> %47, double %3, i64 1
  br label %.preheader

60:                                               ; preds = %33
  store double -1.000000e+00, ptr %0, align 8, !tbaa !5
  br label %98

.preheader:                                       ; preds = %.preheader.preheader, %96
  %.053 = phi double [ %.154, %96 ], [ 0x4073020D1B71758E, %.preheader.preheader ]
  %.052 = phi double [ %.1, %96 ], [ 2.165920e+02, %.preheader.preheader ]
  %.0 = phi i32 [ %80, %96 ], [ 0, %.preheader.preheader ]
  %61 = fadd double %.053, %.052
  %62 = fmul double %61, 5.000000e-01
  %63 = call i32 @calc_psat_t(ptr noundef nonnull %7, ptr noundef nonnull %12, ptr noundef nonnull %13, double noundef %62)
  %64 = icmp eq i32 %63, -1
  br i1 %64, label %65, label %66

65:                                               ; preds = %.preheader
  store double -1.000000e+00, ptr %0, align 8, !tbaa !5
  br label %98

66:                                               ; preds = %.preheader
  %67 = load double, ptr %12, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %14, double noundef %62, double noundef %67)
  %68 = load double, ptr %13, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %15, double noundef %62, double noundef %68)
  %69 = load double, ptr %22, align 8, !tbaa !9
  %70 = load double, ptr %24, align 8, !tbaa !9
  %71 = load <2 x double>, ptr %26, align 8
  %72 = load <2 x double>, ptr %28, align 8
  %73 = shufflevector <2 x double> %72, <2 x double> poison, <2 x i32> <i32 0, i32 poison>
  %74 = insertelement <2 x double> %71, double %69, i64 1
  %75 = fsub <2 x double> %59, %74
  %76 = insertelement <2 x double> %73, double %70, i64 1
  %77 = insertelement <2 x double> %73, double %69, i64 1
  %78 = fsub <2 x double> %76, %77
  %79 = fdiv <2 x double> %75, %78
  %80 = add nuw nsw i32 %.0, 1
  %81 = extractelement <2 x double> %79, i64 0
  %82 = extractelement <2 x double> %79, i64 1
  %83 = fsub double %81, %82
  %84 = call double @llvm.fabs.f64(double %83)
  %85 = fcmp olt double %84, 0x3EB0C6F7A0B5ED8D
  br i1 %85, label %86, label %89

86:                                               ; preds = %66
  store double %62, ptr %0, align 8, !tbaa !5
  %87 = fadd double %82, %81
  %88 = fmul double %87, 5.000000e-01
  br label %98

89:                                               ; preds = %66
  %90 = fmul double %55, %83
  %91 = fcmp ogt double %90, 0.000000e+00
  br i1 %91, label %96, label %92

92:                                               ; preds = %89
  %93 = fmul double %56, %83
  %94 = fcmp ogt double %93, 0.000000e+00
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  br label %96

96:                                               ; preds = %89, %92, %95
  %.154 = phi double [ %62, %95 ], [ %.053, %92 ], [ %.053, %89 ]
  %.1 = phi double [ %.052, %95 ], [ %.052, %92 ], [ %62, %89 ]
  %exitcond.not = icmp eq i32 %80, 200
  br i1 %exitcond.not, label %97, label %.preheader, !llvm.loop !12

97:                                               ; preds = %96
  store double -1.000000e+00, ptr %0, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %97, %86, %65, %60, %32, %18
  %.sink = phi double [ -1.000000e+00, %97 ], [ %88, %86 ], [ -1.000000e+00, %65 ], [ -1.000000e+00, %60 ], [ -1.000000e+00, %32 ], [ -1.000000e+00, %18 ]
  %.051 = phi i32 [ -1, %97 ], [ 0, %86 ], [ -1, %65 ], [ -1, %60 ], [ -1, %32 ], [ -1, %18 ]
  store double %.sink, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i32 %.051
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!11 = !{!10, !6, i64 56}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass