; LLVM IR from niessner/Matterport :: code/gaps/pkgs/RNBasics/json.ll (ZN4Json9OurReader10readNumberEb)

; 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.Json::OurReader" = type <{ %"class.std::stack", %"class.std::deque.13", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, ptr, %"class.std::__cxx11::basic_string", i32, %"class.Json::OurFeatures", i8, [7 x i8] }>
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<Json::Value *, std::allocator<Json::Value *>>::_Deque_impl" }
%"struct.std::_Deque_base<Json::Value *, std::allocator<Json::Value *>>::_Deque_impl" = type { %"struct.std::_Deque_base<Json::Value *, std::allocator<Json::Value *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<Json::Value *, std::allocator<Json::Value *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::deque.13" = type { %"class.std::_Deque_base.14" }
%"class.std::_Deque_base.14" = type { %"struct.std::_Deque_base<Json::OurReader::ErrorInfo, std::allocator<Json::OurReader::ErrorInfo>>::_Deque_impl" }
%"struct.std::_Deque_base<Json::OurReader::ErrorInfo, std::allocator<Json::OurReader::ErrorInfo>>::_Deque_impl" = type { %"struct.std::_Deque_base<Json::OurReader::ErrorInfo, std::allocator<Json::OurReader::ErrorInfo>>::_Deque_impl_data" }
%"struct.std::_Deque_base<Json::OurReader::ErrorInfo, std::allocator<Json::OurReader::ErrorInfo>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.18", %"struct.std::_Deque_iterator.18" }
%"struct.std::_Deque_iterator.18" = type { ptr, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.Json::OurFeatures" = type { i8, i8, i8, i8, i8, i8, i8, i8, i32 }

; 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 nounwind uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(281) %0, i1 noundef zeroext %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  %11 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  store ptr %12, ptr %6, align 8, !tbaa !5
  %13 = load i8, ptr %5, align 1, !tbaa !9, !range !29, !noundef !30
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %29

15:                                               ; preds = %2
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !31
  %19 = icmp ne ptr %16, %18
  br i1 %19, label %20, label %29

20:                                               ; preds = %15
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load i8, ptr %21, align 1, !tbaa !32
  %23 = sext i8 %22 to i32
  %24 = icmp eq i32 %23, 73
  br i1 %24, label %25, label %29

25:                                               ; preds = %20
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i32 1
  store ptr %27, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %27, ptr %28, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %173

29:                                               ; preds = %20, %15, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #2
  store i8 48, ptr %8, align 1, !tbaa !32
  br label %30

30:                                               ; preds = %52, %29
  %31 = load i8, ptr %8, align 1, !tbaa !32
  %32 = sext i8 %31 to i32
  %33 = icmp sge i32 %32, 48
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = load i8, ptr %8, align 1, !tbaa !32
  %36 = sext i8 %35 to i32
  %37 = icmp sle i32 %36, 57
  br label %38

38:                                               ; preds = %34, %30
  %39 = phi i1 [ false, %30 ], [ %37, %34 ]
  br i1 %39, label %40, label %55

40:                                               ; preds = %38
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %41, ptr %42, align 8, !tbaa !11
  %43 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !31
  %45 = icmp ult ptr %41, %44
  br i1 %45, label %46, label %51

46:                                               ; preds = %40
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i32 1
  store ptr %48, ptr %6, align 8, !tbaa !5
  %49 = load i8, ptr %47, align 1, !tbaa !32
  %50 = sext i8 %49 to i32
  br label %52

51:                                               ; preds = %40
  br label %52

52:                                               ; preds = %51, %46
  %53 = phi i32 [ %50, %46 ], [ 0, %51 ]
  %54 = trunc i32 %53 to i8
  store i8 %54, ptr %8, align 1, !tbaa !32
  br label %30, !llvm.loop !33

55:                                               ; preds = %38
  %56 = load i8, ptr %8, align 1, !tbaa !32
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 46
  br i1 %58, label %59, label %100

59:                                               ; preds = %55
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %60, ptr %61, align 8, !tbaa !11
  %62 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !31
  %64 = icmp ult ptr %60, %63
  br i1 %64, label %65, label %70

65:                                               ; preds = %59
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i32 1
  store ptr %67, ptr %6, align 8, !tbaa !5
  %68 = load i8, ptr %66, align 1, !tbaa !32
  %69 = sext i8 %68 to i32
  br label %71

70:                                               ; preds = %59
  br label %71

71:                                               ; preds = %70, %65
  %72 = phi i32 [ %69, %65 ], [ 0, %70 ]
  %73 = trunc i32 %72 to i8
  store i8 %73, ptr %8, align 1, !tbaa !32
  br label %74

74:                                               ; preds = %96, %71
  %75 = load i8, ptr %8, align 1, !tbaa !32
  %76 = sext i8 %75 to i32
  %77 = icmp sge i32 %76, 48
  br i1 %77, label %78, label %82

78:                                               ; preds = %74
  %79 = load i8, ptr %8, align 1, !tbaa !32
  %80 = sext i8 %79 to i32
  %81 = icmp sle i32 %80, 57
  br label %82

82:                                               ; preds = %78, %74
  %83 = phi i1 [ false, %74 ], [ %81, %78 ]
  br i1 %83, label %84, label %99

84:                                               ; preds = %82
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %85, ptr %86, align 8, !tbaa !11
  %87 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !31
  %89 = icmp ult ptr %85, %88
  br i1 %89, label %90, label %95

90:                                               ; preds = %84
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i32 1
  store ptr %92, ptr %6, align 8, !tbaa !5
  %93 = load i8, ptr %91, align 1, !tbaa !32
  %94 = sext i8 %93 to i32
  br label %96

95:                                               ; preds = %84
  br label %96

96:                                               ; preds = %95, %90
  %97 = phi i32 [ %94, %90 ], [ 0, %95 ]
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %8, align 1, !tbaa !32
  br label %74, !llvm.loop !35

99:                                               ; preds = %82
  br label %100

100:                                              ; preds = %99, %55
  %101 = load i8, ptr %8, align 1, !tbaa !32
  %102 = sext i8 %101 to i32
  %103 = icmp eq i32 %102, 101
  br i1 %103, label %108, label %104

104:                                              ; preds = %100
  %105 = load i8, ptr %8, align 1, !tbaa !32
  %106 = sext i8 %105 to i32
  %107 = icmp eq i32 %106, 69
  br i1 %107, label %108, label %172

108:                                              ; preds = %104, %100
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %109, ptr %110, align 8, !tbaa !11
  %111 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !31
  %113 = icmp ult ptr %109, %112
  br i1 %113, label %114, label %119

114:                                              ; preds = %108
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i32 1
  store ptr %116, ptr %6, align 8, !tbaa !5
  %117 = load i8, ptr %115, align 1, !tbaa !32
  %118 = sext i8 %117 to i32
  br label %120

119:                                              ; preds = %108
  br label %120

120:                                              ; preds = %119, %114
  %121 = phi i32 [ %118, %114 ], [ 0, %119 ]
  %122 = trunc i32 %121 to i8
  store i8 %122, ptr %8, align 1, !tbaa !32
  %123 = load i8, ptr %8, align 1, !tbaa !32
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %124, 43
  br i1 %125, label %130, label %126

126:                                              ; preds = %120
  %127 = load i8, ptr %8, align 1, !tbaa !32
  %128 = sext i8 %127 to i32
  %129 = icmp eq i32 %128, 45
  br i1 %129, label %130, label %145

130:                                              ; preds = %126, %120
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %131, ptr %132, align 8, !tbaa !11
  %133 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !31
  %135 = icmp ult ptr %131, %134
  br i1 %135, label %136, label %141

136:                                              ; preds = %130
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i32 1
  store ptr %138, ptr %6, align 8, !tbaa !5
  %139 = load i8, ptr %137, align 1, !tbaa !32
  %140 = sext i8 %139 to i32
  br label %142

141:                                              ; preds = %130
  br label %142

142:                                              ; preds = %141, %136
  %143 = phi i32 [ %140, %136 ], [ 0, %141 ]
  %144 = trunc i32 %143 to i8
  store i8 %144, ptr %8, align 1, !tbaa !32
  br label %145

145:                                              ; preds = %142, %126
  br label %146

146:                                              ; preds = %168, %145
  %147 = load i8, ptr %8, align 1, !tbaa !32
  %148 = sext i8 %147 to i32
  %149 = icmp sge i32 %148, 48
  br i1 %149, label %150, label %154

150:                                              ; preds = %146
  %151 = load i8, ptr %8, align 1, !tbaa !32
  %152 = sext i8 %151 to i32
  %153 = icmp sle i32 %152, 57
  br label %154

154:                                              ; preds = %150, %146
  %155 = phi i1 [ false, %146 ], [ %153, %150 ]
  br i1 %155, label %156, label %171

156:                                              ; preds = %154
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 5
  store ptr %157, ptr %158, align 8, !tbaa !11
  %159 = getelementptr inbounds %"class.Json::OurReader", ptr %10, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !31
  %161 = icmp ult ptr %157, %160
  br i1 %161, label %162, label %167

162:                                              ; preds = %156
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i32 1
  store ptr %164, ptr %6, align 8, !tbaa !5
  %165 = load i8, ptr %163, align 1, !tbaa !32
  %166 = sext i8 %165 to i32
  br label %168

167:                                              ; preds = %156
  br label %168

168:                                              ; preds = %167, %162
  %169 = phi i32 [ %166, %162 ], [ 0, %167 ]
  %170 = trunc i32 %169 to i8
  store i8 %170, ptr %8, align 1, !tbaa !32
  br label %146, !llvm.loop !36

171:                                              ; preds = %154
  br label %172

172:                                              ; preds = %171, %104
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #2
  br label %173

173:                                              ; preds = %172, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  %174 = load i1, ptr %3, align 1
  ret i1 %174
}

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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 208}
!12 = !{!"_ZTSN4Json9OurReaderE", !13, i64 0, !20, i64 80, !25, i64 160, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !25, i64 232, !27, i64 264, !28, i64 268, !10, i64 280}
!13 = !{!"_ZTSSt5stackIPN4Json5ValueESt5dequeIS2_SaIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSSt5dequeIPN4Json5ValueESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt11_Deque_baseIPN4Json5ValueESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE11_Deque_implE", !17, i64 0}
!17 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !18, i64 8, !19, i64 16, !19, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt15_Deque_iteratorIPN4Json5ValueERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSSt5dequeIN4Json9OurReader9ErrorInfoESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !18, i64 8, !24, i64 16, !24, i64 48}
!24 = !{!"_ZTSSt15_Deque_iteratorIN4Json9OurReader9ErrorInfoERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !18, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{!"_ZTSN4Json11OurFeaturesE", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !27, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !6, i64 200}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = distinct !{!36, !34}


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

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr nocapture noundef nonnull align 8 dereferenceable(281) %0, i1 noundef zeroext %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 208
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  %6 = load ptr, ptr %5, align 8
  %.not = icmp ne ptr %4, %6
  %or.cond42.not = select i1 %1, i1 %.not, i1 false
  br i1 %or.cond42.not, label %7, label %.preheader

.preheader:                                       ; preds = %7, %2
  br label %12

7:                                                ; preds = %2
  %8 = load i8, ptr %4, align 1, !tbaa !27
  %9 = icmp eq i8 %8, 73
  br i1 %9, label %10, label %.preheader

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %4, i64 1
  store ptr %11, ptr %3, align 8, !tbaa !5
  br label %.loopexit

12:                                               ; preds = %.preheader, %14
  %.03345 = phi ptr [ %15, %14 ], [ %4, %.preheader ]
  store ptr %.03345, ptr %3, align 8, !tbaa !5
  %13 = icmp ult ptr %.03345, %6
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %.03345, i64 1
  %16 = load i8, ptr %.03345, align 1, !tbaa !27
  %17 = add i8 %16, -48
  %18 = icmp ult i8 %17, 10
  br i1 %18, label %12, label %19, !llvm.loop !28

19:                                               ; preds = %14
  %20 = icmp eq i8 %16, 46
  br i1 %20, label %21, label %.loopexit44

21:                                               ; preds = %19
  store ptr %15, ptr %3, align 8, !tbaa !5
  %22 = icmp ult ptr %15, %6
  br i1 %22, label %23, label %.loopexit

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %.03345, i64 2
  %25 = load i8, ptr %15, align 1, !tbaa !27
  %26 = add i8 %25, -48
  %27 = icmp ult i8 %26, 10
  br i1 %27, label %.lr.ph, label %.loopexit44

.lr.ph:                                           ; preds = %23, %29
  %.33646 = phi ptr [ %30, %29 ], [ %24, %23 ]
  store ptr %.33646, ptr %3, align 8, !tbaa !5
  %28 = icmp ult ptr %.33646, %6
  br i1 %28, label %29, label %.loopexit

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %.33646, i64 1
  %31 = load i8, ptr %.33646, align 1, !tbaa !27
  %32 = add i8 %31, -48
  %33 = icmp ult i8 %32, 10
  br i1 %33, label %.lr.ph, label %.loopexit44, !llvm.loop !30

.loopexit44:                                      ; preds = %29, %23, %19
  %.5 = phi ptr [ %15, %19 ], [ %24, %23 ], [ %30, %29 ]
  %.2 = phi i8 [ %16, %19 ], [ %25, %23 ], [ %31, %29 ]
  %34 = and i8 %.2, -33
  %or.cond = icmp eq i8 %34, 69
  br i1 %or.cond, label %35, label %.loopexit

35:                                               ; preds = %.loopexit44
  store ptr %.5, ptr %3, align 8, !tbaa !5
  %36 = icmp ult ptr %.5, %6
  br i1 %36, label %37, label %.loopexit

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %.5, i64 1
  %39 = load i8, ptr %.5, align 1, !tbaa !27
  switch i8 %39, label %.thread [
    i8 45, label %40
    i8 43, label %40
  ]

40:                                               ; preds = %37, %37
  store ptr %38, ptr %3, align 8, !tbaa !5
  %41 = icmp ult ptr %38, %6
  br i1 %41, label %42, label %.loopexit

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %.5, i64 2
  %44 = load i8, ptr %38, align 1, !tbaa !27
  br label %.thread

.thread:                                          ; preds = %42, %37
  %.8 = phi ptr [ %38, %37 ], [ %43, %42 ]
  %.3 = phi i8 [ %39, %37 ], [ %44, %42 ]
  %45 = add i8 %.3, -48
  %46 = icmp ult i8 %45, 10
  br i1 %46, label %.lr.ph49, label %.loopexit

.lr.ph49:                                         ; preds = %.thread, %48
  %.948 = phi ptr [ %49, %48 ], [ %.8, %.thread ]
  store ptr %.948, ptr %3, align 8, !tbaa !5
  %47 = icmp ult ptr %.948, %6
  br i1 %47, label %48, label %.loopexit

48:                                               ; preds = %.lr.ph49
  %49 = getelementptr inbounds i8, ptr %.948, i64 1
  %50 = load i8, ptr %.948, align 1, !tbaa !27
  %51 = add i8 %50, -48
  %52 = icmp ult i8 %51, 10
  br i1 %52, label %.lr.ph49, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %12, %.lr.ph, %.lr.ph49, %48, %35, %40, %21, %.thread, %.loopexit44, %10
  %.038 = phi i1 [ false, %10 ], [ true, %.loopexit44 ], [ true, %.thread ], [ true, %21 ], [ true, %40 ], [ true, %35 ], [ true, %48 ], [ true, %.lr.ph49 ], [ true, %.lr.ph ], [ true, %12 ]
  ret i1 %.038
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) 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" }

!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, !12, i64 208}
!6 = !{!"_ZTSN4Json9OurReaderE", !7, i64 0, !17, i64 80, !22, i64 160, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !22, i64 232, !24, i64 264, !25, i64 268, !26, i64 280}
!7 = !{!"_ZTSSt5stackIPN4Json5ValueESt5dequeIS2_SaIS2_EEE", !8, i64 0}
!8 = !{!"_ZTSSt5dequeIPN4Json5ValueESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSSt11_Deque_baseIPN4Json5ValueESaIS2_EE", !10, i64 0}
!10 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE11_Deque_implE", !11, i64 0}
!11 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE16_Deque_impl_dataE", !12, i64 0, !15, i64 8, !16, i64 16, !16, i64 48}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"_ZTSSt15_Deque_iteratorIPN4Json5ValueERS2_PS2_E", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!17 = !{!"_ZTSSt5dequeIN4Json9OurReader9ErrorInfoESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE11_Deque_implE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE16_Deque_impl_dataE", !12, i64 0, !15, i64 8, !21, i64 16, !21, i64 48}
!21 = !{!"_ZTSSt15_Deque_iteratorIN4Json9OurReader9ErrorInfoERS2_PS2_E", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !15, i64 8, !13, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!24 = !{!"int", !13, i64 0}
!25 = !{!"_ZTSN4Json11OurFeaturesE", !26, i64 0, !26, i64 1, !26, i64 2, !26, i64 3, !26, i64 4, !26, i64 5, !26, i64 6, !26, i64 7, !24, i64 8}
!26 = !{!"bool", !13, i64 0}
!27 = !{!13, !13, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}


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