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

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

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

23:                                               ; preds = %3
  %24 = load double, ptr %6, align 8, !tbaa !9
  %25 = call i32 @calc_tsat_p(ptr noundef %10, ptr noundef %8, ptr noundef %9, double noundef %24)
  store i32 %25, ptr %13, align 4, !tbaa !14
  %26 = load i32, ptr %13, align 4, !tbaa !14
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %168

28:                                               ; preds = %23
  %29 = load double, ptr %7, align 8, !tbaa !9
  %30 = load double, ptr %9, align 8, !tbaa !9
  %31 = fcmp ogt double %29, %30
  br i1 %31, label %32, label %167

32:                                               ; preds = %28
  %33 = load double, ptr %7, align 8, !tbaa !9
  %34 = load double, ptr %8, align 8, !tbaa !9
  %35 = fcmp olt double %33, %34
  br i1 %35, label %36, label %167

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

167:                                              ; preds = %32, %28
  br label %168

168:                                              ; preds = %167, %23
  br label %169

169:                                              ; preds = %168, %3
  %170 = load double, ptr %6, align 8, !tbaa !9
  %171 = load double, ptr %7, align 8, !tbaa !9
  %172 = call i32 @temp_pr(ptr noundef %12, double noundef %170, double noundef %171)
  store i32 %172, ptr %13, align 4, !tbaa !14
  %173 = load i32, ptr %13, align 4, !tbaa !14
  %174 = icmp eq i32 %173, -1
  br i1 %174, label %175, label %176

175:                                              ; preds = %169
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %180

176:                                              ; preds = %169
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = load double, ptr %12, align 8, !tbaa !9
  %179 = load double, ptr %7, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %177, double noundef %178, double noundef %179)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %180

180:                                              ; preds = %176, %175, %36
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %181 = load i32, ptr %4, align 4
  ret i32 %181
}

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 0}
!17 = !{!12, !10, i64 8}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 24}
!20 = !{!12, !10, i64 32}
!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 @temp_pr(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_pr(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 %struct.co2_prop, align 8
  %9 = 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 128, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 112
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %10, align 8, !tbaa !5
  %11 = fcmp olt double %1, 0x415C246B2D847F56
  br i1 %11, label %12, label %77

12:                                               ; preds = %3
  %13 = call i32 @calc_tsat_p(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %5, double noundef %1)
  %14 = icmp eq i32 %13, 0
  %15 = load double, ptr %5, align 8
  %16 = fcmp olt double %15, %2
  %or.cond = select i1 %14, i1 %16, i1 false
  br i1 %or.cond, label %17, label %77

17:                                               ; preds = %12
  %18 = load double, ptr %4, align 8, !tbaa !5
  %19 = fcmp ogt double %18, %2
  br i1 %19, label %20, label %77

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

77:                                               ; preds = %12, %17, %3
  %78 = call i32 @temp_pr(ptr noundef nonnull %7, double noundef %1, double noundef %2)
  %79 = icmp eq i32 %78, -1
  br i1 %79, label %82, label %80

80:                                               ; preds = %77
  %81 = load double, ptr %7, align 8, !tbaa !5
  call void @co2_prop_calc_tr(ptr noundef nonnull %0, double noundef %81, double noundef %2)
  br label %82

82:                                               ; preds = %77, %80, %20
  %.0 = phi i32 [ 0, %20 ], [ 0, %80 ], [ -1, %77 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 128, 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 0}
!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 8}
!12 = !{!10, !6, i64 16}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 96}
!15 = !{!10, !6, i64 104}


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