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

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.63 }
%union.anon.63 = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }

@_ZL13list_map_keys = external hidden global %"class.std::vector", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZL13show_deletion = external hidden global i8, align 1
@_ZL13show_addition = external hidden global i8, align 1
@_ZL8sort_map = external hidden global i8, align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10add_ignorePKc(ptr noundef) #1

; 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) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::unique_ptr", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::unique_ptr", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::basic_ifstream", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::function", align 8
  %25 = alloca %class.anon, align 8
  %26 = alloca %"class.std::unique_ptr", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %491, %2
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %495

32:                                               ; preds = %27
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %33, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 45
  br i1 %41, label %42, label %109

42:                                               ; preds = %32
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 1
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %109

52:                                               ; preds = %42
  %53 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %53, label %54, label %86

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %56 unwind label %70

56:                                               ; preds = %54
  %57 = load ptr, ptr %55, align 8, !tbaa !12
  %58 = getelementptr i8, ptr %57, i64 -24
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr %55, i64 %59
  %61 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %60)
          to label %62 unwind label %70

62:                                               ; preds = %56
  br i1 %61, label %65, label %63

63:                                               ; preds = %62
  %64 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br i1 %64, label %74, label %65

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

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

69:                                               ; preds = %67
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %85

70:                                               ; preds = %78, %67, %65, %56, %54
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %494

74:                                               ; preds = %63
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = and i32 %75, 2
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %84, label %78

78:                                               ; preds = %74
  %79 = load ptr, ptr %8, align 8, !tbaa !9
  %80 = invoke noundef i32 @_Z7do_diffPKcRSt10unique_ptrIN4json3objESt14default_deleteIS3_EES0_S7_(ptr noundef %79, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.28, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %81 unwind label %70

81:                                               ; preds = %78
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = or i32 %82, %80
  store i32 %83, ptr %6, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %81, %74
  br label %85

85:                                               ; preds = %84, %69
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %108

86:                                               ; preds = %52
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %88 unwind label %102

88:                                               ; preds = %86
  %89 = load ptr, ptr %87, align 8, !tbaa !12
  %90 = getelementptr i8, ptr %89, i64 -24
  %91 = load i64, ptr %90, align 8
  %92 = getelementptr inbounds i8, ptr %87, i64 %91
  %93 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %92)
          to label %94 unwind label %102

94:                                               ; preds = %88
  br i1 %93, label %97, label %95

95:                                               ; preds = %94
  %96 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %96, label %106, label %97

97:                                               ; preds = %95, %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.27)
          to label %99 unwind label %102

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

101:                                              ; preds = %99
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %107

102:                                              ; preds = %99, %97, %88, %86
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  br label %494

106:                                              ; preds = %95
  store ptr @.str.28, ptr %8, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %106, %101
  br label %108

108:                                              ; preds = %107, %85
  br label %490

109:                                              ; preds = %42, %32
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %114, i64 0
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = sext i8 %116 to i32
  %118 = icmp eq i32 %117, 45
  br i1 %118, label %129, label %119

119:                                              ; preds = %109
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %124, i64 0
  %126 = load i8, ptr %125, align 1, !tbaa !11
  %127 = sext i8 %126 to i32
  %128 = icmp eq i32 %127, 43
  br i1 %128, label %129, label %267

129:                                              ; preds = %119, %109
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #10
  %130 = load ptr, ptr %5, align 8, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %134, i64 0
  %136 = load i8, ptr %135, align 1, !tbaa !11
  %137 = sext i8 %136 to i32
  %138 = icmp eq i32 %137, 43
  %139 = zext i1 %138 to i8
  store i8 %139, ptr %14, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %140 = load ptr, ptr %5, align 8, !tbaa !9
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds ptr, ptr %140, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %144, i64 1
  store ptr %145, ptr %15, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %264, %129
  %147 = load ptr, ptr %15, align 8, !tbaa !9
  %148 = load i8, ptr %147, align 1, !tbaa !11
  %149 = icmp ne i8 %148, 0
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %266

151:                                              ; preds = %146
  %152 = load ptr, ptr %15, align 8, !tbaa !9
  %153 = getelementptr inbounds i8, ptr %152, i32 1
  store ptr %153, ptr %15, align 8, !tbaa !9
  %154 = load i8, ptr %152, align 1, !tbaa !11
  %155 = sext i8 %154 to i32
  switch i32 %155, label %248 [
    i32 97, label %156
    i32 100, label %160
    i32 105, label %164
    i32 108, label %237
    i32 115, label %244
  ]

156:                                              ; preds = %151
  %157 = load i8, ptr %14, align 1, !tbaa !14, !range !16, !noundef !17
  %158 = trunc i8 %157 to i1
  %159 = zext i1 %158 to i8
  store i8 %159, ptr @_ZL13show_addition, align 1, !tbaa !14
  br label %264

160:                                              ; preds = %151
  %161 = load i8, ptr %14, align 1, !tbaa !14, !range !16, !noundef !17
  %162 = trunc i8 %161 to i1
  %163 = zext i1 %162 to i8
  store i8 %163, ptr @_ZL13show_deletion, align 1, !tbaa !14
  br label %264

164:                                              ; preds = %151
  %165 = load ptr, ptr %5, align 8, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %9, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %165, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = load i8, ptr %170, align 1, !tbaa !11
  %172 = sext i8 %171 to i32
  %173 = icmp eq i32 %172, 64
  br i1 %173, label %174, label %225

174:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 520, ptr %16) #10
  %175 = load ptr, ptr %5, align 8, !tbaa !9
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds ptr, ptr %175, i64 %177
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds i8, ptr %179, i64 1
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %16, ptr noundef %180, i32 noundef 8)
          to label %181 unwind label %201

181:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  %182 = load ptr, ptr %16, align 8, !tbaa !12
  %183 = getelementptr i8, ptr %182, i64 -24
  %184 = load i64, ptr %183, align 8
  %185 = getelementptr inbounds i8, ptr %16, i64 %184
  %186 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %185)
          to label %187 unwind label %205

187:                                              ; preds = %181
  br i1 %186, label %188, label %209

188:                                              ; preds = %187
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.29)
          to label %190 unwind label %205

190:                                              ; preds = %188
  %191 = load ptr, ptr %5, align 8, !tbaa !9
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds ptr, ptr %191, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !9
  %196 = getelementptr inbounds i8, ptr %195, i64 1
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef %196)
          to label %198 unwind label %205

198:                                              ; preds = %190
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %200 unwind label %205

200:                                              ; preds = %198
  br label %223

201:                                              ; preds = %174
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %12, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %13, align 4
  br label %224

205:                                              ; preds = %219, %212, %210, %198, %190, %188, %181
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #10
  br label %224

209:                                              ; preds = %187
  br label %210

210:                                              ; preds = %221, %209
  %211 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %212 unwind label %205

212:                                              ; preds = %210
  %213 = load ptr, ptr %211, align 8, !tbaa !12
  %214 = getelementptr i8, ptr %213, i64 -24
  %215 = load i64, ptr %214, align 8
  %216 = getelementptr inbounds i8, ptr %211, i64 %215
  %217 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %216)
          to label %218 unwind label %205

218:                                              ; preds = %212
  br i1 %217, label %219, label %222

219:                                              ; preds = %218
  %220 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  invoke void @_Z10add_ignorePKc(ptr noundef %220)
          to label %221 unwind label %205

221:                                              ; preds = %219
  br label %210, !llvm.loop !18

222:                                              ; preds = %218
  br label %223

223:                                              ; preds = %222, %200
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr %16) #10
  br label %236

224:                                              ; preds = %205, %201
  call void @llvm.lifetime.end.p0(i64 520, ptr %16) #10
  br label %265

225:                                              ; preds = %164
  %226 = load ptr, ptr %5, align 8, !tbaa !9
  %227 = load i32, ptr %9, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !9
  invoke void @_Z10add_ignorePKc(ptr noundef %230)
          to label %231 unwind label %232

231:                                              ; preds = %225
  br label %236

232:                                              ; preds = %261, %256, %250, %248, %237, %225
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %12, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %13, align 4
  br label %265

236:                                              ; preds = %231, %223
  br label %264

237:                                              ; preds = %151
  %238 = load ptr, ptr %5, align 8, !tbaa !9
  %239 = load i32, ptr %9, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %9, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %238, i64 %241
  invoke void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @_ZL13list_map_keys, ptr noundef nonnull align 8 dereferenceable(8) %242)
          to label %243 unwind label %232

243:                                              ; preds = %237
  br label %264

244:                                              ; preds = %151
  %245 = load i8, ptr %14, align 1, !tbaa !14, !range !16, !noundef !17
  %246 = trunc i8 %245 to i1
  %247 = zext i1 %246 to i8
  store i8 %247, ptr @_ZL8sort_map, align 1, !tbaa !14
  br label %264

248:                                              ; preds = %151
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.30)
          to label %250 unwind label %232

250:                                              ; preds = %248
  %251 = load i8, ptr %14, align 1, !tbaa !14, !range !16, !noundef !17
  %252 = trunc i8 %251 to i1
  %253 = zext i1 %252 to i64
  %254 = select i1 %252, i8 43, i8 45
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %249, i8 noundef signext %254)
          to label %256 unwind label %232

256:                                              ; preds = %250
  %257 = load ptr, ptr %15, align 8, !tbaa !9
  %258 = getelementptr inbounds i8, ptr %257, i64 -1
  %259 = load i8, ptr %258, align 1, !tbaa !11
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %255, i8 noundef signext %259)
          to label %261 unwind label %232

261:                                              ; preds = %256
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %263 unwind label %232

263:                                              ; preds = %261
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %263, %244, %243, %236, %160, %156
  br label %146, !llvm.loop !20

265:                                              ; preds = %232, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #10
  br label %494

266:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #10
  br label %489

267:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store ptr null, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %268 = load ptr, ptr %5, align 8, !tbaa !9
  %269 = load i32, ptr %9, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %268, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = call noundef ptr @strrchr(ptr noundef %272, i32 noundef 46) #11
  store ptr %273, ptr %19, align 8, !tbaa !9
  %274 = load ptr, ptr %19, align 8, !tbaa !9
  %275 = icmp ne ptr %274, null
  br i1 %275, label %276, label %356

276:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  %277 = load ptr, ptr %19, align 8, !tbaa !9
  %278 = call i32 @strcmp(ptr noundef %277, ptr noundef @.str.31) #11
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %284

280:                                              ; preds = %276
  %281 = load ptr, ptr %19, align 8, !tbaa !9
  %282 = call i32 @strcmp(ptr noundef %281, ptr noundef @.str.32) #11
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %291, label %284

284:                                              ; preds = %280, %276
  %285 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.33)
          to label %286 unwind label %287

286:                                              ; preds = %284
  br label %303

287:                                              ; preds = %305, %299, %284
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %12, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %13, align 4
  br label %355

291:                                              ; preds = %280
  %292 = load ptr, ptr %19, align 8, !tbaa !9
  %293 = call i32 @strcmp(ptr noundef %292, ptr noundef @.str.34) #11
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %299

295:                                              ; preds = %291
  %296 = load ptr, ptr %19, align 8, !tbaa !9
  %297 = call i32 @strcmp(ptr noundef %296, ptr noundef @.str.35) #11
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %302, label %299

299:                                              ; preds = %295, %291
  %300 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.36)
          to label %301 unwind label %287

301:                                              ; preds = %299
  br label %302

302:                                              ; preds = %301, %295
  br label %303

303:                                              ; preds = %302, %286
  %304 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br i1 %304, label %354, label %305

305:                                              ; preds = %303
  %306 = load ptr, ptr %5, align 8, !tbaa !9
  %307 = load i32, ptr %9, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds ptr, ptr %306, i64 %308
  %310 = load ptr, ptr %309, align 8, !tbaa !9
  %311 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %310)
          to label %312 unwind label %287

312:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef @.str.37, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %313 unwind label %331

313:                                              ; preds = %312
  %314 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %315 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  %316 = invoke noalias ptr @popen(ptr noundef %315, ptr noundef @.str.38)
          to label %317 unwind label %335

317:                                              ; preds = %313
  store ptr %316, ptr %22, align 8, !tbaa !9
  %318 = load ptr, ptr %22, align 8, !tbaa !9
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %352

320:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %321 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 392) #12
          to label %322 unwind label %339

322:                                              ; preds = %320
  %323 = load ptr, ptr %22, align 8, !tbaa !9
  %324 = call i32 @fileno(ptr noundef %323) #10
  invoke void @_ZN8fdstreamC1Ei(ptr noundef nonnull align 8 dereferenceable(128) %321, i32 noundef %324)
          to label %325 unwind label %343

325:                                              ; preds = %322
  store ptr %321, ptr %23, align 8, !tbaa !9
  %326 = load ptr, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %327 = getelementptr inbounds %class.anon, ptr %25, i32 0, i32 0
  %328 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %328, ptr %327, align 8, !tbaa !21
  call void @"_ZNSt8functionIFvvEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  invoke void @_ZN8fdstream8setcloseESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128) %326, ptr noundef %24)
          to label %329 unwind label %347

329:                                              ; preds = %325
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  %330 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %330, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %352

331:                                              ; preds = %312
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %12, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  br label %355

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

339:                                              ; preds = %320
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %12, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %13, align 4
  br label %351

343:                                              ; preds = %322
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %12, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %321, i64 noundef 392) #13
  br label %351

347:                                              ; preds = %325
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %12, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %351

351:                                              ; preds = %347, %343, %339
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %353

352:                                              ; preds = %329, %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %354

353:                                              ; preds = %351, %335
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %355

354:                                              ; preds = %352, %303
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  br label %356

355:                                              ; preds = %353, %331, %287
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %488

356:                                              ; preds = %354, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  %357 = load ptr, ptr %18, align 8, !tbaa !9
  %358 = icmp ne ptr %357, null
  br i1 %358, label %376, label %359

359:                                              ; preds = %356
  %360 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 520) #12
          to label %361 unwind label %368

361:                                              ; preds = %359
  %362 = load ptr, ptr %5, align 8, !tbaa !9
  %363 = load i32, ptr %9, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds ptr, ptr %362, i64 %364
  %366 = load ptr, ptr %365, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %360, ptr noundef %366, i32 noundef 8)
          to label %367 unwind label %372

367:                                              ; preds = %361
  store ptr %360, ptr %18, align 8, !tbaa !9
  br label %376

368:                                              ; preds = %469, %462, %460, %451, %448, %398, %396, %389, %387, %379, %359
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %12, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %13, align 4
  br label %488

372:                                              ; preds = %361
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %12, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %360, i64 noundef 520) #13
  br label %488

376:                                              ; preds = %367, %356
  %377 = load ptr, ptr %18, align 8, !tbaa !9
  %378 = icmp ne ptr %377, null
  br i1 %378, label %379, label %387

379:                                              ; preds = %376
  %380 = load ptr, ptr %18, align 8, !tbaa !9
  %381 = load ptr, ptr %380, align 8, !tbaa !12
  %382 = getelementptr i8, ptr %381, i64 -24
  %383 = load i64, ptr %382, align 8
  %384 = getelementptr inbounds i8, ptr %380, i64 %383
  %385 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %384)
          to label %386 unwind label %368

386:                                              ; preds = %379
  br i1 %385, label %387, label %401

387:                                              ; preds = %386, %376
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.39)
          to label %389 unwind label %368

389:                                              ; preds = %387
  %390 = load ptr, ptr %5, align 8, !tbaa !9
  %391 = load i32, ptr %9, align 4, !tbaa !5
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds ptr, ptr %390, i64 %392
  %394 = load ptr, ptr %393, align 8, !tbaa !9
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %388, ptr noundef %394)
          to label %396 unwind label %368

396:                                              ; preds = %389
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef @.str.40)
          to label %398 unwind label %368

398:                                              ; preds = %396
  %399 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %397, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %400 unwind label %368

400:                                              ; preds = %398
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %480

401:                                              ; preds = %386
  %402 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %402, label %403, label %448

403:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  %404 = load ptr, ptr %18, align 8, !tbaa !9
  %405 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) %404, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %406 unwind label %427

406:                                              ; preds = %403
  %407 = load ptr, ptr %405, align 8, !tbaa !12
  %408 = getelementptr i8, ptr %407, i64 -24
  %409 = load i64, ptr %408, align 8
  %410 = getelementptr inbounds i8, ptr %405, i64 %409
  %411 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %410)
          to label %412 unwind label %427

412:                                              ; preds = %406
  br i1 %411, label %415, label %413

413:                                              ; preds = %412
  %414 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  br i1 %414, label %431, label %415

415:                                              ; preds = %413, %412
  %416 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.41)
          to label %417 unwind label %427

417:                                              ; preds = %415
  %418 = load ptr, ptr %5, align 8, !tbaa !9
  %419 = load i32, ptr %9, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds ptr, ptr %418, i64 %420
  %422 = load ptr, ptr %421, align 8, !tbaa !9
  %423 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %416, ptr noundef %422)
          to label %424 unwind label %427

424:                                              ; preds = %417
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %423, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %426 unwind label %427

426:                                              ; preds = %424
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %447

427:                                              ; preds = %435, %424, %417, %415, %406, %403
  %428 = landingpad { ptr, i32 }
          cleanup
  %429 = extractvalue { ptr, i32 } %428, 0
  store ptr %429, ptr %12, align 8
  %430 = extractvalue { ptr, i32 } %428, 1
  store i32 %430, ptr %13, align 4
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %488

431:                                              ; preds = %413
  %432 = load i32, ptr %6, align 4, !tbaa !5
  %433 = and i32 %432, 2
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %446, label %435

435:                                              ; preds = %431
  %436 = load ptr, ptr %8, align 8, !tbaa !9
  %437 = load ptr, ptr %5, align 8, !tbaa !9
  %438 = load i32, ptr %9, align 4, !tbaa !5
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds ptr, ptr %437, i64 %439
  %441 = load ptr, ptr %440, align 8, !tbaa !9
  %442 = invoke noundef i32 @_Z7do_diffPKcRSt10unique_ptrIN4json3objESt14default_deleteIS3_EES0_S7_(ptr noundef %436, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %441, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %443 unwind label %427

443:                                              ; preds = %435
  %444 = load i32, ptr %6, align 4, !tbaa !5
  %445 = or i32 %444, %442
  store i32 %445, ptr %6, align 4, !tbaa !5
  br label %446

446:                                              ; preds = %443, %431
  br label %447

447:                                              ; preds = %446, %426
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %479

448:                                              ; preds = %401
  %449 = load ptr, ptr %18, align 8, !tbaa !9
  %450 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) %449, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %451 unwind label %368

451:                                              ; preds = %448
  %452 = load ptr, ptr %450, align 8, !tbaa !12
  %453 = getelementptr i8, ptr %452, i64 -24
  %454 = load i64, ptr %453, align 8
  %455 = getelementptr inbounds i8, ptr %450, i64 %454
  %456 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %455)
          to label %457 unwind label %368

457:                                              ; preds = %451
  br i1 %456, label %460, label %458

458:                                              ; preds = %457
  %459 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %459, label %472, label %460

460:                                              ; preds = %458, %457
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.41)
          to label %462 unwind label %368

462:                                              ; preds = %460
  %463 = load ptr, ptr %5, align 8, !tbaa !9
  %464 = load i32, ptr %9, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds ptr, ptr %463, i64 %465
  %467 = load ptr, ptr %466, align 8, !tbaa !9
  %468 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %461, ptr noundef %467)
          to label %469 unwind label %368

469:                                              ; preds = %462
  %470 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %468, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %471 unwind label %368

471:                                              ; preds = %469
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %478

472:                                              ; preds = %458
  %473 = load ptr, ptr %5, align 8, !tbaa !9
  %474 = load i32, ptr %9, align 4, !tbaa !5
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds ptr, ptr %473, i64 %475
  %477 = load ptr, ptr %476, align 8, !tbaa !9
  store ptr %477, ptr %8, align 8, !tbaa !9
  br label %478

478:                                              ; preds = %472, %471
  br label %479

479:                                              ; preds = %478, %447
  br label %480

480:                                              ; preds = %479, %400
  %481 = load ptr, ptr %18, align 8, !tbaa !9
  %482 = icmp eq ptr %481, null
  br i1 %482, label %487, label %483

483:                                              ; preds = %480
  %484 = load ptr, ptr %481, align 8, !tbaa !12
  %485 = getelementptr inbounds ptr, ptr %484, i64 1
  %486 = load ptr, ptr %485, align 8
  call void %486(ptr noundef nonnull align 8 dereferenceable(16) %481) #10
  br label %487

487:                                              ; preds = %483, %480
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %489

488:                                              ; preds = %427, %372, %368, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %494

489:                                              ; preds = %487, %266
  br label %490

490:                                              ; preds = %489, %108
  br label %491

491:                                              ; preds = %490
  %492 = load i32, ptr %9, align 4, !tbaa !5
  %493 = add nsw i32 %492, 1
  store i32 %493, ptr %9, align 4, !tbaa !5
  br label %27, !llvm.loop !23

494:                                              ; preds = %488, %265, %102, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %518

495:                                              ; preds = %31
  %496 = load i32, ptr %6, align 4, !tbaa !5
  %497 = and i32 %496, 2
  %498 = icmp ne i32 %497, 0
  br i1 %498, label %499, label %515

499:                                              ; preds = %495
  %500 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.42)
          to label %501 unwind label %511

501:                                              ; preds = %499
  %502 = load ptr, ptr %5, align 8, !tbaa !9
  %503 = getelementptr inbounds ptr, ptr %502, i64 0
  %504 = load ptr, ptr %503, align 8, !tbaa !9
  %505 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %500, ptr noundef %504)
          to label %506 unwind label %511

506:                                              ; preds = %501
  %507 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %505, ptr noundef @.str.43)
          to label %508 unwind label %511

508:                                              ; preds = %506
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %507, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %510 unwind label %511

510:                                              ; preds = %508
  br label %515

511:                                              ; preds = %508, %506, %501, %499
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %12, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %13, align 4
  br label %518

515:                                              ; preds = %510, %495
  %516 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %516, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  %517 = load i32, ptr %3, align 4
  ret i32 %517

518:                                              ; preds = %511, %494
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  br label %519

519:                                              ; preds = %518
  %520 = load ptr, ptr %12, align 8
  %521 = load i32, ptr %13, align 4
  %522 = insertvalue { ptr, i32 } poison, ptr %520, 0
  %523 = insertvalue { ptr, i32 } %522, i32 %521, 1
  resume { ptr, i32 } %523
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare noundef ptr @strrchr(ptr noundef, i32 noundef) #6

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

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

declare noalias ptr @popen(ptr noundef, ptr noundef) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #7

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fdstreamC1Ei(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fdstream8setcloseESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) "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 #7 = { nobuiltin allocsize(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 #8 = { nounwind "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 #9 = { nobuiltin nounwind "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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTSZ4mainE3$_0", !10, i64 0}
!23 = distinct !{!23, !19}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.63 }
%union.anon.63 = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }

@_ZL13list_map_keys = external hidden global %"class.std::vector", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZL13show_deletion = external hidden local_unnamed_addr global i8, align 1
@_ZL13show_addition = external hidden local_unnamed_addr global i8, align 1
@_ZL8sort_map = external hidden local_unnamed_addr global i8, align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [23 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: mustprogress uwtable
declare dso_local void @_Z10add_ignorePKc(ptr noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unique_ptr", align 8
  %4 = alloca %"class.std::unique_ptr", align 8
  %5 = alloca %"class.std::basic_ifstream", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon, align 8
  %11 = alloca %"class.std::unique_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %12 = icmp sgt i32 %0, 1
  br i1 %12, label %.lr.ph, label %._crit_edge.thread

._crit_edge:                                      ; preds = %.loopexit134
  %13 = and i32 %.6, 2
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %._crit_edge.thread, label %241

.lr.ph:                                           ; preds = %2, %.loopexit134
  %.0162 = phi i32 [ %.6, %.loopexit134 ], [ 0, %2 ]
  %.075160 = phi ptr [ %.277, %.loopexit134 ], [ null, %2 ]
  %.083159 = phi i32 [ %239, %.loopexit134 ], [ 1, %2 ]
  %14 = sext i32 %.083159 to i64
  %15 = getelementptr inbounds ptr, ptr %1, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !9
  switch i8 %17, label %125 [
    i8 45, label %18
    i8 43, label %.thread
  ]

18:                                               ; preds = %.lr.ph
  %19 = getelementptr inbounds i8, ptr %16, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 0
  br i1 %21, label %22, label %.thread

22:                                               ; preds = %18
  %23 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %23, label %24, label %48

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %26 unwind label %39

26:                                               ; preds = %24
  %27 = load ptr, ptr %25, align 8, !tbaa !10
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr %25, i64 %29
  %31 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %30)
          to label %32 unwind label %39

32:                                               ; preds = %26
  br i1 %31, label %35, label %33

33:                                               ; preds = %32
  %34 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  br i1 %34, label %41, label %35

35:                                               ; preds = %33, %32
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.27)
          to label %37 unwind label %39

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %47 unwind label %39

39:                                               ; preds = %43, %37, %35, %26, %24
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %252

41:                                               ; preds = %33
  %42 = and i32 %.0162, 2
  %.not123 = icmp eq i32 %42, 0
  br i1 %.not123, label %43, label %47

43:                                               ; preds = %41
  %44 = invoke noundef i32 @_Z7do_diffPKcRSt10unique_ptrIN4json3objESt14default_deleteIS3_EES0_S7_(ptr noundef %.075160, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.28, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %45 unwind label %39

45:                                               ; preds = %43
  %46 = or i32 %44, %.0162
  br label %47

47:                                               ; preds = %37, %41, %45
  %.1 = phi i32 [ %.0162, %41 ], [ %46, %45 ], [ 2, %37 ]
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %.loopexit134

48:                                               ; preds = %22
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %50 unwind label %63

50:                                               ; preds = %48
  %51 = load ptr, ptr %49, align 8, !tbaa !10
  %52 = getelementptr i8, ptr %51, i64 -24
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %49, i64 %53
  %55 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
          to label %56 unwind label %63

56:                                               ; preds = %50
  br i1 %55, label %59, label %57

57:                                               ; preds = %56
  %58 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %58, label %.loopexit134, label %59

59:                                               ; preds = %57, %56
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.27)
          to label %61 unwind label %63

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit134 unwind label %63

63:                                               ; preds = %61, %59, %50, %48
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %252

.thread:                                          ; preds = %.lr.ph, %18
  %65 = icmp eq i8 %17, 43
  %66 = zext i1 %65 to i8
  %67 = select i1 %65, i8 43, i8 45
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %.thread
  %.184.ph = phi i32 [ %.083159, %.thread ], [ %.184.ph.be, %.outer.backedge ]
  %.pn120.ph = phi ptr [ %16, %.thread ], [ %.082, %.outer.backedge ]
  %.2.ph = phi i32 [ %.0162, %.thread ], [ %.2.ph204, %.outer.backedge ]
  br label %.outer202

.outer202:                                        ; preds = %.outer, %123
  %.pn120.ph203 = phi ptr [ %.pn120.ph, %.outer ], [ %.082, %123 ]
  %.2.ph204 = phi i32 [ %.2.ph, %.outer ], [ 2, %123 ]
  br label %68

68:                                               ; preds = %.backedge, %.outer202
  %.pn120 = phi ptr [ %.pn120.ph203, %.outer202 ], [ %.082, %.backedge ]
  %.082 = getelementptr inbounds i8, ptr %.pn120, i64 1
  %69 = load i8, ptr %.082, align 1, !tbaa !9
  switch i8 %69, label %116 [
    i8 0, label %.loopexit134
    i8 97, label %70
    i8 100, label %71
    i8 105, label %72
    i8 108, label %111
    i8 115, label %115
  ]

70:                                               ; preds = %68
  store i8 %66, ptr @_ZL13show_addition, align 1, !tbaa !12
  br label %.backedge

71:                                               ; preds = %68
  store i8 %66, ptr @_ZL13show_deletion, align 1, !tbaa !12
  br label %.backedge

72:                                               ; preds = %68
  %73 = add nsw i32 %.184.ph, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %1, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = icmp eq i8 %77, 64
  br i1 %78, label %79, label %110

79:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %5) #10
  %80 = getelementptr inbounds i8, ptr %76, i64 1
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef nonnull %80, i32 noundef 8)
          to label %81 unwind label %96

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  %82 = load ptr, ptr %5, align 8, !tbaa !10
  %83 = getelementptr i8, ptr %82, i64 -24
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds i8, ptr %5, i64 %84
  %86 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %85)
          to label %87 unwind label %.loopexit.split-lp

87:                                               ; preds = %81
  br i1 %86, label %88, label %.preheader

88:                                               ; preds = %87
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.29)
          to label %90 unwind label %.loopexit.split-lp

90:                                               ; preds = %88
  %91 = load ptr, ptr %75, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 1
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull %92)
          to label %94 unwind label %.loopexit.split-lp

94:                                               ; preds = %90
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit133 unwind label %.loopexit.split-lp

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

.loopexit:                                        ; preds = %.preheader, %100, %107
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %98

.loopexit.split-lp:                               ; preds = %81, %88, %90, %94
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %98

98:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #10
  br label %109

.preheader:                                       ; preds = %87, %107
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %100 unwind label %.loopexit

100:                                              ; preds = %.preheader
  %101 = load ptr, ptr %99, align 8, !tbaa !10
  %102 = getelementptr i8, ptr %101, i64 -24
  %103 = load i64, ptr %102, align 8
  %104 = getelementptr inbounds i8, ptr %99, i64 %103
  %105 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %104)
          to label %106 unwind label %.loopexit

106:                                              ; preds = %100
  br i1 %105, label %107, label %.loopexit133

107:                                              ; preds = %106
  %108 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  invoke void @_Z10add_ignorePKc(ptr noundef %108)
          to label %.preheader unwind label %.loopexit, !llvm.loop !14

.loopexit133:                                     ; preds = %106, %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #10
  br label %.outer.backedge

109:                                              ; preds = %98, %96
  %.pn118 = phi { ptr, i32 } [ %lpad.phi, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #10
  br label %252

110:                                              ; preds = %72
  invoke void @_Z10add_ignorePKc(ptr noundef nonnull %76)
          to label %.outer.backedge unwind label %.loopexit.split-lp198

.loopexit197:                                     ; preds = %116, %118, %120, %123
  %lpad.loopexit199 = landingpad { ptr, i32 }
          cleanup
  br label %252

.loopexit.split-lp198:                            ; preds = %110, %111
  %lpad.loopexit.split-lp200 = landingpad { ptr, i32 }
          cleanup
  br label %252

111:                                              ; preds = %68
  %112 = add nsw i32 %.184.ph, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %1, i64 %113
  invoke void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @_ZL13list_map_keys, ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %.outer.backedge unwind label %.loopexit.split-lp198

.outer.backedge:                                  ; preds = %111, %.loopexit133, %110
  %.184.ph.be = phi i32 [ %73, %110 ], [ %73, %.loopexit133 ], [ %112, %111 ]
  br label %.outer, !llvm.loop !16

115:                                              ; preds = %68
  store i8 %66, ptr @_ZL8sort_map, align 1, !tbaa !12
  br label %.backedge

.backedge:                                        ; preds = %115, %71, %70
  br label %68, !llvm.loop !16

116:                                              ; preds = %68
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.30)
          to label %118 unwind label %.loopexit197

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %117, i8 noundef signext %67)
          to label %120 unwind label %.loopexit197

120:                                              ; preds = %118
  %121 = load i8, ptr %.082, align 1, !tbaa !9
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %119, i8 noundef signext %121)
          to label %123 unwind label %.loopexit197

123:                                              ; preds = %120
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.outer202 unwind label %.loopexit197, !llvm.loop !16

125:                                              ; preds = %.lr.ph
  %126 = call noundef ptr @strrchr(ptr noundef nonnull dereferenceable(1) %16, i32 noundef 46) #11
  %.not105 = icmp eq ptr %126, null
  br i1 %.not105, label %.thread127, label %127

127:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %128 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %126, ptr noundef nonnull dereferenceable(1) @.str.31) #11
  %.not106 = icmp eq i32 %128, 0
  br i1 %.not106, label %.invoke, label %129

129:                                              ; preds = %127
  %130 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %126, ptr noundef nonnull dereferenceable(1) @.str.32) #11
  %.not107 = icmp eq i32 %130, 0
  br i1 %.not107, label %.invoke, label %133

131:                                              ; preds = %.invoke, %141
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %162

133:                                              ; preds = %129
  %134 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %126, ptr noundef nonnull dereferenceable(1) @.str.34) #11
  %.not108 = icmp eq i32 %134, 0
  br i1 %.not108, label %.invoke, label %135

135:                                              ; preds = %133
  %136 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %126, ptr noundef nonnull dereferenceable(1) @.str.35) #11
  %.not109 = icmp eq i32 %136, 0
  br i1 %.not109, label %.invoke, label %139

.invoke:                                          ; preds = %127, %129, %133, %135
  %137 = phi ptr [ @.str.36, %135 ], [ @.str.36, %133 ], [ @.str.33, %129 ], [ @.str.33, %127 ]
  %138 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull %137)
          to label %139 unwind label %131

139:                                              ; preds = %.invoke, %135
  %140 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br i1 %140, label %.thread130, label %141

141:                                              ; preds = %139
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %142)
          to label %144 unwind label %131

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.37, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %145 unwind label %154

145:                                              ; preds = %144
  %146 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  %147 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %148 = call noalias ptr @popen(ptr noundef %147, ptr noundef nonnull @.str.38)
  %.not110 = icmp eq ptr %148, null
  br i1 %.not110, label %.thread130, label %149

149:                                              ; preds = %145
  %150 = invoke noalias noundef nonnull dereferenceable(392) ptr @_Znwm(i64 noundef 392) #12
          to label %151 unwind label %156

151:                                              ; preds = %149
  %152 = call i32 @fileno(ptr noundef nonnull %148) #10
  invoke void @_ZN8fdstreamC1Ei(ptr noundef nonnull align 8 dereferenceable(128) %150, i32 noundef %152)
          to label %153 unwind label %158

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  store ptr %148, ptr %10, align 8, !tbaa !17
  call void @"_ZNSt8functionIFvvEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  invoke void @_ZN8fdstream8setcloseESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128) %150, ptr noundef nonnull %9)
          to label %163 unwind label %160

154:                                              ; preds = %144
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %162

156:                                              ; preds = %149
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %162

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %150, i64 noundef 392) #13
  br label %162

160:                                              ; preds = %153
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %162

162:                                              ; preds = %156, %158, %160, %154, %131
  %.pn.pn = phi { ptr, i32 } [ %155, %154 ], [ %132, %131 ], [ %161, %160 ], [ %159, %158 ], [ %157, %156 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %252

.thread130:                                       ; preds = %139, %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %.thread127

163:                                              ; preds = %153
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %171

.thread127:                                       ; preds = %125, %.thread130
  %164 = invoke noalias noundef nonnull dereferenceable(520) ptr @_Znwm(i64 noundef 520) #12
          to label %165 unwind label %167

165:                                              ; preds = %.thread127
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %164, ptr noundef %166, i32 noundef 8)
          to label %171 unwind label %169

167:                                              ; preds = %.invoke186, %228, %226, %217, %215, %183, %180, %178, %171, %.thread127
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %252

169:                                              ; preds = %165
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %164, i64 noundef 520) #13
  br label %252

171:                                              ; preds = %163, %165
  %.381 = phi ptr [ %150, %163 ], [ %164, %165 ]
  %172 = load ptr, ptr %.381, align 8, !tbaa !10
  %173 = getelementptr i8, ptr %172, i64 -24
  %174 = load i64, ptr %173, align 8
  %175 = getelementptr inbounds i8, ptr %.381, i64 %174
  %176 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %175)
          to label %177 unwind label %167

177:                                              ; preds = %171
  br i1 %176, label %178, label %185

178:                                              ; preds = %177
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.39)
          to label %180 unwind label %167

180:                                              ; preds = %178
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef %181)
          to label %183 unwind label %167

183:                                              ; preds = %180
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.40)
          to label %.invoke186 unwind label %167

185:                                              ; preds = %177
  %186 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %186, label %187, label %215

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  %188 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) %.381, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %189 unwind label %205

189:                                              ; preds = %187
  %190 = load ptr, ptr %188, align 8, !tbaa !10
  %191 = getelementptr i8, ptr %190, i64 -24
  %192 = load i64, ptr %191, align 8
  %193 = getelementptr inbounds i8, ptr %188, i64 %192
  %194 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %193)
          to label %195 unwind label %205

195:                                              ; preds = %189
  br i1 %194, label %198, label %196

196:                                              ; preds = %195
  %197 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br i1 %197, label %207, label %198

198:                                              ; preds = %196, %195
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.41)
          to label %200 unwind label %205

200:                                              ; preds = %198
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef %201)
          to label %203 unwind label %205

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %214 unwind label %205

205:                                              ; preds = %209, %203, %200, %198, %189, %187
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %252

207:                                              ; preds = %196
  %208 = and i32 %.0162, 2
  %.not114 = icmp eq i32 %208, 0
  br i1 %.not114, label %209, label %214

209:                                              ; preds = %207
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = invoke noundef i32 @_Z7do_diffPKcRSt10unique_ptrIN4json3objESt14default_deleteIS3_EES0_S7_(ptr noundef %.075160, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %210, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %212 unwind label %205

212:                                              ; preds = %209
  %213 = or i32 %211, %.0162
  br label %214

214:                                              ; preds = %203, %207, %212
  %.4 = phi i32 [ %.0162, %207 ], [ %213, %212 ], [ 2, %203 ]
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %235

215:                                              ; preds = %185
  %216 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16) %.381, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %217 unwind label %167

217:                                              ; preds = %215
  %218 = load ptr, ptr %216, align 8, !tbaa !10
  %219 = getelementptr i8, ptr %218, i64 -24
  %220 = load i64, ptr %219, align 8
  %221 = getelementptr inbounds i8, ptr %216, i64 %220
  %222 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %221)
          to label %223 unwind label %167

223:                                              ; preds = %217
  br i1 %222, label %226, label %224

224:                                              ; preds = %223
  %225 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4json3objESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %225, label %233, label %226

226:                                              ; preds = %224, %223
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.41)
          to label %228 unwind label %167

228:                                              ; preds = %226
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef %229)
          to label %.invoke186 unwind label %167

.invoke186:                                       ; preds = %228, %183
  %231 = phi ptr [ %184, %183 ], [ %230, %228 ]
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %235 unwind label %167

233:                                              ; preds = %224
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  br label %235

235:                                              ; preds = %.invoke186, %233, %214
  %.176 = phi ptr [ %.075160, %214 ], [ %234, %233 ], [ %.075160, %.invoke186 ]
  %.5 = phi i32 [ %.4, %214 ], [ %.0162, %233 ], [ 2, %.invoke186 ]
  %236 = load ptr, ptr %.381, align 8, !tbaa !10
  %237 = getelementptr inbounds i8, ptr %236, i64 8
  %238 = load ptr, ptr %237, align 8
  call void %238(ptr noundef nonnull align 8 dereferenceable(16) %.381) #10
  br label %.loopexit134

.loopexit134:                                     ; preds = %68, %57, %61, %47, %235
  %.386 = phi i32 [ %.083159, %47 ], [ %.083159, %235 ], [ %.083159, %61 ], [ %.083159, %57 ], [ %.184.ph, %68 ]
  %.277 = phi ptr [ %.075160, %47 ], [ %.176, %235 ], [ %.075160, %61 ], [ @.str.28, %57 ], [ %.075160, %68 ]
  %.6 = phi i32 [ %.1, %47 ], [ %.5, %235 ], [ 2, %61 ], [ %.0162, %57 ], [ %.2.ph204, %68 ]
  %239 = add nsw i32 %.386, 1
  %240 = icmp slt i32 %239, %0
  br i1 %240, label %.lr.ph, label %._crit_edge, !llvm.loop !19

241:                                              ; preds = %._crit_edge
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.42)
          to label %243 unwind label %250

243:                                              ; preds = %241
  %244 = load ptr, ptr %1, align 8, !tbaa !5
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef %244)
          to label %246 unwind label %250

246:                                              ; preds = %243
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef nonnull @.str.43)
          to label %248 unwind label %250

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %._crit_edge.thread unwind label %250

250:                                              ; preds = %248, %246, %243, %241
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %252

._crit_edge.thread:                               ; preds = %2, %248, %._crit_edge
  %.0.lcssa175 = phi i32 [ %.6, %248 ], [ %.6, %._crit_edge ], [ 0, %2 ]
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  ret i32 %.0.lcssa175

252:                                              ; preds = %.loopexit197, %.loopexit.split-lp198, %39, %63, %109, %205, %169, %167, %162, %250
  %.pn124.pn = phi { ptr, i32 } [ %251, %250 ], [ %40, %39 ], [ %64, %63 ], [ %.pn118, %109 ], [ %168, %167 ], [ %206, %205 ], [ %170, %169 ], [ %.pn.pn, %162 ], [ %lpad.loopexit199, %.loopexit197 ], [ %lpad.loopexit.split-lp200, %.loopexit.split-lp198 ]
  call void @_ZNSt10unique_ptrIN4json3objESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn124.pn
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jsonrsERSiRSt10unique_ptrINS_3objESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare noundef ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @popen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare noundef i32 @fileno(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fdstreamC1Ei(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fdstream8setcloseESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #7 = { nofree nounwind "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 #8 = { nobuiltin allocsize(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 #9 = { nobuiltin nounwind "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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"vtable pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSZ4mainE3$_0", !6, i64 0}
!19 = distinct !{!19, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass