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

; 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 }

@__const.td_hs.tau_ini = external hidden unnamed_addr constant [10 x double], align 16
@__const.td_hs.del_ini = external hidden unnamed_addr constant [12 x double], align 16

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f64(double, i32 immarg) #1

; 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) #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @td_hs(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 i32, align 4
  %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 i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca %struct.co2_prop, align 8
  %30 = alloca [10 x double], align 16
  %31 = alloca [12 x double], align 16
  %32 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %30) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 @__const.td_hs.tau_ini, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr %31) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 @__const.td_hs.del_ini, i64 96, i1 false)
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %232, %4
  %34 = load i32, ptr %23, align 4, !tbaa !11
  %35 = icmp slt i32 %34, 10
  br i1 %35, label %36, label %235

36:                                               ; preds = %33
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %228, %36
  %38 = load i32, ptr %24, align 4, !tbaa !11
  %39 = icmp slt i32 %38, 12
  br i1 %39, label %40, label %231

40:                                               ; preds = %37
  %41 = load i32, ptr %23, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10 x double], ptr %30, i64 0, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = load i32, ptr %24, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [12 x double], ptr %31, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = load double, ptr %8, align 8, !tbaa !9
  %50 = load double, ptr %9, align 8, !tbaa !9
  call void @calcfg_dfg_hs(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %21, ptr noundef %20, ptr noundef %22, double noundef %44, double noundef %48, double noundef %49, double noundef %50)
  %51 = load double, ptr %21, align 8, !tbaa !9
  %52 = load double, ptr %20, align 8, !tbaa !9
  %53 = load double, ptr %19, align 8, !tbaa !9
  %54 = load double, ptr %22, align 8, !tbaa !9
  %55 = fmul double %53, %54
  %56 = fneg double %55
  %57 = call double @llvm.fmuladd.f64(double %51, double %52, double %56)
  %58 = call double @llvm.fabs.f64(double %57)
  %59 = fcmp olt double %58, 0x3EB0C6F7A0B5ED8D
  br i1 %59, label %60, label %61

60:                                               ; preds = %40
  br label %228

61:                                               ; preds = %40
  %62 = load double, ptr %18, align 8, !tbaa !9
  %63 = load double, ptr %19, align 8, !tbaa !9
  %64 = load double, ptr %17, align 8, !tbaa !9
  %65 = load double, ptr %20, align 8, !tbaa !9
  %66 = fmul double %64, %65
  %67 = fneg double %66
  %68 = call double @llvm.fmuladd.f64(double %62, double %63, double %67)
  %69 = load double, ptr %21, align 8, !tbaa !9
  %70 = load double, ptr %20, align 8, !tbaa !9
  %71 = load double, ptr %22, align 8, !tbaa !9
  %72 = load double, ptr %19, align 8, !tbaa !9
  %73 = fmul double %71, %72
  %74 = fneg double %73
  %75 = call double @llvm.fmuladd.f64(double %69, double %70, double %74)
  %76 = fdiv double %68, %75
  store double %76, ptr %27, align 8, !tbaa !9
  %77 = load double, ptr %18, align 8, !tbaa !9
  %78 = load double, ptr %21, align 8, !tbaa !9
  %79 = load double, ptr %17, align 8, !tbaa !9
  %80 = load double, ptr %22, align 8, !tbaa !9
  %81 = fmul double %79, %80
  %82 = fneg double %81
  %83 = call double @llvm.fmuladd.f64(double %77, double %78, double %82)
  %84 = load double, ptr %19, align 8, !tbaa !9
  %85 = load double, ptr %22, align 8, !tbaa !9
  %86 = load double, ptr %20, align 8, !tbaa !9
  %87 = load double, ptr %21, align 8, !tbaa !9
  %88 = fmul double %86, %87
  %89 = fneg double %88
  %90 = call double @llvm.fmuladd.f64(double %84, double %85, double %89)
  %91 = fdiv double %83, %90
  store double %91, ptr %26, align 8, !tbaa !9
  %92 = load i32, ptr %23, align 4, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10 x double], ptr %30, i64 0, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load double, ptr %26, align 8, !tbaa !9
  %97 = fadd double %95, %96
  store double %97, ptr %11, align 8, !tbaa !9
  %98 = load i32, ptr %24, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [12 x double], ptr %31, i64 0, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load double, ptr %27, align 8, !tbaa !9
  %103 = fadd double %101, %102
  store double %103, ptr %13, align 8, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !11
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %178, %61
  %105 = load double, ptr %11, align 8, !tbaa !9
  store double %105, ptr %10, align 8, !tbaa !9
  %106 = load double, ptr %13, align 8, !tbaa !9
  store double %106, ptr %12, align 8, !tbaa !9
  %107 = load double, ptr %10, align 8, !tbaa !9
  %108 = load double, ptr %12, align 8, !tbaa !9
  %109 = load double, ptr %8, align 8, !tbaa !9
  %110 = load double, ptr %9, align 8, !tbaa !9
  call void @calcfg_dfg_hs(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %21, ptr noundef %20, ptr noundef %22, double noundef %107, double noundef %108, double noundef %109, double noundef %110)
  %111 = load double, ptr %21, align 8, !tbaa !9
  %112 = load double, ptr %20, align 8, !tbaa !9
  %113 = load double, ptr %19, align 8, !tbaa !9
  %114 = load double, ptr %22, align 8, !tbaa !9
  %115 = fmul double %113, %114
  %116 = fneg double %115
  %117 = call double @llvm.fmuladd.f64(double %111, double %112, double %116)
  %118 = call double @llvm.fabs.f64(double %117)
  %119 = fcmp olt double %118, 0x3EB0C6F7A0B5ED8D
  br i1 %119, label %120, label %121

