; LLVM IR from taichi-dev/taichi :: taichi/common/json.ll (ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE)

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

%"struct.liong::json::JsonToken" = type { i32, i64, double, %"class.std::__cxx11::basic_string" }
%"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] }
%"struct.liong::json::JsonValue" = type { i32, i8, i64, double, %"class.std::__cxx11::basic_string", %"struct.liong::json::JsonObject", %"struct.liong::json::JsonArray" }
%"struct.liong::json::JsonObject" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.liong::json::JsonArray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl" }
%"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl" = type { %"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_string_view" = type { i64, ptr }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@_ZTIN5liong4json13JsonExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.liong::json::JsonToken", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.liong::json::JsonValue", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::basic_string_view", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.std::basic_string_view", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca %"class.std::basic_string_view", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #4
  call void @_ZN5liong4json9JsonTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #4
  br label %23

23:                                               ; preds = %2
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %26 unwind label %31

26:                                               ; preds = %23
  br i1 %25, label %27, label %281

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 128, ptr %9) #4
  invoke void @_ZN5liong4json9JsonValueC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %28 unwind label %35

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !9
  switch i32 %30, label %266 [
    i32 2, label %39
    i32 3, label %44
    i32 1, label %49
    i32 4, label %52
    i32 5, label %59
    i32 6, label %66
    i32 11, label %74
    i32 9, label %128
    i32 10, label %265
    i32 12, label %265
  ]

31:                                               ; preds = %287, %23
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %292

35:                                               ; preds = %27
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  br label %280

39:                                               ; preds = %28
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %40, i32 0, i32 0
  store i32 1, ptr %41, align 8, !tbaa !16
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %42, i32 0, i32 1
  store i8 1, ptr %43, align 4, !tbaa !34
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

44:                                               ; preds = %28
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %45, i32 0, i32 0
  store i32 1, ptr %46, align 8, !tbaa !16
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %47, i32 0, i32 1
  store i8 0, ptr %48, align 4, !tbaa !34
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

49:                                               ; preds = %28
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %50, i32 0, i32 0
  store i32 0, ptr %51, align 8, !tbaa !16
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

52:                                               ; preds = %28
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %53, i32 0, i32 0
  store i32 4, ptr %54, align 8, !tbaa !16
  %55 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 3
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %56, i32 0, i32 4
  %58 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %55) #4
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

59:                                               ; preds = %28
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %60, i32 0, i32 0
  store i32 3, ptr %61, align 8, !tbaa !16
  %62 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !35
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %64, i32 0, i32 2
  store i64 %63, ptr %65, align 8, !tbaa !36
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

66:                                               ; preds = %28
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %67, i32 0, i32 0
  store i32 2, ptr %68, align 8, !tbaa !16
  %69 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 2
  %70 = load double, ptr %69, align 8, !tbaa !37
  %71 = fptosi double %70 to i64
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %72, i32 0, i32 2
  store i64 %71, ptr %73, align 8, !tbaa !36
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

74:                                               ; preds = %28
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %75, i32 0, i32 0
  store i32 6, ptr %76, align 8, !tbaa !16
  br label %77

77:                                               ; preds = %99, %74
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = invoke noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %80 unwind label %82

80:                                               ; preds = %77
  br i1 %79, label %86, label %81

81:                                               ; preds = %80
  br label %127

82:                                               ; preds = %272, %122, %111, %91, %86, %77
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  br label %279

86:                                               ; preds = %80
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %87, i32 0, i32 6
  %89 = getelementptr inbounds %"struct.liong::json::JsonArray", ptr %88, i32 0, i32 0
  %90 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN5liong4json9JsonValueESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %91 unwind label %82

91:                                               ; preds = %86
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %94 unwind label %82

94:                                               ; preds = %91
  br i1 %93, label %95, label %116

95:                                               ; preds = %94
  %96 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !9
  %98 = icmp eq i32 %97, 8
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  br label %77, !llvm.loop !38

100:                                              ; preds = %95
  %101 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !9
  %103 = icmp eq i32 %102, 12
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  br label %127

105:                                              ; preds = %100
  %106 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str) #4
  %107 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 0
  %108 = load i64, ptr %107, align 8
  %109 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %106, i64 %108, ptr %110)
          to label %111 unwind label %112

111:                                              ; preds = %105
  invoke void @__cxa_throw(ptr %106, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %82

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @__cxa_free_exception(ptr %106) #4
  br label %279

116:                                              ; preds = %94
  %117 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.1) #4
  %118 = getelementptr inbounds { i64, ptr }, ptr %12, i32 0, i32 0
  %119 = load i64, ptr %118, align 8
  %120 = getelementptr inbounds { i64, ptr }, ptr %12, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %117, i64 %119, ptr %121)
          to label %122 unwind label %123

122:                                              ; preds = %116
  invoke void @__cxa_throw(ptr %117, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %82

123:                                              ; preds = %116
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  call void @__cxa_free_exception(ptr %117) #4
  br label %279

127:                                              ; preds = %104, %81
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

128:                                              ; preds = %28
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %129, i32 0, i32 0
  store i32 5, ptr %130, align 8, !tbaa !16
  br label %131

131:                                              ; preds = %261, %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %134 unwind label %142

134:                                              ; preds = %131
  br i1 %133, label %135, label %163

135:                                              ; preds = %134
  %136 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !9
  %138 = icmp eq i32 %137, 4
  br i1 %138, label %139, label %146

139:                                              ; preds = %135
  %140 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 3
  %141 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %140) #4
  br label %162

142:                                              ; preds = %256, %245, %224, %219, %214, %204, %199, %184, %174, %169, %157, %131
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  br label %263

146:                                              ; preds = %135
  %147 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %148 = load i32, ptr %147, align 8, !tbaa !9
  %149 = icmp eq i32 %148, 10
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  store i32 7, ptr %10, align 4
  br label %261

151:                                              ; preds = %146
  %152 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.2) #4
  %153 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %154 = load i64, ptr %153, align 8
  %155 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %152, i64 %154, ptr %156)
          to label %157 unwind label %158

157:                                              ; preds = %151
  invoke void @__cxa_throw(ptr %152, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %7, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %8, align 4
  call void @__cxa_free_exception(ptr %152) #4
  br label %263

162:                                              ; preds = %139
  br label %174

163:                                              ; preds = %134
  %164 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.3) #4
  %165 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 0
  %166 = load i64, ptr %165, align 8
  %167 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %164, i64 %166, ptr %168)
          to label %169 unwind label %170

169:                                              ; preds = %163
  invoke void @__cxa_throw(ptr %164, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

170:                                              ; preds = %163
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %7, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %8, align 4
  call void @__cxa_free_exception(ptr %164) #4
  br label %263

174:                                              ; preds = %162
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %175, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %177 unwind label %142

177:                                              ; preds = %174
  br i1 %176, label %189, label %178

178:                                              ; preds = %177
  %179 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.3) #4
  %180 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 0
  %181 = load i64, ptr %180, align 8
  %182 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %179, i64 %181, ptr %183)
          to label %184 unwind label %185

184:                                              ; preds = %178
  invoke void @__cxa_throw(ptr %179, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

185:                                              ; preds = %178
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  call void @__cxa_free_exception(ptr %179) #4
  br label %263

189:                                              ; preds = %177
  %190 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %191 = load i32, ptr %190, align 8, !tbaa !9
  %192 = icmp ne i32 %191, 7
  br i1 %192, label %193, label %204

193:                                              ; preds = %189
  %194 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.4) #4
  %195 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %196 = load i64, ptr %195, align 8
  %197 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %194, i64 %196, ptr %198)
          to label %199 unwind label %200

199:                                              ; preds = %193
  invoke void @__cxa_throw(ptr %194, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

200:                                              ; preds = %193
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %7, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %8, align 4
  call void @__cxa_free_exception(ptr %194) #4
  br label %263

204:                                              ; preds = %189
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = invoke noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %207 unwind label %142

207:                                              ; preds = %204
  br i1 %206, label %219, label %208

208:                                              ; preds = %207
  %209 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.3) #4
  %210 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 0
  %211 = load i64, ptr %210, align 8
  %212 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %209, i64 %211, ptr %213)
          to label %214 unwind label %215

214:                                              ; preds = %208
  invoke void @__cxa_throw(ptr %209, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

215:                                              ; preds = %208
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %7, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %8, align 4
  call void @__cxa_free_exception(ptr %209) #4
  br label %263

219:                                              ; preds = %207
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.liong::json::JsonValue", ptr %220, i32 0, i32 5
  %222 = getelementptr inbounds %"struct.liong::json::JsonObject", ptr %221, i32 0, i32 0
  %223 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %222, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %224 unwind label %142

224:                                              ; preds = %219
  %225 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN5liong4json9JsonValueaSEOS1_(ptr noundef nonnull align 8 dereferenceable(128) %223, ptr noundef nonnull align 8 dereferenceable(128) %9) #4
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %226, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %228 unwind label %142

228:                                              ; preds = %224
  br i1 %227, label %229, label %250

229:                                              ; preds = %228
  %230 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %231 = load i32, ptr %230, align 8, !tbaa !9
  %232 = icmp eq i32 %231, 8
  br i1 %232, label %233, label %234

233:                                              ; preds = %229
  store i32 8, ptr %10, align 4
  br label %261, !llvm.loop !40

234:                                              ; preds = %229
  %235 = getelementptr inbounds %"struct.liong::json::JsonToken", ptr %6, i32 0, i32 0
  %236 = load i32, ptr %235, align 8, !tbaa !9
  %237 = icmp eq i32 %236, 10
  br i1 %237, label %238, label %239

238:                                              ; preds = %234
  store i32 7, ptr %10, align 4
  br label %261

239:                                              ; preds = %234
  %240 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.4) #4
  %241 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %242 = load i64, ptr %241, align 8
  %243 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %244 = load ptr, ptr %243, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %240, i64 %242, ptr %244)
          to label %245 unwind label %246

245:                                              ; preds = %239
  invoke void @__cxa_throw(ptr %240, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

246:                                              ; preds = %239
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %7, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %8, align 4
  call void @__cxa_free_exception(ptr %240) #4
  br label %263

250:                                              ; preds = %228
  %251 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.3) #4
  %252 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %253 = load i64, ptr %252, align 8
  %254 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %255 = load ptr, ptr %254, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %251, i64 %253, ptr %255)
          to label %256 unwind label %257

256:                                              ; preds = %250
  invoke void @__cxa_throw(ptr %251, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %142

257:                                              ; preds = %250
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %7, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %8, align 4
  call void @__cxa_free_exception(ptr %251) #4
  br label %263

261:                                              ; preds = %238, %233, %150
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %262 = load i32, ptr %10, align 4
  switch i32 %262, label %298 [
    i32 7, label %264
    i32 8, label %131
  ]

263:                                              ; preds = %257, %246, %215, %200, %185, %170, %158, %142
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %279

264:                                              ; preds = %261
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

265:                                              ; preds = %28, %28
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %277

266:                                              ; preds = %28
  %267 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.5) #4
  %268 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %269 = load i64, ptr %268, align 8
  %270 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %267, i64 %269, ptr %271)
          to label %272 unwind label %273

272:                                              ; preds = %266
  invoke void @__cxa_throw(ptr %267, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %82

273:                                              ; preds = %266
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %7, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %8, align 4
  call void @__cxa_free_exception(ptr %267) #4
  br label %279

277:                                              ; preds = %265, %264, %127, %66, %59, %52, %49, %44, %39
  call void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #4
  call void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #4
  %278 = load i1, ptr %3, align 1
  ret i1 %278

279:                                              ; preds = %273, %263, %123, %112, %82
  call void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #4
  br label %280

280:                                              ; preds = %279, %35
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #4
  br label %292

281:                                              ; preds = %26
  %282 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.6) #4
  %283 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 0
  %284 = load i64, ptr %283, align 8
  %285 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %282, i64 %284, ptr %286)
          to label %287 unwind label %288

287:                                              ; preds = %281
  invoke void @__cxa_throw(ptr %282, ptr @_ZTIN5liong4json13JsonExceptionE, ptr @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %298 unwind label %31

288:                                              ; preds = %281
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %7, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %8, align 4
  call void @__cxa_free_exception(ptr %282) #4
  br label %292

292:                                              ; preds = %288, %280, %31
  call void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #4
  br label %293

293:                                              ; preds = %292
  %294 = load ptr, ptr %7, align 8
  %295 = load i32, ptr %8, align 4
  %296 = insertvalue { ptr, i32 } poison, ptr %294, 0
  %297 = insertvalue { ptr, i32 } %296, i32 %295, 1
  resume { ptr, i32 } %297

298:                                              ; preds = %287, %272, %261, %256, %245, %214, %199, %184, %169, %157, %122, %111
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(56)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonValueC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN5liong4json9JsonValueESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40), i64, ptr) unnamed_addr #0 align 2

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json13JsonExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZN5liong4json9JsonValueaSEOS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

!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, !11, i64 0}
!10 = !{!"_ZTSN5liong4json9JsonTokenE", !11, i64 0, !12, i64 8, !13, i64 16, !14, i64 24}
!11 = !{!"_ZTSN5liong4json13JsonTokenTypeE", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !12, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN5liong4json9JsonValueE", !18, i64 0, !19, i64 4, !12, i64 8, !13, i64 16, !14, i64 24, !20, i64 56, !29, i64 104}
!18 = !{!"_ZTSN5liong4json8JsonTypeE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN5liong4json10JsonObjectE", !21, i64 0}
!21 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N5liong4json9JsonValueEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N5liong4json9JsonValueEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !12, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!29 = !{!"_ZTSN5liong4json9JsonArrayE", !30, i64 0}
!30 = !{!"_ZTSSt6vectorIN5liong4json9JsonValueESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!17, !19, i64 4}
!35 = !{!10, !12, i64 8}
!36 = !{!17, !12, i64 8}
!37 = !{!10, !13, i64 16}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


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

%"struct.liong::json::JsonToken" = type { i32, i64, double, %"class.std::__cxx11::basic_string" }
%"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] }
%"struct.liong::json::JsonValue" = type { i32, i8, i64, double, %"class.std::__cxx11::basic_string", %"struct.liong::json::JsonObject", %"struct.liong::json::JsonArray" }
%"struct.liong::json::JsonObject" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, liong::json::JsonValue>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.liong::json::JsonArray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl" }
%"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl" = type { %"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<liong::json::JsonValue, std::allocator<liong::json::JsonValue>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_string_view" = type { i64, ptr }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@_ZTIN5liong4json13JsonExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.liong::json::JsonToken", align 8
  %4 = alloca %"struct.liong::json::JsonValue", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::basic_string_view", align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca %"class.std::basic_string_view", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  call void @_ZN5liong4json9JsonTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  %17 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %18 unwind label %21

18:                                               ; preds = %2
  br i1 %17, label %19, label %153

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #4
  call void @_ZN5liong4json9JsonValueC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4)
  %20 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %20, label %145 [
    i32 2, label %23
    i32 3, label %25
    i32 1, label %27
    i32 4, label %28
    i32 5, label %32
    i32 6, label %36
    i32 11, label %41
    i32 9, label %68
    i32 10, label %.loopexit40
    i32 12, label %.loopexit40
  ]

21:                                               ; preds = %158, %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %161

23:                                               ; preds = %19
  store i32 1, ptr %1, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 1, ptr %24, align 4, !tbaa !33
  br label %.loopexit40

25:                                               ; preds = %19
  store i32 1, ptr %1, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 0, ptr %26, align 4, !tbaa !33
  br label %.loopexit40

27:                                               ; preds = %19
  store i32 0, ptr %1, align 8, !tbaa !15
  br label %.loopexit40

28:                                               ; preds = %19
  store i32 4, ptr %1, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %3, i64 24
  %30 = getelementptr inbounds i8, ptr %1, i64 24
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  br label %.loopexit40

32:                                               ; preds = %19
  store i32 3, ptr %1, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %3, i64 8
  %34 = load i64, ptr %33, align 8, !tbaa !34
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %34, ptr %35, align 8, !tbaa !35
  br label %.loopexit40

36:                                               ; preds = %19
  store i32 2, ptr %1, align 8, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %3, i64 16
  %38 = load double, ptr %37, align 8, !tbaa !36
  %39 = fptosi double %38 to i64
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %39, ptr %40, align 8, !tbaa !35
  br label %.loopexit40

41:                                               ; preds = %19
  store i32 6, ptr %1, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %1, i64 104
  br label %43

43:                                               ; preds = %51, %41
  %44 = invoke noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(128) %4)
          to label %45 unwind label %.loopexit

45:                                               ; preds = %43
  br i1 %44, label %46, label %.loopexit40

.loopexit:                                        ; preds = %43, %46, %48
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %152

.loopexit.split-lp:                               ; preds = %.invoke
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %152

46:                                               ; preds = %45
  %47 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN5liong4json9JsonValueESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(128) %4)
          to label %48 unwind label %.loopexit

48:                                               ; preds = %46
  %49 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %50 unwind label %.loopexit

50:                                               ; preds = %48
  br i1 %49, label %51, label %61

51:                                               ; preds = %50
  %52 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %52, label %53 [
    i32 8, label %43
    i32 12, label %.loopexit40
  ]

53:                                               ; preds = %51
  %54 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str) #4
  %55 = load i64, ptr %5, align 8
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  %57 = load ptr, ptr %56, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %54, i64 %55, ptr %57)
          to label %.invoke unwind label %59

.invoke:                                          ; preds = %145, %61, %53
  %58 = phi ptr [ %54, %53 ], [ %62, %61 ], [ %146, %145 ]
  invoke void @__cxa_throw(ptr nonnull %58, ptr nonnull @_ZTIN5liong4json13JsonExceptionE, ptr nonnull @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %54) #4
  br label %152

61:                                               ; preds = %50
  %62 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef @.str.1) #4
  %63 = load i64, ptr %6, align 8
  %64 = getelementptr inbounds i8, ptr %6, i64 8
  %65 = load ptr, ptr %64, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %62, i64 %63, ptr %65)
          to label %.invoke unwind label %66

66:                                               ; preds = %61
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %62) #4
  br label %152

68:                                               ; preds = %19
  store i32 5, ptr %1, align 8, !tbaa !15
  %69 = getelementptr inbounds i8, ptr %3, i64 24
  %70 = getelementptr inbounds i8, ptr %1, i64 56
  br label %71

71:                                               ; preds = %143, %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  %72 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %73 unwind label %.loopexit41

73:                                               ; preds = %71
  br i1 %72, label %74, label %87

74:                                               ; preds = %73
  %75 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %75, label %79 [
    i32 4, label %76
    i32 10, label %.thread
  ]

76:                                               ; preds = %74
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %69) #4
  %78 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %94 unwind label %.loopexit41

.loopexit41:                                      ; preds = %71, %76, %111, %121, %123
  %lpad.loopexit43 = landingpad { ptr, i32 }
          cleanup
  br label %144

.loopexit.split-lp42:                             ; preds = %.invoke46
  %lpad.loopexit.split-lp44 = landingpad { ptr, i32 }
          cleanup
  br label %144

79:                                               ; preds = %74
  %80 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.2) #4
  %81 = load i64, ptr %8, align 8
  %82 = getelementptr inbounds i8, ptr %8, i64 8
  %83 = load ptr, ptr %82, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 %81, ptr %83)
          to label %.invoke46 unwind label %85

.invoke46:                                        ; preds = %136, %129, %114, %104, %95, %87, %79
  %84 = phi ptr [ %80, %79 ], [ %88, %87 ], [ %96, %95 ], [ %105, %104 ], [ %115, %114 ], [ %130, %129 ], [ %137, %136 ]
  invoke void @__cxa_throw(ptr nonnull %84, ptr nonnull @_ZTIN5liong4json13JsonExceptionE, ptr nonnull @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %.cont47 unwind label %.loopexit.split-lp42

.cont47:                                          ; preds = %.invoke46
  unreachable

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %80) #4
  br label %144

87:                                               ; preds = %73
  %88 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.3) #4
  %89 = load i64, ptr %9, align 8
  %90 = getelementptr inbounds i8, ptr %9, i64 8
  %91 = load ptr, ptr %90, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %88, i64 %89, ptr %91)
          to label %.invoke46 unwind label %92

92:                                               ; preds = %87
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %88) #4
  br label %144

94:                                               ; preds = %76
  br i1 %78, label %102, label %95

95:                                               ; preds = %94
  %96 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.3) #4
  %97 = load i64, ptr %10, align 8
  %98 = getelementptr inbounds i8, ptr %10, i64 8
  %99 = load ptr, ptr %98, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %96, i64 %97, ptr %99)
          to label %.invoke46 unwind label %100

100:                                              ; preds = %95
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %96) #4
  br label %144

102:                                              ; preds = %94
  %103 = load i32, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i32 %103, 7
  br i1 %.not, label %111, label %104

104:                                              ; preds = %102
  %105 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.4) #4
  %106 = load i64, ptr %11, align 8
  %107 = getelementptr inbounds i8, ptr %11, i64 8
  %108 = load ptr, ptr %107, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %105, i64 %106, ptr %108)
          to label %.invoke46 unwind label %109

109:                                              ; preds = %104
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %105) #4
  br label %144

111:                                              ; preds = %102
  %112 = invoke noundef zeroext i1 @_ZN5liong4json14try_parse_implERNS0_9TokenizerERNS0_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(128) %4)
          to label %113 unwind label %.loopexit41

113:                                              ; preds = %111
  br i1 %112, label %121, label %114

114:                                              ; preds = %113
  %115 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.3) #4
  %116 = load i64, ptr %12, align 8
  %117 = getelementptr inbounds i8, ptr %12, i64 8
  %118 = load ptr, ptr %117, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %115, i64 %116, ptr %118)
          to label %.invoke46 unwind label %119

119:                                              ; preds = %114
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %115) #4
  br label %144

121:                                              ; preds = %113
  %122 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %70, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %123 unwind label %.loopexit41

123:                                              ; preds = %121
  %124 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZN5liong4json9JsonValueaSEOS1_(ptr noundef nonnull align 8 dereferenceable(128) %122, ptr noundef nonnull align 8 dereferenceable(128) %4) #4
  %125 = invoke noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %126 unwind label %.loopexit41

126:                                              ; preds = %123
  br i1 %125, label %127, label %136

127:                                              ; preds = %126
  %128 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %128, label %129 [
    i32 8, label %143
    i32 10, label %.thread
  ]

129:                                              ; preds = %127
  %130 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.4) #4
  %131 = load i64, ptr %13, align 8
  %132 = getelementptr inbounds i8, ptr %13, i64 8
  %133 = load ptr, ptr %132, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %130, i64 %131, ptr %133)
          to label %.invoke46 unwind label %134

134:                                              ; preds = %129
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %130) #4
  br label %144

136:                                              ; preds = %126
  %137 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.3) #4
  %138 = load i64, ptr %14, align 8
  %139 = getelementptr inbounds i8, ptr %14, i64 8
  %140 = load ptr, ptr %139, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %137, i64 %138, ptr %140)
          to label %.invoke46 unwind label %141

141:                                              ; preds = %136
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %137) #4
  br label %144

.thread:                                          ; preds = %74, %127
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  br label %.loopexit40

143:                                              ; preds = %127
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  br label %71

144:                                              ; preds = %.loopexit41, %.loopexit.split-lp42, %141, %134, %119, %109, %100, %92, %85
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %135, %134 ], [ %142, %141 ], [ %120, %119 ], [ %101, %100 ], [ %86, %85 ], [ %93, %92 ], [ %lpad.loopexit43, %.loopexit41 ], [ %lpad.loopexit.split-lp44, %.loopexit.split-lp42 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  br label %152

145:                                              ; preds = %19
  %146 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.5) #4
  %147 = load i64, ptr %15, align 8
  %148 = getelementptr inbounds i8, ptr %15, i64 8
  %149 = load ptr, ptr %148, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %146, i64 %147, ptr %149)
          to label %.invoke unwind label %150

150:                                              ; preds = %145
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %146) #4
  br label %152

.loopexit40:                                      ; preds = %45, %51, %.thread, %19, %19, %36, %32, %28, %27, %25, %23
  %.029 = phi i1 [ true, %36 ], [ true, %32 ], [ true, %28 ], [ true, %27 ], [ true, %25 ], [ true, %23 ], [ false, %19 ], [ false, %19 ], [ true, %.thread ], [ true, %51 ], [ true, %45 ]
  call void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #4
  call void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  ret i1 %.029

152:                                              ; preds = %.loopexit, %.loopexit.split-lp, %150, %144, %66, %59
  %.pn34 = phi { ptr, i32 } [ %151, %150 ], [ %.pn, %144 ], [ %60, %59 ], [ %67, %66 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #4
  br label %161

153:                                              ; preds = %18
  %154 = call ptr @__cxa_allocate_exception(i64 40) #4
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.6) #4
  %155 = load i64, ptr %16, align 8
  %156 = getelementptr inbounds i8, ptr %16, i64 8
  %157 = load ptr, ptr %156, align 8
  invoke void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40) %154, i64 %155, ptr %157)
          to label %158 unwind label %159

158:                                              ; preds = %153
  invoke void @__cxa_throw(ptr nonnull %154, ptr nonnull @_ZTIN5liong4json13JsonExceptionE, ptr nonnull @_ZN5liong4json13JsonExceptionD2Ev) #5
          to label %162 unwind label %21

159:                                              ; preds = %153
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %154) #4
  br label %161

161:                                              ; preds = %159, %152, %21
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %152 ], [ %22, %21 ], [ %160, %159 ]
  call void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn34.pn

162:                                              ; preds = %158
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5liong4json9Tokenizer10next_tokenERNS0_9JsonTokenE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonValueC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN5liong4json9JsonValueESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5liong4json13JsonExceptionC2ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(40), i64, ptr) unnamed_addr #0 align 2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json13JsonExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZN5liong4json9JsonValueaSEOS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonValueD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5liong4json9JsonTokenD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN5liong4json9JsonTokenE", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"_ZTSN5liong4json13JsonTokenTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !10, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN5liong4json9JsonValueE", !17, i64 0, !18, i64 4, !10, i64 8, !11, i64 16, !12, i64 24, !19, i64 56, !28, i64 104}
!17 = !{!"_ZTSN5liong4json8JsonTypeE", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTSN5liong4json10JsonObjectE", !20, i64 0}
!20 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5liong4json9JsonValueESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N5liong4json9JsonValueEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N5liong4json9JsonValueEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !10, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!28 = !{!"_ZTSN5liong4json9JsonArrayE", !29, i64 0}
!29 = !{!"_ZTSSt6vectorIN5liong4json9JsonValueESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN5liong4json9JsonValueESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!33 = !{!16, !18, i64 4}
!34 = !{!6, !10, i64 8}
!35 = !{!16, !10, i64 8}
!36 = !{!6, !11, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass