; LLVM IR from Razakhel/RaZ :: extern/openxr/src/external/jsoncpp/src/lib_json (json_reader)

; 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.17", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, ptr, i8, [7 x i8], %"class.std::__cxx11::basic_string", %"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.17" = type { %"class.std::_Deque_base.18" }
%"class.std::_Deque_base.18" = 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.22", %"struct.std::_Deque_iterator.22" }
%"struct.std::_Deque_iterator.22" = 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, i8, i8, i64 }
%"class.Json::OurReader::Token" = type { i32, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader9readTokenERNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @_ZN4Json9OurReader10skipSpacesEv(ptr noundef nonnull align 8 dereferenceable(297) %7)
  %8 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 5
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %10, i32 0, i32 1
  store ptr %9, ptr %11, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  %12 = call noundef signext i8 @_ZN4Json9OurReader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(297) %7)
  store i8 %12, ptr %5, align 1, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  store i8 1, ptr %6, align 1, !tbaa !31
  %13 = load i8, ptr %5, align 1, !tbaa !30
  %14 = sext i8 %13 to i32
  switch i32 %14, label %137 [
    i32 123, label %15
    i32 125, label %18
    i32 91, label %21
    i32 93, label %24
    i32 34, label %27
    i32 39, label %32
    i32 47, label %44
    i32 48, label %49
    i32 49, label %49
    i32 50, label %49
    i32 51, label %49
    i32 52, label %49
    i32 53, label %49
    i32 54, label %49
    i32 55, label %49
    i32 56, label %49
    i32 57, label %49
    i32 45, label %53
    i32 43, label %71
    i32 116, label %89
    i32 102, label %94
    i32 110, label %99
    i32 78, label %104
    i32 73, label %116
    i32 44, label %128
    i32 58, label %131
    i32 0, label %134
  ]

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %16, i32 0, i32 0
  store i32 1, ptr %17, align 8, !tbaa !32
  br label %138

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %19, i32 0, i32 0
  store i32 2, ptr %20, align 8, !tbaa !32
  br label %138

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %22, i32 0, i32 0
  store i32 3, ptr %23, align 8, !tbaa !32
  br label %138

24:                                               ; preds = %2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %25, i32 0, i32 0
  store i32 4, ptr %26, align 8, !tbaa !32
  br label %138

27:                                               ; preds = %2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %28, i32 0, i32 0
  store i32 5, ptr %29, align 8, !tbaa !32
  %30 = call noundef zeroext i1 @_ZN4Json9OurReader10readStringEv(ptr noundef nonnull align 8 dereferenceable(297) %7)
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %6, align 1, !tbaa !31
  br label %138

32:                                               ; preds = %2
  %33 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 11
  %34 = getelementptr inbounds %"class.Json::OurFeatures", ptr %33, i32 0, i32 5
  %35 = load i8, ptr %34, align 1, !tbaa !33, !range !34, !noundef !35
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %42

37:                                               ; preds = %32
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %38, i32 0, i32 0
  store i32 5, ptr %39, align 8, !tbaa !32
  %40 = call noundef zeroext i1 @_ZN4Json9OurReader21readStringSingleQuoteEv(ptr noundef nonnull align 8 dereferenceable(297) %7)
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %6, align 1, !tbaa !31
  br label %43

42:                                               ; preds = %32
  store i8 0, ptr %6, align 1, !tbaa !31
  br label %43

43:                                               ; preds = %42, %37
  br label %138

44:                                               ; preds = %2
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %45, i32 0, i32 0
  store i32 15, ptr %46, align 8, !tbaa !32
  %47 = call noundef zeroext i1 @_ZN4Json9OurReader11readCommentEv(ptr noundef nonnull align 8 dereferenceable(297) %7)
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %6, align 1, !tbaa !31
  br label %138

49:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %50, i32 0, i32 0
  store i32 6, ptr %51, align 8, !tbaa !32
  %52 = call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %7, i1 noundef zeroext false)
  br label %138

53:                                               ; preds = %2
  %54 = call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %7, i1 noundef zeroext true)
  br i1 %54, label %55, label %58

55:                                               ; preds = %53
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %56, i32 0, i32 0
  store i32 6, ptr %57, align 8, !tbaa !32
  br label %70

58:                                               ; preds = %53
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %59, i32 0, i32 0
  store i32 12, ptr %60, align 8, !tbaa !32
  %61 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 11
  %62 = getelementptr inbounds %"class.Json::OurFeatures", ptr %61, i32 0, i32 8
  %63 = load i8, ptr %62, align 8, !tbaa !36, !range !34, !noundef !35
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %67

65:                                               ; preds = %58
  %66 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.28, i32 noundef 7)
  br label %67

67:                                               ; preds = %65, %58
  %68 = phi i1 [ false, %58 ], [ %66, %65 ]
  %69 = zext i1 %68 to i8
  store i8 %69, ptr %6, align 1, !tbaa !31
  br label %70

70:                                               ; preds = %67, %55
  br label %138

71:                                               ; preds = %2
  %72 = call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %7, i1 noundef zeroext true)
  br i1 %72, label %73, label %76

73:                                               ; preds = %71
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %74, i32 0, i32 0
  store i32 6, ptr %75, align 8, !tbaa !32
  br label %88

76:                                               ; preds = %71
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %77, i32 0, i32 0
  store i32 11, ptr %78, align 8, !tbaa !32
  %79 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 11
  %80 = getelementptr inbounds %"class.Json::OurFeatures", ptr %79, i32 0, i32 8
  %81 = load i8, ptr %80, align 8, !tbaa !36, !range !34, !noundef !35
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %85

83:                                               ; preds = %76
  %84 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.28, i32 noundef 7)
  br label %85

85:                                               ; preds = %83, %76
  %86 = phi i1 [ false, %76 ], [ %84, %83 ]
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %6, align 1, !tbaa !31
  br label %88

88:                                               ; preds = %85, %73
  br label %138

89:                                               ; preds = %2
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %90, i32 0, i32 0
  store i32 7, ptr %91, align 8, !tbaa !32
  %92 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.3, i32 noundef 3)
  %93 = zext i1 %92 to i8
  store i8 %93, ptr %6, align 1, !tbaa !31
  br label %138

94:                                               ; preds = %2
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %95, i32 0, i32 0
  store i32 8, ptr %96, align 8, !tbaa !32
  %97 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.4, i32 noundef 4)
  %98 = zext i1 %97 to i8
  store i8 %98, ptr %6, align 1, !tbaa !31
  br label %138

99:                                               ; preds = %2
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %100, i32 0, i32 0
  store i32 9, ptr %101, align 8, !tbaa !32
  %102 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.5, i32 noundef 3)
  %103 = zext i1 %102 to i8
  store i8 %103, ptr %6, align 1, !tbaa !31
  br label %138

104:                                              ; preds = %2
  %105 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 11
  %106 = getelementptr inbounds %"class.Json::OurFeatures", ptr %105, i32 0, i32 8
  %107 = load i8, ptr %106, align 8, !tbaa !36, !range !34, !noundef !35
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %114

109:                                              ; preds = %104
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %110, i32 0, i32 0
  store i32 10, ptr %111, align 8, !tbaa !32
  %112 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.29, i32 noundef 2)
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %6, align 1, !tbaa !31
  br label %115

114:                                              ; preds = %104
  store i8 0, ptr %6, align 1, !tbaa !31
  br label %115

115:                                              ; preds = %114, %109
  br label %138

116:                                              ; preds = %2
  %117 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 11
  %118 = getelementptr inbounds %"class.Json::OurFeatures", ptr %117, i32 0, i32 8
  %119 = load i8, ptr %118, align 8, !tbaa !36, !range !34, !noundef !35
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %126

121:                                              ; preds = %116
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %122, i32 0, i32 0
  store i32 11, ptr %123, align 8, !tbaa !32
  %124 = call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %7, ptr noundef @.str.28, i32 noundef 7)
  %125 = zext i1 %124 to i8
  store i8 %125, ptr %6, align 1, !tbaa !31
  br label %127

126:                                              ; preds = %116
  store i8 0, ptr %6, align 1, !tbaa !31
  br label %127

127:                                              ; preds = %126, %121
  br label %138

128:                                              ; preds = %2
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %129, i32 0, i32 0
  store i32 13, ptr %130, align 8, !tbaa !32
  br label %138

131:                                              ; preds = %2
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %132, i32 0, i32 0
  store i32 14, ptr %133, align 8, !tbaa !32
  br label %138

134:                                              ; preds = %2
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %135, i32 0, i32 0
  store i32 0, ptr %136, align 8, !tbaa !32
  br label %138

137:                                              ; preds = %2
  store i8 0, ptr %6, align 1, !tbaa !31
  br label %138

138:                                              ; preds = %137, %134, %131, %128, %127, %115, %99, %94, %89, %88, %70, %49, %44, %43, %27, %24, %21, %18, %15
  %139 = load i8, ptr %6, align 1, !tbaa !31, !range !34, !noundef !35
  %140 = trunc i8 %139 to i1
  br i1 %140, label %144, label %141

141:                                              ; preds = %138
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %142, i32 0, i32 0
  store i32 16, ptr %143, align 8, !tbaa !32
  br label %144

144:                                              ; preds = %141, %138
  %145 = getelementptr inbounds %"class.Json::OurReader", ptr %7, i32 0, i32 5
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %147, i32 0, i32 2
  store ptr %146, ptr %148, align 8, !tbaa !37
  %149 = load i8, ptr %6, align 1, !tbaa !31, !range !34, !noundef !35
  %150 = trunc i8 %149 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret i1 %150
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Json9OurReader10skipSpacesEv(ptr noundef nonnull align 8 dereferenceable(297)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN4Json9OurReader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(297)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader10readStringEv(ptr noundef nonnull align 8 dereferenceable(297)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader21readStringSingleQuoteEv(ptr noundef nonnull align 8 dereferenceable(297)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader11readCommentEv(ptr noundef nonnull align 8 dereferenceable(297)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef, i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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, !6, i64 208}
!10 = !{!"_ZTSN4Json9OurReaderE", !11, i64 0, !18, i64 80, !23, i64 160, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !25, i64 232, !23, i64 240, !26, i64 272, !25, i64 296}
!11 = !{!"_ZTSSt5stackIPN4Json5ValueESt5dequeIS2_SaIS2_EEE", !12, i64 0}
!12 = !{!"_ZTSSt5dequeIPN4Json5ValueESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt11_Deque_baseIPN4Json5ValueESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE11_Deque_implE", !15, i64 0}
!15 = !{!"_ZTSNSt11_Deque_baseIPN4Json5ValueESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !16, i64 8, !17, i64 16, !17, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSSt15_Deque_iteratorIPN4Json5ValueERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt5dequeIN4Json9OurReader9ErrorInfoESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE11_Deque_implE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseIN4Json9OurReader9ErrorInfoESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !16, i64 8, !22, i64 16, !22, i64 48}
!22 = !{!"_ZTSSt15_Deque_iteratorIN4Json9OurReader9ErrorInfoERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !16, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN4Json11OurFeaturesE", !25, i64 0, !25, i64 1, !25, i64 2, !25, i64 3, !25, i64 4, !25, i64 5, !25, i64 6, !25, i64 7, !25, i64 8, !25, i64 9, !16, i64 16}
!27 = !{!28, !6, i64 8}
!28 = !{!"_ZTSN4Json9OurReader5TokenE", !29, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN4Json9OurReader9TokenTypeE", !7, i64 0}
!30 = !{!7, !7, i64 0}
!31 = !{!25, !25, i64 0}
!32 = !{!28, !29, i64 0}
!33 = !{!10, !25, i64 277}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!10, !25, i64 280}
!37 = !{!28, !6, i64 16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader9readTokenERNS0_5TokenE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  tail call void @_ZN4Json9OurReader10skipSpacesEv(ptr noundef nonnull align 8 dereferenceable(297) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 208
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %4, ptr %5, align 8, !tbaa !26
  %6 = tail call noundef signext i8 @_ZN4Json9OurReader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(297) %0)
  switch i8 %6, label %.thread29 [
    i8 123, label %7
    i8 125, label %8
    i8 91, label %9
    i8 93, label %10
    i8 34, label %11
    i8 39, label %13
    i8 47, label %19
    i8 48, label %21
    i8 49, label %21
    i8 50, label %21
    i8 51, label %21
    i8 52, label %21
    i8 53, label %21
    i8 54, label %21
    i8 55, label %21
    i8 56, label %21
    i8 57, label %21
    i8 45, label %23
    i8 43, label %32
    i8 116, label %39
    i8 102, label %41
    i8 110, label %43
    i8 78, label %45
    i8 73, label %51
    i8 44, label %57
    i8 58, label %58
    i8 0, label %59
  ]

7:                                                ; preds = %2
  store i32 1, ptr %1, align 8, !tbaa !29
  br label %.thread

8:                                                ; preds = %2
  store i32 2, ptr %1, align 8, !tbaa !29
  br label %.thread

9:                                                ; preds = %2
  store i32 3, ptr %1, align 8, !tbaa !29
  br label %.thread

10:                                               ; preds = %2
  store i32 4, ptr %1, align 8, !tbaa !29
  br label %.thread

11:                                               ; preds = %2
  store i32 5, ptr %1, align 8, !tbaa !29
  %12 = tail call noundef zeroext i1 @_ZN4Json9OurReader10readStringEv(ptr noundef nonnull align 8 dereferenceable(297) %0)
  br i1 %12, label %.thread, label %.thread29

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 277
  %15 = load i8, ptr %14, align 1, !tbaa !30, !range !31, !noundef !32
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %.thread29

17:                                               ; preds = %13
  store i32 5, ptr %1, align 8, !tbaa !29
  %18 = tail call noundef zeroext i1 @_ZN4Json9OurReader21readStringSingleQuoteEv(ptr noundef nonnull align 8 dereferenceable(297) %0)
  br i1 %18, label %.thread, label %.thread29

19:                                               ; preds = %2
  store i32 15, ptr %1, align 8, !tbaa !29
  %20 = tail call noundef zeroext i1 @_ZN4Json9OurReader11readCommentEv(ptr noundef nonnull align 8 dereferenceable(297) %0)
  br i1 %20, label %.thread, label %.thread29

21:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  store i32 6, ptr %1, align 8, !tbaa !29
  %22 = tail call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %0, i1 noundef zeroext false)
  br label %.thread

23:                                               ; preds = %2
  %24 = tail call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %0, i1 noundef zeroext true)
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  store i32 6, ptr %1, align 8, !tbaa !29
  br label %.thread

26:                                               ; preds = %23
  store i32 12, ptr %1, align 8, !tbaa !29
  %27 = getelementptr inbounds i8, ptr %0, i64 280
  %28 = load i8, ptr %27, align 8, !tbaa !33, !range !31, !noundef !32
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %.thread29

30:                                               ; preds = %26
  %31 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.28, i32 noundef 7)
  br i1 %31, label %.thread, label %.thread29

32:                                               ; preds = %2
  %33 = tail call noundef zeroext i1 @_ZN4Json9OurReader10readNumberEb(ptr noundef nonnull align 8 dereferenceable(297) %0, i1 noundef zeroext true)
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  store i32 6, ptr %1, align 8, !tbaa !29
  br label %.thread

35:                                               ; preds = %32
  store i32 11, ptr %1, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %0, i64 280
  %37 = load i8, ptr %36, align 8, !tbaa !33, !range !31, !noundef !32
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %60, label %.thread29

39:                                               ; preds = %2
  store i32 7, ptr %1, align 8, !tbaa !29
  %40 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.3, i32 noundef 3)
  br i1 %40, label %.thread, label %.thread29

41:                                               ; preds = %2
  store i32 8, ptr %1, align 8, !tbaa !29
  %42 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.4, i32 noundef 4)
  br i1 %42, label %.thread, label %.thread29

43:                                               ; preds = %2
  store i32 9, ptr %1, align 8, !tbaa !29
  %44 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.5, i32 noundef 3)
  br i1 %44, label %.thread, label %.thread29

45:                                               ; preds = %2
  %46 = getelementptr inbounds i8, ptr %0, i64 280
  %47 = load i8, ptr %46, align 8, !tbaa !33, !range !31, !noundef !32
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %.thread29

49:                                               ; preds = %45
  store i32 10, ptr %1, align 8, !tbaa !29
  %50 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.29, i32 noundef 2)
  br i1 %50, label %.thread, label %.thread29

51:                                               ; preds = %2
  %52 = getelementptr inbounds i8, ptr %0, i64 280
  %53 = load i8, ptr %52, align 8, !tbaa !33, !range !31, !noundef !32
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %55, label %.thread29

55:                                               ; preds = %51
  store i32 11, ptr %1, align 8, !tbaa !29
  %56 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.28, i32 noundef 7)
  br i1 %56, label %.thread, label %.thread29

57:                                               ; preds = %2
  store i32 13, ptr %1, align 8, !tbaa !29
  br label %.thread

58:                                               ; preds = %2
  store i32 14, ptr %1, align 8, !tbaa !29
  br label %.thread

59:                                               ; preds = %2
  store i32 0, ptr %1, align 8, !tbaa !29
  br label %.thread

60:                                               ; preds = %35
  %61 = tail call noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull @.str.28, i32 noundef 7)
  br i1 %61, label %.thread, label %.thread29

.thread29:                                        ; preds = %2, %51, %45, %35, %26, %13, %30, %11, %17, %19, %39, %41, %43, %49, %55, %60
  store i32 16, ptr %1, align 8, !tbaa !29
  br label %.thread

.thread:                                          ; preds = %7, %8, %9, %10, %21, %25, %34, %57, %58, %59, %30, %11, %17, %19, %39, %41, %43, %49, %55, %.thread29, %60
  %.027 = phi i1 [ false, %.thread29 ], [ true, %60 ], [ true, %55 ], [ true, %49 ], [ true, %43 ], [ true, %41 ], [ true, %39 ], [ true, %19 ], [ true, %17 ], [ true, %11 ], [ true, %30 ], [ true, %59 ], [ true, %58 ], [ true, %57 ], [ true, %34 ], [ true, %25 ], [ true, %21 ], [ true, %10 ], [ true, %9 ], [ true, %8 ], [ true, %7 ]
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %62, ptr %63, align 8, !tbaa !34
  ret i1 %.027
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Json9OurReader10skipSpacesEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN4Json9OurReader11getNextCharEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader10readStringEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader21readStringSingleQuoteEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader11readCommentEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader5matchEPKci(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { 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 #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" }

!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, !24, i64 232, !22, i64 240, !25, i64 272, !24, i64 296}
!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 = !{!"bool", !13, i64 0}
!25 = !{!"_ZTSN4Json11OurFeaturesE", !24, i64 0, !24, i64 1, !24, i64 2, !24, i64 3, !24, i64 4, !24, i64 5, !24, i64 6, !24, i64 7, !24, i64 8, !24, i64 9, !15, i64 16}
!26 = !{!27, !12, i64 8}
!27 = !{!"_ZTSN4Json9OurReader5TokenE", !28, i64 0, !12, i64 8, !12, i64 16}
!28 = !{!"_ZTSN4Json9OurReader9TokenTypeE", !13, i64 0}
!29 = !{!27, !28, i64 0}
!30 = !{!6, !24, i64 277}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!6, !24, i64 280}
!34 = !{!27, !12, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass