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

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
define dso_local double @rec_Tmss(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #2 {
  %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
  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) #3
  %14 = load double, ptr %7, align 8, !tbaa !5
  %15 = fcmp olt double %14, 1.000000e+00
  br i1 %15, label %16, label %27

16:                                               ; preds = %6
  %17 = load double, ptr %7, align 8, !tbaa !5
  %18 = call double @pow(double noundef %17, double noundef 3.001340e-01) #3
  %19 = fsub double 1.000000e+00, %18
  %20 = call double @pow(double noundef %19, double noundef 1.510350e+00) #3
  %21 = fsub double 1.000000e+00, %20
  %22 = fmul double 0x3FEFE640A6B93CCD, %21
  store double %22, ptr %13, align 8, !tbaa !5
  %23 = load double, ptr %13, align 8, !tbaa !5
  %24 = fcmp ogt double %23, 1.000000e+00
  br i1 %24, label %25, label %26

25:                                               ; preds = %16
  store double 1.000000e+00, ptr %13, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %25, %16
  br label %28

27:                                               ; preds = %6
  store double 1.000000e+00, ptr %13, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %27, %26
  %29 = load double, ptr %8, align 8, !tbaa !5
  %30 = load double, ptr %9, align 8, !tbaa !5
  %31 = fdiv double %30, 0x3B82912D18912EF2
  %32 = load double, ptr %8, align 8, !tbaa !5
  %33 = fdiv double %31, %32
  %34 = load double, ptr %8, align 8, !tbaa !5
  %35 = fdiv double %33, %34
  %36 = load double, ptr %8, align 8, !tbaa !5
  %37 = fdiv double %35, %36
  %38 = load double, ptr %8, align 8, !tbaa !5
  %39 = fdiv double %37, %38
  %40 = load double, ptr %7, align 8, !tbaa !5
  %41 = fadd double 1.000000e+00, %40
  %42 = load double, ptr %10, align 8, !tbaa !5
  %43 = fadd double %41, %42
  %44 = fmul double %39, %43
  %45 = load double, ptr %7, align 8, !tbaa !5
  %46 = fdiv double %44, %45
  %47 = fadd double 1.000000e+00, %46
  %48 = fdiv double %29, %47
  %49 = load double, ptr %13, align 8, !tbaa !5
  %50 = fmul double 0x40BE38563023F6AA, %49
  %51 = load double, ptr %11, align 8, !tbaa !5
  %52 = fdiv double %50, %51
  %53 = load double, ptr %12, align 8, !tbaa !5
  %54 = fmul double %52, %53
  %55 = load double, ptr %8, align 8, !tbaa !5
  %56 = call double @pow(double noundef %55, double noundef 4.000000e+00) #3
  %57 = fmul double 0x3B82912D18912EF2, %56
  %58 = load double, ptr %7, align 8, !tbaa !5
  %59 = fmul double %57, %58
  %60 = fdiv double %54, %59
  %61 = fadd double %48, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret double %61
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write) uwtable
define dso_local double @rec_Tmss(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) local_unnamed_addr #1 {
  %7 = fcmp olt double %0, 1.000000e+00
  br i1 %7, label %8, label %16

8:                                                ; preds = %6
  %9 = tail call double @pow(double noundef %0, double noundef 3.001340e-01) #2
  %10 = fsub double 1.000000e+00, %9
  %11 = tail call double @pow(double noundef %10, double noundef 1.510350e+00) #2
  %12 = fsub double 1.000000e+00, %11
  %13 = fmul double %12, 0x3FEFE640A6B93CCD
  %14 = fcmp ogt double %13, 1.000000e+00
  br i1 %14, label %15, label %16

15:                                               ; preds = %8
  br label %16

16:                                               ; preds = %6, %8, %15
  %.0 = phi double [ 1.000000e+00, %15 ], [ %13, %8 ], [ 1.000000e+00, %6 ]
  %17 = fdiv double %2, 0x3B82912D18912EF2
  %18 = fdiv double %17, %1
  %19 = fdiv double %18, %1
  %20 = fdiv double %19, %1
  %21 = fdiv double %20, %1
  %22 = fadd double %0, 1.000000e+00
  %23 = fadd double %22, %3
  %24 = fmul double %23, %21
  %25 = fdiv double %24, %0
  %26 = fmul double %.0, 0x40BE38563023F6AA
  %27 = fdiv double %26, %4
  %28 = fmul double %27, %5
  %29 = tail call double @pow(double noundef %1, double noundef 4.000000e+00) #2
  %30 = fmul double %29, 0x3B82912D18912EF2
  %31 = insertelement <2 x double> poison, double %25, i64 0
  %32 = insertelement <2 x double> %31, double %30, i64 1
  %33 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %0, i64 1
  %34 = fadd <2 x double> %32, %33
  %35 = fmul <2 x double> %32, %33
  %36 = shufflevector <2 x double> %34, <2 x double> %35, <2 x i32> <i32 0, i32 3>
  %37 = insertelement <2 x double> poison, double %1, i64 0
  %38 = insertelement <2 x double> %37, double %28, i64 1
  %39 = fdiv <2 x double> %38, %36
  %shift = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %40 = fadd <2 x double> %39, %shift
  %41 = extractelement <2 x double> %40, i64 0
  ret double %41
}

attributes #0 = { 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 #1 = { 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 #2 = { 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: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass