; LLVM IR from kdrag0n/fxdsp :: external/boost/libs/math/test/test_lambert_w.ll (Z29wolfram_test_near_singularityIfEvv)

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

%"class.boost::array" = type { [39 x %"class.boost::array.314"] }
%"class.boost::array.314" = type { [2 x float] }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"struct.boost::test_tools::check_is_close_t" = type { i8 }
%"class.boost::unit_test::lazy_ostream_impl.315" = type { %"class.boost::unit_test::lazy_ostream.base", ptr, ptr }
%"class.boost::unit_test::lazy_ostream.base" = type <{ ptr, i8 }>

@_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE = external hidden global ptr, align 8
@.str.125 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data = external hidden constant %"class.boost::array", align 4
@.str.408 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [10 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv() #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29wolfram_test_near_singularityIfEvv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %6 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %7 = alloca %"struct.boost::test_tools::check_is_close_t", align 1
  %8 = alloca %"class.boost::unit_test::lazy_ostream_impl.315", align 8
  %9 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  %13 = call noundef float @_ZN5boost4math5tools7epsilonIfEET_v() #5
  %14 = fmul float %13, 1.600000e+01
  store float %14, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %15 = call noundef float @_ZN5boost4math9constants13exp_minus_oneIfEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() #5
  %16 = fneg float %15
  store float %16, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %67, %0
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = call noundef i64 @_ZN5boost5arrayINS0_IfLm2EEELm39EE4sizeEv()
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  store i32 2, ptr %4, align 4
  br label %70

23:                                               ; preds = %17
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %25)
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %26, i64 noundef 0)
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = load float, ptr %2, align 4, !tbaa !5
  %30 = fcmp ole float %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  store i32 2, ptr %4, align 4
  br label %70

32:                                               ; preds = %23
  br label %33

33:                                               ; preds = %54, %32
  %34 = load ptr, ptr @_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE, align 8, !tbaa !11
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.398, i64 noundef 95)
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef %5, i64 noundef 298, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %35 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv()
  call void @_ZN5boost9unit_testlsIA1_cEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS5_EERKS4_S7_(ptr dead_on_unwind writable sret(%"class.boost::unit_test::lazy_ostream_impl.315") align 8 %8, ptr noundef nonnull align 8 dereferenceable(9) %35, ptr noundef nonnull align 1 dereferenceable(1) @.str.125)
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.398, i64 noundef 95)
          to label %36 unwind label %57

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %38)
          to label %40 unwind label %61

40:                                               ; preds = %36
  %41 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %39, i64 noundef 0)
          to label %42 unwind label %61

42:                                               ; preds = %40
  %43 = load float, ptr %41, align 4, !tbaa !5
  %44 = invoke noundef float @_ZN5boost4math10lambert_w0IfEENS0_5tools12promote_argsIT_fffffE4typeES4_(float noundef %43)
          to label %45 unwind label %61

45:                                               ; preds = %42
  store float %44, ptr %12, align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %47)
          to label %49 unwind label %61

49:                                               ; preds = %45
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %48, i64 noundef 1)
          to label %51 unwind label %61

51:                                               ; preds = %49
  %52 = invoke noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEfffEEbT_RKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeERKT0_PSA_RKT1_SH_RKT2_SH_(ptr noundef nonnull align 8 dereferenceable(9) %8, ptr noundef %9, i64 noundef 298, i32 noundef 1, i32 noundef 9, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef @.str.408, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef @.str.409, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef @.str.410)
          to label %53 unwind label %61

53:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %54

54:                                               ; preds = %53
  %55 = call noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
  br i1 %55, label %33, label %56, !llvm.loop !13

56:                                               ; preds = %54
  br label %66

57:                                               ; preds = %33
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  br label %65

61:                                               ; preds = %51, %49, %45, %42, %40, %36
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %10, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %65

65:                                               ; preds = %61, %57
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %72

66:                                               ; preds = %56
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %3, align 4, !tbaa !9
  br label %17, !llvm.loop !15

70:                                               ; preds = %31, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

72:                                               ; preds = %65
  %73 = load ptr, ptr %10, align 8
  %74 = load i32, ptr %11, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5boost4math5tools7epsilonIfEET_v() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5boost4math9constants13exp_minus_oneIfEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5boost5arrayINS0_IfLm2EEELm39EE4sizeEv() #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEfffEEbT_RKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeERKT0_PSA_RKT1_SH_RKT2_SH_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost9unit_testlsIA1_cEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS5_EERKS4_S7_(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::lazy_ostream_impl.315") align 8, ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 1 dereferenceable(1)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN5boost4math10lambert_w0IfEENS0_5tools12promote_argsIT_fffffE4typeES4_(float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 = { mustprogress 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 = { inlinehint mustprogress 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

%"class.boost::array" = type { [39 x %"class.boost::array.314"] }
%"class.boost::array.314" = type { [2 x float] }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"class.boost::unit_test::lazy_ostream_impl.315" = type { %"class.boost::unit_test::lazy_ostream.base", ptr, ptr }
%"class.boost::unit_test::lazy_ostream.base" = type <{ ptr, i8 }>

@_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE = external hidden local_unnamed_addr global ptr, align 8
@.str.125 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data = external hidden constant %"class.boost::array", align 4
@.str.408 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29wolfram_test_near_singularityIfEvv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca float, align 4
  %2 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %3 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %4 = alloca %"class.boost::unit_test::lazy_ostream_impl.315", align 8
  %5 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %6 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %7 = tail call noundef float @_ZN5boost4math5tools7epsilonIfEET_v() #5
  %8 = fmul float %7, 1.600000e+01
  store float %8, ptr %1, align 4, !tbaa !5
  %9 = tail call noundef float @_ZN5boost4math9constants13exp_minus_oneIfEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() #5
  %10 = fneg float %9
  %11 = tail call noundef i64 @_ZN5boost5arrayINS0_IfLm2EEELm39EE4sizeEv()
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %31
  %12 = phi i64 [ %33, %31 ], [ 0, %0 ]
  %.08 = phi i32 [ %32, %31 ], [ 0, %0 ]
  %13 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %12)
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %13, i64 noundef 0)
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fcmp ugt float %15, %10
  br i1 %16, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %.lr.ph, %27
  %17 = load ptr, ptr @_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE, align 8, !tbaa !9
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull @.str.398, i64 noundef 95)
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull %2, i64 noundef 298, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %18 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv()
  call void @_ZN5boost9unit_testlsIA1_cEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS5_EERKS4_S7_(ptr dead_on_unwind nonnull writable sret(%"class.boost::unit_test::lazy_ostream_impl.315") align 8 %4, ptr noundef nonnull align 8 dereferenceable(9) %18, ptr noundef nonnull align 1 dereferenceable(1) @.str.125)
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str.398, i64 noundef 95)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %19 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %12)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %19, i64 noundef 0)
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = invoke noundef float @_ZN5boost4math10lambert_w0IfEENS0_5tools12promote_argsIT_fffffE4typeES4_(float noundef %21)
          to label %23 unwind label %29

23:                                               ; preds = %.preheader
  store float %22, ptr %6, align 4, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312) @_ZZ29wolfram_test_near_singularityIfEvvE34wolfram_test_near_singularity_data, i64 noundef %12)
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %24, i64 noundef 1)
  %26 = invoke noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEfffEEbT_RKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeERKT0_PSA_RKT1_SH_RKT2_SH_(ptr noundef nonnull align 8 dereferenceable(9) %4, ptr noundef nonnull %5, i64 noundef 298, i32 noundef 1, i32 noundef 9, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull @.str.408, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull @.str.409, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull @.str.410)
          to label %27 unwind label %29

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %28 = call noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
  br i1 %28, label %.preheader, label %31, !llvm.loop !11

29:                                               ; preds = %23, %.preheader
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  resume { ptr, i32 } %30

31:                                               ; preds = %27
  %32 = add i32 %.08, 1
  %33 = zext i32 %32 to i64
  %34 = call noundef i64 @_ZN5boost5arrayINS0_IfLm2EEELm39EE4sizeEv()
  %35 = icmp ugt i64 %34, %33
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %31, %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5boost4math5tools7epsilonIfEET_v() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5boost4math9constants13exp_minus_oneIfEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5boost5arrayINS0_IfLm2EEELm39EE4sizeEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK5boost5arrayINS0_IfLm2EEELm39EEixEm(ptr noundef nonnull align 4 dereferenceable(312), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEfffEEbT_RKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeERKT0_PSA_RKT1_SH_RKT2_SH_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost9unit_testlsIA1_cEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS5_EERKS4_S7_(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::lazy_ostream_impl.315") align 8, ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN5boost4math10lambert_w0IfEENS0_5tools12promote_argsIT_fffffE4typeES4_(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 = { mustprogress 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 = { inlinehint mustprogress 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass