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

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

@dxx = external dso_local constant [5 x double], align 16

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

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

; Function Attrs: nounwind uwtable
define dso_local double @deleta(double noundef %0, double noundef %1) #2 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  store double %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !5
  %5 = load double, ptr @dxx, align 16, !tbaa !5
  %6 = load double, ptr %4, align 8, !tbaa !5
  %7 = load double, ptr getelementptr inbounds ([5 x double], ptr @dxx, i64 0, i64 1), align 8, !tbaa !5
  %8 = load double, ptr %4, align 8, !tbaa !5
  %9 = fmul double %7, %8
  %10 = load double, ptr %4, align 8, !tbaa !5
  %11 = fmul double %9, %10
  %12 = call double @llvm.fmuladd.f64(double %5, double %6, double %11)
  %13 = load double, ptr getelementptr inbounds ([5 x double], ptr @dxx, i64 0, i64 2), align 16, !tbaa !5
  %14 = load double, ptr %4, align 8, !tbaa !5
  %15 = call double @pow(double noundef %14, double noundef 6.000000e+00) #3
  %16 = fmul double %13, %15
  %17 = load double, ptr %3, align 8, !tbaa !5
  %18 = fdiv double %17, 2.511960e+02
  %19 = call double @pow(double noundef %18, double noundef 3.000000e+00) #3
  %20 = fdiv double %16, %19
  %21 = fadd double %12, %20
  %22 = load double, ptr getelementptr inbounds ([5 x double], ptr @dxx, i64 0, i64 3), align 8, !tbaa !5
  %23 = load double, ptr %4, align 8, !tbaa !5
  %24 = call double @pow(double noundef %23, double noundef 8.000000e+00) #3
  %25 = call double @llvm.fmuladd.f64(double %22, double %24, double %21)
  %26 = load double, ptr getelementptr inbounds ([5 x double], ptr @dxx, i64 0, i64 4), align 16, !tbaa !5
  %27 = load double, ptr %4, align 8, !tbaa !5
  %28 = call double @pow(double noundef %27, double noundef 8.000000e+00) #3
  %29 = fmul double %26, %28
  %30 = load double, ptr %3, align 8, !tbaa !5
  %31 = fdiv double %30, 2.511960e+02
  %32 = fdiv double %29, %31
  %33 = fadd double %25, %32
  ret double %33
}

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

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

@dxx = external dso_local local_unnamed_addr constant [5 x double], align 16

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write) uwtable
define dso_local double @deleta(double noundef %0, double noundef %1) local_unnamed_addr #2 {
  %3 = load double, ptr @dxx, align 16, !tbaa !5
  %4 = load double, ptr getelementptr inbounds (i8, ptr @dxx, i64 8), align 8, !tbaa !5
  %5 = fmul double %4, %1
  %6 = fmul double %5, %1
  %7 = tail call double @llvm.fmuladd.f64(double %3, double %1, double %6)
  %8 = load double, ptr getelementptr inbounds (i8, ptr @dxx, i64 16), align 16, !tbaa !5
  %9 = tail call double @pow(double noundef %1, double noundef 6.000000e+00) #3
  %10 = fmul double %8, %9
  %11 = fdiv double %0, 2.511960e+02
  %12 = tail call double @pow(double noundef %11, double noundef 3.000000e+00) #3
  %13 = fdiv double %10, %12
  %14 = fadd double %7, %13
  %15 = load double, ptr getelementptr inbounds (i8, ptr @dxx, i64 24), align 8, !tbaa !5
  %16 = tail call double @pow(double noundef %1, double noundef 8.000000e+00) #3
  %17 = tail call double @llvm.fmuladd.f64(double %15, double %16, double %14)
  %18 = load double, ptr getelementptr inbounds (i8, ptr @dxx, i64 32), align 16, !tbaa !5
  %19 = tail call double @pow(double noundef %1, double noundef 8.000000e+00) #3
  %20 = fmul double %18, %19
  %21 = fdiv double %20, %11
  %22 = fadd double %17, %21
  ret double %22
}

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

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


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