120:                                              ; preds = %104
  store i32 -1, ptr %25, align 4, !tbaa !11
  br label %180

121:                                              ; preds = %104
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = load double, ptr %19, align 8, !tbaa !9
  %124 = load double, ptr %17, align 8, !tbaa !9
  %125 = load double, ptr %20, align 8, !tbaa !9
  %126 = fmul double %124, %125
  %127 = fneg double %126
  %128 = call double @llvm.fmuladd.f64(double %122, double %123, double %127)
  %129 = load double, ptr %21, align 8, !tbaa !9
  %130 = load double, ptr %20, align 8, !tbaa !9
  %131 = load double, ptr %22, align 8, !tbaa !9
  %132 = load double, ptr %19, align 8, !tbaa !9
  %133 = fmul double %131, %132
  %134 = fneg double %133
  %135 = call double @llvm.fmuladd.f64(double %129, double %130, double %134)
  %136 = fdiv double %128, %135
  store double %136, ptr %27, align 8, !tbaa !9
  %137 = load double, ptr %18, align 8, !tbaa !9
  %138 = load double, ptr %21, align 8, !tbaa !9
  %139 = load double, ptr %17, align 8, !tbaa !9
  %140 = load double, ptr %22, align 8, !tbaa !9
  %141 = fmul double %139, %140
  %142 = fneg double %141
  %143 = call double @llvm.fmuladd.f64(double %137, double %138, double %142)
  %144 = load double, ptr %19, align 8, !tbaa !9
  %145 = load double, ptr %22, align 8, !tbaa !9
  %146 = load double, ptr %20, align 8, !tbaa !9
  %147 = load double, ptr %21, align 8, !tbaa !9
  %148 = fmul double %146, %147
  %149 = fneg double %148
  %150 = call double @llvm.fmuladd.f64(double %144, double %145, double %149)
  %151 = fdiv double %143, %150
  store double %151, ptr %26, align 8, !tbaa !9
  %152 = load double, ptr %10, align 8, !tbaa !9
  %153 = load double, ptr %26, align 8, !tbaa !9
  %154 = fadd double %152, %153
  store double %154, ptr %11, align 8, !tbaa !9
  %155 = load double, ptr %12, align 8, !tbaa !9
  %156 = load double, ptr %27, align 8, !tbaa !9
  %157 = fadd double %155, %156
  store double %157, ptr %13, align 8, !tbaa !9
  %158 = load double, ptr %26, align 8, !tbaa !9
  %159 = call double @llvm.fabs.f64(double %158)
  %160 = load double, ptr %27, align 8, !tbaa !9
  %161 = call double @llvm.fabs.f64(double %160)
  %162 = fcmp ogt double %159, %161
  br i1 %162, label %163, label %166

163:                                              ; preds = %121
  %164 = load double, ptr %26, align 8, !tbaa !9
  %165 = call double @llvm.fabs.f64(double %164)
  store double %165, ptr %28, align 8, !tbaa !9
  br label %169

166:                                              ; preds = %121
  %167 = load double, ptr %27, align 8, !tbaa !9
  %168 = call double @llvm.fabs.f64(double %167)
  store double %168, ptr %28, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %166, %163
  %170 = load i32, ptr %16, align 4, !tbaa !11
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %16, align 4, !tbaa !11
  br label %172

172:                                              ; preds = %169
  %173 = load double, ptr %28, align 8, !tbaa !9
  %174 = fcmp ogt double %173, 0x3EB0C6F7A0B5ED8D
  br i1 %174, label %175, label %178

175:                                              ; preds = %172
  %176 = load i32, ptr %16, align 4, !tbaa !11
  %177 = icmp slt i32 %176, 100
  br label %178

178:                                              ; preds = %175, %172
  %179 = phi i1 [ false, %172 ], [ %177, %175 ]
  br i1 %179, label %104, label %180, !llvm.loop !13

180:                                              ; preds = %178, %120
  %181 = load i32, ptr %16, align 4, !tbaa !11
  %182 = icmp eq i32 %181, 100
  br i1 %182, label %186, label %183

183:                                              ; preds = %180
  %184 = load i32, ptr %25, align 4, !tbaa !11
  %185 = icmp eq i32 %184, -1
  br i1 %185, label %186, label %187

186:                                              ; preds = %183, %180
  br label %228

187:                                              ; preds = %183
  %188 = load double, ptr %11, align 8, !tbaa !9
  %189 = call i1 @llvm.is.fpclass.f64(double %188, i32 3)
  br i1 %189, label %226, label %190

190:                                              ; preds = %187
  %191 = load double, ptr %13, align 8, !tbaa !9
  %192 = call i1 @llvm.is.fpclass.f64(double %191, i32 3)
  br i1 %192, label %226, label %193

193:                                              ; preds = %190
  %194 = load double, ptr %11, align 8, !tbaa !9
  %195 = fdiv double 0x4073020D1B71758E, %194
  store double %195, ptr %14, align 8, !tbaa !9
  %196 = load double, ptr %13, align 8, !tbaa !9
  %197 = fmul double 4.676000e+02, %196
  store double %197, ptr %15, align 8, !tbaa !9
  %198 = load double, ptr %14, align 8, !tbaa !9
  %199 = load double, ptr %15, align 8, !tbaa !9
  call void @co2_prop_calc_tr(ptr noundef %29, double noundef %198, double noundef %199)
  %200 = call i32 @is_vld_prop(ptr noundef %29)
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %211

202:                                              ; preds = %193
  %203 = load double, ptr %8, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 7
  %205 = load double, ptr %204, align 8, !tbaa !15
  %206 = fsub double %203, %205
  %207 = load double, ptr %8, align 8, !tbaa !9
  %208 = fdiv double %206, %207
  %209 = call double @llvm.fabs.f64(double %208)
  %210 = fcmp olt double %209, 1.000000e-04
  br i1 %210, label %220, label %211

211:                                              ; preds = %202, %193
  %212 = load double, ptr %9, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.co2_prop, ptr %29, i32 0, i32 4
  %214 = load double, ptr %213, align 8, !tbaa !17
  %215 = fsub double %212, %214
  %216 = load double, ptr %8, align 8, !tbaa !9
  %217 = fdiv double %215, %216
  %218 = call double @llvm.fabs.f64(double %217)
  %219 = fcmp olt double %218, 1.000000e-04
  br i1 %219, label %220, label %225

220:                                              ; preds = %211, %202
  %221 = load double, ptr %14, align 8, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  store double %221, ptr %222, align 8, !tbaa !9
  %223 = load double, ptr %15, align 8, !tbaa !9
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  store double %223, ptr %224, align 8, !tbaa !9
  store i32 0, ptr %5, align 4
  store i32 1, ptr %32, align 4
  br label %236

225:                                              ; preds = %211
  br label %228

226:                                              ; preds = %190, %187
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227, %225, %186, %60
  %229 = load i32, ptr %24, align 4, !tbaa !11
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %24, align 4, !tbaa !11
  br label %37, !llvm.loop !18

231:                                              ; preds = %37
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %23, align 4, !tbaa !11
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %23, align 4, !tbaa !11
  br label %33, !llvm.loop !19

235:                                              ; preds = %33
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %32, align 4
  br label %236

236:                                              ; preds = %235, %220
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %237 = load i32, ptr %5, align 4
  ret i32 %237
}

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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 56}
!16 = !{!"", !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}
!17 = !{!16, !10, i64 32}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; 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 }

@__const.td_hs.tau_ini = external hidden unnamed_addr constant [10 x double], align 16
@__const.td_hs.del_ini = external hidden unnamed_addr constant [12 x double], align 16

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

; 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: 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 void @calcfg_dfg_hs(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @td_hs(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 %struct.co2_prop, align 8
  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 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #4
  %12 = getelementptr inbounds i8, ptr %11, i64 56
  %13 = getelementptr inbounds i8, ptr %11, i64 32
  br label %.preheader

.preheader:                                       ; preds = %4, %118
  %indvars.iv79 = phi i64 [ 0, %4 ], [ %indvars.iv.next80, %118 ]
  %14 = getelementptr inbounds [10 x double], ptr @__const.td_hs.tau_ini, i64 0, i64 %indvars.iv79
  %15 = load double, ptr %14, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %.preheader, %.thread
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %.thread ]
  %17 = getelementptr inbounds [12 x double], ptr @__const.td_hs.del_ini, i64 0, i64 %indvars.iv
  %18 = load double, ptr %17, align 8, !tbaa !5
  call void @calcfg_dfg_hs(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %10, double noundef %15, double noundef %18, double noundef %2, double noundef %3)
  %19 = load double, ptr %9, align 8, !tbaa !5
  %20 = load double, ptr %8, align 8, !tbaa !5
  %21 = load double, ptr %7, align 8, !tbaa !5
  %22 = load double, ptr %10, align 8, !tbaa !5
  %23 = fneg double %21
  %24 = fmul double %22, %23
  %25 = call double @llvm.fmuladd.f64(double %19, double %20, double %24)
  %26 = call double @llvm.fabs.f64(double %25)
  %27 = fcmp olt double %26, 0x3EB0C6F7A0B5ED8D
  br i1 %27, label %.thread, label %28

28:                                               ; preds = %16
  %29 = load double, ptr %6, align 8, !tbaa !5
  %30 = load double, ptr %5, align 8, !tbaa !5
  %31 = fneg double %30
  %32 = fneg double %20
  %33 = fmul double %19, %32
  %34 = call double @llvm.fmuladd.f64(double %21, double %22, double %33)
  %35 = insertelement <2 x double> poison, double %20, i64 0
  %36 = insertelement <2 x double> %35, double %22, i64 1
  %37 = insertelement <2 x double> poison, double %31, i64 0
  %38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
  %39 = fmul <2 x double> %36, %38
  %40 = insertelement <2 x double> poison, double %29, i64 0
  %41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
  %42 = insertelement <2 x double> poison, double %21, i64 0
  %43 = insertelement <2 x double> %42, double %19, i64 1
  %44 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %41, <2 x double> %43, <2 x double> %39)
  %45 = insertelement <2 x double> poison, double %25, i64 0
  %46 = insertelement <2 x double> %45, double %34, i64 1
  %47 = fdiv <2 x double> %44, %46
  %48 = insertelement <2 x double> poison, double %18, i64 0
  %49 = insertelement <2 x double> %48, double %15, i64 1
  %50 = fadd <2 x double> %49, %47
  br label %51

51:                                               ; preds = %64, %28
  %.049 = phi i32 [ 0, %28 ], [ %89, %64 ]
  %52 = phi <2 x double> [ %50, %28 ], [ %84, %64 ]
  %53 = extractelement <2 x double> %52, i64 0
  %54 = extractelement <2 x double> %52, i64 1
  call void @calcfg_dfg_hs(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %10, double noundef %54, double noundef %53, double noundef %2, double noundef %3)
  %55 = load double, ptr %9, align 8, !tbaa !5
  %56 = load double, ptr %8, align 8, !tbaa !5
  %57 = load double, ptr %7, align 8, !tbaa !5
  %58 = load double, ptr %10, align 8, !tbaa !5
  %59 = fneg double %57
  %60 = fmul double %58, %59
  %61 = call double @llvm.fmuladd.f64(double %55, double %56, double %60)
  %62 = call double @llvm.fabs.f64(double %61)
  %63 = fcmp olt double %62, 0x3EB0C6F7A0B5ED8D
  br i1 %63, label %.thread, label %64

64:                                               ; preds = %51
  %65 = load double, ptr %6, align 8, !tbaa !5
  %66 = load double, ptr %5, align 8, !tbaa !5
  %67 = fneg double %66
  %68 = fneg double %56
  %69 = fmul double %55, %68
  %70 = call double @llvm.fmuladd.f64(double %57, double %58, double %69)
  %71 = insertelement <2 x double> poison, double %56, i64 0
  %72 = insertelement <2 x double> %71, double %58, i64 1
  %73 = insertelement <2 x double> poison, double %67, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = fmul <2 x double> %72, %74
  %76 = insertelement <2 x double> poison, double %65, i64 0
  %77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
  %78 = insertelement <2 x double> poison, double %57, i64 0
  %79 = insertelement <2 x double> %78, double %55, i64 1
  %80 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %77, <2 x double> %79, <2 x double> %75)
  %81 = insertelement <2 x double> poison, double %61, i64 0
  %82 = insertelement <2 x double> %81, double %70, i64 1
  %83 = fdiv <2 x double> %80, %82
  %84 = fadd <2 x double> %52, %83
  %85 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %83)
  %86 = extractelement <2 x double> %85, i64 0
  %87 = extractelement <2 x double> %85, i64 1
  %88 = fcmp ogt double %87, %86
  %. = select i1 %88, double %87, double %86
  %89 = add nuw nsw i32 %.049, 1
  %90 = fcmp ogt double %., 0x3EB0C6F7A0B5ED8D
  %91 = icmp ult i32 %.049, 99
  %92 = select i1 %90, i1 %91, i1 false
  br i1 %92, label %51, label %93, !llvm.loop !9

93:                                               ; preds = %64
  %94 = icmp eq i32 %89, 100
  %95 = fcmp uno <2 x double> %84, zeroinitializer
  %96 = extractelement <2 x i1> %95, i64 1
  %or.cond58 = select i1 %94, i1 true, i1 %96
  %97 = extractelement <2 x i1> %95, i64 0
  %or.cond59 = select i1 %or.cond58, i1 true, i1 %97
  br i1 %or.cond59, label %.thread, label %98

98:                                               ; preds = %93
  %99 = extractelement <2 x double> %84, i64 1
  %100 = fdiv double 0x4073020D1B71758E, %99
  %101 = extractelement <2 x double> %84, i64 0
  %102 = fmul double %101, 4.676000e+02
  call void @co2_prop_calc_tr(ptr noundef nonnull %11, double noundef %100, double noundef %102)
  %103 = call i32 @is_vld_prop(ptr noundef nonnull %11)
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %111

105:                                              ; preds = %98
  %106 = load double, ptr %12, align 8, !tbaa !11
  %107 = fsub double %2, %106
  %108 = fdiv double %107, %2
  %109 = call double @llvm.fabs.f64(double %108)
  %110 = fcmp olt double %109, 1.000000e-04
  br i1 %110, label %117, label %111

111:                                              ; preds = %105, %98
  %112 = load double, ptr %13, align 8, !tbaa !13
  %113 = fsub double %3, %112
  %114 = fdiv double %113, %2
  %115 = call double @llvm.fabs.f64(double %114)
  %116 = fcmp olt double %115, 1.000000e-04
  br i1 %116, label %117, label %.thread

117:                                              ; preds = %111, %105
  store double %100, ptr %0, align 8, !tbaa !5
  store double %102, ptr %1, align 8, !tbaa !5
  br label %.loopexit

.thread:                                          ; preds = %51, %111, %93, %16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 12
  br i1 %exitcond.not, label %118, label %16, !llvm.loop !14

118:                                              ; preds = %.thread
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next80, 10
  br i1 %exitcond82.not, label %.loopexit, label %.preheader, !llvm.loop !15

.loopexit:                                        ; preds = %118, %117
  %.050 = phi i32 [ 0, %117 ], [ -1, %118 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret i32 %.050
}

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 56}
!12 = !{!"", !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}
!13 = !{!12, !6, i64 32}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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