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

; 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.316" = type { [39 x %"class.boost::array.317"] }
%"class.boost::array.317" = type { [2 x double] }
%"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 }>
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"struct.boost::test_tools::check_is_close_t" = type { 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
@.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
@_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data = external hidden constant %"class.boost::array.316", align 8

; 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: 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29wolfram_test_near_singularityIdEvv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %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 double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %13 = call noundef double @_ZN5boost4math5tools7epsilonIdEET_v() #5
  %14 = fmul double %13, 5.000000e+00
  store double %14, ptr %1, align 8, !tbaa !5
  %15 = load double, ptr %1, align 8, !tbaa !5
  %16 = fmul double %15, 5.000000e+04
  store double %16, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %17 = call noundef double @_ZN5boost4math9constants13exp_minus_oneIdEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() #5
  %18 = fneg double %17
  store double %18, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %19

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

24:                                               ; preds = %19
  store i32 2, ptr %4, align 4
  br label %72

25:                                               ; preds = %19
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %27)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef 0)
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = load double, ptr %2, align 8, !tbaa !5
  %32 = fcmp ole double %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  store i32 2, ptr %4, align 4
  br label %72

34:                                               ; preds = %25
  br label %35

35:                                               ; preds = %56, %34
  %36 = 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) %36, ptr noundef %5, i64 noundef 324, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %37 = 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) %37, 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 %38 unwind label %59

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %40)
          to label %42 unwind label %63

42:                                               ; preds = %38
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %41, i64 noundef 0)
          to label %44 unwind label %63

44:                                               ; preds = %42
  %45 = load double, ptr %43, align 8, !tbaa !5
  %46 = invoke noundef double @_ZN5boost4math10lambert_w0IdEENS0_5tools12promote_argsIT_fffffE4typeES4_(double noundef %45)
          to label %47 unwind label %63

47:                                               ; preds = %44
  store double %46, ptr %12, align 8, !tbaa !5
  %48 = load i32, ptr %3, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %49)
          to label %51 unwind label %63

51:                                               ; preds = %47
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %50, i64 noundef 1)
          to label %53 unwind label %63

53:                                               ; preds = %51
  %54 = invoke noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEdddEEbT_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 324, i32 noundef 1, i32 noundef 9, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.408, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.409, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef @.str.410)
          to label %55 unwind label %63

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, 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 %56

56:                                               ; preds = %55
  %57 = call noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
  br i1 %57, label %35, label %58, !llvm.loop !13

58:                                               ; preds = %56
  br label %68

59:                                               ; preds = %35
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %67

63:                                               ; preds = %53, %51, %47, %44, %42, %38
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %67

67:                                               ; preds = %63, %59
  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 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  br label %74

68:                                               ; preds = %58
  br label %69

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

72:                                               ; preds = %33, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN5boost4math9constants13exp_minus_oneIdEENS1_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_IdLm2EEELm39EE4sizeEv() #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEdddEEbT_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 8 dereferenceable(8), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN5boost4math10lambert_w0IdEENS0_5tools12promote_argsIT_fffffE4typeES4_(double noundef) #4

; 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 = !{!"double", !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.316" = type { [39 x %"class.boost::array.317"] }
%"class.boost::array.317" = type { [2 x double] }
%"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 }>
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }

@_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
@.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
@_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data = external hidden constant %"class.boost::array.316", align 8

; 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: 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29wolfram_test_near_singularityIdEvv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %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 double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %7 = tail call noundef double @_ZN5boost4math5tools7epsilonIdEET_v() #5
  %8 = fmul double %7, 5.000000e+00
  %9 = fmul double %8, 5.000000e+04
  store double %9, ptr %1, align 8, !tbaa !5
  %10 = tail call noundef double @_ZN5boost4math9constants13exp_minus_oneIdEENS1_6detail15constant_returnIT_NS0_8policies6policyINS6_14default_policyES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeEv() #5
  %11 = fneg double %10
  %12 = tail call noundef i64 @_ZN5boost5arrayINS0_IdLm2EEELm39EE4sizeEv()
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %32
  %13 = phi i64 [ %34, %32 ], [ 0, %0 ]
  %.08 = phi i32 [ %33, %32 ], [ 0, %0 ]
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %13)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef 0)
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = fcmp ugt double %16, %11
  br i1 %17, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %.lr.ph, %28
  %18 = 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) %18, ptr noundef nonnull %2, i64 noundef 324, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %19 = 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) %19, 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 8, ptr nonnull %6) #5
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %13)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef 0)
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = invoke noundef double @_ZN5boost4math10lambert_w0IdEENS0_5tools12promote_argsIT_fffffE4typeES4_(double noundef %22)
          to label %24 unwind label %30

24:                                               ; preds = %.preheader
  store double %23, ptr %6, align 8, !tbaa !5
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost5arrayINS0_IdLm2EEELm39EEixEm(ptr noundef nonnull align 8 dereferenceable(624) @_ZZ29wolfram_test_near_singularityIdEvvE34wolfram_test_near_singularity_data, i64 noundef %13)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef 1)
  %27 = invoke noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10check_frwdINS0_16check_is_close_tEdddEEbT_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 324, i32 noundef 1, i32 noundef 9, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.408, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str.409, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.410)
          to label %28 unwind label %30

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, 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
  %29 = call noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
  br i1 %29, label %.preheader, label %32, !llvm.loop !11

30:                                               ; preds = %24, %.preheader
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr nonnull %1) #5
  resume { ptr, i32 } %31

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN5boost4math9constants13exp_minus_oneIdEENS1_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_IdLm2EEELm39EE4sizeEv() local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5boost5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16), 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_tEdddEEbT_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 8 dereferenceable(8), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; 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 = !{!"double", !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