; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2013-14/Open 2014 (14 Open G1)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator.2" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::vector<int>, std::pair<const std::vector<int>, int>, std::_Select1st<std::pair<const std::vector<int>, int>>, std::less<std::vector<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::vector<int>, std::pair<const std::vector<int>, int>, std::_Select1st<std::pair<const std::vector<int>, int>>, std::less<std::vector<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.8" = type <{ %"class.std::vector.0", i32, [4 x i8] }>

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@MB = external dso_local global [100000 x [8 x i32]], align 16
@MF = external dso_local global [100000 x [8 x i32]], align 16
@PS = external dso_local global [100001 x [8 x i32]], align 16
@cows = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4initv() #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3genv() #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::map", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_Z4initv()
  call void @_Z3genv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %20 = load i32, ptr @K, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  store i32 %21, ptr %2, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %230, %0
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 8
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %235

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 9, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %27 unwind label %34

27:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #7
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %28 = load i32, ptr @N, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  store i32 %29, ptr %9, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %113, %27
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %38, label %33

33:                                               ; preds = %30
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %120

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %234

38:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100000 x [8 x i32]], ptr @MF, i64 0, i64 %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [8 x i32], ptr %41, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 8) #7
  store i32 %45, ptr %46, align 4, !tbaa !5
  store i32 %45, ptr %11, align 4, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = call i32 @llvm.ctpop.i32(i32 %47)
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = icmp sle i32 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %38
  store i32 7, ptr %3, align 4
  br label %110

52:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %99, %52
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 8
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %102

57:                                               ; preds = %53
  %58 = load i32, ptr %11, align 4, !tbaa !5
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = shl i32 1, %59
  %61 = and i32 %58, %60
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %87

63:                                               ; preds = %57
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %74

66:                                               ; preds = %63
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %68
  %70 = load i32, ptr %12, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [8 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  store i32 %73, ptr %10, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %66, %63
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %76
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [8 x i32], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = sub nsw i32 %81, %82
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %85) #7
  store i32 %83, ptr %86, align 4, !tbaa !5
  br label %98

87:                                               ; preds = %57
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %89
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [8 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %96) #7
  store i32 %94, ptr %97, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %87, %74
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %12, align 4, !tbaa !5
  br label %53, !llvm.loop !9

102:                                              ; preds = %56
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cows, i64 noundef %104) #7
  %106 = getelementptr inbounds %"struct.std::pair", ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !11
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %109 unwind label %116

109:                                              ; preds = %102
  store i32 %107, ptr %108, align 4, !tbaa !5
  store i32 0, ptr %3, align 4
  br label %110

110:                                              ; preds = %109, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %111 = load i32, ptr %3, align 4
  switch i32 %111, label %250 [
    i32 0, label %112
    i32 7, label %113
  ]

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %110
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = add nsw i32 %114, -1
  store i32 %115, ptr %9, align 4, !tbaa !5
  br label %30, !llvm.loop !13

116:                                              ; preds = %102
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %6, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %233

120:                                              ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %225, %120
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = load i32, ptr @N, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %229

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 -1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100000 x [8 x i32]], ptr @MB, i64 0, i64 %128
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [8 x i32], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 8) #7
  store i32 %133, ptr %134, align 4, !tbaa !5
  store i32 %133, ptr %15, align 4, !tbaa !5
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = call i32 @llvm.ctpop.i32(i32 %135)
  %137 = load i32, ptr %2, align 4, !tbaa !5
  %138 = icmp sle i32 %136, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %126
  store i32 13, ptr %3, align 4
  br label %222

140:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %190, %140
  %142 = load i32, ptr %16, align 4, !tbaa !5
  %143 = icmp slt i32 %142, 8
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %193

145:                                              ; preds = %141
  %146 = load i32, ptr %15, align 4, !tbaa !5
  %147 = load i32, ptr %16, align 4, !tbaa !5
  %148 = shl i32 1, %147
  %149 = and i32 %146, %148
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %177

