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

; 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.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @co2_prop_calc_ps(ptr noundef %0, double noundef %1, double noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, 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 double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.co2_prop, align 8
  %19 = alloca %struct.co2_prop, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  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 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %19) #3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.co2_prop, ptr %21, i32 0, i32 14
  store double -1.000000e+00, ptr %22, align 8, !tbaa !11
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.co2_prop, ptr %23, i32 0, i32 15
  store double -1.000000e+00, ptr %24, align 8, !tbaa !13
  %25 = load double, ptr %6, align 8, !tbaa !9
  %26 = fcmp olt double %25, 0x415C246B2D847F56
  br i1 %26, label %27, label %176

27:                                               ; preds = %3
  %28 = load double, ptr %6, align 8, !tbaa !9
  %29 = call i32 @calc_tsat_p(ptr noundef %14, ptr noundef %12, ptr noundef %13, double noundef %28)
  store i32 %29, ptr %16, align 4, !tbaa !14
  %30 = load i32, ptr %16, align 4, !tbaa !14
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %175

32:                                               ; preds = %27
  %33 = load double, ptr %14, align 8, !tbaa !9
  %34 = load double, ptr %12, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %18, double noundef %33, double noundef %34)
  %35 = load double, ptr %14, align 8, !tbaa !9
  %36 = load double, ptr %13, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %19, double noundef %35, double noundef %36)
  %37 = load double, ptr %7, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 4
  %39 = load double, ptr %38, align 8, !tbaa !16
  %40 = fcmp olt double %37, %39
  br i1 %40, label %41, label %174

41:                                               ; preds = %32
  %42 = load double, ptr %7, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 4
  %44 = load double, ptr %43, align 8, !tbaa !16
  %45 = fcmp ogt double %42, %44
  br i1 %45, label %46, label %174

46:                                               ; preds = %41
  %47 = load double, ptr %7, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = fsub double %47, %49
  %51 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 4
  %52 = load double, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 4
  %54 = load double, ptr %53, align 8, !tbaa !16
  %55 = fsub double %52, %54
  %56 = fdiv double %50, %55
  store double %56, ptr %15, align 8, !tbaa !9
  %57 = load double, ptr %6, align 8, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.co2_prop, ptr %58, i32 0, i32 0
  store double %57, ptr %59, align 8, !tbaa !17
  %60 = load double, ptr %14, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.co2_prop, ptr %61, i32 0, i32 1
  store double %60, ptr %62, align 8, !tbaa !18
  %63 = load double, ptr %15, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 2
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = load double, ptr %15, align 8, !tbaa !9
  %67 = fsub double 1.000000e+00, %66
  %68 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 2
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = fmul double %67, %69
  %71 = call double @llvm.fmuladd.f64(double %63, double %65, double %70)
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.co2_prop, ptr %72, i32 0, i32 2
  store double %71, ptr %73, align 8, !tbaa !19
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.co2_prop, ptr %74, i32 0, i32 2
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = fdiv double 1.000000e+00, %76
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.co2_prop, ptr %78, i32 0, i32 3
  store double %77, ptr %79, align 8, !tbaa !20
  %80 = load double, ptr %7, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.co2_prop, ptr %81, i32 0, i32 4
  store double %80, ptr %82, align 8, !tbaa !16
  %83 = load double, ptr %15, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 5
  %85 = load double, ptr %84, align 8, !tbaa !21
  %86 = load double, ptr %15, align 8, !tbaa !9
  %87 = fsub double 1.000000e+00, %86
  %88 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 5
  %89 = load double, ptr %88, align 8, !tbaa !21
  %90 = fmul double %87, %89
  %91 = call double @llvm.fmuladd.f64(double %83, double %85, double %90)
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.co2_prop, ptr %92, i32 0, i32 5
  store double %91, ptr %93, align 8, !tbaa !21
  %94 = load double, ptr %15, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 6
  %96 = load double, ptr %95, align 8, !tbaa !22
  %97 = load double, ptr %15, align 8, !tbaa !9
  %98 = fsub double 1.000000e+00, %97
  %99 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 6
  %100 = load double, ptr %99, align 8, !tbaa !22
  %101 = fmul double %98, %100
  %102 = call double @llvm.fmuladd.f64(double %94, double %96, double %101)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.co2_prop, ptr %103, i32 0, i32 6
  store double %102, ptr %104, align 8, !tbaa !22
  %105 = load double, ptr %15, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 7
  %107 = load double, ptr %106, align 8, !tbaa !23
  %108 = load double, ptr %15, align 8, !tbaa !9
  %109 = fsub double 1.000000e+00, %108
  %110 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 7
  %111 = load double, ptr %110, align 8, !tbaa !23
  %112 = fmul double %109, %111
  %113 = call double @llvm.fmuladd.f64(double %105, double %107, double %112)
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.co2_prop, ptr %114, i32 0, i32 7
  store double %113, ptr %115, align 8, !tbaa !23
  %116 = load double, ptr %15, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 8
  %118 = load double, ptr %117, align 8, !tbaa !24
  %119 = load double, ptr %15, align 8, !tbaa !9
  %120 = fsub double 1.000000e+00, %119
  %121 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 8
  %122 = load double, ptr %121, align 8, !tbaa !24
  %123 = fmul double %120, %122
  %124 = call double @llvm.fmuladd.f64(double %116, double %118, double %123)
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.co2_prop, ptr %125, i32 0, i32 8
  store double %124, ptr %126, align 8, !tbaa !24
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 9
  %129 = load double, ptr %128, align 8, !tbaa !25
  %130 = load double, ptr %15, align 8, !tbaa !9
  %131 = fsub double 1.000000e+00, %130
  %132 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 9
  %133 = load double, ptr %132, align 8, !tbaa !25
  %134 = fmul double %131, %133
  %135 = call double @llvm.fmuladd.f64(double %127, double %129, double %134)
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.co2_prop, ptr %136, i32 0, i32 9
  store double %135, ptr %137, align 8, !tbaa !25
  %138 = load double, ptr %15, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 10
  %140 = load double, ptr %139, align 8, !tbaa !26
  %141 = load double, ptr %15, align 8, !tbaa !9
  %142 = fsub double 1.000000e+00, %141
  %143 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 10
  %144 = load double, ptr %143, align 8, !tbaa !26
  %145 = fmul double %142, %144
  %146 = call double @llvm.fmuladd.f64(double %138, double %140, double %145)
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.co2_prop, ptr %147, i32 0, i32 10
  store double %146, ptr %148, align 8, !tbaa !26
  %149 = load double, ptr %15, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 11
  %151 = load double, ptr %150, align 8, !tbaa !27
  %152 = load double, ptr %15, align 8, !tbaa !9
  %153 = fsub double 1.000000e+00, %152
  %154 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 11
  %155 = load double, ptr %154, align 8, !tbaa !27
  %156 = fmul double %153, %155
  %157 = call double @llvm.fmuladd.f64(double %149, double %151, double %156)
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.co2_prop, ptr %158, i32 0, i32 11
  store double %157, ptr %159, align 8, !tbaa !27
  %160 = load double, ptr %15, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 12
  %162 = load double, ptr %161, align 8, !tbaa !28
  %163 = load double, ptr %15, align 8, !tbaa !9
  %164 = fsub double 1.000000e+00, %163
  %165 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 12
  %166 = load double, ptr %165, align 8, !tbaa !28
  %167 = fmul double %164, %166
  %168 = call double @llvm.fmuladd.f64(double %160, double %162, double %167)
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.co2_prop, ptr %169, i32 0, i32 12
  store double %168, ptr %170, align 8, !tbaa !28
  %171 = load double, ptr %15, align 8, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.co2_prop, ptr %172, i32 0, i32 13
  store double %171, ptr %173, align 8, !tbaa !29
  store i32 0, ptr %4, align 4
  store i32 1, ptr %20, align 4
  br label %187

174:                                              ; preds = %41, %32
  br label %175

175:                                              ; preds = %174, %27
  br label %176

176:                                              ; preds = %175, %3
  %177 = load double, ptr %6, align 8, !tbaa !9
  %178 = load double, ptr %7, align 8, !tbaa !9
  %179 = call i32 @td_ps(ptr noundef %8, ptr noundef %9, double noundef %177, double noundef %178)
  store i32 %179, ptr %16, align 4, !tbaa !14
  %180 = load i32, ptr %16, align 4, !tbaa !14
  %181 = icmp eq i32 %180, -1
  br i1 %181, label %182, label %183

182:                                              ; preds = %176
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %20, align 4
  br label %187

183:                                              ; preds = %176
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load double, ptr %8, align 8, !tbaa !9
  %186 = load double, ptr %9, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %184, double noundef %185, double noundef %186)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %20, align 4
  br label %187

187:                                              ; preds = %183, %182, %46
  call void @llvm.lifetime.end.p0(i64 128, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %188 = load i32, ptr %4, align 4
  ret i32 %188
}

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, !10, i64 112}
!12 = !{!"", !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}
!13 = !{!12, !10, i64 120}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 8}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !10, i64 40}
!22 = !{!12, !10, i64 48}
!23 = !{!12, !10, i64 56}
!24 = !{!12, !10, i64 64}
!25 = !{!12, !10, i64 72}
!26 = !{!12, !10, i64 80}
!27 = !{!12, !10, i64 88}
!28 = !{!12, !10, i64 96}
!29 = !{!12, !10, i64 104}


; 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.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @co2_prop_calc_ps(ptr noundef %0, double noundef %1, double noundef %2) local_unnamed_addr #0 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.co2_prop, align 8
  %10 = alloca %struct.co2_prop, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %11, align 8, !tbaa !5
  %12 = fcmp olt double %1, 0x415C246B2D847F56
  br i1 %12, label %13, label %78

13:                                               ; preds = %3
  %14 = call i32 @calc_tsat_p(ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull %7, double noundef %1)
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %78

16:                                               ; preds = %13
  %17 = load double, ptr %8, align 8, !tbaa !5
  %18 = load double, ptr %6, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %9, double noundef %17, double noundef %18)
  %19 = load double, ptr %8, align 8, !tbaa !5
  %20 = load double, ptr %7, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %10, double noundef %19, double noundef %20)
  %21 = getelementptr inbounds i8, ptr %10, i64 32
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = fcmp ogt double %22, %2
  br i1 %23, label %24, label %78

24:                                               ; preds = %16
  %25 = getelementptr inbounds i8, ptr %9, i64 32
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = fcmp olt double %26, %2
  br i1 %27, label %28, label %78

28:                                               ; preds = %24
  %29 = fsub double %2, %26
  %30 = fsub double %22, %26
  %31 = fdiv double %29, %30
  store double %1, ptr %0, align 8, !tbaa !11
  %32 = load double, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  store double %32, ptr %33, align 8, !tbaa !12
  %34 = getelementptr inbounds i8, ptr %10, i64 16
  %35 = load double, ptr %34, align 8, !tbaa !13
  %36 = fsub double 1.000000e+00, %31
  %37 = getelementptr inbounds i8, ptr %9, i64 16
  %38 = load double, ptr %37, align 8, !tbaa !13
  %39 = fmul double %36, %38
  %40 = call double @llvm.fmuladd.f64(double %31, double %35, double %39)
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  store double %40, ptr %41, align 8, !tbaa !13
  %42 = fdiv double 1.000000e+00, %40
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  store double %42, ptr %43, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  store double %2, ptr %44, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %10, i64 40
  %46 = getelementptr inbounds i8, ptr %9, i64 40
  %47 = getelementptr inbounds i8, ptr %0, i64 40
  %48 = load <2 x double>, ptr %45, align 8, !tbaa !5
  %49 = load <2 x double>, ptr %46, align 8, !tbaa !5
  %50 = insertelement <2 x double> poison, double %36, i64 0
  %51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
  %52 = fmul <2 x double> %51, %49
  %53 = insertelement <2 x double> poison, double %31, i64 0
  %54 = shufflevector <2 x double> %53, <2 x double> poison, <2 x i32> zeroinitializer
  %55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> %48, <2 x double> %52)
  store <2 x double> %55, ptr %47, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %10, i64 56
  %57 = getelementptr inbounds i8, ptr %9, i64 56
  %58 = getelementptr inbounds i8, ptr %0, i64 56
  %59 = load <2 x double>, ptr %56, align 8, !tbaa !5
  %60 = load <2 x double>, ptr %57, align 8, !tbaa !5
  %61 = fmul <2 x double> %51, %60
  %62 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> %59, <2 x double> %61)
  store <2 x double> %62, ptr %58, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %10, i64 72
  %64 = getelementptr inbounds i8, ptr %9, i64 72
  %65 = getelementptr inbounds i8, ptr %0, i64 72
  %66 = load <2 x double>, ptr %63, align 8, !tbaa !5
  %67 = load <2 x double>, ptr %64, align 8, !tbaa !5
  %68 = fmul <2 x double> %51, %67
  %69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> %66, <2 x double> %68)
  store <2 x double> %69, ptr %65, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %10, i64 88
  %71 = getelementptr inbounds i8, ptr %9, i64 88
  %72 = getelementptr inbounds i8, ptr %0, i64 88
  %73 = load <2 x double>, ptr %70, align 8, !tbaa !5
  %74 = load <2 x double>, ptr %71, align 8, !tbaa !5
  %75 = fmul <2 x double> %51, %74
  %76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> %73, <2 x double> %75)
  store <2 x double> %76, ptr %72, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %0, i64 104
  store double %31, ptr %77, align 8, !tbaa !15
  br label %84

78:                                               ; preds = %13, %24, %16, %3
  %79 = call i32 @td_ps(ptr noundef nonnull %4, ptr noundef nonnull %5, double noundef %1, double noundef %2)
  %80 = icmp eq i32 %79, -1
  br i1 %80, label %84, label %81

81:                                               ; preds = %78
  %82 = load double, ptr %4, align 8, !tbaa !5
  %83 = load double, ptr %5, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %0, double noundef %82, double noundef %83)
  br label %84

84:                                               ; preds = %78, %81, %28
  %.0 = phi i32 [ 0, %28 ], [ 0, %81 ], [ -1, %78 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 104}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass