; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/DoubleConversion/src/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 [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [111 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17double_conversion6VectorIKcE6lengthEv(ptr noundef nonnull align 8 dereferenceable(12)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE(ptr noundef nonnull align 8 dereferenceable(12)) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr, i32, i32 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) #4

; 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) #3

; 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_conversion13StrtofTrimmedENS_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 double, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.double_conversion::Vector", align 8
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca %"class.double_conversion::Double", align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.double_conversion::Double", align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca double, align 8
  %21 = alloca %"class.double_conversion::Double", align 8
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.double_conversion::DiyFp", align 8
  %25 = alloca float, align 4
  %26 = alloca %"class.double_conversion::DiyFp", align 8
  %27 = alloca %"class.double_conversion::Double", align 8
  %28 = alloca { i64, i32 }, align 8
  %29 = alloca %"class.double_conversion::DiyFp", align 8
  %30 = alloca %"class.double_conversion::Single", align 4
  %31 = alloca { i64, i32 }, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.double_conversion::Vector", align 8
  %34 = alloca %"class.double_conversion::DiyFp", align 8
  %35 = alloca %"class.double_conversion::Single", align 4
  %36 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  store ptr %0, ptr %36, align 8
  %37 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  store i32 %1, ptr %37, align 8
  store i32 %2, ptr %6, align 4, !tbaa !5
  %38 = call noundef i32 @_ZNK17double_conversion6VectorIKcE6lengthEv(ptr noundef nonnull align 8 dereferenceable(12) %5)
  %39 = icmp sle i32 %38, 780
  br i1 %39, label %40, label %41

40:                                               ; preds = %3
  br label %43

41:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 532, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #5
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  %44 = call noundef zeroext i1 @_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE(ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  br label %48

46:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 533, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #5
  unreachable

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %5, i64 16, i1 false), !tbaa.struct !9
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i32 }, ptr %9, 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 %7)
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %8, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %56 = load double, ptr %7, align 8, !tbaa !14
  %57 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %56)
  store float %57, ptr %10, align 4, !tbaa !16
  %58 = load float, ptr %10, align 4, !tbaa !16
  %59 = fpext float %58 to double
  %60 = load double, ptr %7, align 8, !tbaa !14
  %61 = fcmp oeq double %59, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %48
  %63 = load float, ptr %10, align 4, !tbaa !16
  store float %63, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %193

64:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %65 = load double, ptr %7, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %13, double noundef %65)
  %66 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  store double %66, ptr %12, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %67 = load double, ptr %7, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %15, double noundef %67)
  %68 = call noundef double @_ZNK17double_conversion6Double14PreviousDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  store double %68, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %69 = load double, ptr %14, align 8, !tbaa !14
  %70 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %69)
  store float %70, ptr %16, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %71 = load float, ptr %10, align 4, !tbaa !16
  store float %71, ptr %17, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %72 = load double, ptr %12, align 8, !tbaa !14
  %73 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %72)
  store float %73, ptr %18, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %74 = load i8, ptr %8, 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 %18, align 4, !tbaa !16
  store float %77, ptr %19, align 4, !tbaa !16
  br label %83

78:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %79 = load double, ptr %12, align 8, !tbaa !14
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef %79)
  %80 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  store double %80, ptr %20, align 8, !tbaa !14
  %81 = load double, ptr %20, align 8, !tbaa !14
  %82 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %81)
  store float %82, ptr %19, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %83

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

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

91:                                               ; preds = %87
  %92 = load float, ptr %18, align 4, !tbaa !16
  %93 = load float, ptr %19, 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.3, ptr noundef @.str.1, i32 noundef 572, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #5
  unreachable

99:                                               ; No predecessors!
  br label %100

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

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

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

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

114:                                              ; preds = %110
  %115 = load float, ptr %18, align 4, !tbaa !16
  %116 = load float, ptr %19, 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 %16, align 4, !tbaa !16
  %120 = load float, ptr %17, align 4, !tbaa !16
  %121 = fcmp oeq float %119, %120
  br i1 %121, label %122, label %130

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

126:                                              ; preds = %122
  %127 = load float, ptr %18, align 4, !tbaa !16
  %128 = load float, ptr %19, 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 %16, align 4, !tbaa !16
  %132 = load float, ptr %17, align 4, !tbaa !16
  %133 = fcmp oeq float %131, %132
  br i1 %133, label %134, label %142

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

138:                                              ; preds = %134
  %139 = load float, ptr %18, align 4, !tbaa !16
  %140 = load float, ptr %19, 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.4, ptr noundef @.str.1, i32 noundef 582, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #5
  unreachable

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148, %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %150 = load float, ptr %16, align 4, !tbaa !16
  store float %150, ptr %22, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %151 = load float, ptr %19, align 4, !tbaa !16
  store float %151, ptr %23, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24)
  %152 = load float, ptr %22, 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 %25) #6
  store float 0x36A0000000000000, ptr %25, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %155 = load float, ptr %25, 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) %27, double noundef %157)
  %158 = call { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
  store { i64, i32 } %158, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %28, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %26, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %162

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

162:                                              ; preds = %159, %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %5, 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 %34, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !20
  %164 = getelementptr inbounds { ptr, i32 }, ptr %33, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8
  %166 = getelementptr inbounds { ptr, i32 }, ptr %33, i32 0, i32 1
  %167 = load i32, ptr %166, align 8
  %168 = getelementptr inbounds { i64, i32 }, ptr %34, i32 0, i32 0
  %169 = load i64, ptr %168, align 8
  %170 = getelementptr inbounds { i64, i32 }, ptr %34, 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 %32, align 4, !tbaa !5
  %173 = load i32, ptr %32, align 4, !tbaa !5
  %174 = icmp slt i32 %173, 0
  br i1 %174, label %175, label %177

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

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

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

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

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

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

191:                                              ; preds = %189, %187, %180, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %192

192:                                              ; preds = %191, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %193

193:                                              ; preds = %192, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %194 = load float, ptr %4, align 4
  ret float %194
}

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #0 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)) #0 align 2

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [111 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17double_conversion6VectorIKcE6lengthEv(ptr noundef nonnull align 8 dereferenceable(12)) 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 hidden noundef zeroext i1 @_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2

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

; 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) #3

; 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_conversion13StrtofTrimmedENS_6VectorIKcEEi(ptr %0, i32 %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"class.double_conversion::Vector", align 8
  %5 = alloca double, align 8
  %6 = alloca %"class.double_conversion::Double", align 8
  %7 = alloca %"class.double_conversion::Double", align 8
  %8 = alloca %"class.double_conversion::Double", align 8
  %9 = alloca %"class.double_conversion::DiyFp", align 8
  %10 = alloca %"class.double_conversion::Double", align 8
  %11 = alloca %"class.double_conversion::Single", align 4
  %12 = alloca %"class.double_conversion::Single", align 4
  store ptr %0, ptr %4, align 8
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %1, ptr %13, align 8
  %14 = call noundef i32 @_ZNK17double_conversion6VectorIKcE6lengthEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %15 = icmp slt i32 %14, 781
  br i1 %15, label %17, label %16

16:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 532, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #4
  unreachable

17:                                               ; preds = %3
  %18 = call noundef zeroext i1 @_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE(ptr noundef nonnull align 8 dereferenceable(12) %4)
  br i1 %18, label %20, label %19

19:                                               ; preds = %17
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 533, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #4
  unreachable

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %.sroa.063.0.copyload = load ptr, ptr %4, align 8, !tbaa !5
  %.sroa.264.0.copyload = load i32, ptr %13, align 8, !tbaa !9
  %21 = call noundef zeroext i1 @_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd(ptr %.sroa.063.0.copyload, i32 %.sroa.264.0.copyload, i32 noundef %2, ptr noundef nonnull %5)
  %22 = load double, ptr %5, align 8, !tbaa !11
  %23 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %22)
  %24 = fpext float %23 to double
  %25 = load double, ptr %5, align 8, !tbaa !11
  %26 = fcmp oeq double %25, %24
  br i1 %26, label %67, label %27

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef %25)
  %28 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %29 = load double, ptr %5, align 8, !tbaa !11
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %7, double noundef %29)
  %30 = call noundef double @_ZNK17double_conversion6Double14PreviousDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %31 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %30)
  %32 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %28)
  br i1 %21, label %36, label %33

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %8, double noundef %28)
  %34 = call noundef double @_ZNK17double_conversion6Double10NextDoubleEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %35 = call noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef %34)
  br label %36

36:                                               ; preds = %27, %33
  %.070 = phi float [ %35, %33 ], [ %32, %27 ]
  %37 = fcmp ugt float %31, %23
  %38 = fcmp ugt float %23, %32
  %or.cond = or i1 %37, %38
  %39 = fcmp ugt float %32, %.070
  %or.cond75 = or i1 %or.cond, %39
  br i1 %or.cond75, label %.critedge, label %40

.critedge:                                        ; preds = %36
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 572, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #4
  unreachable

40:                                               ; preds = %36
  %41 = fcmp oeq float %31, %.070
  br i1 %41, label %67, label %42

42:                                               ; preds = %40
  %43 = fcmp une float %31, %23
  %44 = fcmp oeq float %23, %32
  %or.cond76 = and i1 %43, %44
  %45 = fcmp oeq float %32, %.070
  %or.cond77 = and i1 %or.cond76, %45
  br i1 %or.cond77, label %.critedge2, label %46

46:                                               ; preds = %42
  %47 = fcmp oeq float %31, %23
  %48 = fcmp une float %23, %32
  %or.cond78 = and i1 %47, %48
  %or.cond79 = and i1 %or.cond78, %45
  br i1 %or.cond79, label %.critedge2, label %49

49:                                               ; preds = %46
  %50 = fcmp une float %32, %.070
  %51 = and i1 %44, %50
  %or.cond81 = and i1 %47, %51
  br i1 %or.cond81, label %.critedge2, label %.critedge4

.critedge4:                                       ; preds = %49
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 582, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion13StrtofTrimmedENS_6VectorIKcEEi) #4
  unreachable

.critedge2:                                       ; preds = %49, %46, %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  %52 = fcmp oeq float %31, 0.000000e+00
  br i1 %52, label %53, label %55

53:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN17double_conversion6DoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef 0x3690000000000000)
  %54 = call { i64, i32 } @_ZNK17double_conversion6Double7AsDiyFpEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %57

55:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %11, float noundef %31)
  %56 = call { i64, i32 } @_ZNK17double_conversion6Single13UpperBoundaryEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { i64, i32 } [ %54, %53 ], [ %56, %55 ]
  %.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 %9, align 8
  %58 = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %.fca.1.extract.sink, ptr %58, align 8
  %.sroa.05.0.copyload = load ptr, ptr %4, align 8, !tbaa !5
  %.sroa.26.0.copyload = load i32, ptr %13, align 8, !tbaa !9
  %59 = call noundef i32 @_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE(ptr %.sroa.05.0.copyload, i32 %.sroa.26.0.copyload, i32 noundef %2, i64 %.fca.0.extract.sink, i32 %.fca.1.extract.sink)
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %66, label %61

61:                                               ; preds = %57
  %.not = icmp eq i32 %59, 0
  br i1 %.not, label %62, label %66

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @_ZN17double_conversion6SingleC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %12, float noundef %31)
  %63 = call noundef i32 @_ZNK17double_conversion6Single11SignificandEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %64 = and i32 %63, 1
  %65 = icmp eq i32 %64, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  %..070 = select i1 %65, float %31, float %.070
  br label %66

66:                                               ; preds = %62, %61, %57
  %.0 = phi float [ %31, %57 ], [ %.070, %61 ], [ %..070, %62 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %67

67:                                               ; preds = %66, %40, %20
  %.2 = phi float [ %23, %20 ], [ %.0, %66 ], [ %23, %40 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret float %.2
}

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZN17double_conversionL18SanitizedDoubletofEd(double noundef) local_unnamed_addr #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: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion5DiyFpC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #0 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 #0 align 2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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