; 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
declare double @sqrt(double noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local double @rec_HRecFast_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)
  %27 = fmul double 1.140000e+00, %26
  store double %27, ptr %14, align 8, !tbaa !5
  %28 = load double, ptr %11, align 8, !tbaa !5
  %29 = fmul double 0x4464701ACFEF92A1, %28
  %30 = load double, ptr %11, align 8, !tbaa !5
  %31 = call double @sqrt(double noundef %30) #4
  %32 = fmul double %29, %31
  %33 = load double, ptr %11, align 8, !tbaa !5
  %34 = fdiv double 0xC00B32528D51413B, %33
  %35 = call double @exp(double noundef %34) #4
  %36 = fmul double %32, %35
  %37 = load double, ptr %14, align 8, !tbaa !5
  %38 = fmul double %36, %37
  store double %38, ptr %15, align 8, !tbaa !5
  %39 = load double, ptr %13, align 8, !tbaa !5
  %40 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %39, double 8.220600e+00)
  %41 = load double, ptr %13, align 8, !tbaa !5
  %42 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %41, double 8.220600e+00)
  %43 = load double, ptr %15, align 8, !tbaa !5
  %44 = fadd double %42, %43
  %45 = fdiv double %40, %44
  store double %45, ptr %16, align 8, !tbaa !5
  %46 = load double, ptr %7, align 8, !tbaa !5
  %47 = fcmp olt double %46, 1.000000e+00
  br i1 %47, label %48, label %54

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

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

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

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: 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

; Function Attrs: nounwind uwtable
define dso_local double @rec_HRecFast_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, 1.140000e+00
  %27 = fmul double %26, %25
  %28 = fadd double %22, %27
  %29 = fneg double %1
  %30 = fmul double %29, %0
  %31 = fmul double %30, %0
  %32 = fmul double %20, %27
  %33 = fdiv double 0xC02465BDE9FCF0EC, %4
  %34 = tail call double @exp(double noundef %33) #3
  %35 = fmul double %32, %34
  %36 = tail call double @llvm.fmuladd.f64(double %31, double %26, double %35)
  %37 = fdiv double %.0, %1
  %38 = fmul double %37, %5
  %39 = fdiv double %22, %28
  %40 = fsub double 1.000000e+00, %39
  %41 = fdiv double %40, 0x402465BDE9FCF0EC
  %42 = fadd double %41, 0x3FB2D36E4F11087F
  %43 = insertelement <2 x double> poison, double %42, i64 0
  %44 = insertelement <2 x double> %43, double %39, i64 1
  %45 = insertelement <2 x double> poison, double %38, i64 0
  %46 = insertelement <2 x double> %45, double %36, i64 1
  %47 = fmul <2 x double> %44, %46
  %48 = insertelement <2 x double> poison, double %2, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = fdiv <2 x double> %47, %49
  %shift = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %51 = fadd <2 x double> %50, %shift
  %52 = extractelement <2 x double> %51, i64 0
  ret double %52
}

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