; LLVM IR from iyinoluwamt/Tensorframe :: main/ios/Pods/DoubleConversion/double-conversion (double-conversion)

; 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::Double" = type { i64 }
%"class.double_conversion::DoubleToStringConverter" = type <{ i32, [4 x i8], ptr, ptr, i8, [3 x i8], i32, i32, i32, i32, [4 x i8] }>

@.str.3 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE = external hidden unnamed_addr constant [97 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter19HandleSpecialValuesEdPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44), double noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion13StringBuilder12AddCharacterEc(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef signext) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS0_8DtoaModeEiPciPbPiS4_(double noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN17double_conversionL3MaxIiEET_S1_S1_(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %0, double noundef %1, i32 noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.double_conversion::Double", align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca [121 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %21 = load double, ptr %7, align 8, !tbaa !9
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef %21)
  %22 = call noundef zeroext i1 @_ZNK17double_conversion6Double9IsSpecialEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br i1 %22, label %23, label %27

23:                                               ; preds = %4
  %24 = load double, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter19HandleSpecialValuesEdPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %20, double noundef %24, ptr noundef %25)
  store i1 %26, ptr %5, align 1
  br label %113

27:                                               ; preds = %4
  %28 = load i32, ptr %8, align 4, !tbaa !11
  %29 = icmp slt i32 %28, 1
  br i1 %29, label %33, label %30

30:                                               ; preds = %27
  %31 = load i32, ptr %8, align 4, !tbaa !11
  %32 = icmp sgt i32 %31, 120
  br i1 %32, label %33, label %34

33:                                               ; preds = %30, %27
  store i1 false, ptr %5, align 1
  br label %113

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 121, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 121, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %35 = load double, ptr %7, align 8, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !11
  %37 = getelementptr inbounds [121 x i8], ptr %14, i64 0, i64 0
  call void @_ZN17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS0_8DtoaModeEiPciPbPiS4_(double noundef %35, i32 noundef 3, i32 noundef %36, ptr noundef %37, i32 noundef 121, ptr noundef %12, ptr noundef %15, ptr noundef %11)
  %38 = load i32, ptr %15, align 4, !tbaa !11
  %39 = load i32, ptr %8, align 4, !tbaa !11
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  br label %44

42:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 306, ptr noundef @__PRETTY_FUNCTION__._ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE) #5
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %45 = getelementptr inbounds %"class.double_conversion::DoubleToStringConverter", ptr %20, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !13
  %47 = and i32 %46, 8
  %48 = icmp ne i32 %47, 0
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %16, align 1, !tbaa !15
  %50 = load i8, ptr %12, align 1, !tbaa !15, !range !17, !noundef !18
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %60

52:                                               ; preds = %44
  %53 = load double, ptr %7, align 8, !tbaa !9
  %54 = fcmp une double %53, 0.000000e+00
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  %56 = load i8, ptr %16, align 1, !tbaa !15, !range !17, !noundef !18
  %57 = trunc i8 %56 to i1
  br i1 %57, label %60, label %58

58:                                               ; preds = %55, %52
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN17double_conversion13StringBuilder12AddCharacterEc(ptr noundef nonnull align 8 dereferenceable(20) %59, i8 noundef signext 45)
  br label %60

60:                                               ; preds = %58, %55, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %61 = load i32, ptr %11, align 4, !tbaa !11
  %62 = sub nsw i32 %61, 1
  store i32 %62, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %63 = getelementptr inbounds %"class.double_conversion::DoubleToStringConverter", ptr %20, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !13
  %65 = and i32 %64, 4
  %66 = icmp ne i32 %65, 0
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, i32 1, i32 0
  store i32 %68, ptr %18, align 4, !tbaa !11
  %69 = load i32, ptr %11, align 4, !tbaa !11
  %70 = sub nsw i32 0, %69
  %71 = add nsw i32 %70, 1
  %72 = getelementptr inbounds %"class.double_conversion::DoubleToStringConverter", ptr %20, i32 0, i32 8
  %73 = load i32, ptr %72, align 4, !tbaa !19
  %74 = icmp sgt i32 %71, %73
  br i1 %74, label %84, label %75

75:                                               ; preds = %60
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = load i32, ptr %8, align 4, !tbaa !11
  %78 = sub nsw i32 %76, %77
  %79 = load i32, ptr %18, align 4, !tbaa !11
  %80 = add nsw i32 %78, %79
  %81 = getelementptr inbounds %"class.double_conversion::DoubleToStringConverter", ptr %20, i32 0, i32 9
  %82 = load i32, ptr %81, align 8, !tbaa !20
  %83 = icmp sgt i32 %80, %82
  br i1 %83, label %84, label %103

84:                                               ; preds = %75, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %85 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %85, ptr %19, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %95, %84
  %87 = load i32, ptr %19, align 4, !tbaa !11
  %88 = load i32, ptr %8, align 4, !tbaa !11
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %98

91:                                               ; preds = %86
  %92 = load i32, ptr %19, align 4, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [121 x i8], ptr %14, i64 0, i64 %93
  store i8 48, ptr %94, align 1, !tbaa !21
  br label %95

95:                                               ; preds = %91
  %96 = load i32, ptr %19, align 4, !tbaa !11
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %19, align 4, !tbaa !11
  br label %86, !llvm.loop !22

98:                                               ; preds = %90
  %99 = getelementptr inbounds [121 x i8], ptr %14, i64 0, i64 0
  %100 = load i32, ptr %8, align 4, !tbaa !11
  %101 = load i32, ptr %17, align 4, !tbaa !11
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK17double_conversion23DoubleToStringConverter31CreateExponentialRepresentationEPKciiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %20, ptr noundef %99, i32 noundef %100, i32 noundef %101, ptr noundef %102)
  br label %112

103:                                              ; preds = %75
  %104 = getelementptr inbounds [121 x i8], ptr %14, i64 0, i64 0
  %105 = load i32, ptr %15, align 4, !tbaa !11
  %106 = load i32, ptr %11, align 4, !tbaa !11
  %107 = load i32, ptr %8, align 4, !tbaa !11
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = sub nsw i32 %107, %108
  %110 = call noundef i32 @_ZN17double_conversionL3MaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %109)
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK17double_conversion23DoubleToStringConverter27CreateDecimalRepresentationEPKciiiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %20, ptr noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %110, ptr noundef %111)
  br label %112

112:                                              ; preds = %103, %98
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 121, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %113

113:                                              ; preds = %112, %33, %23
  %114 = load i1, ptr %5, align 1
  ret i1 %114
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN17double_conversion23DoubleToStringConverterE", !12, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!14, !12, i64 36}
!20 = !{!14, !12, i64 40}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

%"class.double_conversion::Double" = type { i64 }

@.str.3 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE = external hidden unnamed_addr constant [97 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter19HandleSpecialValuesEdPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44), double noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion13StringBuilder12AddCharacterEc(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17double_conversion23DoubleToStringConverter31CreateExponentialRepresentationEPKciiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17double_conversion23DoubleToStringConverter27CreateDecimalRepresentationEPKciiiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS0_8DtoaModeEiPciPbPiS4_(double noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN17double_conversionL3MaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %0, double noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %"class.double_conversion::Double", align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca [121 x i8], align 16
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %1)
  %10 = call noundef zeroext i1 @_ZNK17double_conversion6Double9IsSpecialEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br i1 %10, label %11, label %13

11:                                               ; preds = %4
  %12 = call noundef zeroext i1 @_ZNK17double_conversion23DoubleToStringConverter19HandleSpecialValuesEdPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %0, double noundef %1, ptr noundef %3)
  br label %52

13:                                               ; preds = %4
  %14 = add i32 %2, -121
  %or.cond = icmp ult i32 %14, -120
  br i1 %or.cond, label %52, label %15

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 121, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @_ZN17double_conversion23DoubleToStringConverter13DoubleToAsciiEdNS0_8DtoaModeEiPciPbPiS4_(double noundef %1, i32 noundef 3, i32 noundef %2, ptr noundef nonnull %8, i32 noundef 121, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %6)
  %16 = load i32, ptr %9, align 4, !tbaa !5
  %.not = icmp sgt i32 %16, %2
  br i1 %.not, label %17, label %18

17:                                               ; preds = %15
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 306, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE) #6
  unreachable

18:                                               ; preds = %15
  %19 = load i32, ptr %0, align 8, !tbaa !9
  %20 = and i32 %19, 8
  %.not26 = icmp eq i32 %20, 0
  %21 = load i8, ptr %7, align 1, !tbaa !12, !range !14, !noundef !15
  %22 = trunc nuw i8 %21 to i1
  %23 = fcmp une double %1, 0.000000e+00
  %brmerge = select i1 %23, i1 true, i1 %.not26
  %or.cond28 = select i1 %22, i1 %brmerge, i1 false
  br i1 %or.cond28, label %24, label %25

24:                                               ; preds = %18
  call void @_ZN17double_conversion13StringBuilder12AddCharacterEc(ptr noundef nonnull align 8 dereferenceable(20) %3, i8 noundef signext 45)
  br label %25

25:                                               ; preds = %24, %18
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  %28 = sub i32 1, %26
  %29 = getelementptr inbounds i8, ptr %0, i64 36
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = icmp sgt i32 %28, %30
  br i1 %31, label %._crit_edge31, label %32

._crit_edge31:                                    ; preds = %25
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %40

32:                                               ; preds = %25
  %33 = load i32, ptr %0, align 8, !tbaa !9
  %34 = lshr i32 %33, 2
  %.lobit = and i32 %34, 1
  %35 = sub i32 %26, %2
  %36 = add nsw i32 %35, %.lobit
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = load i32, ptr %37, align 8, !tbaa !17
  %39 = icmp sgt i32 %36, %38
  %.pre32 = load i32, ptr %9, align 4, !tbaa !5
  br i1 %39, label %40, label %48

40:                                               ; preds = %._crit_edge31, %32
  %41 = phi i32 [ %.pre, %._crit_edge31 ], [ %.pre32, %32 ]
  %42 = icmp slt i32 %41, %2
  br i1 %42, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %40
  %43 = sext i32 %41 to i64
  %scevgep = getelementptr i8, ptr %8, i64 %43
  %44 = xor i32 %41, -1
  %45 = add i32 %44, %2
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %scevgep, i8 48, i64 %47, i1 false), !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %40
  call void @_ZNK17double_conversion23DoubleToStringConverter31CreateExponentialRepresentationEPKciiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull %8, i32 noundef %2, i32 noundef %27, ptr noundef %3)
  br label %51

48:                                               ; preds = %32
  %49 = sub nsw i32 %2, %26
  %50 = call noundef i32 @_ZN17double_conversionL3MaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %49)
  call void @_ZNK17double_conversion23DoubleToStringConverter27CreateDecimalRepresentationEPKciiiPNS_13StringBuilderE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull %8, i32 noundef %.pre32, i32 noundef %26, i32 noundef %50, ptr noundef %3)
  br label %51

51:                                               ; preds = %48, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 121, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %52

52:                                               ; preds = %13, %51, %11
  %.024 = phi i1 [ %12, %11 ], [ true, %51 ], [ false, %13 ]
  ret i1 %.024
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN17double_conversion23DoubleToStringConverterE", !6, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !6, i64 36}
!17 = !{!10, !6, i64 40}
!18 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass