; LLVM IR from interpretml/interpret :: shared/libebm/CutUniform.ll (ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd)

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

@.str = external hidden unnamed_addr constant [84 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #1

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

; 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
define dso_local noundef double @_ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd(ptr noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds double, ptr %8, i64 0
  %10 = load double, ptr %9, align 8, !tbaa !9
  store double %10, ptr %6, align 8, !tbaa !9
  %11 = load double, ptr %6, align 8, !tbaa !9
  %12 = invoke noundef zeroext i1 @_ZSt5isnand(double noundef %11)
          to label %13 unwind label %159

13:                                               ; preds = %1
  br i1 %12, label %14, label %17

14:                                               ; preds = %13
  invoke void @LogAssertFailure(i64 noundef 167, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.1)
          to label %15 unwind label %159

15:                                               ; preds = %14
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 167, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

16:                                               ; No predecessors!
  br label %17

17:                                               ; preds = %16, %13
  %18 = phi i1 [ true, %13 ], [ false, %16 ]
  %19 = load double, ptr %6, align 8, !tbaa !9
  %20 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %19)
          to label %21 unwind label %159

21:                                               ; preds = %17
  br i1 %20, label %22, label %25

22:                                               ; preds = %21
  invoke void @LogAssertFailure(i64 noundef 168, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.3)
          to label %23 unwind label %159

23:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 168, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %21
  %26 = phi i1 [ true, %21 ], [ false, %24 ]
  %27 = call noundef double @_ZNSt14numeric_limitsIdE6lowestEv() #5
  %28 = load double, ptr %6, align 8, !tbaa !9
  %29 = fcmp une double %27, %28
  br i1 %29, label %33, label %30

30:                                               ; preds = %25
  invoke void @LogAssertFailure(i64 noundef 169, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.11)
          to label %31 unwind label %159

31:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str, i32 noundef 169, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %25
  %34 = phi i1 [ true, %25 ], [ false, %32 ]
  %35 = load double, ptr %6, align 8, !tbaa !9
  %36 = fcmp olt double 0x8010000000000000, %35
  br i1 %36, label %37, label %101

37:                                               ; preds = %33
  %38 = load double, ptr %6, align 8, !tbaa !9
  %39 = fcmp ole double %38, 1.000000e+00
  br i1 %39, label %40, label %73

40:                                               ; preds = %37
  %41 = load double, ptr %6, align 8, !tbaa !9
  %42 = fcmp ole double %41, 0x10000000000000
  br i1 %42, label %43, label %48

43:                                               ; preds = %40
  %44 = load double, ptr %6, align 8, !tbaa !9
  %45 = fcmp olt double %44, 0x10000000000000
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store double 0x8010000000000000, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

47:                                               ; preds = %43
  store double 0.000000e+00, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

48:                                               ; preds = %40
  %49 = load double, ptr %6, align 8, !tbaa !9
  %50 = fmul double %49, 0x4330000000000000
  store double %50, ptr %6, align 8, !tbaa !9
  store double 0x4320000000000000, ptr %4, align 8, !tbaa !9
  store double 5.000000e-01, ptr %5, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %66, %48
  %52 = load double, ptr %6, align 8, !tbaa !9
  %53 = load double, ptr %4, align 8, !tbaa !9
  %54 = fcmp ole double %52, %53
  br i1 %54, label %55, label %68

55:                                               ; preds = %51
  %56 = load double, ptr %4, align 8, !tbaa !9
  %57 = fmul double %56, 5.000000e-01
  store double %57, ptr %4, align 8, !tbaa !9
  %58 = load double, ptr %5, align 8, !tbaa !9
  %59 = fmul double %58, 5.000000e-01
  store double %59, ptr %5, align 8, !tbaa !9
  %60 = call noundef double @_ZNSt14numeric_limitsIdE3minEv() #5
  %61 = load double, ptr %5, align 8, !tbaa !9
  %62 = fcmp ole double %60, %61
  br i1 %62, label %66, label %63

63:                                               ; preds = %55
  invoke void @LogAssertFailure(i64 noundef 189, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.7)
          to label %64 unwind label %159

64:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str, i32 noundef 189, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

65:                                               ; No predecessors!
  br label %66

66:                                               ; preds = %65, %55
  %67 = phi i1 [ true, %55 ], [ false, %65 ]
  br label %51, !llvm.loop !11

68:                                               ; preds = %51
  %69 = load double, ptr %6, align 8, !tbaa !9
  %70 = load double, ptr %5, align 8, !tbaa !9
  %71 = fsub double %69, %70
  %72 = fdiv double %71, 0x4330000000000000
  store double %72, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

73:                                               ; preds = %37
  %74 = load double, ptr %6, align 8, !tbaa !9
  %75 = fcmp olt double 0x7FE0000000000000, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %73
  %77 = load double, ptr %6, align 8, !tbaa !9
  %78 = fsub double %77, 0x7CA0000000000000
  store double %78, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

79:                                               ; preds = %73
  store double 2.000000e+00, ptr %4, align 8, !tbaa !9
  store double 0x3CB0000000000000, ptr %5, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %95, %79
  %81 = load double, ptr %4, align 8, !tbaa !9
  %82 = load double, ptr %6, align 8, !tbaa !9
  %83 = fcmp olt double %81, %82
  br i1 %83, label %84, label %97

84:                                               ; preds = %80
  %85 = load double, ptr %4, align 8, !tbaa !9
  %86 = fmul double %85, 2.000000e+00
  store double %86, ptr %4, align 8, !tbaa !9
  %87 = load double, ptr %5, align 8, !tbaa !9
  %88 = fmul double %87, 2.000000e+00
  store double %88, ptr %5, align 8, !tbaa !9
  %89 = load double, ptr %5, align 8, !tbaa !9
  %90 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %89)
          to label %91 unwind label %159

91:                                               ; preds = %84
  br i1 %90, label %92, label %95

92:                                               ; preds = %91
  invoke void @LogAssertFailure(i64 noundef 202, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.9)
          to label %93 unwind label %159

93:                                               ; preds = %92
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 202, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

94:                                               ; No predecessors!
  br label %95

95:                                               ; preds = %94, %91
  %96 = phi i1 [ true, %91 ], [ false, %94 ]
  br label %80, !llvm.loop !13

97:                                               ; preds = %80
  %98 = load double, ptr %6, align 8, !tbaa !9
  %99 = load double, ptr %5, align 8, !tbaa !9
  %100 = fsub double %98, %99
  store double %100, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

101:                                              ; preds = %33
  %102 = load double, ptr %6, align 8, !tbaa !9
  %103 = fcmp olt double -1.000000e+00, %102
  br i1 %103, label %104, label %129

104:                                              ; preds = %101
  %105 = load double, ptr %6, align 8, !tbaa !9
  %106 = fmul double %105, 0x4330000000000000
  store double %106, ptr %6, align 8, !tbaa !9
  store double 0xC320000000000000, ptr %4, align 8, !tbaa !9
  store double 5.000000e-01, ptr %5, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %122, %104
  %108 = load double, ptr %4, align 8, !tbaa !9
  %109 = load double, ptr %6, align 8, !tbaa !9
  %110 = fcmp olt double %108, %109
  br i1 %110, label %111, label %124

111:                                              ; preds = %107
  %112 = load double, ptr %4, align 8, !tbaa !9
  %113 = fmul double %112, 5.000000e-01
  store double %113, ptr %4, align 8, !tbaa !9
  %114 = load double, ptr %5, align 8, !tbaa !9
  %115 = fmul double %114, 5.000000e-01
  store double %115, ptr %5, align 8, !tbaa !9
  %116 = call noundef double @_ZNSt14numeric_limitsIdE3minEv() #5
  %117 = load double, ptr %5, align 8, !tbaa !9
  %118 = fcmp ole double %116, %117
  br i1 %118, label %122, label %119

119:                                              ; preds = %111
  invoke void @LogAssertFailure(i64 noundef 217, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.7)
          to label %120 unwind label %159

120:                                              ; preds = %119
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str, i32 noundef 217, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

121:                                              ; No predecessors!
  br label %122

122:                                              ; preds = %121, %111
  %123 = phi i1 [ true, %111 ], [ false, %121 ]
  br label %107, !llvm.loop !14

124:                                              ; preds = %107
  %125 = load double, ptr %6, align 8, !tbaa !9
  %126 = load double, ptr %5, align 8, !tbaa !9
  %127 = fsub double %125, %126
  %128 = fdiv double %127, 0x4330000000000000
  store double %128, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

129:                                              ; preds = %101
  %130 = load double, ptr %6, align 8, !tbaa !9
  %131 = fcmp ole double %130, 0xFFE0000000000000
  br i1 %131, label %132, label %135

132:                                              ; preds = %129
  %133 = load double, ptr %6, align 8, !tbaa !9
  %134 = fsub double %133, 0x7CA0000000000000
  store double %134, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

135:                                              ; preds = %129
  store double -2.000000e+00, ptr %4, align 8, !tbaa !9
  store double 0x3CB0000000000000, ptr %5, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %151, %135
  %137 = load double, ptr %6, align 8, !tbaa !9
  %138 = load double, ptr %4, align 8, !tbaa !9
  %139 = fcmp ole double %137, %138
  br i1 %139, label %140, label %153

140:                                              ; preds = %136
  %141 = load double, ptr %4, align 8, !tbaa !9
  %142 = fmul double %141, 2.000000e+00
  store double %142, ptr %4, align 8, !tbaa !9
  %143 = load double, ptr %5, align 8, !tbaa !9
  %144 = fmul double %143, 2.000000e+00
  store double %144, ptr %5, align 8, !tbaa !9
  %145 = load double, ptr %5, align 8, !tbaa !9
  %146 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %145)
          to label %147 unwind label %159

147:                                              ; preds = %140
  br i1 %146, label %148, label %151

148:                                              ; preds = %147
  invoke void @LogAssertFailure(i64 noundef 231, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef @.str.9)
          to label %149 unwind label %159

149:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 231, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #6
  unreachable

150:                                              ; No predecessors!
  br label %151

151:                                              ; preds = %150, %147
  %152 = phi i1 [ true, %147 ], [ false, %150 ]
  br label %136, !llvm.loop !15

153:                                              ; preds = %136
  %154 = load double, ptr %6, align 8, !tbaa !9
  %155 = load double, ptr %5, align 8, !tbaa !9
  %156 = fsub double %154, %155
  store double %156, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %157

157:                                              ; preds = %153, %132, %124, %97, %76, %68, %47, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %158 = load double, ptr %2, align 8
  ret double %158

159:                                              ; preds = %148, %140, %119, %92, %84, %63, %30, %22, %17, %14, %1
  %160 = landingpad { ptr, i32 }
          catch ptr null
  %161 = extractvalue { ptr, i32 } %160, 0
  call void @__clang_call_terminate(ptr %161) #6
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE6lowestEv() #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 = { noinline noreturn nounwind uwtable "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 = { "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 = { noreturn 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@.str = external hidden unnamed_addr constant [84 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3minEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd(ptr nocapture noundef readonly %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = load double, ptr %0, align 8, !tbaa !5
  %3 = tail call noundef zeroext i1 @_ZSt5isnand(double noundef %2)
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  invoke void @LogAssertFailure(i64 noundef 167, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.1)
          to label %5 unwind label %80

5:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 167, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

6:                                                ; preds = %1
  %7 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %2)
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  invoke void @LogAssertFailure(i64 noundef 168, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.3)
          to label %9 unwind label %80

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 168, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

10:                                               ; preds = %6
  %11 = tail call noundef double @_ZNSt14numeric_limitsIdE6lowestEv() #5
  %12 = fcmp une double %11, %2
  br i1 %12, label %15, label %13

13:                                               ; preds = %10
  invoke void @LogAssertFailure(i64 noundef 169, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.11)
          to label %14 unwind label %80

14:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str, i32 noundef 169, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

15:                                               ; preds = %10
  %16 = fcmp ogt double %2, 0x8010000000000000
  br i1 %16, label %17, label %50

17:                                               ; preds = %15
  %18 = fcmp ugt double %2, 1.000000e+00
  br i1 %18, label %37, label %19

19:                                               ; preds = %17
  %20 = fcmp ugt double %2, 0x10000000000000
  br i1 %20, label %23, label %21

21:                                               ; preds = %19
  %22 = fcmp olt double %2, 0x10000000000000
  %. = select i1 %22, double 0x8010000000000000, double 0.000000e+00
  br label %79

23:                                               ; preds = %19
  %24 = fmul double %2, 0x4330000000000000
  br label %25

25:                                               ; preds = %27, %23
  %.044 = phi double [ 0x4320000000000000, %23 ], [ %28, %27 ]
  %.0 = phi double [ 5.000000e-01, %23 ], [ %29, %27 ]
  %26 = fcmp ugt double %24, %.044
  br i1 %26, label %34, label %27

27:                                               ; preds = %25
  %28 = fmul double %.044, 5.000000e-01
  %29 = fmul double %.0, 5.000000e-01
  %30 = tail call noundef double @_ZNSt14numeric_limitsIdE3minEv() #5
  %31 = fcmp ugt double %30, %29
  br i1 %31, label %32, label %25, !llvm.loop !9

32:                                               ; preds = %27
  invoke void @LogAssertFailure(i64 noundef 189, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.7)
          to label %33 unwind label %80

33:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str, i32 noundef 189, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

34:                                               ; preds = %25
  %35 = fsub double %24, %.0
  %36 = fmul double %35, 0x3CB0000000000000
  br label %79

37:                                               ; preds = %17
  %38 = fcmp ogt double %2, 0x7FE0000000000000
  br i1 %38, label %39, label %.preheader

39:                                               ; preds = %37
  %40 = fadd double %2, 0xFCA0000000000000
  br label %79

.preheader:                                       ; preds = %37, %42
  %.145 = phi double [ %43, %42 ], [ 2.000000e+00, %37 ]
  %.1 = phi double [ %44, %42 ], [ 0x3CB0000000000000, %37 ]
  %41 = fcmp olt double %.145, %2
  br i1 %41, label %42, label %48

42:                                               ; preds = %.preheader
  %43 = fmul double %.145, 2.000000e+00
  %44 = fmul double %.1, 2.000000e+00
  %45 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %44)
  br i1 %45, label %46, label %.preheader, !llvm.loop !11

46:                                               ; preds = %42
  invoke void @LogAssertFailure(i64 noundef 202, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.9)
          to label %47 unwind label %80

47:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 202, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

48:                                               ; preds = %.preheader
  %49 = fsub double %2, %.1
  br label %79

50:                                               ; preds = %15
  %51 = fcmp ogt double %2, -1.000000e+00
  br i1 %51, label %52, label %66

52:                                               ; preds = %50
  %53 = fmul double %2, 0x4330000000000000
  br label %54

54:                                               ; preds = %56, %52
  %.246 = phi double [ 0xC320000000000000, %52 ], [ %57, %56 ]
  %.2 = phi double [ 5.000000e-01, %52 ], [ %58, %56 ]
  %55 = fcmp olt double %.246, %53
  br i1 %55, label %56, label %63

56:                                               ; preds = %54
  %57 = fmul double %.246, 5.000000e-01
  %58 = fmul double %.2, 5.000000e-01
  %59 = tail call noundef double @_ZNSt14numeric_limitsIdE3minEv() #5
  %60 = fcmp ugt double %59, %58
  br i1 %60, label %61, label %54, !llvm.loop !12

61:                                               ; preds = %56
  invoke void @LogAssertFailure(i64 noundef 217, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.7)
          to label %62 unwind label %80

62:                                               ; preds = %61
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str, i32 noundef 217, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

63:                                               ; preds = %54
  %64 = fsub double %53, %.2
  %65 = fmul double %64, 0x3CB0000000000000
  br label %79

66:                                               ; preds = %50
  %67 = fcmp ugt double %2, 0xFFE0000000000000
  br i1 %67, label %.preheader54, label %68

68:                                               ; preds = %66
  %69 = fadd double %2, 0xFCA0000000000000
  br label %79

.preheader54:                                     ; preds = %66, %71
  %.347 = phi double [ %72, %71 ], [ -2.000000e+00, %66 ]
  %.3 = phi double [ %73, %71 ], [ 0x3CB0000000000000, %66 ]
  %70 = fcmp ugt double %2, %.347
  br i1 %70, label %77, label %71

71:                                               ; preds = %.preheader54
  %72 = fmul double %.347, 2.000000e+00
  %73 = fmul double %.3, 2.000000e+00
  %74 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %73)
  br i1 %74, label %75, label %.preheader54, !llvm.loop !13

75:                                               ; preds = %71
  invoke void @LogAssertFailure(i64 noundef 231, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd, ptr noundef nonnull @.str.9)
          to label %76 unwind label %80

76:                                               ; preds = %75
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 231, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN26FloatTickDecrementInternalEPd) #4
  unreachable

77:                                               ; preds = %.preheader54
  %78 = fsub double %2, %.3
  br label %79

79:                                               ; preds = %21, %77, %68, %63, %48, %39, %34
  %.048 = phi double [ %36, %34 ], [ %40, %39 ], [ %49, %48 ], [ %65, %63 ], [ %69, %68 ], [ %78, %77 ], [ %., %21 ]
  ret double %.048

80:                                               ; preds = %75, %61, %46, %32, %13, %8, %4
  %81 = landingpad { ptr, i32 }
          catch ptr null
  %82 = extractvalue { ptr, i32 } %81, 0
  tail call void @__clang_call_terminate(ptr %82) #4
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE6lowestEv() local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { noinline noreturn nounwind uwtable "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 = { "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 = { noreturn 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 #4 = { noreturn nounwind }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass