; LLVM IR from abeaumont/competitive-programming :: codejam/2008-round-1a (b)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type <{ i32, i8, [3 x i8] }>

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca %"class.std::allocator.4", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca %"class.std::vector.10", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %26 = alloca %"struct.std::_Bit_reference", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %34 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %35 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %36 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %37 = alloca i32, align 4
  %38 = alloca %"struct.std::_Bit_reference", align 8
  store i32 0, ptr %1, align 4
  %39 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %40 = getelementptr i8, ptr %39, i64 -24
  %41 = load i64, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %41
  %43 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %42, ptr noundef null)
  %44 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %46

46:                                               ; preds = %337, %0
  %47 = load i32, ptr %8, align 4, !tbaa !8
  %48 = load i32, ptr %2, align 4, !tbaa !8
  %49 = icmp sle i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %344

51:                                               ; preds = %46
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %54 = load i32, ptr %4, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  call void @_ZNSaISt3mapIibSt4lessIiESaISt4pairIKibEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEC2EmRKS8_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %56 unwind label %65

56:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorISt3mapIibSt4lessIiESaISt4pairIKibEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
  %57 = load i32, ptr %3, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %58, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %59 unwind label %69

59:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %113, %59
  %61 = load i32, ptr %16, align 4, !tbaa !8
  %62 = load i32, ptr %4, align 4, !tbaa !8
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %73, label %64

64:                                               ; preds = %60
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %117

65:                                               ; preds = %51
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %12, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %13, align 4
  call void @_ZNSt15__new_allocatorISt3mapIibSt4lessIiESaISt4pairIKibEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %343

69:                                               ; preds = %56
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %342

73:                                               ; preds = %60
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %75 unwind label %81

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %76

76:                                               ; preds = %100, %75
  %77 = load i32, ptr %17, align 4, !tbaa !8
  %78 = load i32, ptr %5, align 4, !tbaa !8
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %85, label %80

80:                                               ; preds = %76
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %112

81:                                               ; preds = %73
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  br label %116

85:                                               ; preds = %76
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %87 unwind label %103

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %89 unwind label %103

89:                                               ; preds = %87
  %90 = load i32, ptr %7, align 4, !tbaa !8
  %91 = icmp ne i32 %90, 0
  %92 = load i32, ptr %16, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %93) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %95 = load i32, ptr %6, align 4, !tbaa !8
  %96 = sub nsw i32 %95, 1
  store i32 %96, ptr %18, align 4, !tbaa !8
  %97 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %94, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %98 unwind label %107

98:                                               ; preds = %89
  %99 = zext i1 %91 to i8
  store i8 %99, ptr %97, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %100

100:                                              ; preds = %98
  %101 = load i32, ptr %17, align 4, !tbaa !8
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %17, align 4, !tbaa !8
  br label %76, !llvm.loop !13

103:                                              ; preds = %87, %85
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  br label %111

107:                                              ; preds = %89
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %116

112:                                              ; preds = %80
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %16, align 4, !tbaa !8
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %16, align 4, !tbaa !8
  br label %60, !llvm.loop !15

116:                                              ; preds = %111, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %341

117:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %281, %117
  br label %119

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %120

120:                                              ; preds = %201, %119
  %121 = load i32, ptr %21, align 4, !tbaa !8
  %122 = load i32, ptr %4, align 4, !tbaa !8
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %205

125:                                              ; preds = %120
  %126 = load i32, ptr %21, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %127) #8
  %129 = call noundef i64 @_ZNKSt3mapIibSt4lessIiESaISt4pairIKibEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %128) #8
  %130 = icmp eq i64 %129, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  br i1 %130, label %131, label %161

131:                                              ; preds = %125
  %132 = load i32, ptr %21, align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %133) #8
  %135 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %134) #8
  %136 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  %137 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %138 = getelementptr inbounds %"struct.std::pair", ptr %137, i32 0, i32 1
  %139 = load i8, ptr %138, align 4, !tbaa !16, !range !18, !noundef !19
  %140 = trunc i8 %139 to i1
  %141 = zext i1 %140 to i32
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %161

143:                                              ; preds = %131
  %144 = load i32, ptr %21, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %145) #8
  %147 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %146) #8
  %148 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  %149 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 0
  %151 = load i32, ptr %150, align 4, !tbaa !20
  %152 = sext i32 %151 to i64
  %153 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %152)
          to label %154 unwind label %188

154:                                              ; preds = %143
  %155 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %156 = extractvalue { ptr, i64 } %153, 0
  store ptr %156, ptr %155, align 8
  %157 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %158 = extractvalue { ptr, i64 } %153, 1
  store i64 %158, ptr %157, align 8
  %159 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  %160 = xor i1 %159, true
  br label %161

161:                                              ; preds = %154, %131, %125
  %162 = phi i1 [ false, %131 ], [ false, %125 ], [ %160, %154 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br i1 %162, label %163, label %200

163:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %164 = load i32, ptr %21, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %165) #8
  %167 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %166) #8
  %168 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  %170 = getelementptr inbounds %"struct.std::pair", ptr %169, i32 0, i32 0
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %170)
          to label %171 unwind label %192

171:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %172 = load i32, ptr %21, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %173) #8
  %175 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %174) #8
  %176 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
  store ptr %175, ptr %176, align 8
  %177 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %178 = getelementptr inbounds %"struct.std::pair", ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 4, !tbaa !20
  %180 = sext i32 %179 to i64
  %181 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %180)
          to label %182 unwind label %196

182:                                              ; preds = %171
  %183 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %184 = extractvalue { ptr, i64 } %181, 0
  store ptr %184, ptr %183, align 8
  %185 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %186 = extractvalue { ptr, i64 } %181, 1
  store i64 %186, ptr %185, align 8
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %26, i1 noundef zeroext true) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %200

188:                                              ; preds = %143
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %204

192:                                              ; preds = %163
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %12, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %204

196:                                              ; preds = %171
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %12, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %204

200:                                              ; preds = %182, %161
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %21, align 4, !tbaa !8
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %21, align 4, !tbaa !8
  br label %120, !llvm.loop !21

204:                                              ; preds = %196, %192, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %282

205:                                              ; preds = %124
  %206 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %206, label %207, label %208

207:                                              ; preds = %205
  store i32 12, ptr %9, align 4
  br label %279

208:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store ptr %20, ptr %28, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %209 = load ptr, ptr %28, align 8, !tbaa !22
  %210 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %209) #8
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %210, ptr %211, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %212 = load ptr, ptr %28, align 8, !tbaa !22
  %213 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #8
  %214 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  br label %215

215:                                              ; preds = %272, %208
  %216 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br i1 %216, label %218, label %217

217:                                              ; preds = %215
  store i32 16, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %274

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %220 = load i32, ptr %219, align 4, !tbaa !8
  store i32 %220, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !8
  br label %221

221:                                              ; preds = %268, %218
  %222 = load i32, ptr %32, align 4, !tbaa !8
  %223 = load i32, ptr %4, align 4, !tbaa !8
  %224 = icmp slt i32 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i32 18, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %271

226:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %227 = load i32, ptr %32, align 4, !tbaa !8
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %228) #8
  %230 = invoke ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %229, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %231 unwind label %257

231:                                              ; preds = %226
  %232 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
  store ptr %230, ptr %232, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %233 = load i32, ptr %32, align 4, !tbaa !8
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %234) #8
  %236 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %235) #8
  %237 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %34, i32 0, i32 0
  store ptr %236, ptr %237, align 8
  %238 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKibEES5_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  br i1 %238, label %239, label %246

239:                                              ; preds = %231
  %240 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %241 = getelementptr inbounds %"struct.std::pair", ptr %240, i32 0, i32 1
  %242 = load i8, ptr %241, align 4, !tbaa !16, !range !18, !noundef !19
  %243 = trunc i8 %242 to i1
  %244 = zext i1 %243 to i32
  %245 = icmp eq i32 %244, 0
  br label %246

246:                                              ; preds = %239, %231
  %247 = phi i1 [ false, %231 ], [ %245, %239 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br i1 %247, label %248, label %261

248:                                              ; preds = %246
  %249 = load i32, ptr %32, align 4, !tbaa !8
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %250) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %33, i64 8, i1 false), !tbaa.struct !24
  %252 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %35, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = invoke ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48) %251, ptr %253)
          to label %255 unwind label %257

255:                                              ; preds = %248
  %256 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %36, i32 0, i32 0
  store ptr %254, ptr %256, align 8
  br label %261

257:                                              ; preds = %248, %226
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %12, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %282

261:                                              ; preds = %255, %246
  %262 = load i32, ptr %32, align 4, !tbaa !8
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %263) #8
  %265 = call noundef zeroext i1 @_ZNKSt3mapIibSt4lessIiESaISt4pairIKibEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %264) #8
  br i1 %265, label %266, label %267

266:                                              ; preds = %261
  store i8 0, ptr %19, align 1, !tbaa !11
  br label %267

267:                                              ; preds = %266, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %32, align 4, !tbaa !8
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %32, align 4, !tbaa !8
  br label %221, !llvm.loop !25

271:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %272

272:                                              ; preds = %271
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br label %215

274:                                              ; preds = %217
  %275 = load i8, ptr %19, align 1, !tbaa !11, !range !18, !noundef !19
  %276 = trunc i8 %275 to i1
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  store i32 12, ptr %9, align 4
  br label %279

278:                                              ; preds = %274
  store i32 0, ptr %9, align 4
  br label %279

279:                                              ; preds = %278, %277, %207
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  %280 = load i32, ptr %9, align 4
  switch i32 %280, label %351 [
    i32 0, label %281
    i32 12, label %283
  ]

281:                                              ; preds = %279
  br label %118, !llvm.loop !26

282:                                              ; preds = %257, %204
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %340

283:                                              ; preds = %279
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %285 unwind label %299

285:                                              ; preds = %283
  %286 = load i32, ptr %8, align 4, !tbaa !8
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %284, i32 noundef %286)
          to label %288 unwind label %299

288:                                              ; preds = %285
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @.str.1)
          to label %290 unwind label %299

290:                                              ; preds = %288
  %291 = load i8, ptr %19, align 1, !tbaa !11, !range !18, !noundef !19
  %292 = trunc i8 %291 to i1
  br i1 %292, label %293, label %333

293:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !8
  br label %294

294:                                              ; preds = %325, %293
  %295 = load i32, ptr %37, align 4, !tbaa !8
  %296 = load i32, ptr %3, align 4, !tbaa !8
  %297 = icmp slt i32 %295, %296
  br i1 %297, label %303, label %298

298:                                              ; preds = %294
  store i32 21, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %332

299:                                              ; preds = %333, %288, %285, %283
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %12, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %13, align 4
  br label %340

303:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %304 = load i32, ptr %37, align 4, !tbaa !8
  %305 = sext i32 %304 to i64
  %306 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %305)
          to label %307 unwind label %328

307:                                              ; preds = %303
  %308 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 0
  %309 = extractvalue { ptr, i64 } %306, 0
  store ptr %309, ptr %308, align 8
  %310 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 1
  %311 = extractvalue { ptr, i64 } %306, 1
  store i64 %311, ptr %310, align 8
  %312 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #8
  %313 = zext i1 %312 to i32
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %313)
          to label %315 unwind label %328

315:                                              ; preds = %307
  %316 = load i32, ptr %37, align 4, !tbaa !8
  %317 = load i32, ptr %3, align 4, !tbaa !8
  %318 = sub nsw i32 %317, 1
  %319 = icmp eq i32 %316, %318
  %320 = zext i1 %319 to i64
  %321 = getelementptr inbounds [3 x i8], ptr @.str.2, i64 0, i64 %320
  %322 = load i8, ptr %321, align 1, !tbaa !27
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %314, i8 noundef signext %322)
          to label %324 unwind label %328

324:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %37, align 4, !tbaa !8
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %37, align 4, !tbaa !8
  br label %294, !llvm.loop !28

328:                                              ; preds = %315, %307, %303
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %12, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %340

332:                                              ; preds = %298
  br label %336

333:                                              ; preds = %290
  %334 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %335 unwind label %299

335:                                              ; preds = %333
  br label %336

336:                                              ; preds = %335, %332
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %8, align 4, !tbaa !8
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %8, align 4, !tbaa !8
  br label %46, !llvm.loop !29

340:                                              ; preds = %328, %299, %282
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %341

341:                                              ; preds = %340, %116
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #8
  br label %342

342:                                              ; preds = %341, %69
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %343

343:                                              ; preds = %342, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %346

344:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %345 = load i32, ptr %1, align 4
  ret i32 %345

346:                                              ; preds = %343
  %347 = load ptr, ptr %12, align 8
  %348 = load i32, ptr %13, align 4
  %349 = insertvalue { ptr, i32 } poison, ptr %347, 0
  %350 = insertvalue { ptr, i32 } %349, i32 %348, 1
  resume { ptr, i32 } %350

351:                                              ; preds = %279
  unreachable
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48), ptr) #4 align 2

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<int, bool>, std::allocator<std::map<int, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::allocator.4", align 1
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector.10", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Bit_reference", align 8
  %25 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %26 = getelementptr i8, ptr %25, i64 -24
  %27 = load i64, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %27
  %29 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %28, ptr noundef null)
  %30 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %32 = load i32, ptr %1, align 4, !tbaa !8
  %.not92 = icmp slt i32 %32, 1
  br i1 %.not92, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %0
  %33 = getelementptr inbounds i8, ptr %14, i64 8
  %34 = getelementptr inbounds i8, ptr %17, i64 8
  %35 = getelementptr inbounds i8, ptr %24, i64 8
  br label %36

._crit_edge96:                                    ; preds = %.loopexit, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

36:                                               ; preds = %.lr.ph95, %.loopexit
  %.03593 = phi i32 [ 1, %.lr.ph95 ], [ %198, %.loopexit ]
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %39 = load i32, ptr %3, align 4, !tbaa !8
  %40 = sext i32 %39 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaISt3mapIibSt4lessIiESaISt4pairIKibEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEC2EmRKS8_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %40, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %41 unwind label %47

41:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorISt3mapIibSt4lessIiESaISt4pairIKibEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #7
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %44 unwind label %49

44:                                               ; preds = %41
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  %45 = load i32, ptr %3, align 4, !tbaa !8
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph75, label %.preheader69.preheader

.preheader69.preheader:                           ; preds = %._crit_edge, %44
  br label %.preheader69

47:                                               ; preds = %36
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt3mapIibSt4lessIiESaISt4pairIKibEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %202

49:                                               ; preds = %41
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  br label %201

.lr.ph75:                                         ; preds = %44, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %44 ]
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader unwind label %57

.preheader:                                       ; preds = %.lr.ph75
  %52 = load i32, ptr %4, align 4, !tbaa !8
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %68, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %54 = load i32, ptr %3, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next, %55
  br i1 %56, label %.lr.ph75, label %.preheader69.preheader, !llvm.loop !11

57:                                               ; preds = %.lr.ph75
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %200

.lr.ph:                                           ; preds = %.preheader, %68
  %.04572 = phi i32 [ %71, %68 ], [ 0, %.preheader ]
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %60 unwind label %74

60:                                               ; preds = %.lr.ph
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %62 unwind label %74

62:                                               ; preds = %60
  %63 = load i32, ptr %6, align 4, !tbaa !8
  %64 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %65 = load i32, ptr %5, align 4, !tbaa !8
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %11, align 4, !tbaa !8
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %64, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %68 unwind label %76

68:                                               ; preds = %62
  %69 = icmp ne i32 %63, 0
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %67, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %71 = add nuw nsw i32 %.04572, 1
  %72 = load i32, ptr %4, align 4, !tbaa !8
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !15

74:                                               ; preds = %60, %.lr.ph
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %200

76:                                               ; preds = %62
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %200

.preheader69:                                     ; preds = %.preheader69.preheader, %160
  %.040 = phi i8 [ %.141.lcssa, %160 ], [ 1, %.preheader69.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph78, label %._crit_edge79

._crit_edge79:                                    ; preds = %123, %.preheader69
  %80 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br i1 %80, label %162, label %127

.lr.ph78:                                         ; preds = %.preheader69, %123
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %123 ], [ 0, %.preheader69 ]
  %81 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv98) #7
  %82 = call noundef i64 @_ZNKSt3mapIibSt4lessIiESaISt4pairIKibEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %81) #7
  %83 = icmp eq i64 %82, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  br i1 %83, label %84, label %.critedge

84:                                               ; preds = %.lr.ph78
  %85 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv98) #7
  %86 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %85) #7
  store ptr %86, ptr %13, align 8
  %87 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %88 = getelementptr inbounds i8, ptr %87, i64 4
  %89 = load i8, ptr %88, align 4, !tbaa !16, !range !18, !noundef !19
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %91, label %.critedge

91:                                               ; preds = %84
  %92 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv98) #7
  %93 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %92) #7
  store ptr %93, ptr %15, align 8
  %94 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %95 = load i32, ptr %94, align 4, !tbaa !20
  %96 = sext i32 %95 to i64
  %97 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %96)
          to label %98 unwind label %117

98:                                               ; preds = %91
  %99 = extractvalue { ptr, i64 } %97, 0
  store ptr %99, ptr %14, align 8
  %100 = extractvalue { ptr, i64 } %97, 1
  store i64 %100, ptr %33, align 8
  %101 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %101, label %123, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %103 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv98) #7
  %104 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %103) #7
  store ptr %104, ptr %16, align 8
  %105 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %105)
          to label %106 unwind label %119

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %107 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv98) #7
  %108 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %107) #7
  store ptr %108, ptr %18, align 8
  %109 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %110 = load i32, ptr %109, align 4, !tbaa !20
  %111 = sext i32 %110 to i64
  %112 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %111)
          to label %113 unwind label %121

113:                                              ; preds = %106
  %114 = extractvalue { ptr, i64 } %112, 0
  store ptr %114, ptr %17, align 8
  %115 = extractvalue { ptr, i64 } %112, 1
  store i64 %115, ptr %34, align 8
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %123

117:                                              ; preds = %91
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %161

119:                                              ; preds = %102
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %161

121:                                              ; preds = %106
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %161

.critedge:                                        ; preds = %.lr.ph78, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %123

123:                                              ; preds = %98, %113, %.critedge
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %124 = load i32, ptr %3, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next99, %125
  br i1 %126, label %.lr.ph78, label %._crit_edge79, !llvm.loop !21

127:                                              ; preds = %._crit_edge79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %128 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store ptr %128, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %129 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store ptr %129, ptr %20, align 8
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %130, label %.lr.ph87, label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge84, %127
  %.141.lcssa = phi i8 [ %.040, %127 ], [ %.242.lcssa, %._crit_edge84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %131 = trunc nuw i8 %.141.lcssa to i1
  br i1 %131, label %160, label %162

.lr.ph87:                                         ; preds = %127, %._crit_edge84
  %.14185 = phi i8 [ %.242.lcssa, %._crit_edge84 ], [ %.040, %127 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %133 = load i32, ptr %132, align 4, !tbaa !8
  store i32 %133, ptr %21, align 4, !tbaa !8
  %134 = load i32, ptr %3, align 4, !tbaa !8
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.lr.ph83, label %._crit_edge84

._crit_edge84:                                    ; preds = %154, %.lr.ph87
  %.242.lcssa = phi i8 [ %.14185, %.lr.ph87 ], [ %spec.select, %154 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %137 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %137, label %.lr.ph87, label %._crit_edge88

.lr.ph83:                                         ; preds = %.lr.ph87, %154
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %154 ], [ 0, %.lr.ph87 ]
  %.24280 = phi i8 [ %spec.select, %154 ], [ %.14185, %.lr.ph87 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %138 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv101) #7
  %139 = invoke ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %138, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %140 unwind label %152

140:                                              ; preds = %.lr.ph83
  store ptr %139, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %141 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv101) #7
  %142 = call ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %141) #7
  store ptr %142, ptr %23, align 8
  %143 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKibEES5_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br i1 %143, label %144, label %.critedge2

144:                                              ; preds = %140
  %145 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKibEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %146 = getelementptr inbounds i8, ptr %145, i64 4
  %147 = load i8, ptr %146, align 4, !tbaa !16, !range !18, !noundef !19
  %148 = icmp eq i8 %147, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br i1 %148, label %149, label %154

149:                                              ; preds = %144
  %150 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv101) #7
  %.sroa.06.0.copyload = load ptr, ptr %22, align 8, !tbaa !22
  %151 = invoke ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48) %150, ptr %.sroa.06.0.copyload)
          to label %154 unwind label %152

152:                                              ; preds = %149, %.lr.ph83
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %161

.critedge2:                                       ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %154

154:                                              ; preds = %149, %.critedge2, %144
  %155 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv101) #7
  %156 = call noundef zeroext i1 @_ZNKSt3mapIibSt4lessIiESaISt4pairIKibEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %155) #7
  %spec.select = select i1 %156, i8 0, i8 %.24280
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %157 = load i32, ptr %3, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = icmp slt i64 %indvars.iv.next102, %158
  br i1 %159, label %.lr.ph83, label %._crit_edge84, !llvm.loop !24

160:                                              ; preds = %._crit_edge88
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %.preheader69

161:                                              ; preds = %117, %119, %121, %152
  %.pn.pn = phi { ptr, i32 } [ %153, %152 ], [ %122, %121 ], [ %120, %119 ], [ %118, %117 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %200

162:                                              ; preds = %._crit_edge79, %._crit_edge88
  %.444.ph = phi i8 [ %.141.lcssa, %._crit_edge88 ], [ %.040, %._crit_edge79 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %164 unwind label %172

164:                                              ; preds = %162
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %163, i32 noundef %.03593)
          to label %166 unwind label %172

166:                                              ; preds = %164
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull @.str.1)
          to label %168 unwind label %172

168:                                              ; preds = %166
  %169 = trunc nuw i8 %.444.ph to i1
  br i1 %169, label %.preheader68, label %196

.preheader68:                                     ; preds = %168
  %170 = load i32, ptr %2, align 4, !tbaa !8
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.lr.ph91, label %.loopexit

172:                                              ; preds = %196, %166, %164, %162
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %200

.lr.ph91:                                         ; preds = %.preheader68, %190
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %190 ], [ 0, %.preheader68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %174 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %indvars.iv103)
          to label %175 unwind label %194

175:                                              ; preds = %.lr.ph91
  %176 = extractvalue { ptr, i64 } %174, 0
  store ptr %176, ptr %24, align 8
  %177 = extractvalue { ptr, i64 } %174, 1
  store i64 %177, ptr %35, align 8
  %178 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  %179 = zext i1 %178 to i32
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %179)
          to label %181 unwind label %194

181:                                              ; preds = %175
  %182 = load i32, ptr %2, align 4, !tbaa !8
  %183 = add nsw i32 %182, -1
  %184 = zext i32 %183 to i64
  %185 = icmp eq i64 %indvars.iv103, %184
  %186 = zext i1 %185 to i64
  %187 = getelementptr inbounds [3 x i8], ptr @.str.2, i64 0, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !25
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %180, i8 noundef signext %188)
          to label %190 unwind label %194

190:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %191 = load i32, ptr %2, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = icmp slt i64 %indvars.iv.next104, %192
  br i1 %193, label %.lr.ph91, label %.loopexit, !llvm.loop !26

194:                                              ; preds = %181, %175, %.lr.ph91
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %200

196:                                              ; preds = %168
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %.loopexit unwind label %172

.loopexit:                                        ; preds = %190, %.preheader68, %196
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %198 = add nuw nsw i32 %.03593, 1
  %199 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.03593, %199
  br i1 %.not.not, label %36, label %._crit_edge96, !llvm.loop !27

200:                                              ; preds = %161, %172, %194, %57, %76, %74
  %.pn58.pn.pn = phi { ptr, i32 } [ %58, %57 ], [ %77, %76 ], [ %75, %74 ], [ %.pn.pn, %161 ], [ %195, %194 ], [ %173, %172 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %201

201:                                              ; preds = %200, %49
  %.pn58.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn, %200 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %202

202:                                              ; preds = %201, %47
  %.pn58.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn, %201 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn58.pn.pn.pn.pn
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIibSt4lessIiESaISt4pairIKibEEESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIibSt4lessIiESaISt4pairIKibEEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48), ptr) local_unnamed_addr #4 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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


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