; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/DoubleConversion/src/double-conversion (bignum)

; 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.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti = external hidden unnamed_addr constant [71 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 4 dereferenceable(516), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 4 dereferenceable(516)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 4 dereferenceable(516), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum17AssignPowerUInt16Eti(ptr noundef nonnull align 4 dereferenceable(516) %0, i16 noundef zeroext %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %17 = load ptr, ptr %4, align 8
  %18 = load i16, ptr %5, align 2, !tbaa !9
  %19 = zext i16 %18 to i32
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  br label %24

22:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 428, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = load i32, ptr %6, align 4, !tbaa !11
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %30

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 429, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  %31 = load i32, ptr %6, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  call void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 4 dereferenceable(516) %17, i16 noundef zeroext 1)
  br label %149

34:                                               ; preds = %30
  call void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 4 dereferenceable(516) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %40, %34
  %36 = load i16, ptr %5, align 2, !tbaa !9
  %37 = zext i16 %36 to i32
  %38 = and i32 %37, 1
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %35
  %41 = load i16, ptr %5, align 2, !tbaa !9
  %42 = zext i16 %41 to i32
  %43 = ashr i32 %42, 1
  %44 = trunc i32 %43 to i16
  store i16 %44, ptr %5, align 2, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %7, align 4, !tbaa !11
  br label %35, !llvm.loop !13

47:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %48 = load i16, ptr %5, align 2, !tbaa !9
  %49 = zext i16 %48 to i32
  store i32 %49, ptr %9, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %53, %47
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %58

53:                                               ; preds = %50
  %54 = load i32, ptr %9, align 4, !tbaa !11
  %55 = ashr i32 %54, 1
  store i32 %55, ptr %9, align 4, !tbaa !11
  %56 = load i32, ptr %8, align 4, !tbaa !11
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !11
  br label %50, !llvm.loop !15

58:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %59 = load i32, ptr %8, align 4, !tbaa !11
  %60 = load i32, ptr %6, align 4, !tbaa !11
  %61 = mul nsw i32 %59, %60
  store i32 %61, ptr %10, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = sdiv i32 %62, 28
  %64 = add nsw i32 %63, 2
  call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %69, %58
  %66 = load i32, ptr %6, align 4, !tbaa !11
  %67 = load i32, ptr %11, align 4, !tbaa !11
  %68 = icmp sge i32 %66, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %65
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = shl i32 %70, 1
  store i32 %71, ptr %11, align 4, !tbaa !11
  br label %65, !llvm.loop !16

72:                                               ; preds = %65
  %73 = load i32, ptr %11, align 4, !tbaa !11
  %74 = ashr i32 %73, 2
  store i32 %74, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %75 = load i16, ptr %5, align 2, !tbaa !9
  %76 = zext i16 %75 to i64
  store i64 %76, ptr %12, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 0, ptr %13, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 4294967295, ptr %14, align 8, !tbaa !17
  br label %77

77:                                               ; preds = %120, %72
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load i64, ptr %12, align 8, !tbaa !17
  %82 = icmp ule i64 %81, 4294967295
  br label %83

83:                                               ; preds = %80, %77
  %84 = phi i1 [ false, %77 ], [ %82, %80 ]
  br i1 %84, label %85, label %123

85:                                               ; preds = %83
  %86 = load i64, ptr %12, align 8, !tbaa !17
  %87 = load i64, ptr %12, align 8, !tbaa !17
  %88 = mul i64 %86, %87
  store i64 %88, ptr %12, align 8, !tbaa !17
  %89 = load i32, ptr %6, align 4, !tbaa !11
  %90 = load i32, ptr %11, align 4, !tbaa !11
  %91 = and i32 %89, %90
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %120

93:                                               ; preds = %85
  %94 = load i32, ptr %8, align 4, !tbaa !11
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %93
  br label %99

97:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 470, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %100 = load i32, ptr %8, align 4, !tbaa !11
  %101 = sub nsw i32 64, %100
  %102 = zext i32 %101 to i64
  %103 = shl i64 1, %102
  %104 = sub i64 %103, 1
  %105 = xor i64 %104, -1
  store i64 %105, ptr %15, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %106 = load i64, ptr %12, align 8, !tbaa !17
  %107 = load i64, ptr %15, align 8, !tbaa !17
  %108 = and i64 %106, %107
  %109 = icmp eq i64 %108, 0
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %16, align 1, !tbaa !19
  %111 = load i8, ptr %16, align 1, !tbaa !19, !range !21, !noundef !22
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %118

113:                                              ; preds = %99
  %114 = load i16, ptr %5, align 2, !tbaa !9
  %115 = zext i16 %114 to i64
  %116 = load i64, ptr %12, align 8, !tbaa !17
  %117 = mul i64 %116, %115
  store i64 %117, ptr %12, align 8, !tbaa !17
  br label %119

118:                                              ; preds = %99
  store i8 1, ptr %13, align 1, !tbaa !19
  br label %119

119:                                              ; preds = %118, %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %120

120:                                              ; preds = %119, %85
  %121 = load i32, ptr %11, align 4, !tbaa !11
  %122 = ashr i32 %121, 1
  store i32 %122, ptr %11, align 4, !tbaa !11
  br label %77, !llvm.loop !23

123:                                              ; preds = %83
  %124 = load i64, ptr %12, align 8, !tbaa !17
  call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 4 dereferenceable(516) %17, i64 noundef %124)
  %125 = load i8, ptr %13, align 1, !tbaa !19, !range !21, !noundef !22
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %130

127:                                              ; preds = %123
  %128 = load i16, ptr %5, align 2, !tbaa !9
  %129 = zext i16 %128 to i32
  call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %129)
  br label %130

130:                                              ; preds = %127, %123
  br label %131

131:                                              ; preds = %142, %130
  %132 = load i32, ptr %11, align 4, !tbaa !11
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %145

134:                                              ; preds = %131
  call void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516) %17)
  %135 = load i32, ptr %6, align 4, !tbaa !11
  %136 = load i32, ptr %11, align 4, !tbaa !11
  %137 = and i32 %135, %136
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %142

139:                                              ; preds = %134
  %140 = load i16, ptr %5, align 2, !tbaa !9
  %141 = zext i16 %140 to i32
  call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %141)
  br label %142

142:                                              ; preds = %139, %134
  %143 = load i32, ptr %11, align 4, !tbaa !11
  %144 = ashr i32 %143, 1
  store i32 %144, ptr %11, align 4, !tbaa !11
  br label %131, !llvm.loop !24

145:                                              ; preds = %131
  %146 = load i32, ptr %7, align 4, !tbaa !11
  %147 = load i32, ptr %6, align 4, !tbaa !11
  %148 = mul nsw i32 %146, %147
  call void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %148)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %149

149:                                              ; preds = %145, %33
  ret void
}

attributes #0 = { 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 #1 = { 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 #2 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !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"

@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti = external hidden unnamed_addr constant [71 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 4 dereferenceable(516), i16 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 4 dereferenceable(516)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 4 dereferenceable(516), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum17AssignPowerUInt16Eti(ptr noundef nonnull align 4 dereferenceable(516) %0, i16 noundef zeroext %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %.not = icmp eq i16 %1, 0
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 428, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

5:                                                ; preds = %3
  %6 = icmp sgt i32 %2, -1
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 429, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

8:                                                ; preds = %5
  %9 = icmp eq i32 %2, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  tail call void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 4 dereferenceable(516) %0, i16 noundef zeroext 1)
  br label %57

11:                                               ; preds = %8
  tail call void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 4 dereferenceable(516) %0)
  %12 = zext i16 %1 to i32
  %13 = and i32 %12, 1
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11, %.lr.ph
  %.063 = phi i16 [ %15, %.lr.ph ], [ %1, %11 ]
  %.04262 = phi i32 [ %16, %.lr.ph ], [ 0, %11 ]
  %15 = lshr i16 %.063, 1
  %16 = add nuw nsw i32 %.04262, 1
  %17 = zext nneg i16 %15 to i32
  %18 = and i32 %17, 1
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %11
  %.042.lcssa = phi i32 [ 0, %11 ], [ %16, %.lr.ph ]
  %.0.lcssa = phi i16 [ %1, %11 ], [ %15, %.lr.ph ]
  %.lcssa = phi i32 [ %12, %11 ], [ %17, %.lr.ph ]
  %20 = tail call range(i32 16, 33) i32 @llvm.ctlz.i32(i32 %.lcssa, i1 true)
  %.fr = freeze i32 %20
  %21 = sub i32 32, %.fr
  %22 = mul nuw nsw i32 %21, %2
  %23 = udiv i32 %22, 28
  %24 = add nuw nsw i32 %23, 2
  tail call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef %24)
  br label %25

25:                                               ; preds = %25, %._crit_edge
  %.048 = phi i32 [ 1, %._crit_edge ], [ %26, %25 ]
  %.not54 = icmp sgt i32 %.048, %2
  %26 = shl i32 %.048, 1
  br i1 %.not54, label %27, label %25, !llvm.loop !7

27:                                               ; preds = %25
  %28 = lshr i32 %.048, 2
  %29 = zext i16 %.0.lcssa to i64
  %.not87 = icmp ult i32 %.048, 4
  br i1 %.not87, label %._crit_edge76.thread, label %.lr.ph75

.lr.ph75:                                         ; preds = %27
  %.not58 = icmp eq i32 %.fr, 32
  %30 = add i32 %.fr, 32
  %31 = zext nneg i32 %30 to i64
  br i1 %.not58, label %.lr.ph75.split.us, label %.lr.ph75.split

.lr.ph75.split.us:                                ; preds = %.lr.ph75, %33
  %.04572.us = phi i64 [ %34, %33 ], [ %29, %.lr.ph75 ]
  %.14971.us = phi i32 [ %35, %33 ], [ %28, %.lr.ph75 ]
  %32 = and i32 %.14971.us, %2
  %.not57.us = icmp eq i32 %32, 0
  br i1 %.not57.us, label %33, label %.split.us

33:                                               ; preds = %.lr.ph75.split.us
  %34 = mul nuw i64 %.04572.us, %.04572.us
  %35 = lshr i32 %.14971.us, 1
  %36 = icmp ugt i32 %.14971.us, 1
  %37 = icmp ult i64 %34, 4294967296
  %38 = select i1 %36, i1 %37, i1 false
  br i1 %38, label %.lr.ph75.split.us, label %._crit_edge76.thread, !llvm.loop !8

.lr.ph75.split:                                   ; preds = %.lr.ph75, %45
  %.04473 = phi i1 [ %.2, %45 ], [ false, %.lr.ph75 ]
  %.04572 = phi i64 [ %.247, %45 ], [ %29, %.lr.ph75 ]
  %.14971 = phi i32 [ %46, %45 ], [ %28, %.lr.ph75 ]
  %39 = mul nuw i64 %.04572, %.04572
  %40 = and i32 %.14971, %2
  %.not57 = icmp eq i32 %40, 0
  br i1 %.not57, label %45, label %41

41:                                               ; preds = %.lr.ph75.split
  %42 = lshr i64 %39, %31
  %43 = icmp ne i64 %42, 0
  %44 = select i1 %43, i64 1, i64 %29
  %.146 = mul i64 %44, %39
  %.1 = select i1 %43, i1 true, i1 %.04473
  br label %45

.split.us:                                        ; preds = %.lr.ph75.split.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 470, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

45:                                               ; preds = %41, %.lr.ph75.split
  %.247 = phi i64 [ %.146, %41 ], [ %39, %.lr.ph75.split ]
  %.2 = phi i1 [ %.1, %41 ], [ %.04473, %.lr.ph75.split ]
  %46 = lshr i32 %.14971, 1
  %47 = icmp ugt i32 %.14971, 1
  %48 = icmp ult i64 %.247, 4294967296
  %49 = select i1 %47, i1 %48, i1 false
  br i1 %49, label %.lr.ph75.split, label %._crit_edge76, !llvm.loop !8

._crit_edge76.thread:                             ; preds = %33, %27
  %.149.lcssa.ph = phi i32 [ %28, %27 ], [ %35, %33 ]
  %.045.lcssa.ph = phi i64 [ %29, %27 ], [ %34, %33 ]
  tail call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 4 dereferenceable(516) %0, i64 noundef %.045.lcssa.ph)
  br label %51

._crit_edge76:                                    ; preds = %45
  tail call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 4 dereferenceable(516) %0, i64 noundef %.247)
  br i1 %.2, label %50, label %51

50:                                               ; preds = %._crit_edge76
  tail call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %.lcssa)
  br label %51

51:                                               ; preds = %._crit_edge76.thread, %50, %._crit_edge76
  %.149.lcssa99 = phi i32 [ %.149.lcssa.ph, %._crit_edge76.thread ], [ %46, %50 ], [ %46, %._crit_edge76 ]
  %.not5582 = icmp eq i32 %.149.lcssa99, 0
  br i1 %.not5582, label %._crit_edge86, label %.lr.ph85

.lr.ph85:                                         ; preds = %51, %54
  %.25083 = phi i32 [ %55, %54 ], [ %.149.lcssa99, %51 ]
  tail call void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516) %0)
  %52 = and i32 %.25083, %2
  %.not56 = icmp eq i32 %52, 0
  br i1 %.not56, label %54, label %53

53:                                               ; preds = %.lr.ph85
  tail call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %.lcssa)
  br label %54

54:                                               ; preds = %53, %.lr.ph85
  %55 = lshr i32 %.25083, 1
  %.not55 = icmp ult i32 %.25083, 2
  br i1 %.not55, label %._crit_edge86, label %.lr.ph85, !llvm.loop !9

._crit_edge86:                                    ; preds = %54, %51
  %56 = mul nuw nsw i32 %.042.lcssa, %2
  tail call void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %56)
  br label %57

57:                                               ; preds = %._crit_edge86, %10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #3

attributes #0 = { 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 #1 = { 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 #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass