; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 10/1970. 皇后像廣場.ll (Z11check_nabori)

; 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }
%struct.nabor = type { i32, i32, i32, i32, i32, i32 }
%struct.trie = type { %"class.std::map", %"class.std::map.0" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, trie *>, std::_Select1st<std::pair<const int, trie *>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, trie *>, std::_Select1st<std::pair<const int, trie *>>, std::less<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 }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@tup = external dso_local global ptr, align 8
@tdown = external dso_local global ptr, align 8
@nabors = external dso_local global %"class.std::vector.18", align 8
@nabors_up = external dso_local global %"class.std::vector.8", align 8
@nabors_down = external dso_local global %"class.std::vector.8", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, 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(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11check_nabori(i32 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.8", align 8
  %20 = alloca %"class.std::allocator.10", align 1
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector.8", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %25 = load ptr, ptr @tup, align 8, !tbaa !9
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors_down, i64 noundef %27) #3
  %29 = call noundef ptr @_Z9trie_moveP4trieRSt6vectorIiSaIiEE(ptr noundef %25, ptr noundef nonnull align 8 dereferenceable(24) %28)
  store ptr %29, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %30 = load ptr, ptr @tdown, align 8, !tbaa !9
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors_up, i64 noundef %32) #3
  %34 = call noundef ptr @_Z9trie_moveP4trieRSt6vectorIiSaIiEE(ptr noundef %30, ptr noundef nonnull align 8 dereferenceable(24) %33)
  store ptr %34, ptr %5, align 8, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = icmp eq ptr %35, null
  br i1 %36, label %40, label %37

37:                                               ; preds = %1
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %37, %1
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %250

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5naborSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors, i64 noundef %43) #3
  store ptr %44, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.nabor, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = shl i32 1, %47
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.nabor, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = shl i32 1, %51
  %53 = or i32 %48, %52
  %54 = load ptr, ptr %7, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.nabor, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !14
  %57 = shl i32 1, %56
  %58 = or i32 %53, %57
  store i32 %58, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %243, %41
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = icmp slt i32 %60, 9
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 2, ptr %6, align 4
  br label %246

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %237, %63
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = icmp slt i32 %65, 9
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 5, ptr %6, align 4
  br label %240

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %231, %68
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 9
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 8, ptr %6, align 4
  br label %234

73:                                               ; preds = %69
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %85, label %77

77:                                               ; preds = %73
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = icmp eq i32 %78, %79
  br i1 %80, label %85, label %81

81:                                               ; preds = %77
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %81, %77, %73
  br label %231

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = shl i32 1, %87
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = shl i32 1, %89
  %91 = or i32 %88, %90
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = shl i32 1, %92
  %94 = or i32 %91, %93
  store i32 %94, ptr %12, align 4, !tbaa !5
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = and i32 %95, %96
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %86
  store i32 10, ptr %6, align 4
  br label %228

100:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %222, %100
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 9
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 11, ptr %6, align 4
  br label %225

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %216, %105
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 9
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 14, ptr %6, align 4
  br label %219

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %210, %110
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = icmp slt i32 %112, 9
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 17, ptr %6, align 4
  br label %213

115:                                              ; preds = %111
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = icmp eq i32 %116, %117
  br i1 %118, label %127, label %119

119:                                              ; preds = %115
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = icmp eq i32 %120, %121
  br i1 %122, label %127, label %123

123:                                              ; preds = %119
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = load i32, ptr %15, align 4, !tbaa !5
  %126 = icmp eq i32 %124, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %123, %119, %115
  br label %210

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = shl i32 1, %129
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = shl i32 1, %131
  %133 = or i32 %130, %132
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = shl i32 1, %134
  %136 = or i32 %133, %135
  store i32 %136, ptr %16, align 4, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = load i32, ptr %16, align 4, !tbaa !5
  %139 = and i32 %137, %138
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %128
  store i32 19, ptr %6, align 4
  br label %207

142:                                              ; preds = %128
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = load i32, ptr %16, align 4, !tbaa !5
  %145 = and i32 %143, %144
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %142
  store i32 19, ptr %6, align 4
  br label %207

148:                                              ; preds = %142
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.trie, ptr %149, i32 0, i32 1
  %151 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %150, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %152 = icmp ne i64 %151, 0
  br i1 %152, label %153, label %206

153:                                              ; preds = %148
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.trie, ptr %154, i32 0, i32 1
  %156 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %155, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %157 = icmp ne i64 %156, 0
  br i1 %157, label %158, label %206

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %159 = load ptr, ptr %5, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.trie, ptr %159, i32 0, i32 1
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %160, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %162 = load i32, ptr %161, align 4, !tbaa !5
  store i32 %162, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %163 = load ptr, ptr %4, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.trie, ptr %163, i32 0, i32 1
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %164, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %166 = load i32, ptr %165, align 4, !tbaa !5
  store i32 %166, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #3
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #3
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 10, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %167 unwind label %174

167:                                              ; preds = %158
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %183, %167
  %169 = load i32, ptr %23, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %172 = icmp ult i64 %170, %171
  br i1 %172, label %178, label %173

173:                                              ; preds = %168
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %190

174:                                              ; preds = %158
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %21, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %22, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  br label %205

178:                                              ; preds = %168
  %179 = load i32, ptr %23, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %180) #3
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef 10)
          to label %182 unwind label %186

182:                                              ; preds = %178
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %23, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %23, align 4, !tbaa !5
  br label %168, !llvm.loop !15

186:                                              ; preds = %178
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %21, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %204

190:                                              ; preds = %173
  %191 = load i32, ptr %17, align 4, !tbaa !5
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %191, i32 noundef 0)
  %192 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %192, i32 noundef 3)
  %193 = load i32, ptr %18, align 4, !tbaa !5
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %193, i32 noundef 6)
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %194 unwind label %196

194:                                              ; preds = %190
  invoke void @_Z12print_vivintSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef %24)
          to label %195 unwind label %200

195:                                              ; preds = %194
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %207

196:                                              ; preds = %190
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %21, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %22, align 4
  br label %204

200:                                              ; preds = %194
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %21, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %22, align 4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  br label %204

204:                                              ; preds = %200, %196, %186
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  br label %205

205:                                              ; preds = %204, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %252

206:                                              ; preds = %153, %148
  store i32 0, ptr %6, align 4
  br label %207

207:                                              ; preds = %206, %195, %147, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %208 = load i32, ptr %6, align 4
  switch i32 %208, label %213 [
    i32 0, label %209
    i32 19, label %210
  ]

209:                                              ; preds = %207
  br label %210

210:                                              ; preds = %209, %207, %127
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %15, align 4, !tbaa !5
  br label %111, !llvm.loop !17

213:                                              ; preds = %207, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  %214 = load i32, ptr %6, align 4
  switch i32 %214, label %219 [
    i32 17, label %215
  ]

215:                                              ; preds = %213
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %14, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %14, align 4, !tbaa !5
  br label %106, !llvm.loop !18

219:                                              ; preds = %213, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %220 = load i32, ptr %6, align 4
  switch i32 %220, label %225 [
    i32 14, label %221
  ]

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %13, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %13, align 4, !tbaa !5
  br label %101, !llvm.loop !19

225:                                              ; preds = %219, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %226 = load i32, ptr %6, align 4
  switch i32 %226, label %228 [
    i32 11, label %227
  ]

227:                                              ; preds = %225
  store i32 0, ptr %6, align 4
  br label %228

228:                                              ; preds = %227, %225, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %229 = load i32, ptr %6, align 4
  switch i32 %229, label %234 [
    i32 0, label %230
    i32 10, label %231
  ]

230:                                              ; preds = %228
  br label %231

231:                                              ; preds = %230, %228, %85
  %232 = load i32, ptr %11, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %11, align 4, !tbaa !5
  br label %69, !llvm.loop !20

234:                                              ; preds = %228, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %235 = load i32, ptr %6, align 4
  switch i32 %235, label %240 [
    i32 8, label %236
  ]

236:                                              ; preds = %234
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %10, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %10, align 4, !tbaa !5
  br label %64, !llvm.loop !21

240:                                              ; preds = %234, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %241 = load i32, ptr %6, align 4
  switch i32 %241, label %246 [
    i32 5, label %242
  ]

242:                                              ; preds = %240
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %9, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %9, align 4, !tbaa !5
  br label %59, !llvm.loop !22

246:                                              ; preds = %240, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %247 = load i32, ptr %6, align 4
  switch i32 %247, label %249 [
    i32 2, label %248
  ]

248:                                              ; preds = %246
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %249

249:                                              ; preds = %248, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %250

250:                                              ; preds = %249, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %251 = load i1, ptr %2, align 1
  ret i1 %251

252:                                              ; preds = %205
  %253 = load ptr, ptr %21, align 8
  %254 = load i32, ptr %22, align 4
  %255 = insertvalue { ptr, i32 } poison, ptr %253, 0
  %256 = insertvalue { ptr, i32 } %255, i32 %254, 1
  resume { ptr, i32 } %256
}

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

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

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

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

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

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


; 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }

@tup = external dso_local local_unnamed_addr global ptr, align 8
@tdown = external dso_local local_unnamed_addr global ptr, align 8
@nabors = external dso_local global %"class.std::vector.18", align 8
@nabors_up = external dso_local global %"class.std::vector.8", align 8
@nabors_down = external dso_local global %"class.std::vector.8", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, 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(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11check_nabori(i32 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector.8", align 8
  %5 = alloca %"class.std::allocator.10", align 1
  %6 = alloca %"class.std::vector.8", align 8
  %7 = load ptr, ptr @tup, align 8, !tbaa !5
  %8 = sext i32 %0 to i64
  %9 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors_down, i64 noundef %8) #3
  %10 = tail call noundef ptr @_Z9trie_moveP4trieRSt6vectorIiSaIiEE(ptr noundef %7, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = load ptr, ptr @tdown, align 8, !tbaa !5
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors_up, i64 noundef %8) #3
  %13 = tail call noundef ptr @_Z9trie_moveP4trieRSt6vectorIiSaIiEE(ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
  %14 = icmp eq ptr %13, null
  %15 = icmp eq ptr %10, null
  %or.cond = or i1 %15, %14
  br i1 %or.cond, label %.loopexit, label %16

16:                                               ; preds = %1
  %17 = tail call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5naborSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nabors, i64 noundef %8) #3
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = shl nuw i32 1, %18
  %20 = getelementptr inbounds i8, ptr %17, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !12
  %22 = shl nuw i32 1, %21
  %23 = or i32 %22, %19
  %24 = getelementptr inbounds i8, ptr %17, i64 8
  %25 = load i32, ptr %24, align 4, !tbaa !13
  %26 = shl nuw i32 1, %25
  %27 = or i32 %23, %26
  %28 = getelementptr inbounds i8, ptr %13, i64 48
  %29 = getelementptr inbounds i8, ptr %10, i64 48
  br label %.preheader120

.preheader120:                                    ; preds = %16, %181
  %.084132 = phi i32 [ 0, %16 ], [ %182, %181 ]
  %30 = shl nuw nsw i32 1, %.084132
  br label %.preheader119

.preheader119:                                    ; preds = %.preheader120, %.split129.us
  %.083131 = phi i32 [ 0, %.preheader120 ], [ %179, %.split129.us ]
  %31 = icmp eq i32 %.084132, %.083131
  %32 = shl nuw nsw i32 1, %.083131
  %33 = or i32 %32, %30
  %.fr130 = freeze i1 %31
  br i1 %.fr130, label %.split129.us, label %.preheader119.split

.preheader119.split:                              ; preds = %.preheader119, %177
  %.082127 = phi i32 [ %178, %177 ], [ 0, %.preheader119 ]
  %34 = icmp eq i32 %.083131, %.082127
  %35 = icmp eq i32 %.084132, %.082127
  %or.cond95 = or i1 %35, %34
  br i1 %or.cond95, label %177, label %36

36:                                               ; preds = %.preheader119.split
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %37 = shl nuw nsw i32 1, %.082127
  %38 = or i32 %33, %37
  store i32 %38, ptr %2, align 4, !tbaa !14
  %39 = and i32 %38, %27
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %.preheader117, label %.thread109

.preheader117:                                    ; preds = %36, %175
  %.081126 = phi i32 [ %176, %175 ], [ 0, %36 ]
  %40 = shl nuw nsw i32 1, %.081126
  %41 = icmp eq i32 %.081126, 0
  %42 = icmp eq i32 %.081126, 1
  %43 = icmp eq i32 %.081126, 2
  %44 = icmp eq i32 %.081126, 3
  %45 = icmp eq i32 %.081126, 4
  %46 = icmp eq i32 %.081126, 5
  %47 = icmp eq i32 %.081126, 6
  %48 = icmp eq i32 %.081126, 7
  %49 = icmp eq i32 %.081126, 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader117, %.split.us
  %.080125 = phi i32 [ 0, %.preheader117 ], [ %174, %.split.us ]
  %50 = icmp eq i32 %.081126, %.080125
  %51 = shl nuw nsw i32 1, %.080125
  %52 = or i32 %51, %40
  %.fr = freeze i1 %50
  br i1 %.fr, label %.split.us, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %53 = icmp eq i32 %.080125, 0
  %or.cond97 = or i1 %53, %41
  br i1 %or.cond97, label %.preheader.split.1, label %54

54:                                               ; preds = %.preheader.split.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %55 = or i32 %52, 1
  store i32 %55, ptr %3, align 4, !tbaa !14
  %56 = and i32 %55, %27
  %.not88 = icmp eq i32 %56, 0
  br i1 %.not88, label %57, label %.thread

57:                                               ; preds = %54
  %58 = load i32, ptr %2, align 4, !tbaa !14
  %59 = and i32 %58, %55
  %.not89 = icmp eq i32 %59, 0
  br i1 %.not89, label %60, label %.thread

60:                                               ; preds = %57
  %61 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90 = icmp eq i64 %61, 0
  br i1 %.not90, label %.thread, label %62

62:                                               ; preds = %60
  %63 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91 = icmp eq i64 %63, 0
  br i1 %.not91, label %.thread, label %64

64:                                               ; preds = %172, %161, %150, %139, %128, %117, %106, %95, %62
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %66 = load i32, ptr %65, align 4, !tbaa !14
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %68 = load i32, ptr %67, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %69 unwind label %71

69:                                               ; preds = %64
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  %70 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %.not134 = icmp eq i64 %70, 0
  br i1 %.not134, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %74, %69
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %66, i32 noundef 0)
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %0, i32 noundef 3)
  call void @_Z9set_naborRSt6vectorIS_IiSaIiEESaIS1_EEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %68, i32 noundef 6)
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %79 unwind label %80

71:                                               ; preds = %64
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  br label %85

.lr.ph:                                           ; preds = %69, %74
  %indvars.iv = phi i64 [ %indvars.iv.next, %74 ], [ 0, %69 ]
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #3
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 10)
          to label %74 unwind label %77

74:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %76 = icmp ugt i64 %75, %indvars.iv.next
  br i1 %76, label %.lr.ph, label %._crit_edge, !llvm.loop !15

77:                                               ; preds = %.lr.ph
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %._crit_edge
  invoke void @_Z12print_vivintSt6vectorIS_IiSaIiEESaIS1_EE(ptr noundef nonnull %6)
          to label %180 unwind label %82

80:                                               ; preds = %._crit_edge
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %79
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %84

84:                                               ; preds = %82, %80, %77
  %.pn = phi { ptr, i32 } [ %78, %77 ], [ %83, %82 ], [ %81, %80 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  br label %85

85:                                               ; preds = %84, %71
  %.pn.pn = phi { ptr, i32 } [ %.pn, %84 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  resume { ptr, i32 } %.pn.pn

.thread:                                          ; preds = %54, %57, %62, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.1

.preheader.split.1:                               ; preds = %.thread, %.preheader.split.preheader
  %86 = icmp eq i32 %.080125, 1
  %or.cond97.1 = or i1 %86, %42
  br i1 %or.cond97.1, label %.preheader.split.2, label %87

87:                                               ; preds = %.preheader.split.1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %88 = or i32 %52, 2
  store i32 %88, ptr %3, align 4, !tbaa !14
  %89 = and i32 %88, %27
  %.not88.1 = icmp eq i32 %89, 0
  br i1 %.not88.1, label %90, label %.thread.1

90:                                               ; preds = %87
  %91 = load i32, ptr %2, align 4, !tbaa !14
  %92 = and i32 %91, %88
  %.not89.1 = icmp eq i32 %92, 0
  br i1 %.not89.1, label %93, label %.thread.1

93:                                               ; preds = %90
  %94 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.1 = icmp eq i64 %94, 0
  br i1 %.not90.1, label %.thread.1, label %95

95:                                               ; preds = %93
  %96 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.1 = icmp eq i64 %96, 0
  br i1 %.not91.1, label %.thread.1, label %64

.thread.1:                                        ; preds = %95, %93, %90, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.2

.preheader.split.2:                               ; preds = %.thread.1, %.preheader.split.1
  %97 = icmp eq i32 %.080125, 2
  %or.cond97.2 = or i1 %97, %43
  br i1 %or.cond97.2, label %.preheader.split.3, label %98

98:                                               ; preds = %.preheader.split.2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %99 = or i32 %52, 4
  store i32 %99, ptr %3, align 4, !tbaa !14
  %100 = and i32 %99, %27
  %.not88.2 = icmp eq i32 %100, 0
  br i1 %.not88.2, label %101, label %.thread.2

101:                                              ; preds = %98
  %102 = load i32, ptr %2, align 4, !tbaa !14
  %103 = and i32 %102, %99
  %.not89.2 = icmp eq i32 %103, 0
  br i1 %.not89.2, label %104, label %.thread.2

104:                                              ; preds = %101
  %105 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.2 = icmp eq i64 %105, 0
  br i1 %.not90.2, label %.thread.2, label %106

106:                                              ; preds = %104
  %107 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.2 = icmp eq i64 %107, 0
  br i1 %.not91.2, label %.thread.2, label %64

.thread.2:                                        ; preds = %106, %104, %101, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.3

.preheader.split.3:                               ; preds = %.thread.2, %.preheader.split.2
  %108 = icmp eq i32 %.080125, 3
  %or.cond97.3 = or i1 %108, %44
  br i1 %or.cond97.3, label %.preheader.split.4, label %109

109:                                              ; preds = %.preheader.split.3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %110 = or i32 %52, 8
  store i32 %110, ptr %3, align 4, !tbaa !14
  %111 = and i32 %110, %27
  %.not88.3 = icmp eq i32 %111, 0
  br i1 %.not88.3, label %112, label %.thread.3

112:                                              ; preds = %109
  %113 = load i32, ptr %2, align 4, !tbaa !14
  %114 = and i32 %113, %110
  %.not89.3 = icmp eq i32 %114, 0
  br i1 %.not89.3, label %115, label %.thread.3

115:                                              ; preds = %112
  %116 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.3 = icmp eq i64 %116, 0
  br i1 %.not90.3, label %.thread.3, label %117

117:                                              ; preds = %115
  %118 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.3 = icmp eq i64 %118, 0
  br i1 %.not91.3, label %.thread.3, label %64

.thread.3:                                        ; preds = %117, %115, %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.4

.preheader.split.4:                               ; preds = %.thread.3, %.preheader.split.3
  %119 = icmp eq i32 %.080125, 4
  %or.cond97.4 = or i1 %119, %45
  br i1 %or.cond97.4, label %.preheader.split.5, label %120

120:                                              ; preds = %.preheader.split.4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %121 = or i32 %52, 16
  store i32 %121, ptr %3, align 4, !tbaa !14
  %122 = and i32 %121, %27
  %.not88.4 = icmp eq i32 %122, 0
  br i1 %.not88.4, label %123, label %.thread.4

123:                                              ; preds = %120
  %124 = load i32, ptr %2, align 4, !tbaa !14
  %125 = and i32 %124, %121
  %.not89.4 = icmp eq i32 %125, 0
  br i1 %.not89.4, label %126, label %.thread.4

126:                                              ; preds = %123
  %127 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.4 = icmp eq i64 %127, 0
  br i1 %.not90.4, label %.thread.4, label %128

128:                                              ; preds = %126
  %129 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.4 = icmp eq i64 %129, 0
  br i1 %.not91.4, label %.thread.4, label %64

.thread.4:                                        ; preds = %128, %126, %123, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.5

.preheader.split.5:                               ; preds = %.thread.4, %.preheader.split.4
  %130 = icmp eq i32 %.080125, 5
  %or.cond97.5 = or i1 %130, %46
  br i1 %or.cond97.5, label %.preheader.split.6, label %131

131:                                              ; preds = %.preheader.split.5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %132 = or i32 %52, 32
  store i32 %132, ptr %3, align 4, !tbaa !14
  %133 = and i32 %132, %27
  %.not88.5 = icmp eq i32 %133, 0
  br i1 %.not88.5, label %134, label %.thread.5

134:                                              ; preds = %131
  %135 = load i32, ptr %2, align 4, !tbaa !14
  %136 = and i32 %135, %132
  %.not89.5 = icmp eq i32 %136, 0
  br i1 %.not89.5, label %137, label %.thread.5

137:                                              ; preds = %134
  %138 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.5 = icmp eq i64 %138, 0
  br i1 %.not90.5, label %.thread.5, label %139

139:                                              ; preds = %137
  %140 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.5 = icmp eq i64 %140, 0
  br i1 %.not91.5, label %.thread.5, label %64

.thread.5:                                        ; preds = %139, %137, %134, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.6

.preheader.split.6:                               ; preds = %.thread.5, %.preheader.split.5
  %141 = icmp eq i32 %.080125, 6
  %or.cond97.6 = or i1 %141, %47
  br i1 %or.cond97.6, label %.preheader.split.7, label %142

142:                                              ; preds = %.preheader.split.6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %143 = or i32 %52, 64
  store i32 %143, ptr %3, align 4, !tbaa !14
  %144 = and i32 %143, %27
  %.not88.6 = icmp eq i32 %144, 0
  br i1 %.not88.6, label %145, label %.thread.6

145:                                              ; preds = %142
  %146 = load i32, ptr %2, align 4, !tbaa !14
  %147 = and i32 %146, %143
  %.not89.6 = icmp eq i32 %147, 0
  br i1 %.not89.6, label %148, label %.thread.6

148:                                              ; preds = %145
  %149 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.6 = icmp eq i64 %149, 0
  br i1 %.not90.6, label %.thread.6, label %150

150:                                              ; preds = %148
  %151 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.6 = icmp eq i64 %151, 0
  br i1 %.not91.6, label %.thread.6, label %64

.thread.6:                                        ; preds = %150, %148, %145, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.7

.preheader.split.7:                               ; preds = %.thread.6, %.preheader.split.6
  %152 = icmp eq i32 %.080125, 7
  %or.cond97.7 = or i1 %152, %48
  br i1 %or.cond97.7, label %.preheader.split.8, label %153

153:                                              ; preds = %.preheader.split.7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %154 = or i32 %52, 128
  store i32 %154, ptr %3, align 4, !tbaa !14
  %155 = and i32 %154, %27
  %.not88.7 = icmp eq i32 %155, 0
  br i1 %.not88.7, label %156, label %.thread.7

156:                                              ; preds = %153
  %157 = load i32, ptr %2, align 4, !tbaa !14
  %158 = and i32 %157, %154
  %.not89.7 = icmp eq i32 %158, 0
  br i1 %.not89.7, label %159, label %.thread.7

159:                                              ; preds = %156
  %160 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.7 = icmp eq i64 %160, 0
  br i1 %.not90.7, label %.thread.7, label %161

161:                                              ; preds = %159
  %162 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.7 = icmp eq i64 %162, 0
  br i1 %.not91.7, label %.thread.7, label %64

.thread.7:                                        ; preds = %161, %159, %156, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.preheader.split.8

.preheader.split.8:                               ; preds = %.thread.7, %.preheader.split.7
  %163 = icmp eq i32 %.080125, 8
  %or.cond97.8 = or i1 %163, %49
  br i1 %or.cond97.8, label %.split.us, label %164

164:                                              ; preds = %.preheader.split.8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %165 = or i32 %52, 256
  store i32 %165, ptr %3, align 4, !tbaa !14
  %166 = and i32 %165, %27
  %.not88.8 = icmp eq i32 %166, 0
  br i1 %.not88.8, label %167, label %.thread.8

167:                                              ; preds = %164
  %168 = load i32, ptr %2, align 4, !tbaa !14
  %169 = and i32 %168, %165
  %.not89.8 = icmp eq i32 %169, 0
  br i1 %.not89.8, label %170, label %.thread.8

170:                                              ; preds = %167
  %171 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not90.8 = icmp eq i64 %171, 0
  br i1 %.not90.8, label %.thread.8, label %172

172:                                              ; preds = %170
  %173 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not91.8 = icmp eq i64 %173, 0
  br i1 %.not91.8, label %.thread.8, label %64

.thread.8:                                        ; preds = %172, %170, %167, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %.split.us

.split.us:                                        ; preds = %.preheader.split.8, %.thread.8, %.preheader
  %174 = add nuw nsw i32 %.080125, 1
  %exitcond.not = icmp eq i32 %174, 9
  br i1 %exitcond.not, label %175, label %.preheader, !llvm.loop !17

175:                                              ; preds = %.split.us
  %176 = add nuw nsw i32 %.081126, 1
  %exitcond137.not = icmp eq i32 %176, 9
  br i1 %exitcond137.not, label %.thread109, label %.preheader117, !llvm.loop !18

.thread109:                                       ; preds = %175, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %177

177:                                              ; preds = %.thread109, %.preheader119.split
  %178 = add nuw nsw i32 %.082127, 1
  %exitcond138.not = icmp eq i32 %178, 9
  br i1 %exitcond138.not, label %.split129.us, label %.preheader119.split, !llvm.loop !19

.split129.us:                                     ; preds = %177, %.preheader119
  %179 = add nuw nsw i32 %.083131, 1
  %exitcond139.not = icmp eq i32 %179, 9
  br i1 %exitcond139.not, label %181, label %.preheader119, !llvm.loop !20

180:                                              ; preds = %79
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %.loopexit

181:                                              ; preds = %.split129.us
  %182 = add nuw nsw i32 %.084132, 1
  %exitcond140.not = icmp eq i32 %182, 9
  br i1 %exitcond140.not, label %.loopexit, label %.preheader120, !llvm.loop !21

.loopexit:                                        ; preds = %181, %180, %1
  %.17 = phi i1 [ false, %1 ], [ true, %180 ], [ false, %181 ]
  ret i1 %.17
}

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

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

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

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

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

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


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass