; LLVM IR from zhenrong-wang/co2 :: co2_property_calc_origeqns (miu_tr)

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @phi0tt(double noundef) #2

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local double @phird(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @phirdd(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @phirtt(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @phirdt(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local double @miu_tr(double noundef %0, double noundef %1) #2 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  store double %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %7 = load double, ptr %3, align 8, !tbaa !5
  %8 = fdiv double 0x4073020D1B71758E, %7
  store double %8, ptr %5, align 8, !tbaa !5
  %9 = load double, ptr %4, align 8, !tbaa !5
  %10 = fdiv double %9, 4.676000e+02
  store double %10, ptr %6, align 8, !tbaa !5
  %11 = load double, ptr %6, align 8, !tbaa !5
  %12 = load double, ptr %6, align 8, !tbaa !5
  %13 = load double, ptr %5, align 8, !tbaa !5
  %14 = call double @phird(double noundef %12, double noundef %13)
  %15 = load double, ptr %6, align 8, !tbaa !5
  %16 = load double, ptr %6, align 8, !tbaa !5
  %17 = fmul double %15, %16
  %18 = load double, ptr %6, align 8, !tbaa !5
  %19 = load double, ptr %5, align 8, !tbaa !5
  %20 = call double @phirdd(double noundef %18, double noundef %19)
  %21 = fmul double %17, %20
  %22 = call double @llvm.fmuladd.f64(double %11, double %14, double %21)
  %23 = load double, ptr %6, align 8, !tbaa !5
  %24 = load double, ptr %5, align 8, !tbaa !5
  %25 = fmul double %23, %24
  %26 = load double, ptr %6, align 8, !tbaa !5
  %27 = load double, ptr %5, align 8, !tbaa !5
  %28 = call double @phirdt(double noundef %26, double noundef %27)
  %29 = call double @llvm.fmuladd.f64(double %25, double %28, double %22)
  %30 = fneg double %29
  %31 = load double, ptr %6, align 8, !tbaa !5
  %32 = load double, ptr %6, align 8, !tbaa !5
  %33 = load double, ptr %5, align 8, !tbaa !5
  %34 = call double @phird(double noundef %32, double noundef %33)
  %35 = call double @llvm.fmuladd.f64(double %31, double %34, double 1.000000e+00)
  %36 = load double, ptr %6, align 8, !tbaa !5
  %37 = load double, ptr %5, align 8, !tbaa !5
  %38 = fmul double %36, %37
  %39 = load double, ptr %6, align 8, !tbaa !5
  %40 = load double, ptr %5, align 8, !tbaa !5
  %41 = call double @phirdt(double noundef %39, double noundef %40)
  %42 = fneg double %38
  %43 = call double @llvm.fmuladd.f64(double %42, double %41, double %35)
  %44 = call double @pow(double noundef %43, double noundef 2.000000e+00) #4
  %45 = load double, ptr %5, align 8, !tbaa !5
  %46 = load double, ptr %5, align 8, !tbaa !5
  %47 = fmul double %45, %46
  %48 = load double, ptr %5, align 8, !tbaa !5
  %49 = call double @phi0tt(double noundef %48)
  %50 = load double, ptr %6, align 8, !tbaa !5
  %51 = load double, ptr %5, align 8, !tbaa !5
  %52 = call double @phirtt(double noundef %50, double noundef %51)
  %53 = fadd double %49, %52
  %54 = fmul double %47, %53
  %55 = load double, ptr %6, align 8, !tbaa !5
  %56 = fmul double 2.000000e+00, %55
  %57 = load double, ptr %6, align 8, !tbaa !5
  %58 = load double, ptr %5, align 8, !tbaa !5
  %59 = call double @phird(double noundef %57, double noundef %58)
  %60 = call double @llvm.fmuladd.f64(double %56, double %59, double 1.000000e+00)
  %61 = load double, ptr %6, align 8, !tbaa !5
  %62 = load double, ptr %6, align 8, !tbaa !5
  %63 = fmul double %61, %62
  %64 = load double, ptr %6, align 8, !tbaa !5
  %65 = load double, ptr %5, align 8, !tbaa !5
  %66 = call double @phirdd(double noundef %64, double noundef %65)
  %67 = call double @llvm.fmuladd.f64(double %63, double %66, double %60)
  %68 = fneg double %54
  %69 = call double @llvm.fmuladd.f64(double %68, double %67, double %44)
  %70 = fdiv double %30, %69
  %71 = load double, ptr %4, align 8, !tbaa !5
  %72 = fmul double 0x40679D923A29C77A, %71
  %73 = fdiv double %70, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret double %73
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { nounwind "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 #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"}


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

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

; Function Attrs: nounwind uwtable
declare dso_local double @phi0tt(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @phird(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @phirdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @phirtt(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @phirdt(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local double @miu_tr(double noundef %0, double noundef %1) local_unnamed_addr #1 {
  %3 = insertelement <2 x double> <double 0x4073020D1B71758E, double poison>, double %1, i64 1
  %4 = insertelement <2 x double> <double poison, double 4.676000e+02>, double %0, i64 0
  %5 = fdiv <2 x double> %3, %4
  %6 = extractelement <2 x double> %5, i64 0
  %7 = extractelement <2 x double> %5, i64 1
  %8 = tail call double @phird(double noundef %7, double noundef %6)
  %9 = fmul double %7, %7
  %10 = tail call double @phirdd(double noundef %7, double noundef %6)
  %11 = fmul double %9, %10
  %12 = tail call double @llvm.fmuladd.f64(double %7, double %8, double %11)
  %13 = fmul double %6, %7
  %14 = tail call double @phirdt(double noundef %7, double noundef %6)
  %15 = tail call double @llvm.fmuladd.f64(double %13, double %14, double %12)
  %16 = fneg double %15
  %17 = tail call double @phird(double noundef %7, double noundef %6)
  %18 = tail call double @llvm.fmuladd.f64(double %7, double %17, double 1.000000e+00)
  %19 = tail call double @phirdt(double noundef %7, double noundef %6)
  %20 = fneg double %13
  %21 = tail call double @llvm.fmuladd.f64(double %20, double %19, double %18)
  %square = fmul double %21, %21
  %22 = tail call double @phi0tt(double noundef %6)
  %23 = tail call double @phirtt(double noundef %7, double noundef %6)
  %24 = fadd double %22, %23
  %25 = fmul double %7, 2.000000e+00
  %26 = tail call double @phird(double noundef %7, double noundef %6)
  %27 = tail call double @llvm.fmuladd.f64(double %25, double %26, double 1.000000e+00)
  %28 = tail call double @phirdd(double noundef %7, double noundef %6)
  %29 = tail call double @llvm.fmuladd.f64(double %9, double %28, double %27)
  %30 = fneg double %6
  %31 = fmul double %6, %30
  %32 = fmul double %31, %24
  %33 = tail call double @llvm.fmuladd.f64(double %32, double %29, double %square)
  %34 = fdiv double %16, %33
  %35 = fmul double %1, 0x40679D923A29C77A
  %36 = fdiv double %34, %35
  ret double %36
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass