; LLVM IR from iyinoluwamt/Tensorframe :: main/ios/Pods/DoubleConversion/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 { [128 x i32], %"class.double_conversion::Vector", i32, i32 }
%"class.double_conversion::Vector" = type <{ ptr, i32, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.2 = 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.8 = external hidden unnamed_addr constant [17 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 nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 8 dereferenceable(536)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 8 dereferenceable(536) %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 8 dereferenceable(536) %17)
  br i1 %18, label %19, label %20

19:                                               ; preds = %1
  br label %22

20:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 341, 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 2
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = mul nsw i32 2, %24
  store i32 %25, ptr %3, align 4, !tbaa !13
  %26 = load i32, ptr %3, align 4, !tbaa !13
  call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536) %17, i32 noundef %26)
  %27 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp sle i32 256, %28
  br i1 %29, label %30, label %31

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

31:                                               ; 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
  %32 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !9
  store i32 %33, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %34

34:                                               ; preds = %50, %31
  %35 = load i32, ptr %6, align 4, !tbaa !13
  %36 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %34
  %41 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 1
  %42 = load i32, ptr %6, align 4, !tbaa !13
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %41, i32 noundef %42)
  %44 = load i32, ptr %43, align 4, !tbaa !13
  %45 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 1
  %46 = load i32, ptr %5, align 4, !tbaa !13
  %47 = load i32, ptr %6, align 4, !tbaa !13
  %48 = add nsw i32 %46, %47
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %45, i32 noundef %48)
  store i32 %44, ptr %49, align 4, !tbaa !13
  br label %50

50:                                               ; preds = %40
  %51 = load i32, ptr %6, align 4, !tbaa !13
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %6, align 4, !tbaa !13
  br label %34, !llvm.loop !16

53:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %54

54:                                               ; preds = %98, %53
  %55 = load i32, ptr %7, align 4, !tbaa !13
  %56 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = icmp slt i32 %55, %57
  br i1 %58, label %60, label %59

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

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %61 = load i32, ptr %7, align 4, !tbaa !13
  store i32 %61, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %62

62:                                               ; preds = %65, %60
  %63 = load i32, ptr %8, align 4, !tbaa !13
  %64 = icmp sge i32 %63, 0
  br i1 %64, label %65, label %89

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

89:                                               ; preds = %62
  %90 = load i64, ptr %4, align 8, !tbaa !14
  %91 = trunc i64 %90 to i32
  %92 = and i32 %91, 268435455
  %93 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 1
  %94 = load i32, ptr %7, align 4, !tbaa !13
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %93, i32 noundef %94)
  store i32 %92, ptr %95, align 4, !tbaa !13
  %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 = %89
  %99 = load i32, ptr %7, align 4, !tbaa !13
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %7, align 4, !tbaa !13
  br label %54, !llvm.loop !19

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

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

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

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

116:                                              ; preds = %121, %109
  %117 = load i32, ptr %14, align 4, !tbaa !13
  %118 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !9
  %120 = icmp slt i32 %117, %119
  br i1 %120, label %121, label %145

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

145:                                              ; preds = %116
  %146 = load i64, ptr %4, align 8, !tbaa !14
  %147 = trunc i64 %146 to i32
  %148 = and i32 %147, 268435455
  %149 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 1
  %150 = load i32, ptr %12, align 4, !tbaa !13
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %149, i32 noundef %150)
  store i32 %148, ptr %151, align 4, !tbaa !13
  %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 = %145
  %155 = load i32, ptr %12, align 4, !tbaa !13
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %12, align 4, !tbaa !13
  br label %104, !llvm.loop !21

157:                                              ; preds = %108
  %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.8, ptr noundef @.str.1, i32 noundef 403, 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 !13
  %165 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 2
  store i32 %164, ptr %165, align 8, !tbaa !9
  %166 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %17, i32 0, i32 3
  %167 = load i32, ptr %166, align 4, !tbaa !22
  %168 = mul nsw i32 %167, 2
  store i32 %168, ptr %166, align 4, !tbaa !22
  call void @_ZN17double_conversion6Bignum5ClampEv(ptr noundef nonnull align 8 dereferenceable(536) %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() #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 = { 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 #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, !12, i64 528}
!10 = !{!"_ZTSN17double_conversion6BignumE", !7, i64 0, !11, i64 512, !12, i64 528, !12, i64 532}
!11 = !{!"_ZTSN17double_conversion6VectorIjEE", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, 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, !12, i64 532}


; 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 [116 x i8], align 1
@.str.2 = 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.8 = 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 @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12), 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_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum5ClampEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #2 align 2

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

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

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 528
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = shl nsw i32 %6, 1
  tail call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536) %0, i32 noundef %7)
  %8 = load i32, ptr %5, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 255
  br i1 %9, label %12, label %.preheader54

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

.lr.ph:                                           ; preds = %.preheader54
  %11 = getelementptr inbounds i8, ptr %0, i64 512
  br label %15

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

.preheader53:                                     ; preds = %15
  %13 = icmp sgt i32 %21, 0
  br i1 %13, label %.preheader52.lr.ph, label %.preheader

.preheader52.lr.ph:                               ; preds = %.preheader53
  %14 = getelementptr inbounds i8, ptr %0, i64 512
  br label %.lr.ph59.preheader

15:                                               ; preds = %.lr.ph, %15
  %.04255 = phi i32 [ 0, %.lr.ph ], [ %20, %15 ]
  %16 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %.04255)
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = add nuw nsw i32 %.04255, %8
  %19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %18)
  store i32 %17, ptr %19, align 4, !tbaa !12
  %20 = add nuw nsw i32 %.04255, 1
  %21 = load i32, ptr %5, align 8, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %15, label %.preheader53, !llvm.loop !13

.lr.ph59.preheader:                               ; preds = %._crit_edge, %.preheader52.lr.ph
  %indvars.iv = phi i32 [ 1, %.preheader52.lr.ph ], [ %indvars.iv.next, %._crit_edge ]
  %.061 = phi i64 [ 0, %.preheader52.lr.ph ], [ %40, %._crit_edge ]
  %.04660 = phi i32 [ 0, %.preheader52.lr.ph ], [ %41, %._crit_edge ]
  br label %.lr.ph59

.preheader:                                       ; preds = %._crit_edge, %.preheader54, %.preheader53
  %.0.lcssa = phi i64 [ 0, %.preheader53 ], [ 0, %.preheader54 ], [ %40, %._crit_edge ]
  %.lcssa = phi i32 [ %21, %.preheader53 ], [ %8, %.preheader54 ], [ %42, %._crit_edge ]
  %23 = icmp slt i32 %.lcssa, %7
  br i1 %23, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %.preheader
  %24 = getelementptr inbounds i8, ptr %0, i64 512
  br label %45

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

._crit_edge:                                      ; preds = %.lr.ph59
  %37 = trunc i64 %34 to i32
  %38 = and i32 %37, 268435455
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %14, i32 noundef %.04660)
  store i32 %38, ptr %39, align 4, !tbaa !12
  %40 = lshr i64 %34, 28
  %41 = add nuw nsw i32 %.04660, 1
  %42 = load i32, ptr %5, align 8, !tbaa !5
  %43 = icmp slt i32 %41, %42
  %indvars.iv.next = add nuw i32 %indvars.iv, 1
  br i1 %43, label %.lr.ph59.preheader, label %.preheader, !llvm.loop !16

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

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

.lr.ph68:                                         ; preds = %45, %.lr.ph68
  %.366 = phi i64 [ %59, %.lr.ph68 ], [ %.272, %45 ]
  %.04365 = phi i32 [ %61, %.lr.ph68 ], [ %48, %45 ]
  %.04464 = phi i32 [ %60, %.lr.ph68 ], [ %47, %45 ]
  %50 = add nsw i32 %.04464, %8
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %24, i32 noundef %50)
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = add nsw i32 %.04365, %8
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %24, i32 noundef %53)
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = zext i32 %52 to i64
  %57 = zext i32 %55 to i64
  %58 = mul nuw i64 %57, %56
  %59 = add i64 %58, %.366
  %60 = add nsw i32 %.04464, -1
  %61 = add nsw i32 %.04365, 1
  %62 = load i32, ptr %5, align 8, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %.lr.ph68, label %._crit_edge69, !llvm.loop !17

._crit_edge69:                                    ; preds = %.lr.ph68, %45
  %.3.lcssa = phi i64 [ %.272, %45 ], [ %59, %.lr.ph68 ]
  %64 = trunc i64 %.3.lcssa to i32
  %65 = and i32 %64, 268435455
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %24, i32 noundef %.04571)
  store i32 %65, ptr %66, align 4, !tbaa !12
  %67 = lshr i64 %.3.lcssa, 28
  %68 = add i32 %.04571, 1
  %exitcond81.not = icmp eq i32 %68, %7
  br i1 %exitcond81.not, label %._crit_edge74, label %45, !llvm.loop !18

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

70:                                               ; preds = %._crit_edge74
  store i32 %7, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %0, i64 532
  %72 = load i32, ptr %71, align 4, !tbaa !19
  %73 = shl nsw i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !19
  tail call void @_ZN17double_conversion6Bignum5ClampEv(ptr noundef nonnull align 8 dereferenceable(536) %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 = { 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 #3 = { 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, !11, i64 528}
!6 = !{!"_ZTSN17double_conversion6BignumE", !7, i64 0, !9, i64 512, !11, i64 528, !11, i64 532}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTSN17double_conversion6VectorIjEE", !10, i64 0, !11, i64 8}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!6, !11, i64 532}


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