; LLVM IR from p4lang/p4c :: backends/tofino/bf-asm/bson.ll (ZN4jsonrsERSiNS_9bson_wrapINS_3mapEEE)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.json::bson_wrap.10" = type { ptr }
%"class.std::fpos" = type { i64, %struct.__mbstate_t }
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"class.json::map::element_ref" = type { ptr, %"class.std::unique_ptr", %"struct.std::_List_iterator" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%"class.json::map" = type { %"class.json::obj", %"class.P4::ordered_map" }
%"class.json::obj" = type { ptr }
%"class.P4::ordered_map" = type { %"class.std::__cxx11::list", %"class.std::map" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<json::obj *const, std::unique_ptr<json::obj>>, std::allocator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<json::obj *const, std::unique_ptr<json::obj>>, std::allocator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<json::obj *const *, std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>, std::_Select1st<std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>>, P4::ordered_map<json::obj *, std::unique_ptr<json::obj>, json::obj::ptrless>::mapcmp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *const *, std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>, std::_Select1st<std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>>, P4::ordered_map<json::obj *, std::unique_ptr<json::obj>, json::obj::ptrless>::mapcmp>::_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 }
%"class.std::unique_ptr.13" = type { %"struct.std::__uniq_ptr_data.14" }
%"struct.std::__uniq_ptr_data.14" = type { %"class.std::__uniq_ptr_impl.15" }
%"class.std::__uniq_ptr_impl.15" = type { %"class.std::tuple.16" }
%"class.std::tuple.16" = type { %"struct.std::_Tuple_impl.17" }
%"struct.std::_Tuple_impl.17" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"class.json::vector" = type { %"class.json::obj", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.json::bson_wrap" = type { ptr }
%"class.std::unique_ptr.21" = type { %"struct.std::__uniq_ptr_data.22" }
%"struct.std::__uniq_ptr_data.22" = type { %"class.std::__uniq_ptr_impl.23" }
%"class.std::__uniq_ptr_impl.23" = type { %"class.std::tuple.24" }
%"class.std::tuple.24" = type { %"struct.std::_Tuple_impl.25" }
%"struct.std::_Tuple_impl.25" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%"class.json::False" = type { %"class.json::obj" }
%"class.std::unique_ptr.37" = type { %"struct.std::__uniq_ptr_data.38" }
%"struct.std::__uniq_ptr_data.38" = type { %"class.std::__uniq_ptr_impl.39" }
%"class.std::__uniq_ptr_impl.39" = type { %"class.std::tuple.40" }
%"class.std::tuple.40" = type { %"struct.std::_Tuple_impl.41" }
%"struct.std::_Tuple_impl.41" = type { %"struct.std::_Head_base.44" }
%"struct.std::_Head_base.44" = type { ptr }
%"class.json::True" = type { %"class.json::obj" }
%"class.P4::hex" = type <{ i64, i32, i8, [3 x i8] }>

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_6vectorEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr) #0

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

declare { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16)) #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: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) #0 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #2

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

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

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json3mapC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_3mapEEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.json::bson_wrap.10", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::fpos", align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::fpos", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.json::map::element_ref", align 8
  %18 = alloca %"class.json::map", align 8
  %19 = alloca %"struct.json::bson_wrap.10", align 8
  %20 = alloca %"class.std::unique_ptr", align 8
  %21 = alloca %"class.std::unique_ptr.13", align 8
  %22 = alloca %"class.json::map::element_ref", align 8
  %23 = alloca %"class.json::vector", align 8
  %24 = alloca %"struct.json::bson_wrap", align 8
  %25 = alloca %"class.std::unique_ptr", align 8
  %26 = alloca %"class.std::unique_ptr.21", align 8
  %27 = alloca %"class.json::map::element_ref", align 8
  %28 = alloca %"class.std::unique_ptr", align 8
  %29 = alloca %"class.std::unique_ptr.29", align 8
  %30 = alloca %"class.json::False", align 8
  %31 = alloca %"class.json::map::element_ref", align 8
  %32 = alloca %"class.std::unique_ptr", align 8
  %33 = alloca %"class.std::unique_ptr.37", align 8
  %34 = alloca %"class.json::True", align 8
  %35 = alloca %"class.json::map::element_ref", align 8
  %36 = alloca %"class.std::unique_ptr", align 8
  %37 = alloca %"class.json::map::element_ref", align 8
  %38 = alloca %"class.json::map::element_ref", align 8
  %39 = alloca %"class.json::map::element_ref", align 8
  %40 = alloca %"class.P4::hex", align 8
  %41 = alloca %"class.std::fpos", align 8
  %42 = getelementptr inbounds %"struct.json::bson_wrap.10", ptr %3, i32 0, i32 0
  store ptr %1, ptr %42, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %43 = getelementptr inbounds %"struct.json::bson_wrap.10", ptr %3, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  store ptr %44, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %45)
  %47 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %48 = extractvalue { i64, i64 } %46, 0
  store i64 %48, ptr %47, align 8
  %49 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %50 = extractvalue { i64, i64 } %46, 1
  store i64 %50, ptr %49, align 8
  %51 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  store i64 %51, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %52 = load i64, ptr %6, align 8, !tbaa !11
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %53)
  %55 = sext i32 %54 to i64
  %56 = add nsw i64 %52, %55
  store i64 %56, ptr %8, align 8, !tbaa !11
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  call void @_ZN2P411ordered_mapIPN4json3objESt10unique_ptrIS2_St14default_deleteIS2_EENS2_7ptrlessESaISt4pairIKS3_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(72) %58)
  br label %59

59:                                               ; preds = %379, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16) %60)
  store i8 %61, ptr %9, align 1, !tbaa !13
  %62 = load i8, ptr %9, align 1, !tbaa !13
  %63 = icmp ne i8 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  store i32 3, ptr %10, align 4
  br label %377

65:                                               ; preds = %59
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr i8, ptr %67, i64 -24
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds i8, ptr %66, i64 %69
  %71 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %70)
  br i1 %71, label %72, label %73

72:                                               ; preds = %65
  store i32 3, ptr %10, align 4
  br label %377

73:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %74)
  %76 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %77 = extractvalue { i64, i64 } %75, 0
  store i64 %77, ptr %76, align 8
  %78 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %79 = extractvalue { i64, i64 } %75, 1
  store i64 %79, ptr %78, align 8
  %80 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %81 = load i64, ptr %8, align 8, !tbaa !11
  %82 = icmp sge i64 %80, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br i1 %82, label %83, label %91

83:                                               ; preds = %73
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.6)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %88 = getelementptr i8, ptr %87, i64 -24
  %89 = load i64, ptr %88, align 8
  %90 = getelementptr inbounds i8, ptr %86, i64 %89
  call void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %90, i32 noundef 4)
  store i32 3, ptr %10, align 4
  br label %377

91:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext 0)
          to label %94 unwind label %105

94:                                               ; preds = %91
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %97 = invoke noundef i64 @_ZNK4json3map5countEPKc(ptr noundef nonnull align 8 dereferenceable(80) %95, ptr noundef %96)
          to label %98 unwind label %105

98:                                               ; preds = %94
  %99 = icmp ne i64 %97, 0
  br i1 %99, label %100, label %109

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
          to label %102 unwind label %105

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %104 unwind label %105

104:                                              ; preds = %102
  br label %109

105:                                              ; preds = %362, %344, %327, %305, %303, %301, %244, %102, %100, %94, %91
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %380

109:                                              ; preds = %104, %98
  %110 = load i8, ptr %9, align 1, !tbaa !13
  %111 = zext i8 %110 to i32
  switch i32 %111, label %362 [
    i32 2, label %112
    i32 3, label %166
    i32 4, label %205
    i32 8, label %244
    i32 10, label %313
    i32 16, label %327
    i32 18, label %344
    i32 127, label %361
    i32 255, label %361
  ]

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = invoke noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %113)
          to label %115 unwind label %146

115:                                              ; preds = %112
  %116 = sub nsw i32 %114, 1
  store i32 %116, ptr %15, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  %117 = load i32, ptr %15, align 4, !tbaa !16
  %118 = zext i32 %117 to i64
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef %118)
          to label %119 unwind label %150

119:                                              ; preds = %115
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef 0)
          to label %122 unwind label %150

122:                                              ; preds = %119
  %123 = load i32, ptr %15, align 4, !tbaa !16
  %124 = zext i32 %123 to i64
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %120, ptr noundef %121, i64 noundef %124)
          to label %126 unwind label %150

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %17, ptr noundef nonnull align 8 dereferenceable(80) %127, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %128 unwind label %154

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4json3map11element_refaSERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %130 unwind label %158

130:                                              ; preds = %128
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %131)
          to label %133 unwind label %150

133:                                              ; preds = %130
  %134 = icmp ne i32 %132, 0
  br i1 %134, label %135, label %163

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
          to label %137 unwind label %150

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %139 unwind label %150

139:                                              ; preds = %137
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load ptr, ptr %140, align 8, !tbaa !14
  %142 = getelementptr i8, ptr %141, i64 -24
  %143 = load i64, ptr %142, align 8
  %144 = getelementptr inbounds i8, ptr %140, i64 %143
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %144, i32 noundef 4)
          to label %145 unwind label %150

145:                                              ; preds = %139
  br label %163

146:                                              ; preds = %112
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %13, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %14, align 4
  br label %165

150:                                              ; preds = %139, %137, %135, %130, %122, %119, %115
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %13, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %14, align 4
  br label %164

154:                                              ; preds = %126
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %13, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %14, align 4
  br label %162

158:                                              ; preds = %128
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %13, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %164

163:                                              ; preds = %145, %133
  store i32 4, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %376

164:                                              ; preds = %162, %150
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %165

165:                                              ; preds = %164, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %380

166:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #7
  invoke void @_ZN4json3mapC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18)
          to label %167 unwind label %181

167:                                              ; preds = %166
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = invoke ptr @_ZN4json6binaryINS_3mapEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(80) %18)
          to label %170 unwind label %185

170:                                              ; preds = %167
  %171 = getelementptr inbounds %"struct.json::bson_wrap.10", ptr %19, i32 0, i32 0
  store ptr %169, ptr %171, align 8
  %172 = getelementptr inbounds %"struct.json::bson_wrap.10", ptr %19, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_3mapEEE(ptr noundef nonnull align 8 dereferenceable(16) %168, ptr %173)
          to label %175 unwind label %185

175:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZN4json6mkuniqINS_3mapEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.13") align 8 %21, ptr noundef nonnull align 8 dereferenceable(80) %18)
          to label %176 unwind label %189

176:                                              ; preds = %175
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_3mapES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %22, ptr noundef nonnull align 8 dereferenceable(80) %177, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %178 unwind label %193

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %180 unwind label %197

180:                                              ; preds = %178
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @_ZNSt10unique_ptrIN4json3mapESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  store i32 4, ptr %10, align 4
  call void @_ZN4json3mapD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #7
  br label %376

181:                                              ; preds = %166
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %13, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %14, align 4
  br label %204

185:                                              ; preds = %170, %167
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %13, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %14, align 4
  br label %203

189:                                              ; preds = %175
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %13, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %14, align 4
  br label %202

193:                                              ; preds = %176
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %13, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %14, align 4
  br label %201

197:                                              ; preds = %178
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %13, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %201

201:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @_ZNSt10unique_ptrIN4json3mapESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %202

202:                                              ; preds = %201, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %203

203:                                              ; preds = %202, %185
  call void @_ZN4json3mapD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #7
  br label %204

204:                                              ; preds = %203, %181
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #7
  br label %380

205:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  invoke void @_ZN4json6vectorC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %206 unwind label %220

206:                                              ; preds = %205
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = invoke ptr @_ZN4json6binaryINS_6vectorEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %209 unwind label %224

209:                                              ; preds = %206
  %210 = getelementptr inbounds %"struct.json::bson_wrap", ptr %24, i32 0, i32 0
  store ptr %208, ptr %210, align 8
  %211 = getelementptr inbounds %"struct.json::bson_wrap", ptr %24, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  %213 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_6vectorEEE(ptr noundef nonnull align 8 dereferenceable(16) %207, ptr %212)
          to label %214 unwind label %224

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  invoke void @_ZN4json6mkuniqINS_6vectorEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.21") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %215 unwind label %228

215:                                              ; preds = %214
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_6vectorES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %27, ptr noundef nonnull align 8 dereferenceable(80) %216, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %217 unwind label %232

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %219 unwind label %236

219:                                              ; preds = %217
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @_ZNSt10unique_ptrIN4json6vectorESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  store i32 4, ptr %10, align 4
  call void @_ZN4json6vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  br label %376

220:                                              ; preds = %205
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %13, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %14, align 4
  br label %243

224:                                              ; preds = %209, %206
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %13, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %14, align 4
  br label %242

228:                                              ; preds = %214
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %13, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %14, align 4
  br label %241

232:                                              ; preds = %215
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %13, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %14, align 4
  br label %240

236:                                              ; preds = %217
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %13, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  br label %240

240:                                              ; preds = %236, %232
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @_ZNSt10unique_ptrIN4json6vectorESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %241

241:                                              ; preds = %240, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %242

242:                                              ; preds = %241, %224
  call void @_ZN4json6vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %243

243:                                              ; preds = %242, %220
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  br label %380

244:                                              ; preds = %109
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = invoke noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16) %245)
          to label %247 unwind label %105

247:                                              ; preds = %244
  %248 = zext i8 %246 to i32
  switch i32 %248, label %301 [
    i32 0, label %249
    i32 1, label %275
  ]

249:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 8, i1 false)
  invoke void @_ZN4json5FalseC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %250 unwind label %256

250:                                              ; preds = %249
  invoke void @_ZN4json6mkuniqINS_5FalseEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.29") align 8 %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %251 unwind label %260

251:                                              ; preds = %250
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_5FalseES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #7
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %31, ptr noundef nonnull align 8 dereferenceable(80) %252, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %253 unwind label %264

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %255 unwind label %268

255:                                              ; preds = %253
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZNSt10unique_ptrIN4json5FalseESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %312

256:                                              ; preds = %249
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %13, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %14, align 4
  br label %274

260:                                              ; preds = %250
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %13, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %14, align 4
  br label %273

264:                                              ; preds = %251
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %13, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %14, align 4
  br label %272

268:                                              ; preds = %253
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %13, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  br label %272

272:                                              ; preds = %268, %264
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZNSt10unique_ptrIN4json5FalseESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br label %273

273:                                              ; preds = %272, %260
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br label %274

274:                                              ; preds = %273, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %380

275:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 8, i1 false)
  invoke void @_ZN4json4TrueC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %276 unwind label %282

276:                                              ; preds = %275
  invoke void @_ZN4json6mkuniqINS_4TrueEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.37") align 8 %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %277 unwind label %286

277:                                              ; preds = %276
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_4TrueES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #7
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %35, ptr noundef nonnull align 8 dereferenceable(80) %278, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %279 unwind label %290

279:                                              ; preds = %277
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %281 unwind label %294

281:                                              ; preds = %279
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @_ZNSt10unique_ptrIN4json4TrueESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %312

282:                                              ; preds = %275
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %13, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %14, align 4
  br label %300

286:                                              ; preds = %276
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %13, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %14, align 4
  br label %299

290:                                              ; preds = %277
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %13, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %14, align 4
  br label %298

294:                                              ; preds = %279
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %13, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  br label %298

298:                                              ; preds = %294, %290
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @_ZNSt10unique_ptrIN4json4TrueESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %299

299:                                              ; preds = %298, %286
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  br label %300

300:                                              ; preds = %299, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %380

301:                                              ; preds = %247
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
          to label %303 unwind label %105

303:                                              ; preds = %301
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %305 unwind label %105

305:                                              ; preds = %303
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = load ptr, ptr %306, align 8, !tbaa !14
  %308 = getelementptr i8, ptr %307, i64 -24
  %309 = load i64, ptr %308, align 8
  %310 = getelementptr inbounds i8, ptr %306, i64 %309
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %310, i32 noundef 4)
          to label %311 unwind label %105

311:                                              ; preds = %305
  br label %312

312:                                              ; preds = %311, %281, %255
  br label %376

313:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #7
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %37, ptr noundef nonnull align 8 dereferenceable(80) %314, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %315 unwind label %318

315:                                              ; preds = %313
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %317 unwind label %322

317:                                              ; preds = %315
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %376

318:                                              ; preds = %313
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %13, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %14, align 4
  br label %326

322:                                              ; preds = %315
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %13, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  br label %326

326:                                              ; preds = %322, %318
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %380

327:                                              ; preds = %109
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = invoke noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %328)
          to label %330 unwind label %105

330:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #7
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %38, ptr noundef nonnull align 8 dereferenceable(80) %331, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %332 unwind label %335

332:                                              ; preds = %330
  %333 = invoke noundef i32 @_ZN4json3map11element_refaSEi(ptr noundef nonnull align 8 dereferenceable(24) %38, i32 noundef %329)
          to label %334 unwind label %339

334:                                              ; preds = %332
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #7
  br label %376

335:                                              ; preds = %330
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %13, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %14, align 4
  br label %343

339:                                              ; preds = %332
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %13, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  br label %343

343:                                              ; preds = %339, %335
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #7
  br label %380

344:                                              ; preds = %109
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = invoke noundef i64 @_ZN12_GLOBAL__N_15get64ERSi(ptr noundef nonnull align 8 dereferenceable(16) %345)
          to label %347 unwind label %105

347:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #7
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.json::map::element_ref") align 8 %39, ptr noundef nonnull align 8 dereferenceable(80) %348, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %349 unwind label %352

349:                                              ; preds = %347
  %350 = invoke noundef i64 @_ZN4json3map11element_refaSEl(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %346)
          to label %351 unwind label %356

351:                                              ; preds = %349
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  br label %376

352:                                              ; preds = %347
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %13, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %14, align 4
  br label %360

356:                                              ; preds = %349
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %13, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %14, align 4
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  br label %360

360:                                              ; preds = %356, %352
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  br label %380

361:                                              ; preds = %109, %109
  br label %376

362:                                              ; preds = %109
  %363 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
          to label %364 unwind label %105

364:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  %365 = load i8, ptr %9, align 1, !tbaa !13
  %366 = zext i8 %365 to i64
  invoke void @_ZN2P43hexC2Elic(ptr noundef nonnull align 8 dereferenceable(13) %40, i64 noundef %366, i32 noundef 0, i8 noundef signext 32)
          to label %367 unwind label %372

367:                                              ; preds = %364
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_3hexE(ptr noundef nonnull align 8 dereferenceable(8) %363, ptr noundef nonnull align 8 dereferenceable(13) %40)
          to label %369 unwind label %372

369:                                              ; preds = %367
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %371 unwind label %372

371:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  br label %376

372:                                              ; preds = %369, %367, %364
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %13, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  br label %380

376:                                              ; preds = %371, %361, %351, %334, %317, %312, %219, %180, %163
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  store i32 0, ptr %10, align 4
  br label %377

377:                                              ; preds = %376, %83, %72, %64
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  %378 = load i32, ptr %10, align 4
  switch i32 %378, label %413 [
    i32 0, label %379
    i32 3, label %381
  ]

379:                                              ; preds = %377
  br label %59, !llvm.loop !18

380:                                              ; preds = %372, %360, %343, %326, %300, %274, %243, %204, %165, %105
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %408

381:                                              ; preds = %377
  %382 = load i64, ptr %6, align 8, !tbaa !11
  %383 = icmp ne i64 %382, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  br i1 %383, label %384, label %401

384:                                              ; preds = %381
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  %386 = load ptr, ptr %385, align 8, !tbaa !14
  %387 = getelementptr i8, ptr %386, i64 -24
  %388 = load i64, ptr %387, align 8
  %389 = getelementptr inbounds i8, ptr %385, i64 %388
  %390 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %389)
  br i1 %390, label %391, label %401

391:                                              ; preds = %384
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  %393 = call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %392)
  %394 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 0
  %395 = extractvalue { i64, i64 } %393, 0
  store i64 %395, ptr %394, align 8
  %396 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 1
  %397 = extractvalue { i64, i64 } %393, 1
  store i64 %397, ptr %396, align 8
  %398 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  %399 = load i64, ptr %8, align 8, !tbaa !11
  %400 = icmp ne i64 %398, %399
  br label %401

401:                                              ; preds = %391, %384, %381
  %402 = phi i1 [ false, %384 ], [ false, %381 ], [ %400, %391 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  br i1 %402, label %403, label %406

403:                                              ; preds = %401
  %404 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %406

406:                                              ; preds = %403, %401
  %407 = load ptr, ptr %4, align 8, !tbaa !5
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret ptr %407

408:                                              ; preds = %380
  %409 = load ptr, ptr %13, align 8
  %410 = load i32, ptr %14, align 4
  %411 = insertvalue { ptr, i32 } poison, ptr %409, 0
  %412 = insertvalue { ptr, i32 } %411, i32 %410, 1
  resume { ptr, i32 } %412

413:                                              ; preds = %377
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4json6binaryINS_3mapEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(80)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4json6binaryINS_6vectorEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(32)) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_15get64ERSi(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_3hexE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(13)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2P43hexC2Elic(ptr noundef nonnull align 8 dereferenceable(13), i64 noundef, i32 noundef, i8 noundef signext) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK4json3map5countEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.json::map::element_ref") align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_3mapEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.13") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_6vectorEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_5FalseEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_4TrueEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.37") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4json3map11element_refaSEl(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 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 = { "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 = { inlinehint 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 0}
!10 = !{!"_ZTSN4json9bson_wrapINS_3mapEEE", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::fpos" = type { i64, %struct.__mbstate_t }
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"class.json::map::element_ref" = type { ptr, %"class.std::unique_ptr", %"struct.std::_List_iterator" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%"class.json::map" = type { %"class.json::obj", %"class.P4::ordered_map" }
%"class.json::obj" = type { ptr }
%"class.P4::ordered_map" = type { %"class.std::__cxx11::list", %"class.std::map" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<json::obj *const, std::unique_ptr<json::obj>>, std::allocator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<json::obj *const, std::unique_ptr<json::obj>>, std::allocator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<json::obj *const *, std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>, std::_Select1st<std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>>, P4::ordered_map<json::obj *, std::unique_ptr<json::obj>, json::obj::ptrless>::mapcmp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *const *, std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>, std::_Select1st<std::pair<json::obj *const *const, std::_List_iterator<std::pair<json::obj *const, std::unique_ptr<json::obj>>>>>, P4::ordered_map<json::obj *, std::unique_ptr<json::obj>, json::obj::ptrless>::mapcmp>::_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 }
%"class.std::unique_ptr.13" = type { %"struct.std::__uniq_ptr_data.14" }
%"struct.std::__uniq_ptr_data.14" = type { %"class.std::__uniq_ptr_impl.15" }
%"class.std::__uniq_ptr_impl.15" = type { %"class.std::tuple.16" }
%"class.std::tuple.16" = type { %"struct.std::_Tuple_impl.17" }
%"struct.std::_Tuple_impl.17" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"class.json::vector" = type { %"class.json::obj", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<json::obj>, std::allocator<std::unique_ptr<json::obj>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.21" = type { %"struct.std::__uniq_ptr_data.22" }
%"struct.std::__uniq_ptr_data.22" = type { %"class.std::__uniq_ptr_impl.23" }
%"class.std::__uniq_ptr_impl.23" = type { %"class.std::tuple.24" }
%"class.std::tuple.24" = type { %"struct.std::_Tuple_impl.25" }
%"struct.std::_Tuple_impl.25" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%"class.json::False" = type { %"class.json::obj" }
%"class.std::unique_ptr.37" = type { %"struct.std::__uniq_ptr_data.38" }
%"struct.std::__uniq_ptr_data.38" = type { %"class.std::__uniq_ptr_impl.39" }
%"class.std::__uniq_ptr_impl.39" = type { %"class.std::tuple.40" }
%"class.std::tuple.40" = type { %"struct.std::_Tuple_impl.41" }
%"struct.std::_Tuple_impl.41" = type { %"struct.std::_Head_base.44" }
%"struct.std::_Head_base.44" = type { ptr }
%"class.json::True" = type { %"class.json::obj" }
%"class.P4::hex" = type <{ i64, i32, i8, [3 x i8] }>

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_6vectorEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #0

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

declare { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16)) local_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: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) local_unnamed_addr #0 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json3mapC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_3mapEEE(ptr noundef nonnull returned align 8 dereferenceable(16) %0, ptr %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::fpos", align 8
  %4 = alloca %"class.std::fpos", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.json::map::element_ref", align 8
  %8 = alloca %"class.json::map", align 8
  %9 = alloca %"class.std::unique_ptr", align 8
  %10 = alloca %"class.std::unique_ptr.13", align 8
  %11 = alloca %"class.json::map::element_ref", align 8
  %12 = alloca %"class.json::vector", align 8
  %13 = alloca %"class.std::unique_ptr", align 8
  %14 = alloca %"class.std::unique_ptr.21", align 8
  %15 = alloca %"class.json::map::element_ref", align 8
  %16 = alloca %"class.std::unique_ptr", align 8
  %17 = alloca %"class.std::unique_ptr.29", align 8
  %18 = alloca %"class.json::False", align 8
  %19 = alloca %"class.json::map::element_ref", align 8
  %20 = alloca %"class.std::unique_ptr", align 8
  %21 = alloca %"class.std::unique_ptr.37", align 8
  %22 = alloca %"class.json::True", align 8
  %23 = alloca %"class.json::map::element_ref", align 8
  %24 = alloca %"class.std::unique_ptr", align 8
  %25 = alloca %"class.json::map::element_ref", align 8
  %26 = alloca %"class.json::map::element_ref", align 8
  %27 = alloca %"class.json::map::element_ref", align 8
  %28 = alloca %"class.P4::hex", align 8
  %29 = alloca %"class.std::fpos", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %30 = tail call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %31 = extractvalue { i64, i64 } %30, 0
  store i64 %31, ptr %3, align 8
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = extractvalue { i64, i64 } %30, 1
  store i64 %33, ptr %32, align 8
  %34 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %35 = call noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %36 = sext i32 %35 to i64
  %37 = add nsw i64 %34, %36
  %38 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZN2P411ordered_mapIPN4json3objESt10unique_ptrIS2_St14default_deleteIS2_EENS2_7ptrlessESaISt4pairIKS3_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(72) %38)
  %39 = call noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not97 = icmp eq i8 %39, 0
  br i1 %.not97, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %40 = getelementptr inbounds i8, ptr %4, i64 8
  br label %41

41:                                               ; preds = %.lr.ph, %230
  %42 = phi i8 [ %39, %.lr.ph ], [ %231, %230 ]
  %43 = load ptr, ptr %0, align 8, !tbaa !5
  %44 = getelementptr i8, ptr %43, i64 -24
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr %0, i64 %45
  %47 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %46)
  br i1 %47, label %.loopexit, label %48

48:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %49 = call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %50 = extractvalue { i64, i64 } %49, 0
  store i64 %50, ptr %4, align 8
  %51 = extractvalue { i64, i64 } %49, 1
  store i64 %51, ptr %40, align 8
  %52 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not63 = icmp slt i64 %52, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br i1 %.not63, label %60, label %53

53:                                               ; preds = %48
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.6)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %56 = load ptr, ptr %0, align 8, !tbaa !5
  %57 = getelementptr i8, ptr %56, i64 -24
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr %0, i64 %58
  call void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %59, i32 noundef 4)
  br label %.loopexit

60:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 0)
          to label %62 unwind label %70

62:                                               ; preds = %60
  %63 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %64 = invoke noundef i64 @_ZNK4json3map5countEPKc(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef %63)
          to label %65 unwind label %70

65:                                               ; preds = %62
  %.not64 = icmp eq i64 %64, 0
  br i1 %.not64, label %72, label %66

66:                                               ; preds = %65
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
          to label %68 unwind label %70

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %72 unwind label %70

70:                                               ; preds = %220, %209, %198, %184, %182, %180, %151, %68, %66, %62, %60
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %232

72:                                               ; preds = %68, %65
  switch i8 %42, label %220 [
    i8 2, label %73
    i8 3, label %107
    i8 4, label %131
    i8 8, label %151
    i8 10, label %189
    i8 16, label %198
    i8 18, label %209
    i8 127, label %230
    i8 -1, label %230
  ]

73:                                               ; preds = %72
  %74 = invoke noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %75 unwind label %96

75:                                               ; preds = %73
  %76 = add nsw i32 %74, -1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %77 = zext i32 %76 to i64
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %77)
          to label %78 unwind label %98

78:                                               ; preds = %75
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef 0)
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %79, i64 noundef %77)
          to label %81 unwind label %98

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %7, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %82 unwind label %100

82:                                               ; preds = %81
  %83 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4json3map11element_refaSERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %84 unwind label %102

84:                                               ; preds = %82
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %85 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %86 unwind label %98

86:                                               ; preds = %84
  %.not87 = icmp eq i32 %85, 0
  br i1 %.not87, label %105, label %87

87:                                               ; preds = %86
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
          to label %89 unwind label %98

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %91 unwind label %98

91:                                               ; preds = %89
  %92 = load ptr, ptr %0, align 8, !tbaa !5
  %93 = getelementptr i8, ptr %92, i64 -24
  %94 = load i64, ptr %93, align 8
  %95 = getelementptr inbounds i8, ptr %0, i64 %94
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %95, i32 noundef 4)
          to label %105 unwind label %98

96:                                               ; preds = %73
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %232

98:                                               ; preds = %91, %89, %87, %84, %78, %75
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %106

100:                                              ; preds = %81
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %82
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %104

104:                                              ; preds = %102, %100
  %.pn85 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %106

105:                                              ; preds = %91, %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %230

106:                                              ; preds = %104, %98
  %.pn88 = phi { ptr, i32 } [ %99, %98 ], [ %.pn85, %104 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %232

107:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #6
  invoke void @_ZN4json3mapC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %108 unwind label %117

108:                                              ; preds = %107
  %109 = invoke ptr @_ZN4json6binaryINS_3mapEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %110 unwind label %119

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_3mapEEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr %109)
          to label %112 unwind label %119

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_ZN4json6mkuniqINS_3mapEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.13") align 8 %10, ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %113 unwind label %121

113:                                              ; preds = %112
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_3mapES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %11, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %114 unwind label %123

114:                                              ; preds = %113
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %116 unwind label %125

116:                                              ; preds = %114
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @_ZNSt10unique_ptrIN4json3mapESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4json3mapD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #6
  br label %230

117:                                              ; preds = %107
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %130

119:                                              ; preds = %110, %108
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %129

121:                                              ; preds = %112
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %128

123:                                              ; preds = %113
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %114
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %127

127:                                              ; preds = %125, %123
  %.pn80 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @_ZNSt10unique_ptrIN4json3mapESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %128

128:                                              ; preds = %127, %121
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %127 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %129

129:                                              ; preds = %128, %119
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %128 ], [ %120, %119 ]
  call void @_ZN4json3mapD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #6
  br label %130

130:                                              ; preds = %129, %117
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %129 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #6
  br label %232

131:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @_ZN4json6vectorC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12)
  %132 = invoke ptr @_ZN4json6binaryINS_6vectorEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %133 unwind label %140

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiNS_9bson_wrapINS_6vectorEEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr %132)
          to label %135 unwind label %140

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  invoke void @_ZN4json6mkuniqINS_6vectorEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.21") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %136 unwind label %142

136:                                              ; preds = %135
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_6vectorES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %15, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %137 unwind label %144

137:                                              ; preds = %136
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %139 unwind label %146

139:                                              ; preds = %137
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @_ZNSt10unique_ptrIN4json6vectorESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZN4json6vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %230

140:                                              ; preds = %133, %131
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %150

142:                                              ; preds = %135
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %149

144:                                              ; preds = %136
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %148

146:                                              ; preds = %137
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %148

148:                                              ; preds = %146, %144
  %.pn76 = phi { ptr, i32 } [ %147, %146 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @_ZNSt10unique_ptrIN4json6vectorESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %149

149:                                              ; preds = %148, %142
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %148 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %150

150:                                              ; preds = %149, %140
  %.pn76.pn.pn = phi { ptr, i32 } [ %.pn76.pn, %149 ], [ %141, %140 ]
  call void @_ZN4json6vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %232

151:                                              ; preds = %72
  %152 = invoke noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %153 unwind label %70

153:                                              ; preds = %151
  switch i8 %152, label %180 [
    i8 0, label %154
    i8 1, label %167
  ]

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  store i64 0, ptr %18, align 8
  call void @_ZN4json5FalseC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  invoke void @_ZN4json6mkuniqINS_5FalseEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.29") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %155 unwind label %159

155:                                              ; preds = %154
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_5FalseES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %19, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %156 unwind label %161

156:                                              ; preds = %155
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %158 unwind label %163

158:                                              ; preds = %156
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @_ZNSt10unique_ptrIN4json5FalseESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %230

159:                                              ; preds = %154
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %166

161:                                              ; preds = %155
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %156
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %165

165:                                              ; preds = %163, %161
  %.pn73 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @_ZNSt10unique_ptrIN4json5FalseESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %166

166:                                              ; preds = %165, %159
  %.pn73.pn = phi { ptr, i32 } [ %.pn73, %165 ], [ %160, %159 ]
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %232

167:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  store i64 0, ptr %22, align 8
  call void @_ZN4json4TrueC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
  invoke void @_ZN4json6mkuniqINS_4TrueEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.37") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %168 unwind label %172

168:                                              ; preds = %167
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2INS0_4TrueES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %23, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %169 unwind label %174

169:                                              ; preds = %168
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %171 unwind label %176

171:                                              ; preds = %169
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @_ZNSt10unique_ptrIN4json4TrueESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %230

172:                                              ; preds = %167
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %179

174:                                              ; preds = %168
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %178

176:                                              ; preds = %169
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %178

178:                                              ; preds = %176, %174
  %.pn70 = phi { ptr, i32 } [ %177, %176 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @_ZNSt10unique_ptrIN4json4TrueESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %179

179:                                              ; preds = %178, %172
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %178 ], [ %173, %172 ]
  call void @_ZN4json3objD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %232

180:                                              ; preds = %153
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
          to label %182 unwind label %70

182:                                              ; preds = %180
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %184 unwind label %70

184:                                              ; preds = %182
  %185 = load ptr, ptr %0, align 8, !tbaa !5
  %186 = getelementptr i8, ptr %185, i64 -24
  %187 = load i64, ptr %186, align 8
  %188 = getelementptr inbounds i8, ptr %0, i64 %187
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %188, i32 noundef 4)
          to label %230 unwind label %70

189:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %25, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %190 unwind label %193

190:                                              ; preds = %189
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4json3map11element_refaSEOSt10unique_ptrINS_3objESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %192 unwind label %195

192:                                              ; preds = %190
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  br label %230

193:                                              ; preds = %189
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %197

195:                                              ; preds = %190
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %197

197:                                              ; preds = %195, %193
  %.pn68 = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  br label %232

198:                                              ; preds = %72
  %199 = invoke noundef i32 @_ZN12_GLOBAL__N_15get32ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %200 unwind label %70

200:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %26, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %201 unwind label %204

201:                                              ; preds = %200
  %202 = invoke noundef i32 @_ZN4json3map11element_refaSEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %199)
          to label %203 unwind label %206

203:                                              ; preds = %201
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  br label %230

204:                                              ; preds = %200
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %208

206:                                              ; preds = %201
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %208

208:                                              ; preds = %206, %204
  %.pn66 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  br label %232

209:                                              ; preds = %72
  %210 = invoke noundef i64 @_ZN12_GLOBAL__N_15get64ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %211 unwind label %70

211:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #6
  invoke void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.json::map::element_ref") align 8 %27, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %212 unwind label %215

212:                                              ; preds = %211
  %213 = invoke noundef i64 @_ZN4json3map11element_refaSEl(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %210)
          to label %214 unwind label %217

214:                                              ; preds = %212
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  br label %230

215:                                              ; preds = %211
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %219

217:                                              ; preds = %212
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4json3map11element_refD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  br label %219

219:                                              ; preds = %217, %215
  %.pn = phi { ptr, i32 } [ %218, %217 ], [ %216, %215 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  br label %232

220:                                              ; preds = %72
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
          to label %222 unwind label %70

222:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  %223 = zext i8 %42 to i64
  call void @_ZN2P43hexC2Elic(ptr noundef nonnull align 8 dereferenceable(13) %28, i64 noundef %223, i32 noundef 0, i8 noundef signext 32)
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_3hexE(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef nonnull align 8 dereferenceable(13) %28)
          to label %225 unwind label %228

225:                                              ; preds = %222
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %227 unwind label %228

227:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  br label %230

228:                                              ; preds = %225, %222
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  br label %232

230:                                              ; preds = %105, %116, %139, %192, %203, %214, %227, %184, %171, %158, %72, %72
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  %231 = call noundef zeroext i8 @_ZN12_GLOBAL__N_14get8ERSi(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not = icmp eq i8 %231, 0
  br i1 %.not, label %.loopexit, label %41

232:                                              ; preds = %96, %106, %228, %219, %208, %197, %179, %166, %150, %130, %70
  %.pn91 = phi { ptr, i32 } [ %229, %228 ], [ %71, %70 ], [ %.pn, %219 ], [ %.pn66, %208 ], [ %.pn68, %197 ], [ %.pn70.pn, %179 ], [ %.pn73.pn, %166 ], [ %.pn76.pn.pn, %150 ], [ %.pn80.pn.pn.pn, %130 ], [ %.pn88, %106 ], [ %97, %96 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn91

.loopexit:                                        ; preds = %41, %230, %2, %53
  %.not93 = icmp eq i64 %34, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #6
  br i1 %.not93, label %.critedge, label %233

233:                                              ; preds = %.loopexit
  %234 = load ptr, ptr %0, align 8, !tbaa !5
  %235 = getelementptr i8, ptr %234, i64 -24
  %236 = load i64, ptr %235, align 8
  %237 = getelementptr inbounds i8, ptr %0, i64 %236
  %238 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %237)
  br i1 %238, label %239, label %.critedge

239:                                              ; preds = %233
  %240 = call { i64, i64 } @_ZNSi5tellgEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %241 = extractvalue { i64, i64 } %240, 0
  store i64 %241, ptr %29, align 8
  %242 = getelementptr inbounds i8, ptr %29, i64 8
  %243 = extractvalue { i64, i64 } %240, 1
  store i64 %243, ptr %242, align 8
  %244 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %.not94 = icmp eq i64 %244, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  br i1 %.not94, label %248, label %245

245:                                              ; preds = %239
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %248

.critedge:                                        ; preds = %.loopexit, %233
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  br label %248

248:                                              ; preds = %.critedge, %245, %239
  ret ptr %0
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4json6binaryINS_3mapEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4json6binaryINS_6vectorEEENS_9bson_wrapIT_EERS3_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_15get64ERSi(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_3hexE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(13)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2P43hexC2Elic(ptr noundef nonnull align 8 dereferenceable(13), i64 noundef, i32 noundef, i8 noundef signext) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2P411ordered_mapIPN4json3objESt10unique_ptrIS2_St14default_deleteIS2_EENS2_7ptrlessESaISt4pairIKS3_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK4json3map5countEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json3mapixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.json::map::element_ref") align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_3mapEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.13") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_6vectorEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_5FalseEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4json6mkuniqINS_4TrueEJS1_EEESt10unique_ptrIT_St14default_deleteIS3_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.37") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4json3map11element_refaSEl(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 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 = { "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 = { inlinehint 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 #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass