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

%"class.double_conversion::Bignum" = type { i16, i16, [128 x i32] }

@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum6SquareEv = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 4 dereferenceable(516)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  %18 = call noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 4 dereferenceable(516) %17)
  br i1 %18, label %19, label %20

19:                                               ; preds = %1
  br label %22

20:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 356, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum6SquareEv) #4
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %23 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %24 = load i16, ptr %23, align 4, !tbaa !9
  %25 = sext i16 %24 to i32
  %26 = mul nsw i32 2, %25
  store i32 %26, ptr %3, align 4, !tbaa !12
  %27 = load i32, ptr %3, align 4, !tbaa !12
  call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef %27)
  %28 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %29 = load i16, ptr %28, align 4, !tbaa !9
  %30 = sext i16 %29 to i32
  %31 = icmp sle i32 256, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %22
  call void @abort() #4
  unreachable

33:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %34 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %35 = load i16, ptr %34, align 4, !tbaa !9
  %36 = sext i16 %35 to i32
  store i32 %36, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %37

37:                                               ; preds = %52, %33
  %38 = load i32, ptr %6, align 4, !tbaa !12
  %39 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %40 = load i16, ptr %39, align 4, !tbaa !9
  %41 = sext i16 %40 to i32
  %42 = icmp slt i32 %38, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %55

44:                                               ; preds = %37
  %45 = load i32, ptr %6, align 4, !tbaa !12
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %45)
  %47 = load i32, ptr %46, align 4, !tbaa !12
  %48 = load i32, ptr %5, align 4, !tbaa !12
  %49 = load i32, ptr %6, align 4, !tbaa !12
  %50 = add nsw i32 %48, %49
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %50)
  store i32 %47, ptr %51, align 4, !tbaa !12
  br label %52

52:                                               ; preds = %44
  %53 = load i32, ptr %6, align 4, !tbaa !12
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %6, align 4, !tbaa !12
  br label %37, !llvm.loop !16

55:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %56

56:                                               ; preds = %98, %55
  %57 = load i32, ptr %7, align 4, !tbaa !12
  %58 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %59 = load i16, ptr %58, align 4, !tbaa !9
  %60 = sext i16 %59 to i32
  %61 = icmp slt i32 %57, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %101

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %64 = load i32, ptr %7, align 4, !tbaa !12
  store i32 %64, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %65

65:                                               ; preds = %68, %63
  %66 = load i32, ptr %8, align 4, !tbaa !12
  %67 = icmp sge i32 %66, 0
  br i1 %67, label %68, label %90

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %69 = load i32, ptr %5, align 4, !tbaa !12
  %70 = load i32, ptr %8, align 4, !tbaa !12
  %71 = add nsw i32 %69, %70
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %71)
  %73 = load i32, ptr %72, align 4, !tbaa !12
  store i32 %73, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %74 = load i32, ptr %5, align 4, !tbaa !12
  %75 = load i32, ptr %9, align 4, !tbaa !12
  %76 = add nsw i32 %74, %75
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %76)
  %78 = load i32, ptr %77, align 4, !tbaa !12
  store i32 %78, ptr %11, align 4, !tbaa !12
  %79 = load i32, ptr %10, align 4, !tbaa !12
  %80 = zext i32 %79 to i64
  %81 = load i32, ptr %11, align 4, !tbaa !12
  %82 = zext i32 %81 to i64
  %83 = mul i64 %80, %82
  %84 = load i64, ptr %4, align 8, !tbaa !14
  %85 = add i64 %84, %83
  store i64 %85, ptr %4, align 8, !tbaa !14
  %86 = load i32, ptr %8, align 4, !tbaa !12
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %8, align 4, !tbaa !12
  %88 = load i32, ptr %9, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %65, !llvm.loop !18

90:                                               ; preds = %65
  %91 = load i64, ptr %4, align 8, !tbaa !14
  %92 = trunc i64 %91 to i32
  %93 = and i32 %92, 268435455
  %94 = load i32, ptr %7, align 4, !tbaa !12
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %94)
  store i32 %93, ptr %95, align 4, !tbaa !12
  %96 = load i64, ptr %4, align 8, !tbaa !14
  %97 = lshr i64 %96, 28
  store i64 %97, ptr %4, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %98

98:                                               ; preds = %90
  %99 = load i32, ptr %7, align 4, !tbaa !12
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %7, align 4, !tbaa !12
  br label %56, !llvm.loop !19

101:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %102 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %103 = load i16, ptr %102, align 4, !tbaa !9
  %104 = sext i16 %103 to i32
  store i32 %104, ptr %12, align 4, !tbaa !12
  br label %105

105:                                              ; preds = %154, %101
  %106 = load i32, ptr %12, align 4, !tbaa !12
  %107 = load i32, ptr %3, align 4, !tbaa !12
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %157

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %111 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %112 = load i16, ptr %111, align 4, !tbaa !9
  %113 = sext i16 %112 to i32
  %114 = sub nsw i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %115 = load i32, ptr %12, align 4, !tbaa !12
  %116 = load i32, ptr %13, align 4, !tbaa !12
  %117 = sub nsw i32 %115, %116
  store i32 %117, ptr %14, align 4, !tbaa !12
  br label %118

118:                                              ; preds = %124, %110
  %119 = load i32, ptr %14, align 4, !tbaa !12
  %120 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  %121 = load i16, ptr %120, align 4, !tbaa !9
  %122 = sext i16 %121 to i32
  %123 = icmp slt i32 %119, %122
  br i1 %123, label %124, label %146

124:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %125 = load i32, ptr %5, align 4, !tbaa !12
  %126 = load i32, ptr %13, align 4, !tbaa !12
  %127 = add nsw i32 %125, %126
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %127)
  %129 = load i32, ptr %128, align 4, !tbaa !12
  store i32 %129, ptr %15, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %130 = load i32, ptr %5, align 4, !tbaa !12
  %131 = load i32, ptr %14, align 4, !tbaa !12
  %132 = add nsw i32 %130, %131
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %132)
  %134 = load i32, ptr %133, align 4, !tbaa !12
  store i32 %134, ptr %16, align 4, !tbaa !12
  %135 = load i32, ptr %15, align 4, !tbaa !12
  %136 = zext i32 %135 to i64
  %137 = load i32, ptr %16, align 4, !tbaa !12
  %138 = zext i32 %137 to i64
  %139 = mul i64 %136, %138
  %140 = load i64, ptr %4, align 8, !tbaa !14
  %141 = add i64 %140, %139
  store i64 %141, ptr %4, align 8, !tbaa !14
  %142 = load i32, ptr %13, align 4, !tbaa !12
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %13, align 4, !tbaa !12
  %144 = load i32, ptr %14, align 4, !tbaa !12
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %118, !llvm.loop !20

146:                                              ; preds = %118
  %147 = load i64, ptr %4, align 8, !tbaa !14
  %148 = trunc i64 %147 to i32
  %149 = and i32 %148, 268435455
  %150 = load i32, ptr %12, align 4, !tbaa !12
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %17, i32 noundef %150)
  store i32 %149, ptr %151, align 4, !tbaa !12
  %152 = load i64, ptr %4, align 8, !tbaa !14
  %153 = lshr i64 %152, 28
  store i64 %153, ptr %4, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %154

154:                                              ; preds = %146
  %155 = load i32, ptr %12, align 4, !tbaa !12
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %12, align 4, !tbaa !12
  br label %105, !llvm.loop !21

157:                                              ; preds = %109
  %158 = load i64, ptr %4, align 8, !tbaa !14
  %159 = icmp eq i64 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  br label %163

161:                                              ; preds = %157
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 418, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum6SquareEv) #4
  unreachable

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162, %160
  %164 = load i32, ptr %3, align 4, !tbaa !12
  %165 = trunc i32 %164 to i16
  %166 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 0
  store i16 %165, ptr %166, align 4, !tbaa !9
  %167 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 1
  %168 = load i16, ptr %167, align 2, !tbaa !22
  %169 = sext i16 %168 to i32
  %170 = mul nsw i32 %169, 2
  %171 = trunc i32 %170 to i16
  store i16 %171, ptr %167, align 2, !tbaa !22
  call void @_ZN17double_conversion6Bignum5ClampEv(ptr noundef nonnull align 4 dereferenceable(516) %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

; Function Attrs: noreturn nounwind
declare void @abort() #1

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 0}
!10 = !{!"_ZTSN17double_conversion6BignumE", !11, i64 0, !11, i64 2, !7, i64 4}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!10, !11, i64 2}


; 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.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum6SquareEv = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 4 dereferenceable(516)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 4 dereferenceable(516) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 4 dereferenceable(516) %0)
  br i1 %2, label %4, label %3

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

4:                                                ; preds = %1
  %5 = load i16, ptr %0, align 4, !tbaa !5
  %6 = sext i16 %5 to i32
  %7 = shl nsw i32 %6, 1
  tail call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(i32 noundef %7)
  %8 = load i16, ptr %0, align 4, !tbaa !5
  %9 = sext i16 %8 to i32
  %10 = icmp sgt i16 %8, 255
  br i1 %10, label %12, label %.preheader54

.preheader54:                                     ; preds = %4
  %11 = icmp sgt i16 %8, 0
  br i1 %11, label %.lr.ph, label %.preheader

12:                                               ; preds = %4
  tail call void @abort() #2
  unreachable

.preheader53:                                     ; preds = %.lr.ph
  %13 = icmp sgt i16 %19, 0
  br i1 %13, label %.lr.ph59.preheader, label %.preheader

.lr.ph:                                           ; preds = %.preheader54, %.lr.ph
  %.04255 = phi i32 [ %18, %.lr.ph ], [ 0, %.preheader54 ]
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %.04255)
  %15 = load i32, ptr %14, align 4, !tbaa !10
  %16 = add nuw nsw i32 %.04255, %9
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %16)
  store i32 %15, ptr %17, align 4, !tbaa !10
  %18 = add nuw nsw i32 %.04255, 1
  %19 = load i16, ptr %0, align 4, !tbaa !5
  %20 = sext i16 %19 to i32
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %.lr.ph, label %.preheader53, !llvm.loop !12

.lr.ph59.preheader:                               ; preds = %.preheader53, %._crit_edge
  %indvars.iv = phi i32 [ %indvars.iv.next, %._crit_edge ], [ 1, %.preheader53 ]
  %.061 = phi i64 [ %38, %._crit_edge ], [ 0, %.preheader53 ]
  %.04660 = phi i32 [ %39, %._crit_edge ], [ 0, %.preheader53 ]
  br label %.lr.ph59

.preheader:                                       ; preds = %._crit_edge, %.preheader54, %.preheader53
  %.0.lcssa = phi i64 [ 0, %.preheader53 ], [ 0, %.preheader54 ], [ %38, %._crit_edge ]
  %.lcssa = phi i32 [ %20, %.preheader53 ], [ %9, %.preheader54 ], [ %41, %._crit_edge ]
  %22 = icmp slt i32 %.lcssa, %7
  br i1 %22, label %.lr.ph73, label %._crit_edge74

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %.lr.ph59
  %.158 = phi i64 [ %32, %.lr.ph59 ], [ %.061, %.lr.ph59.preheader ]
  %.04757 = phi i32 [ %33, %.lr.ph59 ], [ %.04660, %.lr.ph59.preheader ]
  %.04856 = phi i32 [ %34, %.lr.ph59 ], [ 0, %.lr.ph59.preheader ]
  %23 = add nsw i32 %.04757, %9
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %23)
  %25 = load i32, ptr %24, align 4, !tbaa !10
  %26 = add nuw nsw i32 %.04856, %9
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %26)
  %28 = load i32, ptr %27, align 4, !tbaa !10
  %29 = zext i32 %25 to i64
  %30 = zext i32 %28 to i64
  %31 = mul nuw i64 %30, %29
  %32 = add i64 %31, %.158
  %33 = add nsw i32 %.04757, -1
  %34 = add nuw nsw i32 %.04856, 1
  %exitcond.not = icmp eq i32 %34, %indvars.iv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph59, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph59
  %35 = trunc i64 %32 to i32
  %36 = and i32 %35, 268435455
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %.04660)
  store i32 %36, ptr %37, align 4, !tbaa !10
  %38 = lshr i64 %32, 28
  %39 = add nuw nsw i32 %.04660, 1
  %40 = load i16, ptr %0, align 4, !tbaa !5
  %41 = sext i16 %40 to i32
  %42 = icmp slt i32 %39, %41
  %indvars.iv.next = add nuw nsw i32 %indvars.iv, 1
  br i1 %42, label %.lr.ph59.preheader, label %.preheader, !llvm.loop !15

._crit_edge74:                                    ; preds = %._crit_edge69, %.preheader
  %.2.lcssa = phi i64 [ %.0.lcssa, %.preheader ], [ %67, %._crit_edge69 ]
  %43 = icmp eq i64 %.2.lcssa, 0
  br i1 %43, label %70, label %69

.lr.ph73:                                         ; preds = %.preheader, %._crit_edge69
  %.272 = phi i64 [ %67, %._crit_edge69 ], [ %.0.lcssa, %.preheader ]
  %.04571 = phi i32 [ %68, %._crit_edge69 ], [ %.lcssa, %.preheader ]
  %44 = load i16, ptr %0, align 4, !tbaa !5
  %45 = sext i16 %44 to i32
  %46 = add nsw i32 %45, -1
  %47 = sub nsw i32 %.04571, %46
  %48 = icmp slt i32 %47, %45
  br i1 %48, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.lr.ph73, %.lr.ph68
  %.366 = phi i64 [ %58, %.lr.ph68 ], [ %.272, %.lr.ph73 ]
  %.04365 = phi i32 [ %60, %.lr.ph68 ], [ %47, %.lr.ph73 ]
  %.04464 = phi i32 [ %59, %.lr.ph68 ], [ %46, %.lr.ph73 ]
  %49 = add nsw i32 %.04464, %9
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %49)
  %51 = load i32, ptr %50, align 4, !tbaa !10
  %52 = add nsw i32 %.04365, %9
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %52)
  %54 = load i32, ptr %53, align 4, !tbaa !10
  %55 = zext i32 %51 to i64
  %56 = zext i32 %54 to i64
  %57 = mul nuw i64 %56, %55
  %58 = add i64 %57, %.366
  %59 = add nsw i32 %.04464, -1
  %60 = add nsw i32 %.04365, 1
  %61 = load i16, ptr %0, align 4, !tbaa !5
  %62 = sext i16 %61 to i32
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %.lr.ph68, label %._crit_edge69, !llvm.loop !16

._crit_edge69:                                    ; preds = %.lr.ph68, %.lr.ph73
  %.3.lcssa = phi i64 [ %.272, %.lr.ph73 ], [ %58, %.lr.ph68 ]
  %64 = trunc i64 %.3.lcssa to i32
  %65 = and i32 %64, 268435455
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN17double_conversion6Bignum8RawBigitEi(ptr noundef nonnull align 4 dereferenceable(516) %0, i32 noundef %.04571)
  store i32 %65, ptr %66, align 4, !tbaa !10
  %67 = lshr i64 %.3.lcssa, 28
  %68 = add nsw i32 %.04571, 1
  %exitcond81.not = icmp eq i32 %68, %7
  br i1 %exitcond81.not, label %._crit_edge74, label %.lr.ph73, !llvm.loop !17

69:                                               ; preds = %._crit_edge74
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 418, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum6SquareEv) #2
  unreachable

70:                                               ; preds = %._crit_edge74
  %71 = trunc i32 %7 to i16
  store i16 %71, ptr %0, align 4, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %0, i64 2
  %73 = load i16, ptr %72, align 2, !tbaa !18
  %74 = shl i16 %73, 1
  store i16 %74, ptr %72, align 2, !tbaa !18
  tail call void @_ZN17double_conversion6Bignum5ClampEv(ptr noundef nonnull align 4 dereferenceable(516) %0)
  ret void
}

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

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 = { 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 #2 = { 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, !7, i64 0}
!6 = !{!"_ZTSN17double_conversion6BignumE", !7, i64 0, !7, i64 2, !8, i64 4}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = !{!6, !7, i64 2}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass