; 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__._ZNK17double_conversion6Bignum11ToHexStringEPci = external hidden unnamed_addr constant [63 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 8 dereferenceable(536)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum11ToHexStringEPci(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %1, i32 noundef %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8
  %19 = call noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 8 dereferenceable(536) %18)
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  br label %23

21:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 572, ptr noundef @__PRETTY_FUNCTION__._ZNK17double_conversion6Bignum11ToHexStringEPci) #4
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 7, ptr %8, align 4, !tbaa !9
  %24 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !11
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %36

27:                                               ; preds = %23
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 2
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %143

31:                                               ; preds = %27
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 0
  store i8 48, ptr %33, align 1, !tbaa !14
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  store i8 0, ptr %35, align 1, !tbaa !14
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %143

36:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %37 = call noundef i32 @_ZNK17double_conversion6Bignum11BigitLengthEv(ptr noundef nonnull align 8 dereferenceable(536) %18)
  %38 = sub nsw i32 %37, 1
  %39 = mul nsw i32 %38, 7
  %40 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 1
  %41 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !11
  %43 = sub nsw i32 %42, 1
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %40, i32 noundef %43)
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = call noundef i32 @_ZN17double_conversionL14SizeInHexCharsIjEEiT_(i32 noundef %45)
  %47 = add nsw i32 %39, %46
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %36
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %142

53:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  store i32 %55, ptr %11, align 4, !tbaa !9
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = add nsw i32 %57, -1
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds i8, ptr %56, i64 %59
  store i8 0, ptr %60, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %82, %53
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %61
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %85

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

68:                                               ; preds = %78, %67
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = icmp slt i32 %69, 7
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %81

72:                                               ; preds = %68
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %11, align 4, !tbaa !9
  %76 = sext i32 %74 to i64
  %77 = getelementptr inbounds i8, ptr %73, i64 %76
  store i8 48, ptr %77, align 1, !tbaa !14
  br label %78

78:                                               ; preds = %72
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !9
  br label %68, !llvm.loop !16

81:                                               ; preds = %71
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !9
  br label %61, !llvm.loop !18

85:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %117, %85
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !11
  %90 = sub nsw i32 %89, 1
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %120

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %94 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 1
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %94, i32 noundef %95)
  %97 = load i32, ptr %96, align 4, !tbaa !9
  store i32 %97, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %113, %93
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 7
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %116

102:                                              ; preds = %98
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = and i32 %103, 15
  %105 = call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %104)
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %11, align 4, !tbaa !9
  %109 = sext i32 %107 to i64
  %110 = getelementptr inbounds i8, ptr %106, i64 %109
  store i8 %105, ptr %110, align 1, !tbaa !14
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = lshr i32 %111, 4
  store i32 %112, ptr %15, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %102
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %16, align 4, !tbaa !9
  br label %98, !llvm.loop !19

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

117:                                              ; preds = %116
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %14, align 4, !tbaa !9
  br label %86, !llvm.loop !20

120:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %121 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 1
  %122 = getelementptr inbounds %"class.double_conversion::Bignum", ptr %18, i32 0, i32 2
  %123 = load i32, ptr %122, align 8, !tbaa !11
  %124 = sub nsw i32 %123, 1
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %121, i32 noundef %124)
  %126 = load i32, ptr %125, align 4, !tbaa !9
  store i32 %126, ptr %17, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %130, %120
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %141

130:                                              ; preds = %127
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = and i32 %131, 15
  %133 = call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %132)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = add nsw i32 %135, -1
  store i32 %136, ptr %11, align 4, !tbaa !9
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds i8, ptr %134, i64 %137
  store i8 %133, ptr %138, align 1, !tbaa !14
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = lshr i32 %139, 4
  store i32 %140, ptr %17, align 4, !tbaa !9
  br label %127, !llvm.loop !21

141:                                              ; preds = %127
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %142

142:                                              ; preds = %141, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %143

143:                                              ; preds = %142, %31, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %144 = load i1, ptr %4, align 1
  ret i1 %144
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN17double_conversionL14SizeInHexCharsIjEEiT_(i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef) #1

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 528}
!12 = !{!"_ZTSN17double_conversion6BignumE", !7, i64 0, !13, i64 512, !10, i64 528, !10, i64 532}
!13 = !{!"_ZTSN17double_conversion6VectorIjEE", !6, i64 0, !10, i64 8}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !10, i64 532}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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__._ZNK17double_conversion6Bignum11ToHexStringEPci = external hidden unnamed_addr constant [63 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 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK17double_conversion6Bignum11BigitLengthEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK17double_conversion6Bignum11ToHexStringEPci(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = tail call noundef zeroext i1 @_ZNK17double_conversion6Bignum9IsClampedEv(ptr noundef nonnull align 8 dereferenceable(536) %0)
  br i1 %4, label %6, label %5

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

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 528
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %14

10:                                               ; preds = %6
  %11 = icmp slt i32 %2, 2
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %10
  store i8 48, ptr %1, align 1, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 0, ptr %13, align 1, !tbaa !12
  br label %.loopexit

14:                                               ; preds = %6
  %15 = tail call noundef i32 @_ZNK17double_conversion6Bignum11BigitLengthEv(ptr noundef nonnull align 8 dereferenceable(536) %0)
  %16 = mul i32 %15, 7
  %17 = add i32 %16, -7
  %18 = getelementptr inbounds i8, ptr %0, i64 512
  %19 = load i32, ptr %7, align 8, !tbaa !5
  %20 = add nsw i32 %19, -1
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %18, i32 noundef %20)
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = tail call noundef i32 @_ZN17double_conversionL14SizeInHexCharsIjEEiT_(i32 noundef %22)
  %24 = add nsw i32 %17, %23
  %.not = icmp slt i32 %24, %2
  br i1 %.not, label %25, label %.loopexit

25:                                               ; preds = %14
  %26 = add nsw i32 %24, -1
  %27 = sext i32 %24 to i64
  %28 = getelementptr inbounds i8, ptr %1, i64 %27
  store i8 0, ptr %28, align 1, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %0, i64 532
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.preheader39.preheader, label %.preheader

.preheader39.preheader:                           ; preds = %25
  %scevgep = getelementptr i8, ptr %1, i64 -6
  br label %.preheader39

.preheader39:                                     ; preds = %.preheader39.preheader, %.preheader39
  %.03343 = phi i32 [ %34, %.preheader39 ], [ 0, %.preheader39.preheader ]
  %.03442 = phi i32 [ %33, %.preheader39 ], [ %26, %.preheader39.preheader ]
  %32 = sext i32 %.03442 to i64
  %scevgep59 = getelementptr i8, ptr %scevgep, i64 %32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %scevgep59, i8 48, i64 7, i1 false), !tbaa !12
  %33 = add i32 %.03442, -7
  %34 = add nuw nsw i32 %.03343, 1
  %35 = load i32, ptr %29, align 4, !tbaa !14
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %.preheader39, label %.preheader, !llvm.loop !15

.preheader:                                       ; preds = %.preheader39, %25
  %.034.lcssa = phi i32 [ %26, %25 ], [ %33, %.preheader39 ]
  %37 = load i32, ptr %7, align 8, !tbaa !5
  %38 = add nsw i32 %37, -1
  %39 = icmp sgt i32 %37, 1
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %invariant.gep = getelementptr i8, ptr %1, i64 -1
  %invariant.gep66 = getelementptr i8, ptr %1, i64 -2
  %invariant.gep68 = getelementptr i8, ptr %1, i64 -3
  %invariant.gep70 = getelementptr i8, ptr %1, i64 -4
  %invariant.gep72 = getelementptr i8, ptr %1, i64 -5
  %invariant.gep74 = getelementptr i8, ptr %1, i64 -6
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.2.lcssa = phi i32 [ %.034.lcssa, %.preheader ], [ %indvars.iv.next.6, %.lr.ph ]
  %.lcssa = phi i32 [ %38, %.preheader ], [ %69, %.lr.ph ]
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %18, i32 noundef %.lcssa)
  %41 = load i32, ptr %40, align 4, !tbaa !13
  %.not3851 = icmp eq i32 %41, 0
  br i1 %.not3851, label %.loopexit, label %.lr.ph55.preheader

.lr.ph55.preheader:                               ; preds = %._crit_edge
  %42 = sext i32 %.2.lcssa to i64
  br label %.lr.ph55

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.03148 = phi i32 [ %67, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.247 = phi i32 [ %indvars.iv.next.6, %.lr.ph ], [ %.034.lcssa, %.lr.ph.preheader ]
  %43 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK17double_conversion6VectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(12) %18, i32 noundef %.03148)
  %44 = load i32, ptr %43, align 4, !tbaa !13
  %45 = sext i32 %.247 to i64
  %46 = and i32 %44, 15
  %47 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %1, i64 %45
  store i8 %47, ptr %48, align 1, !tbaa !12
  %49 = lshr i32 %44, 4
  %50 = and i32 %49, 15
  %51 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %50)
  %gep = getelementptr i8, ptr %invariant.gep, i64 %45
  store i8 %51, ptr %gep, align 1, !tbaa !12
  %52 = lshr i32 %44, 8
  %53 = and i32 %52, 15
  %54 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %53)
  %gep67 = getelementptr i8, ptr %invariant.gep66, i64 %45
  store i8 %54, ptr %gep67, align 1, !tbaa !12
  %55 = lshr i32 %44, 12
  %56 = and i32 %55, 15
  %57 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %56)
  %gep69 = getelementptr i8, ptr %invariant.gep68, i64 %45
  store i8 %57, ptr %gep69, align 1, !tbaa !12
  %58 = lshr i32 %44, 16
  %59 = and i32 %58, 15
  %60 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %59)
  %gep71 = getelementptr i8, ptr %invariant.gep70, i64 %45
  store i8 %60, ptr %gep71, align 1, !tbaa !12
  %61 = lshr i32 %44, 20
  %62 = and i32 %61, 15
  %63 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %62)
  %gep73 = getelementptr i8, ptr %invariant.gep72, i64 %45
  store i8 %63, ptr %gep73, align 1, !tbaa !12
  %64 = lshr i32 %44, 24
  %65 = and i32 %64, 15
  %66 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %65)
  %indvars.iv.next.6 = add i32 %.247, -7
  %gep75 = getelementptr i8, ptr %invariant.gep74, i64 %45
  store i8 %66, ptr %gep75, align 1, !tbaa !12
  %67 = add nuw nsw i32 %.03148, 1
  %68 = load i32, ptr %7, align 8, !tbaa !5
  %69 = add nsw i32 %68, -1
  %70 = icmp slt i32 %67, %69
  br i1 %70, label %.lr.ph, label %._crit_edge, !llvm.loop !17

.lr.ph55:                                         ; preds = %.lr.ph55.preheader, %.lr.ph55
  %indvars.iv = phi i64 [ %42, %.lr.ph55.preheader ], [ %indvars.iv.next62, %.lr.ph55 ]
  %.053 = phi i32 [ %41, %.lr.ph55.preheader ], [ %74, %.lr.ph55 ]
  %71 = and i32 %.053, 15
  %72 = tail call noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef %71)
  %indvars.iv.next62 = add nsw i64 %indvars.iv, -1
  %73 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 %72, ptr %73, align 1, !tbaa !12
  %74 = lshr i32 %.053, 4
  %.not38 = icmp ult i32 %.053, 16
  br i1 %.not38, label %.loopexit, label %.lr.ph55, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph55, %._crit_edge, %14, %10, %12
  %.136 = phi i1 [ true, %12 ], [ false, %10 ], [ false, %14 ], [ true, %._crit_edge ], [ true, %.lr.ph55 ]
  ret i1 %.136
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN17double_conversionL14SizeInHexCharsIjEEiT_(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef signext i8 @_ZN17double_conversionL14HexCharOfValueEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!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 = !{!7, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !11, i64 532}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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