; LLVM IR from CLASS-SZ/class_sz :: class-sz/hyrec (hydrogen)

; 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: nounwind uwtable
declare dso_local double @alphaB_PPB(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: nounwind
declare double @pow(double noundef, double noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local double @rec_HPeebles_dxedlna(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #0 {
  %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
  store double %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !5
  store double %3, ptr %10, align 8, !tbaa !5
  store double %4, ptr %11, align 8, !tbaa !5
  store double %5, ptr %12, align 8, !tbaa !5
  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 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %18 = load double, ptr %9, align 8, !tbaa !5
  %19 = fmul double 0x433090E1CA8B9039, %18
  %20 = load double, ptr %8, align 8, !tbaa !5
  %21 = fdiv double %19, %20
  %22 = load double, ptr %7, align 8, !tbaa !5
  %23 = fsub double 1.000000e+00, %22
  %24 = fdiv double %21, %23
  store double %24, ptr %13, align 8, !tbaa !5
  %25 = load double, ptr %10, align 8, !tbaa !5
  %26 = call double @alphaB_PPB(double noundef %25)
  store double %26, ptr %14, align 8, !tbaa !5
  %27 = load double, ptr %11, align 8, !tbaa !5
  %28 = fmul double 0x4464701ACFEF92A1, %27
  %29 = load double, ptr %11, align 8, !tbaa !5
  %30 = call double @sqrt(double noundef %29) #4
  %31 = fmul double %28, %30
  %32 = load double, ptr %11, align 8, !tbaa !5
  %33 = fdiv double 0xC00B32528D51413B, %32
  %34 = call double @exp(double noundef %33) #4
  %35 = fmul double %31, %34
  %36 = load double, ptr %14, align 8, !tbaa !5
  %37 = fmul double %35, %36
  store double %37, ptr %15, align 8, !tbaa !5
  %38 = load double, ptr %13, align 8, !tbaa !5
  %39 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %38, double 8.220600e+00)
  %40 = load double, ptr %13, align 8, !tbaa !5
  %41 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %40, double 8.220600e+00)
  %42 = load double, ptr %15, align 8, !tbaa !5
  %43 = fadd double %41, %42
  %44 = fdiv double %39, %43
  store double %44, ptr %16, align 8, !tbaa !5
  %45 = load double, ptr %7, align 8, !tbaa !5
  %46 = fcmp olt double %45, 1.000000e+00
  br i1 %46, label %47, label %53

47:                                               ; preds = %6
  %48 = load double, ptr %7, align 8, !tbaa !5
  %49 = call double @pow(double noundef %48, double noundef 4.639290e-01) #4
  %50 = fsub double 1.000000e+00, %49
  %51 = call double @pow(double noundef %50, double noundef 1.702370e+00) #4
  %52 = fmul double 3.692020e-01, %51
  store double %52, ptr %17, align 8, !tbaa !5
  br label %54

53:                                               ; preds = %6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %53, %47
  %55 = load double, ptr %8, align 8, !tbaa !5
  %56 = fneg double %55
  %57 = load double, ptr %7, align 8, !tbaa !5
  %58 = fmul double %56, %57
  %59 = load double, ptr %7, align 8, !tbaa !5
  %60 = fmul double %58, %59
  %61 = load double, ptr %14, align 8, !tbaa !5
  %62 = load double, ptr %15, align 8, !tbaa !5
  %63 = load double, ptr %7, align 8, !tbaa !5
  %64 = fsub double 1.000000e+00, %63
  %65 = fmul double %62, %64
  %66 = load double, ptr %11, align 8, !tbaa !5
  %67 = fdiv double 0xC02465BDE9FCF0EC, %66
  %68 = call double @exp(double noundef %67) #4
  %69 = fmul double %65, %68
  %70 = call double @llvm.fmuladd.f64(double %60, double %61, double %69)
  %71 = load double, ptr %16, align 8, !tbaa !5
  %72 = fmul double %70, %71
  %73 = load double, ptr %9, align 8, !tbaa !5
  %74 = fdiv double %72, %73
  %75 = load double, ptr %17, align 8, !tbaa !5
  %76 = load double, ptr %8, align 8, !tbaa !5
  %77 = fdiv double %75, %76
  %78 = load double, ptr %12, align 8, !tbaa !5
  %79 = fmul double %77, %78
  %80 = load double, ptr %16, align 8, !tbaa !5
  %81 = fsub double 1.000000e+00, %80
  %82 = fdiv double %81, 0x402465BDE9FCF0EC
  %83 = fadd double 0x3FB2D36E4F11087F, %82
  %84 = fmul double %79, %83
  %85 = load double, ptr %9, align 8, !tbaa !5
  %86 = fdiv double %84, %85
  %87 = fadd double %74, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret double %87
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

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 = { 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 #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"}


; 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: nounwind uwtable
declare dso_local double @alphaB_PPB(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #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
define dso_local double @rec_HPeebles_dxedlna(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) local_unnamed_addr #0 {
  %7 = tail call double @alphaB_PPB(double noundef %3)
  %8 = tail call double @sqrt(double noundef %4) #3
  %9 = fdiv double 0xC00B32528D51413B, %4
  %10 = tail call double @exp(double noundef %9) #3
  %11 = fcmp olt double %0, 1.000000e+00
  br i1 %11, label %12, label %17

12:                                               ; preds = %6
  %13 = tail call double @pow(double noundef %0, double noundef 4.639290e-01) #3
  %14 = fsub double 1.000000e+00, %13
  %15 = tail call double @pow(double noundef %14, double noundef 1.702370e+00) #3
  %16 = fmul double %15, 3.692020e-01
  br label %17

17:                                               ; preds = %6, %12
  %.0 = phi double [ %16, %12 ], [ 0.000000e+00, %6 ]
  %18 = fmul double %2, 0x433090E1CA8B9039
  %19 = fdiv double %18, %1
  %20 = fsub double 1.000000e+00, %0
  %21 = fdiv double %19, %20
  %22 = tail call double @llvm.fmuladd.f64(double %21, double 3.000000e+00, double 8.220600e+00)
  %23 = fmul double %4, 0x4464701ACFEF92A1
  %24 = fmul double %23, %8
  %25 = fmul double %24, %10
  %26 = fmul double %7, %25
  %27 = fadd double %22, %26
  %28 = fneg double %1
  %29 = fmul double %28, %0
  %30 = fmul double %29, %0
  %31 = fmul double %20, %26
  %32 = fdiv double 0xC02465BDE9FCF0EC, %4
  %33 = tail call double @exp(double noundef %32) #3
  %34 = fmul double %31, %33
  %35 = tail call double @llvm.fmuladd.f64(double %30, double %7, double %34)
  %36 = fdiv double %.0, %1
  %37 = fmul double %36, %5
  %38 = fdiv double %22, %27
  %39 = fsub double 1.000000e+00, %38
  %40 = fdiv double %39, 0x402465BDE9FCF0EC
  %41 = fadd double %40, 0x3FB2D36E4F11087F
  %42 = insertelement <2 x double> poison, double %41, i64 0
  %43 = insertelement <2 x double> %42, double %38, i64 1
  %44 = insertelement <2 x double> poison, double %37, i64 0
  %45 = insertelement <2 x double> %44, double %35, i64 1
  %46 = fmul <2 x double> %43, %45
  %47 = insertelement <2 x double> poison, double %2, i64 0
  %48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
  %49 = fdiv <2 x double> %46, %48
  %shift = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %50 = fadd <2 x double> %49, %shift
  %51 = extractelement <2 x double> %50, i64 0
  ret double %51
}

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

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

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


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