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

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

@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

declare i32 @printf(ptr noundef, ...) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @visc_calc(double noundef, double noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local double @drdp(double noundef, double noundef) #4

; Function Attrs: nounwind uwtable
define dso_local double @deltlmdc(ptr noundef %0, double noundef %1, double noundef %2) #4 {
  %4 = alloca ptr, align 8
  %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 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 double, align 8
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 1.020000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 6.300000e-01, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 1.239000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 5.200000e-02, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 1.500000e-10, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 4.561900e+02, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 2.500000e+09, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0x3B30B0E6AF70CC22, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.co2_prop, ptr %22, i32 0, i32 8
  %24 = load double, ptr %23, align 8, !tbaa !11
  store double %24, ptr %20, align 8, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.co2_prop, ptr %25, i32 0, i32 6
  %27 = load double, ptr %26, align 8, !tbaa !13
  store double %27, ptr %21, align 8, !tbaa !9
  %28 = load double, ptr %11, align 8, !tbaa !9
  %29 = load double, ptr %6, align 8, !tbaa !9
  %30 = fmul double 0x415C246B2D847F56, %29
  %31 = load double, ptr %10, align 8, !tbaa !9
  %32 = fmul double %31, 4.676000e+02
  %33 = fmul double %32, 4.676000e+02
  %34 = fdiv double %30, %33
  %35 = load double, ptr %8, align 8, !tbaa !9
  %36 = load double, ptr %9, align 8, !tbaa !9
  %37 = fdiv double %35, %36
  %38 = call double @pow(double noundef %34, double noundef %37) #5
  %39 = fmul double %28, %38
  %40 = load double, ptr %5, align 8, !tbaa !9
  %41 = load double, ptr %6, align 8, !tbaa !9
  %42 = call double @drdp(double noundef %40, double noundef %41)
  %43 = load double, ptr %12, align 8, !tbaa !9
  %44 = load double, ptr %6, align 8, !tbaa !9
  %45 = call double @drdp(double noundef %43, double noundef %44)
  %46 = load double, ptr %12, align 8, !tbaa !9
  %47 = load double, ptr %5, align 8, !tbaa !9
  %48 = fdiv double %46, %47
  %49 = fneg double %45
  %50 = call double @llvm.fmuladd.f64(double %49, double %48, double %42)
  %51 = load double, ptr %8, align 8, !tbaa !9
  %52 = load double, ptr %9, align 8, !tbaa !9
  %53 = fdiv double %51, %52
  %54 = call double @pow(double noundef %50, double noundef %53) #5
  %55 = fmul double %39, %54
  store double %55, ptr %15, align 8, !tbaa !9
  store double 0x400921FB5443D6F4, ptr %19, align 8, !tbaa !9
  %56 = load double, ptr %20, align 8, !tbaa !9
  %57 = load double, ptr %21, align 8, !tbaa !9
  %58 = fsub double %56, %57
  %59 = load double, ptr %13, align 8, !tbaa !9
  %60 = load double, ptr %15, align 8, !tbaa !9
  %61 = fmul double %59, %60
  %62 = call double @atan(double noundef %61) #5
  %63 = fmul double %58, %62
  %64 = load double, ptr %20, align 8, !tbaa !9
  %65 = fdiv double %63, %64
  %66 = load double, ptr %21, align 8, !tbaa !9
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = fmul double %66, %67
  %69 = load double, ptr %15, align 8, !tbaa !9
  %70 = fmul double %68, %69
  %71 = load double, ptr %20, align 8, !tbaa !9
  %72 = fdiv double %70, %71
  %73 = fadd double %65, %72
  %74 = fmul double %73, 2.000000e+00
  %75 = load double, ptr %19, align 8, !tbaa !9
  %76 = fdiv double %74, %75
  store double %76, ptr %17, align 8, !tbaa !9
  %77 = load double, ptr %13, align 8, !tbaa !9
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = fmul double %77, %78
  %80 = fdiv double 1.000000e+00, %79
  %81 = load double, ptr %13, align 8, !tbaa !9
  %82 = load double, ptr %15, align 8, !tbaa !9
  %83 = fmul double %81, %82
  %84 = fmul double %83, 4.676000e+02
  %85 = load double, ptr %6, align 8, !tbaa !9
  %86 = fdiv double %84, %85
  %87 = call double @pow(double noundef %86, double noundef 2.000000e+00) #5
  %88 = fdiv double %87, 3.000000e+00
  %89 = fadd double %80, %88
  %90 = fdiv double -1.000000e+00, %89
  %91 = call double @exp(double noundef %90) #5
  %92 = fsub double 1.000000e+00, %91
  %93 = fmul double %92, 2.000000e+00
  %94 = load double, ptr %19, align 8, !tbaa !9
  %95 = fdiv double %93, %94
  store double %95, ptr %18, align 8, !tbaa !9
  %96 = load double, ptr %5, align 8, !tbaa !9
  %97 = load double, ptr %6, align 8, !tbaa !9
  %98 = call double @visc_calc(double noundef %96, double noundef %97)
  store double %98, ptr %16, align 8, !tbaa !9
  %99 = load double, ptr %16, align 8, !tbaa !9
  %100 = load double, ptr %20, align 8, !tbaa !9
  %101 = load double, ptr %21, align 8, !tbaa !9
  %102 = load double, ptr %15, align 8, !tbaa !9
  %103 = load double, ptr %17, align 8, !tbaa !9
  %104 = load double, ptr %18, align 8, !tbaa !9
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %99, double noundef %100, double noundef %101, double noundef %102, double noundef %103, double noundef %104)
  %106 = load double, ptr %6, align 8, !tbaa !9
  %107 = fmul double 1.000000e+09, %106
  %108 = load double, ptr %20, align 8, !tbaa !9
  %109 = fmul double %107, %108
  %110 = load double, ptr %7, align 8, !tbaa !9
  %111 = fmul double %109, %110
  %112 = load double, ptr %14, align 8, !tbaa !9
  %113 = fmul double %111, %112
  %114 = load double, ptr %5, align 8, !tbaa !9
  %115 = fmul double %113, %114
  %116 = load double, ptr %17, align 8, !tbaa !9
  %117 = load double, ptr %18, align 8, !tbaa !9
  %118 = fsub double %116, %117
  %119 = fmul double %115, %118
  %120 = load double, ptr %19, align 8, !tbaa !9
  %121 = fmul double 6.000000e+00, %120
  %122 = load double, ptr %16, align 8, !tbaa !9
  %123 = fmul double %121, %122
  %124 = load double, ptr %15, align 8, !tbaa !9
  %125 = fmul double %123, %124
  %126 = fdiv double %119, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret double %126
}

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

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


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

@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local double @deltlmdc(ptr nocapture noundef readonly %0, double noundef %1, double noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = load double, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load double, ptr %6, align 8, !tbaa !10
  %8 = fmul double %2, 0x415C246B2D847F56
  %9 = fdiv double %8, 0x40C634E4CD74927A
  %10 = tail call double @pow(double noundef %9, double noundef 0x3FE0456C797DD49C) #4
  %11 = tail call double @drdp(double noundef %1, double noundef %2)
  %12 = tail call double @drdp(double noundef 4.561900e+02, double noundef %2)
  %13 = fdiv double 4.561900e+02, %1
  %14 = fneg double %12
  %15 = tail call double @llvm.fmuladd.f64(double %14, double %13, double %11)
  %16 = tail call double @pow(double noundef %15, double noundef 0x3FE0456C797DD49C) #4
  %17 = insertelement <2 x double> poison, double %5, i64 0
  %18 = insertelement <2 x double> %17, double %7, i64 1
  %19 = insertelement <2 x double> <double poison, double 2.500000e+09>, double %7, i64 0
  %20 = fsub <2 x double> %18, %19
  %21 = fmul <2 x double> %18, %19
  %22 = shufflevector <2 x double> %20, <2 x double> %21, <2 x i32> <i32 0, i32 3>
  %23 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
  %24 = fmul double %2, 1.000000e+09
  %25 = fmul double %24, %5
  %26 = fmul double %25, 1.020000e+00
  %27 = insertelement <2 x double> poison, double %26, i64 0
  %28 = insertelement <2 x double> %27, double %10, i64 1
  %29 = fmul <2 x double> %28, <double 0x3B30B0E6AF70CC22, double 1.500000e-10>
  %30 = insertelement <2 x double> poison, double %1, i64 0
  %31 = insertelement <2 x double> %30, double %16, i64 1
  %32 = fmul <2 x double> %29, %31
  %33 = extractelement <2 x double> %32, i64 1
  %34 = fmul double %33, 2.500000e+09
  %35 = tail call double @atan(double noundef %34) #4
  %36 = insertelement <2 x double> %32, double %35, i64 0
  %37 = fmul <2 x double> %22, %36
  %38 = fdiv <2 x double> %37, %23
  %39 = fdiv double 1.000000e+00, %34
  %40 = fmul double %34, 4.676000e+02
  %41 = fdiv double %40, %2
  %square = fmul double %41, %41
  %42 = fdiv double %square, 3.000000e+00
  %43 = fadd double %39, %42
  %44 = fdiv double -1.000000e+00, %43
  %45 = tail call double @exp(double noundef %44) #4
  %46 = insertelement <2 x double> %38, double 1.000000e+00, i64 1
  %47 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %48 = insertelement <2 x double> %47, double %45, i64 1
  %49 = fadd <2 x double> %46, %48
  %50 = fsub <2 x double> %46, %48
  %51 = shufflevector <2 x double> %49, <2 x double> %50, <2 x i32> <i32 0, i32 3>
  %52 = fmul <2 x double> %51, <double 2.000000e+00, double 2.000000e+00>
  %53 = fdiv <2 x double> %52, <double 0x400921FB5443D6F4, double 0x400921FB5443D6F4>
  %54 = tail call double @visc_calc(double noundef %1, double noundef %2)
  %55 = extractelement <2 x double> %53, i64 0
  %56 = extractelement <2 x double> %53, i64 1
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %54, double noundef %5, double noundef %7, double noundef %33, double noundef %55, double noundef %56)
  %58 = fsub double %55, %56
  %59 = fmul double %54, 0x4032D97C7F32E137
  %60 = insertelement <2 x double> poison, double %58, i64 0
  %61 = insertelement <2 x double> %60, double %59, i64 1
  %62 = fmul <2 x double> %32, %61
  %63 = extractelement <2 x double> %62, i64 0
  %64 = extractelement <2 x double> %62, i64 1
  %65 = fdiv double %63, %64
  ret double %65
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan(double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 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 #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, !7, i64 64}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 48}


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