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

; 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_ph(ptr noundef, ptr noundef, double noundef, double noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @co2_prop_calc_ph(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 7
  %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 7
  %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 7
  %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 7
  %52 = load double, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 7
  %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 %15, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 4
  %82 = load double, ptr %81, align 8, !tbaa !21
  %83 = load double, ptr %15, align 8, !tbaa !9
  %84 = fsub double 1.000000e+00, %83
  %85 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 4
  %86 = load double, ptr %85, align 8, !tbaa !21
  %87 = fmul double %84, %86
  %88 = call double @llvm.fmuladd.f64(double %80, double %82, double %87)
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.co2_prop, ptr %89, i32 0, i32 4
  store double %88, ptr %90, align 8, !tbaa !21
  %91 = load double, ptr %15, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 5
  %93 = load double, ptr %92, align 8, !tbaa !22
  %94 = load double, ptr %15, align 8, !tbaa !9
  %95 = fsub double 1.000000e+00, %94
  %96 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 5
  %97 = load double, ptr %96, align 8, !tbaa !22
  %98 = fmul double %95, %97
  %99 = call double @llvm.fmuladd.f64(double %91, double %93, double %98)
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.co2_prop, ptr %100, i32 0, i32 5
  store double %99, ptr %101, align 8, !tbaa !22
  %102 = load double, ptr %15, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.co2_prop, ptr %19, i32 0, i32 6
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = load double, ptr %15, align 8, !tbaa !9
  %106 = fsub double 1.000000e+00, %105
  %107 = getelementptr inbounds %struct.co2_prop, ptr %18, i32 0, i32 6
  %108 = load double, ptr %107, align 8, !tbaa !23
  %109 = fmul double %106, %108
  %110 = call double @llvm.fmuladd.f64(double %102, double %104, double %109)
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.co2_prop, ptr %111, i32 0, i32 6
  store double %110, ptr %112, align 8, !tbaa !23
  %113 = load double, ptr %7, align 8, !tbaa !9
  %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 !16
  %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_ph(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 56}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 8}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !10, i64 32}
!22 = !{!12, !10, i64 40}
!23 = !{!12, !10, i64 48}
!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_ph(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_ph(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 %85

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 %85

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 56
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = fcmp ogt double %22, %2
  br i1 %23, label %24, label %85

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

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 %10, i64 32
  %45 = getelementptr inbounds i8, ptr %9, i64 32
  %46 = getelementptr inbounds i8, ptr %0, i64 32
  %47 = load <2 x double>, ptr %44, align 8, !tbaa !5
  %48 = load <2 x double>, ptr %45, align 8, !tbaa !5
  %49 = insertelement <2 x double> poison, double %36, i64 0
  %50 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
  %51 = fmul <2 x double> %50, %48
  %52 = insertelement <2 x double> poison, double %31, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %47, <2 x double> %51)
  store <2 x double> %54, ptr %46, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %10, i64 48
  %56 = load double, ptr %55, align 8, !tbaa !15
  %57 = getelementptr inbounds i8, ptr %9, i64 48
  %58 = load double, ptr %57, align 8, !tbaa !15
  %59 = fmul double %36, %58
  %60 = call double @llvm.fmuladd.f64(double %31, double %56, double %59)
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  store double %60, ptr %61, align 8, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %0, i64 56
  store double %2, ptr %62, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %10, i64 64
  %64 = getelementptr inbounds i8, ptr %9, i64 64
  %65 = getelementptr inbounds i8, ptr %0, i64 64
  %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> %50, %67
  %69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <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 80
  %71 = getelementptr inbounds i8, ptr %9, i64 80
  %72 = getelementptr inbounds i8, ptr %0, i64 80
  %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> %50, %74
  %76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %73, <2 x double> %75)
  store <2 x double> %76, ptr %72, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %10, i64 96
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = getelementptr inbounds i8, ptr %9, i64 96
  %80 = load double, ptr %79, align 8, !tbaa !16
  %81 = fmul double %36, %80
  %82 = call double @llvm.fmuladd.f64(double %31, double %78, double %81)
  %83 = getelementptr inbounds i8, ptr %0, i64 96
  store double %82, ptr %83, align 8, !tbaa !16
  %84 = getelementptr inbounds i8, ptr %0, i64 104
  store double %31, ptr %84, align 8, !tbaa !17
  br label %91

85:                                               ; preds = %13, %24, %16, %3
  %86 = call i32 @td_ph(ptr noundef nonnull %4, ptr noundef nonnull %5, double noundef %1, double noundef %2)
  %87 = icmp eq i32 %86, -1
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = load double, ptr %4, align 8, !tbaa !5
  %90 = load double, ptr %5, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %0, double noundef %89, double noundef %90)
  br label %91

91:                                               ; preds = %85, %88, %28
  %.0 = phi i32 [ 0, %28 ], [ 0, %88 ], [ -1, %85 ]
  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 56}
!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 48}
!16 = !{!10, !6, i64 96}
!17 = !{!10, !6, i64 104}


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