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

; 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.58" = type { %"class.std::_Rb_tree.59" }
%"class.std::_Rb_tree.59" = type { %"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::obj *>, std::_Select1st<std::pair<json::obj *const, json::obj *>>, json::obj::ptrless>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::obj *>, std::_Select1st<std::pair<json::obj *const, json::obj *>>, 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.54" = type { ptr }
%"struct.std::pair.55" = 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.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
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

; Function Attrs: 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 @_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_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(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: 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_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_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

31:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  %33 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %11, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %34 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  %35 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %12, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.23)
          to label %37 unwind label %85

37:                                               ; preds = %31
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = add nsw i32 %38, 2
  store i32 %39, ptr %6, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %229, %123, %89, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %41 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  %42 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  br i1 %43, label %44, label %48

44:                                               ; preds = %40
  %45 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  %46 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %14, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  %47 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %48

48:                                               ; preds = %44, %40
  %49 = phi i1 [ false, %40 ], [ %47, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br i1 %49, label %50, label %234

50:                                               ; preds = %48
  %51 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %52 = getelementptr inbounds %"struct.std::pair.55", ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %55 = getelementptr inbounds %"struct.std::pair.55", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = load ptr, ptr %53, align 8, !tbaa !13
  %58 = getelementptr inbounds ptr, ptr %57, i64 2
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef zeroext i1 %59(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %61 unwind label %85

61:                                               ; preds = %50
  br i1 %60, label %62, label %92

62:                                               ; preds = %61
  %63 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !15, !range !17, !noundef !18
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %89

65:                                               ; preds = %62
  %66 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %67 = getelementptr inbounds %"struct.std::pair.55", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %68)
          to label %70 unwind label %85

70:                                               ; preds = %65
  br i1 %69, label %89, label %71

71:                                               ; preds = %70
  %72 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %73 = getelementptr inbounds %"struct.std::pair.55", ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %89

76:                                               ; preds = %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !20
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %15, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %79, i32 noundef %77, ptr noundef @.str.18)
          to label %80 unwind label %85

80:                                               ; preds = %76
  br label %89

81:                                               ; preds = %3
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  br label %288

85:                                               ; preds = %284, %280, %271, %265, %248, %242, %132, %126, %118, %107, %92, %76, %65, %50, %31
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  br label %287

89:                                               ; preds = %80, %71, %70, %62
  %90 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %91 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %16, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  br label %40, !llvm.loop !21

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

103:                                              ; preds = %92
  br i1 %102, label %104, label %126

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

107:                                              ; preds = %104
  %108 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %109 = getelementptr inbounds %"struct.std::pair.55", ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %110)
          to label %112 unwind label %85

112:                                              ; preds = %107
  br i1 %111, label %123, label %113

113:                                              ; preds = %112
  %114 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %115 = getelementptr inbounds %"struct.std::pair.55", ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %123

118:                                              ; preds = %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !20
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %17, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %121, i32 noundef %119, ptr noundef @.str.19)
          to label %122 unwind label %85

122:                                              ; preds = %118
  br label %123

123:                                              ; preds = %122, %113, %112, %104
  %124 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #5
  %125 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %18, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  br label %40, !llvm.loop !21

126:                                              ; preds = %103
  %127 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %128 = getelementptr inbounds %"struct.std::pair.55", ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %129)
          to label %131 unwind label %85

131:                                              ; preds = %126
  br i1 %130, label %229, label %132

132:                                              ; preds = %131
  %133 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %134 = getelementptr inbounds %"struct.std::pair.55", ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  %136 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %137 = getelementptr inbounds %"struct.std::pair.55", ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !19
  %139 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %140 = getelementptr inbounds %"struct.std::pair.55", ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = invoke noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef %135, ptr noundef %138, ptr noundef %141)
          to label %143 unwind label %85

143:                                              ; preds = %132
  br i1 %142, label %229, label %144

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %145 = load i32, ptr %6, align 4, !tbaa !9
  %146 = sub nsw i32 80, %145
  store i32 %146, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %147 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %148 = getelementptr inbounds %"struct.std::pair.55", ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !11
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = getelementptr inbounds ptr, ptr %150, i64 9
  %152 = load ptr, ptr %151, align 8
  %153 = invoke noundef zeroext i1 %152(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %154 unwind label %207

154:                                              ; preds = %144
  br i1 %153, label %155, label %211

155:                                              ; preds = %154
  %156 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %156, ptr %20, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %211

158:                                              ; preds = %155
  %159 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %160 = getelementptr inbounds %"struct.std::pair.55", ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !19
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %211

163:                                              ; preds = %158
  %164 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %165 = getelementptr inbounds %"struct.std::pair.55", ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = load ptr, ptr %166, align 8, !tbaa !13
  %168 = getelementptr inbounds ptr, ptr %167, i64 9
  %169 = load ptr, ptr %168, align 8
  %170 = invoke noundef zeroext i1 %169(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %171 unwind label %207

171:                                              ; preds = %163
  br i1 %170, label %172, label %211

172:                                              ; preds = %171
  %173 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %174 = getelementptr inbounds %"struct.std::pair.55", ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !19
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %211

177:                                              ; preds = %172
  %178 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %179 = getelementptr inbounds %"struct.std::pair.55", ptr %178, i32 0, i32 1
  %180 = load ptr, ptr %179, align 8, !tbaa !19
  %181 = load ptr, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds ptr, ptr %181, i64 9
  %183 = load ptr, ptr %182, align 8
  %184 = invoke noundef zeroext i1 %183(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %185 unwind label %207

185:                                              ; preds = %177
  br i1 %184, label %186, label %211

186:                                              ; preds = %185
  %187 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %188 = getelementptr inbounds %"struct.std::pair.55", ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %189, i32 noundef %190, ptr noundef @.str.18, ptr noundef @.str.16)
          to label %191 unwind label %207

191:                                              ; preds = %186
  %192 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %193 = getelementptr inbounds %"struct.std::pair.55", ptr %192, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !19
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %194)
          to label %196 unwind label %207

196:                                              ; preds = %191
  %197 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %198 = getelementptr inbounds %"struct.std::pair.55", ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %199, i32 noundef %200, ptr noundef @.str.19, ptr noundef @.str.16)
          to label %201 unwind label %207

201:                                              ; preds = %196
  %202 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %203 = getelementptr inbounds %"struct.std::pair.55", ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !19
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %204)
          to label %206 unwind label %207

206:                                              ; preds = %201
  br label %228

207:                                              ; preds = %216, %211, %201, %196, %191, %186, %177, %163, %144
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %9, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %287

211:                                              ; preds = %185, %172, %171, %158, %155, %154
  %212 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %213 = getelementptr inbounds %"struct.std::pair.55", ptr %212, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !11
  %215 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %214, i32 noundef %215, ptr noundef @.str.20, ptr noundef @.str.21)
          to label %216 unwind label %207

216:                                              ; preds = %211
  %217 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %218 = getelementptr inbounds %"struct.std::pair.55", ptr %217, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !19
  %220 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %221 = getelementptr inbounds %"struct.std::pair.55", ptr %220, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !19
  %223 = load i32, ptr %6, align 4, !tbaa !9
  %224 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %225 = getelementptr inbounds %"struct.std::pair.55", ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  invoke void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef %219, ptr noundef %222, i32 noundef %223, ptr noundef %226)
          to label %227 unwind label %207

227:                                              ; preds = %216
  br label %228

228:                                              ; preds = %227, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %229

229:                                              ; preds = %228, %143, %131
  %230 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %231 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %21, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  %232 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #5
  %233 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %22, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  br label %40, !llvm.loop !21

234:                                              ; preds = %48
  %235 = load i8, ptr @_ZL13show_deletion, align 1, !tbaa !15, !range !17, !noundef !18
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %257

237:                                              ; preds = %234
  br label %238

238:                                              ; preds = %253, %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %239 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  %240 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %23, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  %241 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br i1 %241, label %242, label %256

242:                                              ; preds = %238
  %243 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %244 = getelementptr inbounds %"struct.std::pair.55", ptr %243, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8, !tbaa !11
  %246 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %245)
          to label %247 unwind label %85

247:                                              ; preds = %242
  br i1 %246, label %253, label %248

248:                                              ; preds = %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !20
  %249 = load i32, ptr %6, align 4, !tbaa !9
  %250 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %24, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %251, i32 noundef %249, ptr noundef @.str.18)
          to label %252 unwind label %85

252:                                              ; preds = %248
  br label %253

253:                                              ; preds = %252, %247
  %254 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %255 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %25, i32 0, i32 0
  store ptr %254, ptr %255, align 8
  br label %238, !llvm.loop !23

256:                                              ; preds = %238
  br label %257

257:                                              ; preds = %256, %234
  %258 = load i8, ptr @_ZL13show_addition, align 1, !tbaa !15, !range !17, !noundef !18
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %280

260:                                              ; preds = %257
  br label %261

261:                                              ; preds = %276, %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %262 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  %263 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %26, i32 0, i32 0
  store ptr %262, ptr %263, align 8
  %264 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br i1 %264, label %265, label %279

265:                                              ; preds = %261
  %266 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %267 = getelementptr inbounds %"struct.std::pair.55", ptr %266, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8, !tbaa !11
  %269 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %268)
          to label %270 unwind label %85

270:                                              ; preds = %265
  br i1 %269, label %276, label %271

271:                                              ; preds = %270
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !20
  %272 = load i32, ptr %6, align 4, !tbaa !9
  %273 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %27, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %274, i32 noundef %272, ptr noundef @.str.19)
          to label %275 unwind label %85

275:                                              ; preds = %271
  br label %276

276:                                              ; preds = %275, %270
  %277 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #5
  %278 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.54", ptr %28, i32 0, i32 0
  store ptr %277, ptr %278, align 8
  br label %261, !llvm.loop !24

279:                                              ; preds = %261
  br label %280

280:                                              ; preds = %279, %257
  %281 = load i32, ptr %6, align 4, !tbaa !9
  %282 = sub nsw i32 %281, 2
  store i32 %282, ptr %6, align 4, !tbaa !9
  %283 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z9do_prefixiPKc(i32 noundef %283, ptr noundef @.str.20)
          to label %284 unwind label %85

284:                                              ; preds = %280
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 125)
          to label %286 unwind label %85

286:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  ret void

287:                                              ; preds = %207, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  br label %288

288:                                              ; preds = %287, %81
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %9, align 8
  %291 = load i32, ptr %10, align 4
  %292 = insertvalue { ptr, i32 } poison, ptr %290, 0
  %293 = insertvalue { ptr, i32 } %292, i32 %291, 1
  resume { ptr, i32 } %293
}

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

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 = !{!"_ZTSSt4pairIKPN4json3objES2_E", !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 = !{!12, !6, i64 8}
!20 = !{i64 0, i64 8, !5}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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.58" = type { %"class.std::_Rb_tree.59" }
%"class.std::_Rb_tree.59" = type { %"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::obj *>, std::_Select1st<std::pair<json::obj *const, json::obj *>>, json::obj::ptrless>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<json::obj *, std::pair<json::obj *const, json::obj *>, std::_Select1st<std::pair<json::obj *const, json::obj *>>, 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.54" = 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.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
@.str.23 = external hidden unnamed_addr constant [3 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 @_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_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(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: 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_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_iteratorISt4pairIKPN4json3objES3_EES8_(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 @_Z19sort_map_print_diffPN4json3mapES1_i(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map.58", align 8
  %5 = alloca %"class.std::map.58", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator.54", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @_Z14build_sort_mapPN4json3mapE(ptr dead_on_unwind nonnull writable sret(%"class.std::map.58") align 8 %4, ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  invoke void @_Z14build_sort_mapPN4json3mapE(ptr dead_on_unwind nonnull writable sret(%"class.std::map.58") align 8 %5, ptr noundef %1)
          to label %14 unwind label %49

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %15 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %15, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %16 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %16, ptr %7, align 8
  %17 = 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.23)
          to label %18 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

18:                                               ; preds = %14
  %19 = add nsw i32 %2, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %20 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %20, ptr %8, align 8
  %21 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  br i1 %21, label %.lr.ph, label %.critedge

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

23:                                               ; preds = %.lr.ph, %.backedge
  %24 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %24, ptr %9, align 8
  %25 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %25, label %26, label %.loopexit38

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

35:                                               ; preds = %26
  br i1 %34, label %36, label %54

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

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

43:                                               ; preds = %39
  br i1 %42, label %.backedge, label %44

44:                                               ; preds = %43
  %45 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %.not29 = icmp eq ptr %47, null
  br i1 %.not29, label %.backedge, label %48

48:                                               ; preds = %44
  %.sroa.09.0.copyload = load ptr, ptr %6, align 8, !tbaa !17
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %.sroa.09.0.copyload, i32 noundef %19, ptr noundef nonnull @.str.18)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

49:                                               ; preds = %3
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %191

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

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

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %26, %39, %48, %54, %67, %76, %77, %82
  %lpad.loopexit39 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.backedge:                                        ; preds = %36, %43, %44, %48, %64, %71, %72, %76, %160
  %.sink = phi ptr [ %7, %160 ], [ %7, %76 ], [ %7, %72 ], [ %7, %71 ], [ %7, %64 ], [ %6, %48 ], [ %6, %44 ], [ %6, %43 ], [ %6, %36 ]
  %51 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %.sink, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %52 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %52, ptr %8, align 8
  %53 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  br i1 %53, label %23, label %.critedge, !llvm.loop !18

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

63:                                               ; preds = %54
  br i1 %62, label %64, label %77

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

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

71:                                               ; preds = %67
  br i1 %70, label %.backedge, label %72

72:                                               ; preds = %71
  %73 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %.not28 = icmp eq ptr %75, null
  br i1 %.not28, label %.backedge, label %76

76:                                               ; preds = %72
  %.sroa.07.0.copyload = load ptr, ptr %7, align 8, !tbaa !17
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %.sroa.07.0.copyload, i32 noundef %19, ptr noundef nonnull @.str.19)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

77:                                               ; preds = %63
  %78 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %79)
          to label %81 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

81:                                               ; preds = %77
  br i1 %80, label %160, label %82

82:                                               ; preds = %81
  %83 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load ptr, ptr %87, align 8, !tbaa !16
  %89 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = invoke noundef zeroext i1 @_Z5equivPN4json3objES1_S1_(ptr noundef %85, ptr noundef %88, ptr noundef %90)
          to label %92 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

92:                                               ; preds = %82
  br i1 %91, label %160, label %93

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 %22, ptr %10, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %94 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load ptr, ptr %95, align 8, !tbaa !10
  %97 = getelementptr inbounds i8, ptr %96, i64 72
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef zeroext i1 %98(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %100 unwind label %145

100:                                              ; preds = %93
  br i1 %99, label %101, label %147

101:                                              ; preds = %100
  %102 = load i32, ptr %10, align 4, !tbaa !20
  store i32 %102, ptr %11, align 4, !tbaa !20
  %.not = icmp eq i32 %102, 0
  br i1 %.not, label %147, label %103

103:                                              ; preds = %101
  %104 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !16
  %.not26 = icmp eq ptr %106, null
  br i1 %.not26, label %147, label %107

107:                                              ; preds = %103
  %108 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load ptr, ptr %110, align 8, !tbaa !10
  %112 = getelementptr inbounds i8, ptr %111, i64 72
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef zeroext i1 %113(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %115 unwind label %145

115:                                              ; preds = %107
  br i1 %114, label %116, label %147

116:                                              ; preds = %115
  %117 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %.not27 = icmp eq ptr %119, null
  br i1 %.not27, label %147, label %120

120:                                              ; preds = %116
  %121 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = load ptr, ptr %122, align 8, !tbaa !16
  %124 = load ptr, ptr %123, align 8, !tbaa !10
  %125 = getelementptr inbounds i8, ptr %124, i64 72
  %126 = load ptr, ptr %125, align 8
  %127 = invoke noundef zeroext i1 %126(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %128 unwind label %145

128:                                              ; preds = %120
  br i1 %127, label %129, label %147

129:                                              ; preds = %128
  %130 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %131, i32 noundef %19, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.16)
          to label %132 unwind label %145

132:                                              ; preds = %129
  %133 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %135)
          to label %137 unwind label %145

137:                                              ; preds = %132
  %138 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %139, i32 noundef %19, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.16)
          to label %140 unwind label %145

140:                                              ; preds = %137
  %141 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %143 = load ptr, ptr %142, align 8, !tbaa !16
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4jsonlsERSoPKNS_3objE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %143)
          to label %159 unwind label %145

145:                                              ; preds = %150, %147, %140, %137, %132, %129, %120, %107, %93
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %.loopexit.split-lp

147:                                              ; preds = %128, %116, %115, %103, %101, %100
  %148 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  invoke void @_Z9do_outputPN4json3objEiPKcS3_(ptr noundef %149, i32 noundef %19, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.21)
          to label %150 unwind label %145

150:                                              ; preds = %147
  %151 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %152 = getelementptr inbounds i8, ptr %151, i64 8
  %153 = load ptr, ptr %152, align 8, !tbaa !16
  %154 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %155 = getelementptr inbounds i8, ptr %154, i64 8
  %156 = load ptr, ptr %155, align 8, !tbaa !16
  %157 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  invoke void @_Z10print_diffPN4json3objES1_iS1_(ptr noundef %153, ptr noundef %156, i32 noundef %19, ptr noundef %158)
          to label %159 unwind label %145

159:                                              ; preds = %150, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %160

160:                                              ; preds = %159, %92, %81
  %161 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #4
  br label %.backedge

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

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

.preheader33:                                     ; preds = %.loopexit38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %164 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %164, ptr %12, align 8
  %165 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br i1 %165, label %.lr.ph41, label %.loopexit34

.lr.ph41:                                         ; preds = %.preheader33, %171
  %166 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %167)
          to label %169 unwind label %.loopexit.split-lp.loopexit

169:                                              ; preds = %.lr.ph41
  br i1 %168, label %171, label %170

170:                                              ; preds = %169
  %.sroa.03.0.copyload = load ptr, ptr %6, align 8, !tbaa !17
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %.sroa.03.0.copyload, i32 noundef %19, ptr noundef nonnull @.str.18)
          to label %171 unwind label %.loopexit.split-lp.loopexit

171:                                              ; preds = %170, %169
  %172 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %173 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %173, ptr %12, align 8
  %174 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br i1 %174, label %.lr.ph41, label %.loopexit34, !llvm.loop !22

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

.preheader:                                       ; preds = %.loopexit34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %177 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %177, ptr %13, align 8
  %178 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(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 %178, label %.lr.ph42, label %.loopexit

.lr.ph42:                                         ; preds = %.preheader, %184
  %179 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = invoke noundef zeroext i1 @_Z6ignorePN4json3objE(ptr noundef %180)
          to label %182 unwind label %.loopexit32

182:                                              ; preds = %.lr.ph42
  br i1 %181, label %184, label %183

183:                                              ; preds = %182
  %.sroa.01.0.copyload = load ptr, ptr %7, align 8, !tbaa !17
  invoke void @_Z9do_outputSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEiPKc(ptr %.sroa.01.0.copyload, i32 noundef %19, ptr noundef nonnull @.str.19)
          to label %184 unwind label %.loopexit32

184:                                              ; preds = %183, %182
  %185 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %186 = call ptr @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %186, ptr %13, align 8
  %187 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN4json3objES3_EES8_(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 %187, label %.lr.ph42, label %.loopexit, !llvm.loop !23

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

188:                                              ; preds = %.loopexit
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 125)
          to label %190 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

190:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #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, %145
  %.pn = phi { ptr, i32 } [ %146, %145 ], [ %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 %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt3mapIPN4json3objES2_NS1_7ptrlessESaISt4pairIKS2_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  br label %191

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

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

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 = !{!"_ZTSSt4pairIKPN4json3objES2_E", !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 = !{!6, !7, i64 8}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !8, i64 0}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


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