151:                                              ; preds = %145
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = icmp eq i32 %152, -1
  br i1 %153, label %154, label %163

154:                                              ; preds = %151
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %157
  %159 = load i32, ptr %16, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [8 x i32], ptr %158, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  store i32 %162, ptr %14, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %154, %151
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %166
  %168 = load i32, ptr %16, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [8 x i32], ptr %167, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = sub nsw i32 %171, %172
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %175) #7
  store i32 %173, ptr %176, align 4, !tbaa !5
  br label %189

177:                                              ; preds = %145
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %180
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [8 x i32], ptr %181, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %187) #7
  store i32 %185, ptr %188, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %177, %163
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %16, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %16, align 4, !tbaa !5
  br label %141, !llvm.loop !14

193:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %194 = invoke ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %195 unwind label %213

195:                                              ; preds = %193
  %196 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %194, ptr %196, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %197 = call ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  %198 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %197, ptr %198, align 8
  %199 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt6vectorIiSaIiEEiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %199, label %200, label %221

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cows, i64 noundef %202) #7
  %204 = getelementptr inbounds %"struct.std::pair", ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 4, !tbaa !11
  %206 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt6vectorIiSaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %207 = getelementptr inbounds %"struct.std::pair.8", ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 8, !tbaa !15
  %209 = sub nsw i32 %205, %208
  store i32 %209, ptr %19, align 4, !tbaa !5
  %210 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %211 unwind label %217

211:                                              ; preds = %200
  %212 = load i32, ptr %210, align 4, !tbaa !5
  store i32 %212, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %221

213:                                              ; preds = %193
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %6, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %7, align 4
  br label %228

217:                                              ; preds = %200
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %6, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %228

221:                                              ; preds = %211, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  store i32 0, ptr %3, align 4
  br label %222

222:                                              ; preds = %221, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %223 = load i32, ptr %3, align 4
  switch i32 %223, label %250 [
    i32 0, label %224
    i32 13, label %225
  ]

224:                                              ; preds = %222
  br label %225

225:                                              ; preds = %224, %222
  %226 = load i32, ptr %13, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %13, align 4, !tbaa !5
  br label %121, !llvm.loop !22

228:                                              ; preds = %217, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %233

229:                                              ; preds = %125
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %2, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %2, align 4, !tbaa !5
  br label %22, !llvm.loop !23

233:                                              ; preds = %228, %116
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %234

234:                                              ; preds = %233, %34
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %245

235:                                              ; preds = %25
  %236 = load i32, ptr @ans, align 4, !tbaa !5
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %241

238:                                              ; preds = %235
  %239 = load i32, ptr @ans, align 4, !tbaa !5
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %239)
  br label %243

241:                                              ; preds = %235
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %243

243:                                              ; preds = %241, %238
  %244 = load i32, ptr %1, align 4
  ret i32 %244

245:                                              ; preds = %234
  %246 = load ptr, ptr %6, align 8
  %247 = load i32, ptr %7, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249

250:                                              ; preds = %222, %110
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTSSt4pairIKSt6vectorIiSaIiEEiE", !17, i64 0, !6, i64 24}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!21 = !{!"any pointer", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator.2" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::vector<int>, std::pair<const std::vector<int>, int>, std::_Select1st<std::pair<const std::vector<int>, int>>, std::less<std::vector<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::vector<int>, std::pair<const std::vector<int>, int>, std::_Select1st<std::pair<const std::vector<int>, int>>, std::less<std::vector<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@N = external dso_local local_unnamed_addr global i32, align 4
@K = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local global i32, align 4
@MB = external dso_local local_unnamed_addr global [100000 x [8 x i32]], align 16
@MF = external dso_local local_unnamed_addr global [100000 x [8 x i32]], align 16
@PS = external dso_local local_unnamed_addr global [100001 x [8 x i32]], align 16
@cows = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4initv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3genv() local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.std::allocator.2", align 1
  %3 = alloca %"class.std::map", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca i32, align 4
  tail call void @_Z4initv()
  tail call void @_Z3genv()
  %7 = load i32, ptr @K, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 9
  br i1 %8, label %.lr.ph77.preheader, label %._crit_edge78

.lr.ph77.preheader:                               ; preds = %0
  %9 = add i32 %7, -1
  %10 = sext i32 %9 to i64
  br label %.lr.ph77

._crit_edge78:                                    ; preds = %._crit_edge, %0
  %11 = load i32, ptr @ans, align 4, !tbaa !5
  %.not = icmp eq i32 %11, 0
  %. = select i1 %.not, i32 -1, i32 %11
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.)
  ret i32 0

.lr.ph77:                                         ; preds = %.lr.ph77.preheader, %._crit_edge
  %indvars.iv87 = phi i64 [ %10, %.lr.ph77.preheader ], [ %indvars.iv.next88, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 9, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %13 unwind label %18

13:                                               ; preds = %.lr.ph77
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  %14 = load i32, ptr @N, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %16 = zext nneg i32 %14 to i64
  br label %20

.preheader66:                                     ; preds = %108
  %.pre112 = load i32, ptr @N, align 4, !tbaa !5
  %17 = icmp sgt i32 %.pre112, 0
  br i1 %17, label %.lr.ph74, label %._crit_edge

18:                                               ; preds = %.lr.ph77
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %224

20:                                               ; preds = %.lr.ph, %108
  %indvars.iv = phi i64 [ %16, %.lr.ph ], [ %indvars.iv.next, %108 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %21 = getelementptr inbounds [100000 x [8 x i32]], ptr @MF, i64 0, i64 %indvars.iv.next, i64 %indvars.iv87
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 8) #7
  store i32 %22, ptr %23, align 4, !tbaa !5
  %24 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %22)
  %25 = zext nneg i32 %24 to i64
  %.not61 = icmp slt i64 %indvars.iv87, %25
  br i1 %.not61, label %.preheader65.preheader, label %108

.preheader65.preheader:                           ; preds = %20
  %26 = and i32 %22, 1
  %.not64 = icmp eq i32 %26, 0
  %27 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 0
  %28 = load i32, ptr %27, align 16, !tbaa !5
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #7
  %30 = and i32 %22, 2
  %.not64.1140 = icmp eq i32 %30, 0
  br i1 %.not64, label %.preheader65.1.thread, label %.preheader65.1

.preheader65.1:                                   ; preds = %.preheader65.preheader
  store i32 0, ptr %29, align 4, !tbaa !5
  br i1 %.not64.1140, label %38, label %31

.preheader65.1.thread:                            ; preds = %.preheader65.preheader
  store i32 %28, ptr %29, align 4, !tbaa !5
  br i1 %.not64.1140, label %38, label %.thread

31:                                               ; preds = %.preheader65.1
  %32 = icmp eq i32 %28, -1
  br i1 %32, label %.thread, label %._crit_edge91

._crit_edge91:                                    ; preds = %31
  %.phi.trans.insert92 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 1
  %.pre93 = load i32, ptr %.phi.trans.insert92, align 4, !tbaa !5
  br label %35

.thread:                                          ; preds = %.preheader65.1.thread, %31
  %33 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 1
  %34 = load i32, ptr %33, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %._crit_edge91, %.thread
  %36 = phi i32 [ %34, %.thread ], [ %.pre93, %._crit_edge91 ]
  %.151.1 = phi i32 [ %34, %.thread ], [ %28, %._crit_edge91 ]
  %37 = sub nsw i32 %36, %.151.1
  br label %.preheader65.2

38:                                               ; preds = %.preheader65.1.thread, %.preheader65.1
  %.252142 = phi i32 [ -1, %.preheader65.1.thread ], [ %28, %.preheader65.1 ]
  %39 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 1
  %40 = load i32, ptr %39, align 4, !tbaa !5
  br label %.preheader65.2

.preheader65.2:                                   ; preds = %38, %35
  %.sink = phi i32 [ %40, %38 ], [ %37, %35 ]
  %.252.1 = phi i32 [ %.252142, %38 ], [ %.151.1, %35 ]
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #7
  store i32 %.sink, ptr %41, align 4, !tbaa !5
  %42 = and i32 %22, 4
  %.not64.2 = icmp eq i32 %42, 0
  br i1 %.not64.2, label %48, label %43

43:                                               ; preds = %.preheader65.2
  %44 = icmp eq i32 %.252.1, -1
  %45 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 2
  %46 = load i32, ptr %45, align 8, !tbaa !5
  %..252.1 = select i1 %44, i32 %46, i32 %.252.1
  %47 = sub nsw i32 %46, %..252.1
  br label %.preheader65.3

48:                                               ; preds = %.preheader65.2
  %49 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 2
  %50 = load i32, ptr %49, align 8, !tbaa !5
  br label %.preheader65.3

.preheader65.3:                                   ; preds = %48, %43
  %.sink152 = phi i32 [ %50, %48 ], [ %47, %43 ]
  %.252.2 = phi i32 [ %.252.1, %48 ], [ %..252.1, %43 ]
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2) #7
  store i32 %.sink152, ptr %51, align 4, !tbaa !5
  %52 = and i32 %22, 8
  %.not64.3 = icmp eq i32 %52, 0
  br i1 %.not64.3, label %58, label %53

53:                                               ; preds = %.preheader65.3
  %54 = icmp eq i32 %.252.2, -1
  %55 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 3
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %..252.2 = select i1 %54, i32 %56, i32 %.252.2
  %57 = sub nsw i32 %56, %..252.2
  br label %.preheader65.4

58:                                               ; preds = %.preheader65.3
  %59 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 3
  %60 = load i32, ptr %59, align 4, !tbaa !5
  br label %.preheader65.4

.preheader65.4:                                   ; preds = %58, %53
  %.sink154 = phi i32 [ %60, %58 ], [ %57, %53 ]
  %.252.3 = phi i32 [ %.252.2, %58 ], [ %..252.2, %53 ]
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3) #7
  store i32 %.sink154, ptr %61, align 4, !tbaa !5
  %62 = and i32 %22, 16
  %.not64.4 = icmp eq i32 %62, 0
  br i1 %.not64.4, label %68, label %63

63:                                               ; preds = %.preheader65.4
  %64 = icmp eq i32 %.252.3, -1
  %65 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 4
  %66 = load i32, ptr %65, align 16, !tbaa !5
  %..252.3 = select i1 %64, i32 %66, i32 %.252.3
  %67 = sub nsw i32 %66, %..252.3
  br label %.preheader65.5

68:                                               ; preds = %.preheader65.4
  %69 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 4
  %70 = load i32, ptr %69, align 16, !tbaa !5
  br label %.preheader65.5

.preheader65.5:                                   ; preds = %68, %63
  %.sink156 = phi i32 [ %70, %68 ], [ %67, %63 ]
  %.252.4 = phi i32 [ %.252.3, %68 ], [ %..252.3, %63 ]
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4) #7
  store i32 %.sink156, ptr %71, align 4, !tbaa !5
  %72 = and i32 %22, 32
  %.not64.5 = icmp eq i32 %72, 0
  br i1 %.not64.5, label %78, label %73

73:                                               ; preds = %.preheader65.5
  %74 = icmp eq i32 %.252.4, -1
  %75 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 5
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %..252.4 = select i1 %74, i32 %76, i32 %.252.4
  %77 = sub nsw i32 %76, %..252.4
  br label %.preheader65.6

78:                                               ; preds = %.preheader65.5
  %79 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 5
  %80 = load i32, ptr %79, align 4, !tbaa !5
  br label %.preheader65.6

.preheader65.6:                                   ; preds = %78, %73
  %.sink158 = phi i32 [ %80, %78 ], [ %77, %73 ]
  %.252.5 = phi i32 [ %.252.4, %78 ], [ %..252.4, %73 ]
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 5) #7
  store i32 %.sink158, ptr %81, align 4, !tbaa !5
  %82 = and i32 %22, 64
  %.not64.6 = icmp eq i32 %82, 0
  br i1 %.not64.6, label %88, label %83

83:                                               ; preds = %.preheader65.6
  %84 = icmp eq i32 %.252.5, -1
  %85 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 6
  %86 = load i32, ptr %85, align 8, !tbaa !5
  %..252.5 = select i1 %84, i32 %86, i32 %.252.5
  %87 = sub nsw i32 %86, %..252.5
  br label %.preheader65.7

88:                                               ; preds = %.preheader65.6
  %89 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 6
  %90 = load i32, ptr %89, align 8, !tbaa !5
  br label %.preheader65.7

.preheader65.7:                                   ; preds = %88, %83
  %.sink160 = phi i32 [ %90, %88 ], [ %87, %83 ]
  %.252.6 = phi i32 [ %.252.5, %88 ], [ %..252.5, %83 ]
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 6) #7
  store i32 %.sink160, ptr %91, align 4, !tbaa !5
  %92 = and i32 %22, 128
  %.not64.7 = icmp eq i32 %92, 0
  br i1 %.not64.7, label %99, label %93

93:                                               ; preds = %.preheader65.7
  %94 = icmp eq i32 %.252.6, -1
  %95 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 7
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sub i32 %96, %.252.6
  %98 = select i1 %94, i32 0, i32 %97
  br label %102

99:                                               ; preds = %.preheader65.7
  %100 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %indvars.iv.next, i64 7
  %101 = load i32, ptr %100, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %99, %93
  %.sink162 = phi i32 [ %101, %99 ], [ %98, %93 ]
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 7) #7
  store i32 %.sink162, ptr %103, align 4, !tbaa !5
  %104 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cows, i64 noundef %indvars.iv.next) #7
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %107 unwind label %110

107:                                              ; preds = %102
  store i32 %105, ptr %106, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %20, %107
  %109 = icmp ugt i64 %indvars.iv, 1
  br i1 %109, label %20, label %.preheader66, !llvm.loop !11

110:                                              ; preds = %102
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %223

._crit_edge:                                      ; preds = %._crit_edge137, %13, %.preheader66
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, 1
  %112 = icmp slt i64 %indvars.iv87, 7
  br i1 %112, label %.lr.ph77, label %._crit_edge78, !llvm.loop !13

.lr.ph74:                                         ; preds = %.preheader66, %._crit_edge137
  %indvars.iv84 = phi i64 [ %118, %._crit_edge137 ], [ 0, %.preheader66 ]
  %113 = getelementptr inbounds [100000 x [8 x i32]], ptr @MB, i64 0, i64 %indvars.iv84, i64 %indvars.iv87
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 8) #7
  store i32 %114, ptr %115, align 4, !tbaa !5
  %116 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %114)
  %117 = zext nneg i32 %116 to i64
  %.not59 = icmp slt i64 %indvars.iv87, %117
  %118 = add nuw nsw i64 %indvars.iv84, 1
  br i1 %.not59, label %.preheader, label %._crit_edge137

.preheader:                                       ; preds = %.lr.ph74
  %119 = and i32 %114, 1
  %.not60 = icmp eq i32 %119, 0
  %120 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 0
  %121 = load i32, ptr %120, align 16, !tbaa !5
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #7
  %123 = and i32 %114, 2
  %.not60.1146 = icmp eq i32 %123, 0
  br i1 %.not60, label %.thread144, label %124

124:                                              ; preds = %.preheader
  store i32 0, ptr %122, align 4, !tbaa !5
  br i1 %.not60.1146, label %132, label %125

.thread144:                                       ; preds = %.preheader
  store i32 %121, ptr %122, align 4, !tbaa !5
  br i1 %.not60.1146, label %132, label %.thread149

125:                                              ; preds = %124
  %126 = icmp eq i32 %121, -1
  br i1 %126, label %.thread149, label %._crit_edge116

._crit_edge116:                                   ; preds = %125
  %.phi.trans.insert117 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 1
  %.pre118 = load i32, ptr %.phi.trans.insert117, align 4, !tbaa !5
  br label %129

.thread149:                                       ; preds = %.thread144, %125
  %127 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 1
  %128 = load i32, ptr %127, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %._crit_edge116, %.thread149
  %130 = phi i32 [ %128, %.thread149 ], [ %.pre118, %._crit_edge116 ]
  %.1.1 = phi i32 [ %128, %.thread149 ], [ %121, %._crit_edge116 ]
  %131 = sub nsw i32 %130, %.1.1
  br label %135

132:                                              ; preds = %.thread144, %124
  %.2148 = phi i32 [ -1, %.thread144 ], [ %121, %124 ]
  %133 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 1
  %134 = load i32, ptr %133, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %132, %129
  %.sink164 = phi i32 [ %134, %132 ], [ %131, %129 ]
  %.2.1 = phi i32 [ %.2148, %132 ], [ %.1.1, %129 ]
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #7
  store i32 %.sink164, ptr %136, align 4, !tbaa !5
  %137 = and i32 %114, 4
  %.not60.2 = icmp eq i32 %137, 0
  br i1 %.not60.2, label %143, label %138

138:                                              ; preds = %135
  %139 = icmp eq i32 %.2.1, -1
  %140 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 2
  %141 = load i32, ptr %140, align 8, !tbaa !5
  %..2.1 = select i1 %139, i32 %141, i32 %.2.1
  %142 = sub nsw i32 %141, %..2.1
  br label %146

143:                                              ; preds = %135
  %144 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 2
  %145 = load i32, ptr %144, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %143, %138
  %.sink166 = phi i32 [ %145, %143 ], [ %142, %138 ]
  %.2.2 = phi i32 [ %.2.1, %143 ], [ %..2.1, %138 ]
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2) #7
  store i32 %.sink166, ptr %147, align 4, !tbaa !5
  %148 = and i32 %114, 8
  %.not60.3 = icmp eq i32 %148, 0
  br i1 %.not60.3, label %154, label %149

149:                                              ; preds = %146
  %150 = icmp eq i32 %.2.2, -1
  %151 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 3
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %..2.2 = select i1 %150, i32 %152, i32 %.2.2
  %153 = sub nsw i32 %152, %..2.2
  br label %157

154:                                              ; preds = %146
  %155 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 3
  %156 = load i32, ptr %155, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %154, %149
  %.sink168 = phi i32 [ %156, %154 ], [ %153, %149 ]
  %.2.3 = phi i32 [ %.2.2, %154 ], [ %..2.2, %149 ]
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3) #7
  store i32 %.sink168, ptr %158, align 4, !tbaa !5
  %159 = and i32 %114, 16
  %.not60.4 = icmp eq i32 %159, 0
  br i1 %.not60.4, label %165, label %160

160:                                              ; preds = %157
  %161 = icmp eq i32 %.2.3, -1
  %162 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 4
  %163 = load i32, ptr %162, align 16, !tbaa !5
  %..2.3 = select i1 %161, i32 %163, i32 %.2.3
  %164 = sub nsw i32 %163, %..2.3
  br label %168

165:                                              ; preds = %157
  %166 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 4
  %167 = load i32, ptr %166, align 16, !tbaa !5
  br label %168

168:                                              ; preds = %165, %160
  %.sink170 = phi i32 [ %167, %165 ], [ %164, %160 ]
  %.2.4 = phi i32 [ %.2.3, %165 ], [ %..2.3, %160 ]
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4) #7
  store i32 %.sink170, ptr %169, align 4, !tbaa !5
  %170 = and i32 %114, 32
  %.not60.5 = icmp eq i32 %170, 0
  br i1 %.not60.5, label %176, label %171

171:                                              ; preds = %168
  %172 = icmp eq i32 %.2.4, -1
  %173 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 5
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %..2.4 = select i1 %172, i32 %174, i32 %.2.4
  %175 = sub nsw i32 %174, %..2.4
  br label %179

176:                                              ; preds = %168
  %177 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 5
  %178 = load i32, ptr %177, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %176, %171
  %.sink172 = phi i32 [ %178, %176 ], [ %175, %171 ]
  %.2.5 = phi i32 [ %.2.4, %176 ], [ %..2.4, %171 ]
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 5) #7
  store i32 %.sink172, ptr %180, align 4, !tbaa !5
  %181 = and i32 %114, 64
  %.not60.6 = icmp eq i32 %181, 0
  br i1 %.not60.6, label %187, label %182

182:                                              ; preds = %179
  %183 = icmp eq i32 %.2.5, -1
  %184 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 6
  %185 = load i32, ptr %184, align 8, !tbaa !5
  %..2.5 = select i1 %183, i32 %185, i32 %.2.5
  %186 = sub nsw i32 %185, %..2.5
  br label %190

187:                                              ; preds = %179
  %188 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 6
  %189 = load i32, ptr %188, align 8, !tbaa !5
  br label %190

190:                                              ; preds = %187, %182
  %.sink174 = phi i32 [ %189, %187 ], [ %186, %182 ]
  %.2.6 = phi i32 [ %.2.5, %187 ], [ %..2.5, %182 ]
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 6) #7
  store i32 %.sink174, ptr %191, align 4, !tbaa !5
  %192 = and i32 %114, 128
  %.not60.7 = icmp eq i32 %192, 0
  br i1 %.not60.7, label %199, label %193

193:                                              ; preds = %190
  %194 = icmp eq i32 %.2.6, -1
  %195 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 7
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sub i32 %196, %.2.6
  %198 = select i1 %194, i32 0, i32 %197
  br label %202

199:                                              ; preds = %190
  %200 = getelementptr inbounds [100001 x [8 x i32]], ptr @PS, i64 0, i64 %118, i64 7
  %201 = load i32, ptr %200, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %199, %193
  %.sink176 = phi i32 [ %201, %199 ], [ %198, %193 ]
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 7) #7
  store i32 %.sink176, ptr %203, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %204 = invoke ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %205 unwind label %217

205:                                              ; preds = %202
  store ptr %204, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %206 = call ptr @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  store ptr %206, ptr %5, align 8
  %207 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt6vectorIiSaIiEEiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %207, label %208, label %219

208:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %209 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cows, i64 noundef %indvars.iv84) #7
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt6vectorIiSaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %212 = getelementptr inbounds i8, ptr %211, i64 24
  %213 = load i32, ptr %212, align 8, !tbaa !14
  %214 = sub nsw i32 %210, %213
  store i32 %214, ptr %6, align 4, !tbaa !5
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %216 = load i32, ptr %215, align 4, !tbaa !5
  store i32 %216, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %219

217:                                              ; preds = %202
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %223

219:                                              ; preds = %208, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %.lr.ph74, %219
  %220 = load i32, ptr @N, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = icmp slt i64 %118, %221
  br i1 %222, label %.lr.ph74, label %._crit_edge, !llvm.loop !21

223:                                              ; preds = %217, %110
  %.pn = phi { ptr, i32 } [ %111, %110 ], [ %218, %217 ]
  call void @_ZNSt3mapISt6vectorIiSaIiEEiSt4lessIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br label %224

224:                                              ; preds = %223, %18
  %.pn.pn = phi { ptr, i32 } [ %.pn, %223 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 24}
!15 = !{!"_ZTSSt4pairIKSt6vectorIiSaIiEEiE", !16, i64 0, !6, i64 24}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !7, i64 0}
!21 = distinct !{!21, !12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass