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

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

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [111 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 void @_ZN17double_conversion6VectorIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN17double_conversionL10TrimAndCutENS_6VectorIKcEEiPciPS2_Pi(ptr, i32, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr, i32, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8), double noundef) unnamed_addr #2 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: mustprogress uwtable
declare hidden noundef i32 @_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE(ptr, i32, i32 noundef, i64, i32) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN17double_conversion6StrtofENS_6VectorIKcEEi(ptr %0, i32 %1, i32 noundef %2) #2 {
  %4 = alloca float, align 4
  %5 = alloca %"class.double_conversion::Vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca [780 x i8], align 16
  %8 = alloca %"class.double_conversion::Vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.double_conversion::Vector", align 8
  %11 = alloca double, align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.double_conversion::Vector", align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.double_conversion::Double", align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.double_conversion::Double", align 8
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca double, align 8
  %25 = alloca %"class.double_conversion::Double", align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca %"class.double_conversion::DiyFp", align 8
  %29 = alloca float, align 4
  %30 = alloca %"class.double_conversion::DiyFp", align 8
  %31 = alloca %"class.double_conversion::Double", align 8
  %32 = alloca { i64, i32 }, align 8
  %33 = alloca %"class.double_conversion::DiyFp", align 8
  %34 = alloca %"class.double_conversion::Single", align 4
  %35 = alloca { i64, i32 }, align 8
  %36 = alloca i32, align 4
  %37 = alloca %"class.double_conversion::Vector", align 8
  %38 = alloca %"class.double_conversion::DiyFp", align 8
  %39 = alloca %"class.double_conversion::Single", align 4
  %40 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  store ptr %0, ptr %40, align 8
  %41 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  store i32 %1, ptr %41, align 8
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 780, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @_ZN17double_conversion6VectorIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %5, i64 16, i1 false), !tbaa.struct !9
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = getelementptr inbounds [780 x i8], ptr %7, i64 0, i64 0
  %44 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %47 = load i32, ptr %46, align 8
  call void @_ZN17double_conversionL10TrimAndCutENS_6VectorIKcEEiPciPS2_Pi(ptr %45, i32 %47, i32 noundef %42, ptr noundef %43, i32 noundef 780, ptr noundef %8, ptr noundef %9)
  %48 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %48, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !9
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %53 = load i32, ptr %52, align 8
  %54 = call noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr %51, i32 %53, i32 noundef %49, ptr noundef %11)
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %12, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %56 = load double, ptr %11, align 8, !tbaa !14
  %57 = fptrunc double %56 to float
  store float %57, ptr %14, align 4, !tbaa !16
  %58 = load float, ptr %14, align 4, !tbaa !16
  %59 = fpext float %58 to double
  %60 = load double, ptr %11, align 8, !tbaa !14
  %61 = fcmp oeq double %59, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %3
  %63 = load float, ptr %14, align 4, !tbaa !16
  store float %63, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %193

64:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %65 = load double, ptr %11, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %65)
  %66 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  store double %66, ptr %16, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %67 = load double, ptr %11, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %19, double noundef %67)
  %68 = call noundef double @_ZNK17double_conversion6Double14PreviousDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  store double %68, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %69 = load double, ptr %18, align 8, !tbaa !14
  %70 = fptrunc double %69 to float
  store float %70, ptr %20, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %71 = load float, ptr %14, align 4, !tbaa !16
  store float %71, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %72 = load double, ptr %16, align 8, !tbaa !14
  %73 = fptrunc double %72 to float
  store float %73, ptr %22, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %74 = load i8, ptr %12, align 1, !tbaa !12, !range !18, !noundef !19
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %78

76:                                               ; preds = %64
  %77 = load float, ptr %22, align 4, !tbaa !16
  store float %77, ptr %23, align 4, !tbaa !16
  br label %83

78:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %79 = load double, ptr %16, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %25, double noundef %79)
  %80 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  store double %80, ptr %24, align 8, !tbaa !14
  %81 = load double, ptr %24, align 8, !tbaa !14
  %82 = fptrunc double %81 to float
  store float %82, ptr %23, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %83

83:                                               ; preds = %78, %76
  %84 = load float, ptr %20, align 4, !tbaa !16
  %85 = load float, ptr %21, align 4, !tbaa !16
  %86 = fcmp ole float %84, %85
  br i1 %86, label %87, label %95

87:                                               ; preds = %83
  %88 = load float, ptr %21, align 4, !tbaa !16
  %89 = load float, ptr %22, align 4, !tbaa !16
  %90 = fcmp ole float %88, %89
  br i1 %90, label %91, label %95

91:                                               ; preds = %87
  %92 = load float, ptr %22, align 4, !tbaa !16
  %93 = load float, ptr %23, align 4, !tbaa !16
  %94 = fcmp ole float %92, %93
  br label %95

95:                                               ; preds = %91, %87, %83
  %96 = phi i1 [ false, %87 ], [ false, %83 ], [ %94, %91 ]
  br i1 %96, label %97, label %98

97:                                               ; preds = %95
  br label %100

98:                                               ; preds = %95
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 519, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi) #6
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  %101 = load float, ptr %20, align 4, !tbaa !16
  %102 = load float, ptr %23, align 4, !tbaa !16
  %103 = fcmp oeq float %101, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = load float, ptr %14, align 4, !tbaa !16
  store float %105, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %192

106:                                              ; preds = %100
  %107 = load float, ptr %20, align 4, !tbaa !16
  %108 = load float, ptr %21, align 4, !tbaa !16
  %109 = fcmp une float %107, %108
  br i1 %109, label %110, label %118

110:                                              ; preds = %106
  %111 = load float, ptr %21, align 4, !tbaa !16
  %112 = load float, ptr %22, align 4, !tbaa !16
  %113 = fcmp oeq float %111, %112
  br i1 %113, label %114, label %118

114:                                              ; preds = %110
  %115 = load float, ptr %22, align 4, !tbaa !16
  %116 = load float, ptr %23, align 4, !tbaa !16
  %117 = fcmp oeq float %115, %116
  br i1 %117, label %144, label %118

118:                                              ; preds = %114, %110, %106
  %119 = load float, ptr %20, align 4, !tbaa !16
  %120 = load float, ptr %21, align 4, !tbaa !16
  %121 = fcmp oeq float %119, %120
  br i1 %121, label %122, label %130

122:                                              ; preds = %118
  %123 = load float, ptr %21, align 4, !tbaa !16
  %124 = load float, ptr %22, align 4, !tbaa !16
  %125 = fcmp une float %123, %124
  br i1 %125, label %126, label %130

126:                                              ; preds = %122
  %127 = load float, ptr %22, align 4, !tbaa !16
  %128 = load float, ptr %23, align 4, !tbaa !16
  %129 = fcmp oeq float %127, %128
  br i1 %129, label %144, label %130

130:                                              ; preds = %126, %122, %118
  %131 = load float, ptr %20, align 4, !tbaa !16
  %132 = load float, ptr %21, align 4, !tbaa !16
  %133 = fcmp oeq float %131, %132
  br i1 %133, label %134, label %142

134:                                              ; preds = %130
  %135 = load float, ptr %21, align 4, !tbaa !16
  %136 = load float, ptr %22, align 4, !tbaa !16
  %137 = fcmp oeq float %135, %136
  br i1 %137, label %138, label %142

138:                                              ; preds = %134
  %139 = load float, ptr %22, align 4, !tbaa !16
  %140 = load float, ptr %23, align 4, !tbaa !16
  %141 = fcmp une float %139, %140
  br label %142

142:                                              ; preds = %138, %134, %130
  %143 = phi i1 [ false, %134 ], [ false, %130 ], [ %141, %138 ]
  br label %144

144:                                              ; preds = %142, %126, %114
  %145 = phi i1 [ true, %126 ], [ true, %114 ], [ %143, %142 ]
  br i1 %145, label %146, label %147

146:                                              ; preds = %144
  br label %149

147:                                              ; preds = %144
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 529, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi) #6
  unreachable

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148, %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %150 = load float, ptr %20, align 4, !tbaa !16
  store float %150, ptr %26, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %151 = load float, ptr %23, align 4, !tbaa !16
  store float %151, ptr %27, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %28)
  %152 = load float, ptr %26, align 4, !tbaa !16
  %153 = fcmp oeq float %152, 0.000000e+00
  br i1 %153, label %154, label %159

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store float 0x36A0000000000000, ptr %29, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %155 = load float, ptr %29, align 4, !tbaa !16
  %156 = fpext float %155 to double
  %157 = fdiv double %156, 2.000000e+00
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %31, double noundef %157)
  %158 = call { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  store { i64, i32 } %158, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %30, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %162

159:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %160 = load float, ptr %26, align 4, !tbaa !16
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %34, float noundef %160)
  %161 = call { i64, i32 } @_ZNK17double_conversion6Single13UpperBoundaryEv(ptr noundef nonnull align 4 dereferenceable(4) %34)
  store { i64, i32 } %161, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %33, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  br label %162

162:                                              ; preds = %159, %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !9
  %163 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !20
  %164 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8
  %166 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 1
  %167 = load i32, ptr %166, align 8
  %168 = getelementptr inbounds { i64, i32 }, ptr %38, i32 0, i32 0
  %169 = load i64, ptr %168, align 8
  %170 = getelementptr inbounds { i64, i32 }, ptr %38, i32 0, i32 1
  %171 = load i32, ptr %170, align 8
  %172 = call noundef i32 @_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE(ptr %165, i32 %167, i32 noundef %163, i64 %169, i32 %171)
  store i32 %172, ptr %36, align 4, !tbaa !5
  %173 = load i32, ptr %36, align 4, !tbaa !5
  %174 = icmp slt i32 %173, 0
  br i1 %174, label %175, label %177

175:                                              ; preds = %162
  %176 = load float, ptr %26, align 4, !tbaa !16
  store float %176, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %191

177:                                              ; preds = %162
  %178 = load i32, ptr %36, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %180, label %182

180:                                              ; preds = %177
  %181 = load float, ptr %27, align 4, !tbaa !16
  store float %181, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %191

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %183 = load float, ptr %26, align 4, !tbaa !16
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %39, float noundef %183)
  %184 = call noundef i32 @_ZNK17double_conversion6Single11SignificandEv(ptr noundef nonnull align 4 dereferenceable(4) %39)
  %185 = and i32 %184, 1
  %186 = icmp eq i32 %185, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br i1 %186, label %187, label %189

187:                                              ; preds = %182
  %188 = load float, ptr %26, align 4, !tbaa !16
  store float %188, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %191

189:                                              ; preds = %182
  %190 = load float, ptr %27, align 4, !tbaa !16
  store float %190, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %191

191:                                              ; preds = %189, %187, %180, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %192

192:                                              ; preds = %191, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %193

193:                                              ; preds = %192, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 780, ptr %7) #5
  %194 = load float, ptr %4, align 4
  ret float %194
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK17double_conversion6Double14PreviousDoubleEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4), float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK17double_conversion6Single13UpperBoundaryEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17double_conversion6Single11SignificandEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 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 = { 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: readwrite) }
attributes #4 = { 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 #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 = !{i64 0, i64 8, !10, i64 8, i64 4, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{i64 0, i64 8, !21, i64 8, i64 4, !5}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [111 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 nounwind uwtable
declare dso_local void @_ZN17double_conversion6VectorIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN17double_conversionL10TrimAndCutENS_6VectorIKcEEiPciPS2_Pi(ptr, i32, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr, i32, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; 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 hidden noundef i32 @_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE(ptr, i32, i32 noundef, i64, i32) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN17double_conversion6StrtofENS_6VectorIKcEEi(ptr %0, i32 %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca [780 x i8], align 16
  %5 = alloca %"class.double_conversion::Vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca %"class.double_conversion::Double", align 8
  %9 = alloca %"class.double_conversion::Double", align 8
  %10 = alloca %"class.double_conversion::Double", align 8
  %11 = alloca %"class.double_conversion::DiyFp", align 8
  %12 = alloca %"class.double_conversion::Double", align 8
  %13 = alloca %"class.double_conversion::Single", align 4
  %14 = alloca %"class.double_conversion::Single", align 4
  call void @llvm.lifetime.start.p0(i64 780, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN17double_conversion6VectorIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @_ZN17double_conversionL10TrimAndCutENS_6VectorIKcEEiPciPS2_Pi(ptr %0, i32 %1, i32 noundef %2, ptr noundef nonnull %4, i32 noundef 780, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %15 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %.sroa.063.0.copyload = load ptr, ptr %5, align 8, !tbaa !9
  %.sroa.264.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.264.0.copyload = load i32, ptr %.sroa.264.0..sroa_idx, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr %.sroa.063.0.copyload, i32 %.sroa.264.0.copyload, i32 noundef %15, ptr noundef nonnull %7)
  %17 = load double, ptr %7, align 8, !tbaa !11
  %18 = fptrunc double %17 to float
  %19 = fpext float %18 to double
  %20 = fcmp oeq double %17, %19
  br i1 %20, label %61, label %21

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %8, double noundef %17)
  %22 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %23 = load double, ptr %7, align 8, !tbaa !11
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %9, double noundef %23)
  %24 = call noundef double @_ZNK17double_conversion6Double14PreviousDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %25 = fptrunc double %24 to float
  %26 = fptrunc double %22 to float
  br i1 %16, label %30, label %27

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef %22)
  %28 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  %29 = fptrunc double %28 to float
  br label %30

30:                                               ; preds = %21, %27
  %.077 = phi float [ %29, %27 ], [ %26, %21 ]
  %31 = fcmp ugt float %25, %18
  %32 = fcmp ugt float %18, %26
  %or.cond = or i1 %32, %31
  %33 = fcmp ult float %.077, %26
  %or.cond82 = or i1 %or.cond, %33
  br i1 %or.cond82, label %.critedge, label %34

.critedge:                                        ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 519, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi) #5
  unreachable

34:                                               ; preds = %30
  %35 = fcmp oeq float %.077, %25
  br i1 %35, label %61, label %36

36:                                               ; preds = %34
  %37 = fcmp une float %25, %18
  %38 = fcmp oeq float %18, %26
  %or.cond83 = and i1 %38, %37
  %39 = fcmp oeq float %.077, %26
  %or.cond84 = and i1 %or.cond83, %39
  br i1 %or.cond84, label %.critedge2, label %40

40:                                               ; preds = %36
  %41 = fcmp oeq float %25, %18
  %42 = fcmp une float %18, %26
  %or.cond85 = and i1 %42, %41
  %or.cond86 = and i1 %or.cond85, %39
  br i1 %or.cond86, label %.critedge2, label %43

43:                                               ; preds = %40
  %44 = fcmp une float %.077, %26
  %45 = and i1 %38, %44
  %or.cond88 = and i1 %41, %45
  br i1 %or.cond88, label %.critedge2, label %.critedge4

.critedge4:                                       ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 529, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6StrtofENS_6VectorIKcEEi) #5
  unreachable

.critedge2:                                       ; preds = %43, %40, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
  %46 = fcmp oeq float %25, 0.000000e+00
  br i1 %46, label %47, label %49

47:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef 0x3690000000000000)
  %48 = call { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br label %51

49:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %13, float noundef %25)
  %50 = call { i64, i32 } @_ZNK17double_conversion6Single13UpperBoundaryEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { i64, i32 } [ %48, %47 ], [ %50, %49 ]
  %.fca.1.extract.sink = extractvalue { i64, i32 } %.pn, 1
  %.fca.0.extract.sink = extractvalue { i64, i32 } %.pn, 0
  store i64 %.fca.0.extract.sink, ptr %11, align 8
  %52 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract.sink, ptr %52, align 8
  %.sroa.05.0.copyload = load ptr, ptr %5, align 8, !tbaa !9
  %.sroa.26.0.copyload = load i32, ptr %.sroa.264.0..sroa_idx, align 8, !tbaa !5
  %53 = call noundef i32 @_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE(ptr %.sroa.05.0.copyload, i32 %.sroa.26.0.copyload, i32 noundef %15, i64 %.fca.0.extract.sink, i32 %.fca.1.extract.sink)
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %60, label %55

55:                                               ; preds = %51
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %56, label %60

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %14, float noundef %25)
  %57 = call noundef i32 @_ZNK17double_conversion6Single11SignificandEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  %58 = and i32 %57, 1
  %59 = icmp eq i32 %58, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  %..077 = select i1 %59, float %25, float %.077
  br label %60

60:                                               ; preds = %56, %55, %51
  %.0 = phi float [ %25, %51 ], [ %.077, %55 ], [ %..077, %56 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  br label %61

61:                                               ; preds = %60, %34, %3
  %.2 = phi float [ %18, %3 ], [ %.0, %60 ], [ %18, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 780, ptr nonnull %4) #4
  ret float %.2
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4), float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK17double_conversion6Single13UpperBoundaryEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17double_conversion6Single11SignificandEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 = { 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 "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass