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

; 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 }
%"class.std::map.44" = type { %"class.std::_Rb_tree.45" }
%"class.std::_Rb_tree.45" = type { %"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::map *>, std::_Select1st<std::pair<json::obj *const, json::map *>>, json::obj::ptrless>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::map *>, std::_Select1st<std::pair<json::obj *const, json::map *>>, json::obj::ptrless>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.52" = type { ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL13show_deletion = external hidden global i8, align 1
@_ZL13show_addition = external hidden global i8, align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: 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) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind noalias writable sret(%"class.std::map.44") align 8, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_prefixiPKc(i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19list_map_print_diffPN4json6vectorES1_iPKc(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::map.44", align 8
  %10 = alloca %"class.std::map.44", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %26 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind writable sret(%"class.std::map.44") align 8 %9, ptr noundef %31, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind writable sret(%"class.std::map.44") align 8 %10, ptr noundef %33, ptr noundef %34)
          to label %35 unwind label %80

35:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %36 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %37 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %38 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %39 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %41 unwind label %84

41:                                               ; preds = %35
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = add nsw i32 %42, 2
  store i32 %43, ptr %7, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %223, %117, %88, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %45 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %46 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  %47 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  br i1 %47, label %48, label %52

48:                                               ; preds = %44
  %49 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %50 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  %51 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %52

52:                                               ; preds = %48, %44
  %53 = phi i1 [ false, %44 ], [ %51, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br i1 %53, label %54, label %228

54:                                               ; preds = %52
  %55 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %56 = getelementptr inbounds %"struct.std::pair.52", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %59 = getelementptr inbounds %"struct.std::pair.52", ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = load ptr, ptr %57, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %65 unwind label %84

65:                                               ; preds = %54
  br i1 %64, label %66, label %91

66:                                               ; preds = %65
  %67 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !15, !range !17, !noundef !18
  %68 = trunc i8 %67 to i1
  br i1 %68, label %69, label %88

69:                                               ; preds = %66
  %70 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %71 = getelementptr inbounds %"struct.std::pair.52", ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %72)
          to label %74 unwind label %84

74:                                               ; preds = %69
  br i1 %73, label %88, label %75

75:                                               ; preds = %74
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %13, i64 8, i1 false), !tbaa.struct !19
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %78, i32 noundef %76, ptr noundef @.str.18)
          to label %79 unwind label %84

79:                                               ; preds = %75
  br label %88

80:                                               ; preds = %4
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  br label %282

84:                                               ; preds = %278, %274, %265, %259, %242, %236, %126, %120, %112, %106, %91, %75, %69, %54, %35
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %281

88:                                               ; preds = %79, %74, %66
  %89 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef 0) #5
  %90 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  br label %44, !llvm.loop !20

91:                                               ; preds = %65
  %92 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %93 = getelementptr inbounds %"struct.std::pair.52", ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %96 = getelementptr inbounds %"struct.std::pair.52", ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %94, align 8, !tbaa !13
  %99 = getelementptr inbounds ptr, ptr %98, i64 2
  %100 = load ptr, ptr %99, align 8
  %101 = invoke noundef zeroext i1 %100(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %102 unwind label %84

102:                                              ; preds = %91
  br i1 %101, label %103, label %120

103:                                              ; preds = %102
  %104 = load i8, ptr @_ZL13show_addition, align 1, !tbaa !15, !range !17, !noundef !18
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %117

106:                                              ; preds = %103
  %107 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %108 = getelementptr inbounds %"struct.std::pair.52", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %109)
          to label %111 unwind label %84

111:                                              ; preds = %106
  br i1 %110, label %117, label %112

112:                                              ; preds = %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !19
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %115, i32 noundef %113, ptr noundef @.str.19)
          to label %116 unwind label %84

116:                                              ; preds = %112
  br label %117

117:                                              ; preds = %116, %111, %103
  %118 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #5
  %119 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  br label %44, !llvm.loop !20

120:                                              ; preds = %102
  %121 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %122 = getelementptr inbounds %"struct.std::pair.52", ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %123)
          to label %125 unwind label %84

125:                                              ; preds = %120
  br i1 %124, label %223, label %126

126:                                              ; preds = %125
  %127 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %128 = getelementptr inbounds %"struct.std::pair.52", ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %131 = getelementptr inbounds %"struct.std::pair.52", ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !22
  %133 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %134 = getelementptr inbounds %"struct.std::pair.52", ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = invoke noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef %129, ptr noundef %132, ptr noundef %135)
          to label %137 unwind label %84

137:                                              ; preds = %126
  br i1 %136, label %223, label %138

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = sub nsw i32 80, %139
  store i32 %140, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %141 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %142 = getelementptr inbounds %"struct.std::pair.52", ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds ptr, ptr %144, i64 9
  %146 = load ptr, ptr %145, align 8
  %147 = invoke noundef zeroext i1 %146(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %148 unwind label %201

148:                                              ; preds = %138
  br i1 %147, label %149, label %205

149:                                              ; preds = %148
  %150 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %150, ptr %22, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %205

152:                                              ; preds = %149
  %153 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %154 = getelementptr inbounds %"struct.std::pair.52", ptr %153, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %205

157:                                              ; preds = %152
  %158 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %159 = getelementptr inbounds %"struct.std::pair.52", ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !22
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = getelementptr inbounds ptr, ptr %161, i64 9
  %163 = load ptr, ptr %162, align 8
  %164 = invoke noundef zeroext i1 %163(ptr noundef nonnull align 8 dereferenceable(80) %160, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %165 unwind label %201

165:                                              ; preds = %157
  br i1 %164, label %166, label %205

166:                                              ; preds = %165
  %167 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %168 = getelementptr inbounds %"struct.std::pair.52", ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %205

171:                                              ; preds = %166
  %172 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %173 = getelementptr inbounds %"struct.std::pair.52", ptr %172, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !22
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  %176 = getelementptr inbounds ptr, ptr %175, i64 9
  %177 = load ptr, ptr %176, align 8
  %178 = invoke noundef zeroext i1 %177(ptr noundef nonnull align 8 dereferenceable(80) %174, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %179 unwind label %201

179:                                              ; preds = %171
  br i1 %178, label %180, label %205

180:                                              ; preds = %179
  %181 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %182 = getelementptr inbounds %"struct.std::pair.52", ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %183, i32 noundef %184, ptr noundef @.str.18, ptr noundef @.str.16)
          to label %185 unwind label %201

185:                                              ; preds = %180
  %186 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %187 = getelementptr inbounds %"struct.std::pair.52", ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !22
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %188)
          to label %190 unwind label %201

190:                                              ; preds = %185
  %191 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %192 = getelementptr inbounds %"struct.std::pair.52", ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %193, i32 noundef %194, ptr noundef @.str.19, ptr noundef @.str.16)
          to label %195 unwind label %201

195:                                              ; preds = %190
  %196 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %197 = getelementptr inbounds %"struct.std::pair.52", ptr %196, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !22
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %198)
          to label %200 unwind label %201

200:                                              ; preds = %195
  br label %222

201:                                              ; preds = %210, %205, %195, %190, %185, %180, %171, %157, %138
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %11, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %281

205:                                              ; preds = %179, %166, %165, %152, %149, %148
  %206 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %207 = getelementptr inbounds %"struct.std::pair.52", ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %208, i32 noundef %209, ptr noundef @.str.20, ptr noundef @.str.21)
          to label %210 unwind label %201

210:                                              ; preds = %205
  %211 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %212 = getelementptr inbounds %"struct.std::pair.52", ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !22
  %214 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %215 = getelementptr inbounds %"struct.std::pair.52", ptr %214, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !22
  %217 = load i32, ptr %7, align 4, !tbaa !9
  %218 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %219 = getelementptr inbounds %"struct.std::pair.52", ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  invoke void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef %213, ptr noundef %216, i32 noundef %217, ptr noundef %220)
          to label %221 unwind label %201

221:                                              ; preds = %210
  br label %222

222:                                              ; preds = %221, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %223

223:                                              ; preds = %222, %137, %125
  %224 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef 0) #5
  %225 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %224, ptr %225, align 8
  %226 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #5
  %227 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  br label %44, !llvm.loop !20

228:                                              ; preds = %52
  %229 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !15, !range !17, !noundef !18
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %251

231:                                              ; preds = %228
  br label %232

232:                                              ; preds = %247, %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %233 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %234 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  %235 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br i1 %235, label %236, label %250

236:                                              ; preds = %232
  %237 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %238 = getelementptr inbounds %"struct.std::pair.52", ptr %237, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !11
  %240 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %239)
          to label %241 unwind label %84

241:                                              ; preds = %236
  br i1 %240, label %247, label %242

242:                                              ; preds = %241
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %13, i64 8, i1 false), !tbaa.struct !19
  %243 = load i32, ptr %7, align 4, !tbaa !9
  %244 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %26, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %245, i32 noundef %243, ptr noundef @.str.18)
          to label %246 unwind label %84

246:                                              ; preds = %242
  br label %247

247:                                              ; preds = %246, %241
  %248 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef 0) #5
  %249 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  br label %232, !llvm.loop !23

250:                                              ; preds = %232
  br label %251

251:                                              ; preds = %250, %228
  %252 = load i8, ptr @_ZL13show_addition, align 1, !tbaa !15, !range !17, !noundef !18
  %253 = trunc i8 %252 to i1
  br i1 %253, label %254, label %274

254:                                              ; preds = %251
  br label %255

255:                                              ; preds = %270, %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %256 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %257 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  %258 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br i1 %258, label %259, label %273

259:                                              ; preds = %255
  %260 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %261 = getelementptr inbounds %"struct.std::pair.52", ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !11
  %263 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %262)
          to label %264 unwind label %84

264:                                              ; preds = %259
  br i1 %263, label %270, label %265

265:                                              ; preds = %264
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !19
  %266 = load i32, ptr %7, align 4, !tbaa !9
  %267 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %268, i32 noundef %266, ptr noundef @.str.19)
          to label %269 unwind label %84

269:                                              ; preds = %265
  br label %270

270:                                              ; preds = %269, %264
  %271 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #5
  %272 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  br label %255, !llvm.loop !24

273:                                              ; preds = %255
  br label %274

274:                                              ; preds = %273, %251
  %275 = load i32, ptr %7, align 4, !tbaa !9
  %276 = sub nsw i32 %275, 2
  store i32 %276, ptr %7, align 4, !tbaa !9
  %277 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_Z9do_prefixiPKc(i32 noundef %277, ptr noundef @.str.20)
          to label %278 unwind label %84

278:                                              ; preds = %274
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 93)
          to label %280 unwind label %84

280:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  ret void

281:                                              ; preds = %201, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  br label %282

282:                                              ; preds = %281, %80
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  br label %283

283:                                              ; preds = %282
  %284 = load ptr, ptr %11, align 8
  %285 = load i32, ptr %12, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIKPN4json3objEPNS0_3mapEE", !6, i64 0, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{i64 0, i64 8, !5}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !6, i64 8}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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::map.44" = type { %"class.std::_Rb_tree.45" }
%"class.std::_Rb_tree.45" = type { %"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::map *>, std::_Select1st<std::pair<json::obj *const, json::map *>>, json::obj::ptrless>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::map *>, std::_Select1st<std::pair<json::obj *const, json::map *>>, json::obj::ptrless>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL13show_deletion = external hidden local_unnamed_addr global i8, align 1
@_ZL13show_addition = external hidden local_unnamed_addr global i8, align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; 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 #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind noalias writable sret(%"class.std::map.44") align 8, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_prefixiPKc(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19list_map_print_diffPN4json6vectorES1_iPKc(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::map.44", align 8
  %6 = alloca %"class.std::map.44", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind nonnull writable sret(%"class.std::map.44") align 8 %5, ptr noundef %0, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  invoke void @_Z14build_list_mapPN4json6vectorEPKc(ptr dead_on_unwind nonnull writable sret(%"class.std::map.44") align 8 %6, ptr noundef %1, ptr noundef %3)
          to label %15 unwind label %46

15:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %16 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %16, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %17 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  store ptr %17, ptr %8, align 8
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
          to label %19 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

19:                                               ; preds = %15
  %20 = add nsw i32 %2, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %21 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %21, ptr %9, align 8
  %22 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  br i1 %22, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %19
  %23 = sub nsw i32 78, %2
  br label %24

24:                                               ; preds = %.lr.ph, %.backedge
  %25 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  store ptr %25, ptr %10, align 8
  %26 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %26, label %27, label %.loopexit38

27:                                               ; preds = %24
  %28 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = load ptr, ptr %29, align 8, !tbaa !10
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %36 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

36:                                               ; preds = %27
  br i1 %35, label %37, label %51

37:                                               ; preds = %36
  %38 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !12, !range !14, !noundef !15
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %.backedge

40:                                               ; preds = %37
  %41 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %42)
          to label %44 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

44:                                               ; preds = %40
  br i1 %43, label %.backedge, label %45

45:                                               ; preds = %44
  %.sroa.09.0.copyload = load ptr, ptr %7, align 8, !tbaa !16
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %.sroa.09.0.copyload, i32 noundef %20, ptr noundef nonnull @.str.18)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

46:                                               ; preds = %4
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %184

.loopexit32:                                      ; preds = %.lr.ph42, %176
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %163, %.lr.ph41
  %lpad.loopexit35 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %27, %40, %45, %51, %64, %69, %70, %75
  %lpad.loopexit39 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.backedge:                                        ; preds = %37, %44, %45, %61, %68, %69, %153
  %.sink = phi ptr [ %8, %153 ], [ %8, %69 ], [ %8, %68 ], [ %8, %61 ], [ %7, %45 ], [ %7, %44 ], [ %7, %37 ]
  %48 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %.sink, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %49 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %49, ptr %9, align 8
  %50 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  br i1 %50, label %24, label %.critedge, !llvm.loop !17

51:                                               ; preds = %36
  %52 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load ptr, ptr %53, align 8, !tbaa !10
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %60 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

60:                                               ; preds = %51
  br i1 %59, label %61, label %70

61:                                               ; preds = %60
  %62 = load i8, ptr @_ZL13show_addition, align 1, !tbaa !12, !range !14, !noundef !15
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %64, label %.backedge

64:                                               ; preds = %61
  %65 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %66)
          to label %68 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

68:                                               ; preds = %64
  br i1 %67, label %.backedge, label %69

69:                                               ; preds = %68
  %.sroa.07.0.copyload = load ptr, ptr %8, align 8, !tbaa !16
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %.sroa.07.0.copyload, i32 noundef %20, ptr noundef nonnull @.str.19)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

70:                                               ; preds = %60
  %71 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %72)
          to label %74 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

74:                                               ; preds = %70
  br i1 %73, label %153, label %75

75:                                               ; preds = %74
  %76 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load ptr, ptr %77, align 8, !tbaa !19
  %79 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = invoke noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef %78, ptr noundef %81, ptr noundef %83)
          to label %85 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

85:                                               ; preds = %75
  br i1 %84, label %153, label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  store i32 %23, ptr %11, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %87 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !10
  %90 = getelementptr inbounds i8, ptr %89, i64 72
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef zeroext i1 %91(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %93 unwind label %138

93:                                               ; preds = %86
  br i1 %92, label %94, label %140

94:                                               ; preds = %93
  %95 = load i32, ptr %11, align 4, !tbaa !20
  store i32 %95, ptr %12, align 4, !tbaa !20
  %.not = icmp eq i32 %95, 0
  br i1 %.not, label %140, label %96

96:                                               ; preds = %94
  %97 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %.not28 = icmp eq ptr %99, null
  br i1 %.not28, label %140, label %100

100:                                              ; preds = %96
  %101 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = load ptr, ptr %103, align 8, !tbaa !10
  %105 = getelementptr inbounds i8, ptr %104, i64 72
  %106 = load ptr, ptr %105, align 8
  %107 = invoke noundef zeroext i1 %106(ptr noundef nonnull align 8 dereferenceable(80) %103, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %108 unwind label %138

108:                                              ; preds = %100
  br i1 %107, label %109, label %140

109:                                              ; preds = %108
  %110 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %.not29 = icmp eq ptr %112, null
  br i1 %.not29, label %140, label %113

113:                                              ; preds = %109
  %114 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = load ptr, ptr %116, align 8, !tbaa !10
  %118 = getelementptr inbounds i8, ptr %117, i64 72
  %119 = load ptr, ptr %118, align 8
  %120 = invoke noundef zeroext i1 %119(ptr noundef nonnull align 8 dereferenceable(80) %116, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %121 unwind label %138

121:                                              ; preds = %113
  br i1 %120, label %122, label %140

122:                                              ; preds = %121
  %123 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %124, i32 noundef %20, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.16)
          to label %125 unwind label %138

125:                                              ; preds = %122
  %126 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %128)
          to label %130 unwind label %138

130:                                              ; preds = %125
  %131 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %132, i32 noundef %20, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.16)
          to label %133 unwind label %138

133:                                              ; preds = %130
  %134 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load ptr, ptr %135, align 8, !tbaa !19
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %136)
          to label %152 unwind label %138

138:                                              ; preds = %143, %140, %133, %130, %125, %122, %113, %100, %86
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %.loopexit.split-lp

140:                                              ; preds = %121, %109, %108, %96, %94, %93
  %141 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %142, i32 noundef %20, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.21)
          to label %143 unwind label %138

143:                                              ; preds = %140
  %144 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %148 = getelementptr inbounds i8, ptr %147, i64 8
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  invoke void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef %146, ptr noundef %149, i32 noundef %20, ptr noundef %151)
          to label %152 unwind label %138

152:                                              ; preds = %143, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %153

153:                                              ; preds = %152, %85, %74
  %154 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  br label %.backedge

.critedge:                                        ; preds = %.backedge, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %.loopexit38

.loopexit38:                                      ; preds = %24, %.critedge
  %155 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !12, !range !14, !noundef !15
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %.preheader33, label %.loopexit34

.preheader33:                                     ; preds = %.loopexit38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %157 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %157, ptr %13, align 8
  %158 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br i1 %158, label %.lr.ph41, label %.loopexit34

.lr.ph41:                                         ; preds = %.preheader33, %164
  %159 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %160)
          to label %162 unwind label %.loopexit.split-lp.loopexit

162:                                              ; preds = %.lr.ph41
  br i1 %161, label %164, label %163

163:                                              ; preds = %162
  %.sroa.03.0.copyload = load ptr, ptr %7, align 8, !tbaa !16
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %.sroa.03.0.copyload, i32 noundef %20, ptr noundef nonnull @.str.18)
          to label %164 unwind label %.loopexit.split-lp.loopexit

164:                                              ; preds = %163, %162
  %165 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %166 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %166, ptr %13, align 8
  %167 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br i1 %167, label %.lr.ph41, label %.loopexit34, !llvm.loop !22

.loopexit34:                                      ; preds = %164, %.preheader33, %.loopexit38
  %168 = load i8, ptr @_ZL13show_addition, align 1, !tbaa !12, !range !14, !noundef !15
  %169 = trunc nuw i8 %168 to i1
  br i1 %169, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %170 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  store ptr %170, ptr %14, align 8
  %171 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br i1 %171, label %.lr.ph42, label %.loopexit

.lr.ph42:                                         ; preds = %.preheader, %177
  %172 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %173)
          to label %175 unwind label %.loopexit32

175:                                              ; preds = %.lr.ph42
  br i1 %174, label %177, label %176

176:                                              ; preds = %175
  %.sroa.01.0.copyload = load ptr, ptr %8, align 8, !tbaa !16
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEiPKc(ptr %.sroa.01.0.copyload, i32 noundef %20, ptr noundef nonnull @.str.19)
          to label %177 unwind label %.loopexit32

177:                                              ; preds = %176, %175
  %178 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %179 = call ptr @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  store ptr %179, ptr %14, align 8
  %180 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objEPNS1_3mapEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br i1 %180, label %.lr.ph42, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %177, %.preheader, %.loopexit34
  invoke void @_Z9do_prefixiPKc(i32 noundef %2, ptr noundef nonnull @.str.20)
          to label %181 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

181:                                              ; preds = %.loopexit
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 93)
          to label %183 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

183:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit32, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %138
  %.pn = phi { ptr, i32 } [ %139, %138 ], [ %lpad.loopexit, %.loopexit32 ], [ %lpad.loopexit35, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit39, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  br label %184

184:                                              ; preds = %.loopexit.split-lp, %46
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @_ZNSt3mapIPN4json3objEPNS0_3mapENS1_7ptrlessESaISt4pairIKS2_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSSt4pairIKPN4json3objEPNS0_3mapEE", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"vtable pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !8, i64 0}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


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