; LLVM IR from ShahjalalShohag/code-library :: Graph Theory (Shortest Path That Doesnt Pass Through Each Edge)

; 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::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::array" = type { [3 x i32] }
%"class.std::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::array.10" = type { [2 x i32] }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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.__gnu_cxx::__normal_iterator.16" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_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_const_iterator" = type { ptr }

@g = external dso_local global [200009 x %"class.std::vector"], align 16
@d = external dso_local global [200009 x i64], align 16
@rd = external dso_local global [200009 x i64], align 16
@f = external dso_local global [200009 x i64], align 16
@S = external dso_local global [200009 x %"class.std::vector.0"], align 16
@R = external dso_local global [200009 x %"class.std::vector.0"], align 16
@sp_edge = external dso_local global [200009 x i8], align 16
@path_id = external dso_local global [200009 x i32], align 16
@l = external dso_local global [200009 x i32], align 16
@r = external dso_local global [200009 x i32], align 16
@u = external dso_local global [200009 x i32], align 16
@v = external dso_local global [200009 x i32], align 16
@w = external dso_local global [200009 x i32], align 16
@edge = external dso_local global [200009 x i32], align 16
@event = external dso_local global [200009 x %"class.std::vector.5"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::array", align 4
  %7 = alloca %"struct.std::array", align 4
  %8 = alloca %"class.std::priority_queue", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"struct.std::array", align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"class.std::priority_queue", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"struct.std::array", align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"struct.std::array", align 4
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca %"struct.std::array.10", align 4
  %51 = alloca ptr, align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %54 = alloca %"struct.std::array", align 4
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca %"struct.std::array.10", align 4
  %59 = alloca i32, align 4
  %60 = alloca %"class.std::vector.11", align 8
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %65 = alloca i32, align 4
  %66 = alloca %"class.std::vector.5", align 8
  %67 = alloca i32, align 4
  %68 = alloca %"struct.std::pair", align 8
  %69 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %71 = alloca i32, align 4
  %72 = alloca ptr, align 8
  %73 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %74 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %75 = alloca %"struct.std::pair", align 8
  %76 = alloca ptr, align 8
  %77 = alloca ptr, align 8
  %78 = alloca ptr, align 8
  %79 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %80 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %81 = alloca %"struct.std::array.10", align 4
  %82 = alloca ptr, align 8
  %83 = alloca ptr, align 8
  %84 = alloca i32, align 4
  %85 = alloca %"struct.std::pair", align 8
  %86 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %87 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %88 = alloca i32, align 4
  %89 = alloca ptr, align 8
  %90 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %91 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %92 = alloca %"struct.std::pair", align 8
  %93 = alloca ptr, align 8
  %94 = alloca ptr, align 8
  %95 = alloca ptr, align 8
  %96 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %97 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %98 = alloca %"struct.std::array.10", align 4
  %99 = alloca ptr, align 8
  %100 = alloca ptr, align 8
  %101 = alloca i32, align 4
  %102 = alloca ptr, align 8
  %103 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %104 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %105 = alloca %"struct.std::array", align 4
  %106 = alloca ptr, align 8
  %107 = alloca ptr, align 8
  %108 = alloca ptr, align 8
  %109 = alloca i64, align 8
  %110 = alloca %"struct.std::pair", align 8
  %111 = alloca i32, align 4
  %112 = alloca %"struct.std::pair", align 8
  %113 = alloca i32, align 4
  %114 = alloca %"class.std::multiset", align 8
  %115 = alloca i32, align 4
  %116 = alloca ptr, align 8
  %117 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %118 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %119 = alloca %"struct.std::pair", align 8
  %120 = alloca ptr, align 8
  %121 = alloca ptr, align 8
  %122 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %123 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %124 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %125 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %126 = alloca i32, align 4
  %127 = alloca i32, align 4
  %128 = alloca i64, align 8
  %129 = alloca i64, align 8
  %130 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %131 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %132 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %133 = getelementptr i8, ptr %132, i64 -24
  %134 = load i64, ptr %133, align 8
  %135 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %134
  %136 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %135, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %138 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %137, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %138, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %140

140:                                              ; preds = %194, %0
  %141 = load i32, ptr %5, align 4, !tbaa !8
  %142 = load i32, ptr %3, align 4, !tbaa !8
  %143 = icmp sle i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %197

145:                                              ; preds = %140
  %146 = load i32, ptr %5, align 4, !tbaa !8
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %147
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %148)
  %150 = load i32, ptr %5, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %151
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %149, ptr noundef nonnull align 4 dereferenceable(4) %152)
  %154 = load i32, ptr %5, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [200009 x i32], ptr @w, i64 0, i64 %155
  %157 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %153, ptr noundef nonnull align 4 dereferenceable(4) %156)
  %158 = load i32, ptr %5, align 4, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !8
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %162
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #8
  %164 = getelementptr inbounds %"struct.std::array", ptr %6, i32 0, i32 0
  %165 = load i32, ptr %5, align 4, !tbaa !8
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !8
  store i32 %168, ptr %164, align 4, !tbaa !8
  %169 = getelementptr inbounds i32, ptr %164, i64 1
  %170 = load i32, ptr %5, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [200009 x i32], ptr @w, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !8
  store i32 %173, ptr %169, align 4, !tbaa !8
  %174 = getelementptr inbounds i32, ptr %164, i64 2
  %175 = load i32, ptr %5, align 4, !tbaa !8
  store i32 %175, ptr %174, align 4, !tbaa !8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  %176 = load i32, ptr %5, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !8
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %180
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #8
  %182 = getelementptr inbounds %"struct.std::array", ptr %7, i32 0, i32 0
  %183 = load i32, ptr %5, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !8
  store i32 %186, ptr %182, align 4, !tbaa !8
  %187 = getelementptr inbounds i32, ptr %182, i64 1
  %188 = load i32, ptr %5, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [200009 x i32], ptr @w, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !8
  store i32 %191, ptr %187, align 4, !tbaa !8
  %192 = getelementptr inbounds i32, ptr %182, i64 2
  %193 = load i32, ptr %5, align 4, !tbaa !8
  store i32 %193, ptr %192, align 4, !tbaa !8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  br label %194

194:                                              ; preds = %145
  %195 = load i32, ptr %5, align 4, !tbaa !8
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %5, align 4, !tbaa !8
  br label %140, !llvm.loop !11

197:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %198

198:                                              ; preds = %207, %197
  %199 = load i32, ptr %9, align 4, !tbaa !8
  %200 = load i32, ptr %2, align 4, !tbaa !8
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %210

203:                                              ; preds = %198
  %204 = load i32, ptr %9, align 4, !tbaa !8
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %205
  store i64 1000000000000000000, ptr %206, align 8, !tbaa !13
  br label %207

207:                                              ; preds = %203
  %208 = load i32, ptr %9, align 4, !tbaa !8
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %9, align 4, !tbaa !8
  br label %198, !llvm.loop !15

210:                                              ; preds = %202
  store i64 0, ptr getelementptr inbounds ([200009 x i64], ptr @d, i64 0, i64 1), align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1, ptr %12, align 4, !tbaa !8
  invoke void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %211 unwind label %236

211:                                              ; preds = %210
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %212 unwind label %236

212:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %213

213:                                              ; preds = %306, %212
  %214 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %215 unwind label %240

215:                                              ; preds = %213
  %216 = xor i1 %214, true
  br i1 %216, label %217, label %309

217:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %218 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %219 unwind label %244

219:                                              ; preds = %217
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %218, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %15) #8
  store ptr %220, ptr %16, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %15) #8
  store ptr %221, ptr %17, align 8, !tbaa !16
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %222 unwind label %248

222:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %223 = load ptr, ptr %17, align 8, !tbaa !16
  %224 = load i32, ptr %223, align 4, !tbaa !8
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %225
  store ptr %226, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %227 = load ptr, ptr %18, align 8, !tbaa !16
  %228 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %227) #8
  %229 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %228, ptr %229, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %230 = load ptr, ptr %18, align 8, !tbaa !16
  %231 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %230) #8
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %231, ptr %232, align 8
  br label %233

233:                                              ; preds = %304, %222
  %234 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %234, label %252, label %235

235:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %306

236:                                              ; preds = %211, %210
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %13, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %1105

240:                                              ; preds = %334, %213
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %13, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %14, align 4
  br label %1105

244:                                              ; preds = %217
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %13, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %14, align 4
  br label %308

248:                                              ; preds = %219
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %13, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %14, align 4
  br label %307

252:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  %253 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %253, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  store ptr %254, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  store ptr %255, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  store ptr %256, ptr %24, align 8, !tbaa !16
  %257 = load ptr, ptr %17, align 8, !tbaa !16
  %258 = load i32, ptr %257, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %259
  %261 = load i64, ptr %260, align 8, !tbaa !13
  %262 = load ptr, ptr %23, align 8, !tbaa !16
  %263 = load i32, ptr %262, align 4, !tbaa !8
  %264 = sext i32 %263 to i64
  %265 = add nsw i64 %261, %264
  %266 = load ptr, ptr %22, align 8, !tbaa !16
  %267 = load i32, ptr %266, align 4, !tbaa !8
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !13
  %271 = icmp slt i64 %265, %270
  br i1 %271, label %272, label %303

272:                                              ; preds = %252
  %273 = load ptr, ptr %17, align 8, !tbaa !16
  %274 = load i32, ptr %273, align 4, !tbaa !8
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %275
  %277 = load i64, ptr %276, align 8, !tbaa !13
  %278 = load ptr, ptr %23, align 8, !tbaa !16
  %279 = load i32, ptr %278, align 4, !tbaa !8
  %280 = sext i32 %279 to i64
  %281 = add nsw i64 %277, %280
  %282 = load ptr, ptr %22, align 8, !tbaa !16
  %283 = load i32, ptr %282, align 4, !tbaa !8
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %284
  store i64 %281, ptr %285, align 8, !tbaa !13
  %286 = load ptr, ptr %24, align 8, !tbaa !16
  %287 = load i32, ptr %286, align 4, !tbaa !8
  %288 = load ptr, ptr %22, align 8, !tbaa !16
  %289 = load i32, ptr %288, align 4, !tbaa !8
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [200009 x i32], ptr @edge, i64 0, i64 %290
  store i32 %287, ptr %291, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %292 = load ptr, ptr %22, align 8, !tbaa !16
  %293 = load i32, ptr %292, align 4, !tbaa !8
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %294
  %296 = load ptr, ptr %22, align 8, !tbaa !16
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %25, ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef nonnull align 4 dereferenceable(4) %296)
          to label %297 unwind label %299

297:                                              ; preds = %272
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(12) %25)
          to label %298 unwind label %299

298:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %303

299:                                              ; preds = %297, %272
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %13, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %307

303:                                              ; preds = %298, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  br label %304

304:                                              ; preds = %303
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %233

306:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %213, !llvm.loop !20

307:                                              ; preds = %299, %248
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %308

308:                                              ; preds = %307, %244
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %1105

309:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %26)
          to label %310 unwind label %317

310:                                              ; preds = %309
  %311 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(25) %26) #8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 1, ptr %27, align 4, !tbaa !8
  br label %312

312:                                              ; preds = %325, %310
  %313 = load i32, ptr %27, align 4, !tbaa !8
  %314 = load i32, ptr %2, align 4, !tbaa !8
  %315 = icmp sle i32 %313, %314
  br i1 %315, label %321, label %316

316:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %328

317:                                              ; preds = %309
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %13, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %1105

321:                                              ; preds = %312
  %322 = load i32, ptr %27, align 4, !tbaa !8
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %323
  store i64 1000000000000000000, ptr %324, align 8, !tbaa !13
  br label %325

325:                                              ; preds = %321
  %326 = load i32, ptr %27, align 4, !tbaa !8
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %27, align 4, !tbaa !8
  br label %312, !llvm.loop !21

328:                                              ; preds = %316
  %329 = load i32, ptr %2, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %330
  store i64 0, ptr %331, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !8
  invoke void @_ZNSt4pairIxiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %332 unwind label %357

332:                                              ; preds = %328
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(12) %28)
          to label %333 unwind label %357

333:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %334

334:                                              ; preds = %417, %333
  %335 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %336 unwind label %240

336:                                              ; preds = %334
  %337 = xor i1 %335, true
  br i1 %337, label %338, label %420

338:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %339 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %340 unwind label %361

340:                                              ; preds = %338
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %339, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %30) #8
  store ptr %341, ptr %31, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %342 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %30) #8
  store ptr %342, ptr %32, align 8, !tbaa !16
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %343 unwind label %365

343:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %344 = load ptr, ptr %32, align 8, !tbaa !16
  %345 = load i32, ptr %344, align 4, !tbaa !8
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %346
  store ptr %347, ptr %33, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %348 = load ptr, ptr %33, align 8, !tbaa !16
  %349 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %348) #8
  %350 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %349, ptr %350, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %351 = load ptr, ptr %33, align 8, !tbaa !16
  %352 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %351) #8
  %353 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %352, ptr %353, align 8
  br label %354

354:                                              ; preds = %415, %343
  %355 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br i1 %355, label %369, label %356

356:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %417

357:                                              ; preds = %332, %328
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %13, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %1105

361:                                              ; preds = %338
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %13, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %14, align 4
  br label %419

365:                                              ; preds = %340
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %13, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %14, align 4
  br label %418

369:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  %370 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %370, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %371 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  store ptr %371, ptr %37, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %372 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  store ptr %372, ptr %38, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %373 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  store ptr %373, ptr %39, align 8, !tbaa !16
  %374 = load ptr, ptr %32, align 8, !tbaa !16
  %375 = load i32, ptr %374, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %376
  %378 = load i64, ptr %377, align 8, !tbaa !13
  %379 = load ptr, ptr %38, align 8, !tbaa !16
  %380 = load i32, ptr %379, align 4, !tbaa !8
  %381 = sext i32 %380 to i64
  %382 = add nsw i64 %378, %381
  %383 = load ptr, ptr %37, align 8, !tbaa !16
  %384 = load i32, ptr %383, align 4, !tbaa !8
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %385
  %387 = load i64, ptr %386, align 8, !tbaa !13
  %388 = icmp slt i64 %382, %387
  br i1 %388, label %389, label %414

389:                                              ; preds = %369
  %390 = load ptr, ptr %32, align 8, !tbaa !16
  %391 = load i32, ptr %390, align 4, !tbaa !8
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %392
  %394 = load i64, ptr %393, align 8, !tbaa !13
  %395 = load ptr, ptr %38, align 8, !tbaa !16
  %396 = load i32, ptr %395, align 4, !tbaa !8
  %397 = sext i32 %396 to i64
  %398 = add nsw i64 %394, %397
  %399 = load ptr, ptr %37, align 8, !tbaa !16
  %400 = load i32, ptr %399, align 4, !tbaa !8
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %401
  store i64 %398, ptr %402, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %403 = load ptr, ptr %37, align 8, !tbaa !16
  %404 = load i32, ptr %403, align 4, !tbaa !8
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %405
  %407 = load ptr, ptr %37, align 8, !tbaa !16
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %40, ptr noundef nonnull align 8 dereferenceable(8) %406, ptr noundef nonnull align 4 dereferenceable(4) %407)
          to label %408 unwind label %410

408:                                              ; preds = %389
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(12) %40)
          to label %409 unwind label %410

409:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  br label %414

410:                                              ; preds = %408, %389
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %13, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %418

414:                                              ; preds = %409, %369
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  br label %415

415:                                              ; preds = %414
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  br label %354

417:                                              ; preds = %356
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %334, !llvm.loop !22

418:                                              ; preds = %410, %365
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %419

419:                                              ; preds = %418, %361
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %1105

420:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 1, ptr %41, align 4, !tbaa !8
  br label %421

421:                                              ; preds = %527, %420
  %422 = load i32, ptr %41, align 4, !tbaa !8
  %423 = load i32, ptr %2, align 4, !tbaa !8
  %424 = icmp sle i32 %422, %423
  br i1 %424, label %426, label %425

425:                                              ; preds = %421
  store i32 19, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %531

426:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %427 = load i32, ptr %41, align 4, !tbaa !8
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %428
  store ptr %429, ptr %43, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %430 = load ptr, ptr %43, align 8, !tbaa !16
  %431 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %430) #8
  %432 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %431, ptr %432, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %433 = load ptr, ptr %43, align 8, !tbaa !16
  %434 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %433) #8
  %435 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %434, ptr %435, align 8
  br label %436

436:                                              ; preds = %474, %426
  %437 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  br i1 %437, label %439, label %438

438:                                              ; preds = %436
  store i32 22, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br label %476

439:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #8
  %440 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %440, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %441 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  store ptr %441, ptr %47, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %442 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  store ptr %442, ptr %48, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %443 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  store ptr %443, ptr %49, align 8, !tbaa !16
  %444 = load i32, ptr %41, align 4, !tbaa !8
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %445
  %447 = load i64, ptr %446, align 8, !tbaa !13
  %448 = load ptr, ptr %48, align 8, !tbaa !16
  %449 = load i32, ptr %448, align 4, !tbaa !8
  %450 = sext i32 %449 to i64
  %451 = add nsw i64 %447, %450
  %452 = load ptr, ptr %47, align 8, !tbaa !16
  %453 = load i32, ptr %452, align 4, !tbaa !8
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %454
  %456 = load i64, ptr %455, align 8, !tbaa !13
  %457 = icmp eq i64 %451, %456
  br i1 %457, label %458, label %473

458:                                              ; preds = %439
  %459 = load i32, ptr %41, align 4, !tbaa !8
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @S, i64 0, i64 %460
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %462 = getelementptr inbounds %"struct.std::array.10", ptr %50, i32 0, i32 0
  %463 = load ptr, ptr %47, align 8, !tbaa !16
  %464 = load i32, ptr %463, align 4, !tbaa !8
  store i32 %464, ptr %462, align 4, !tbaa !8
  %465 = getelementptr inbounds i32, ptr %462, i64 1
  %466 = load ptr, ptr %49, align 8, !tbaa !16
  %467 = load i32, ptr %466, align 4, !tbaa !8
  store i32 %467, ptr %465, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %461, ptr noundef nonnull align 4 dereferenceable(8) %50)
          to label %468 unwind label %469

468:                                              ; preds = %458
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %473

469:                                              ; preds = %458
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %13, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br label %530

473:                                              ; preds = %468, %439
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #8
  br label %474

474:                                              ; preds = %473
  %475 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br label %436

476:                                              ; preds = %438
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %477 = load i32, ptr %41, align 4, !tbaa !8
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %478
  store ptr %479, ptr %51, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %480 = load ptr, ptr %51, align 8, !tbaa !16
  %481 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %480) #8
  %482 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %52, i32 0, i32 0
  store ptr %481, ptr %482, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %483 = load ptr, ptr %51, align 8, !tbaa !16
  %484 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %483) #8
  %485 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %53, i32 0, i32 0
  store ptr %484, ptr %485, align 8
  br label %486

486:                                              ; preds = %524, %476
  %487 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  br i1 %487, label %489, label %488

488:                                              ; preds = %486
  store i32 24, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %526

489:                                              ; preds = %486
  call void @llvm.lifetime.start.p0(i64 12, ptr %54) #8
  %490 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %490, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %491 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %54) #8
  store ptr %491, ptr %55, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %492 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %54) #8
  store ptr %492, ptr %56, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  %493 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %54) #8
  store ptr %493, ptr %57, align 8, !tbaa !16
  %494 = load i32, ptr %41, align 4, !tbaa !8
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %495
  %497 = load i64, ptr %496, align 8, !tbaa !13
  %498 = load ptr, ptr %56, align 8, !tbaa !16
  %499 = load i32, ptr %498, align 4, !tbaa !8
  %500 = sext i32 %499 to i64
  %501 = add nsw i64 %497, %500
  %502 = load ptr, ptr %55, align 8, !tbaa !16
  %503 = load i32, ptr %502, align 4, !tbaa !8
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %504
  %506 = load i64, ptr %505, align 8, !tbaa !13
  %507 = icmp eq i64 %501, %506
  br i1 %507, label %508, label %523

508:                                              ; preds = %489
  %509 = load i32, ptr %41, align 4, !tbaa !8
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @R, i64 0, i64 %510
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %512 = getelementptr inbounds %"struct.std::array.10", ptr %58, i32 0, i32 0
  %513 = load ptr, ptr %55, align 8, !tbaa !16
  %514 = load i32, ptr %513, align 4, !tbaa !8
  store i32 %514, ptr %512, align 4, !tbaa !8
  %515 = getelementptr inbounds i32, ptr %512, i64 1
  %516 = load ptr, ptr %57, align 8, !tbaa !16
  %517 = load i32, ptr %516, align 4, !tbaa !8
  store i32 %517, ptr %515, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %511, ptr noundef nonnull align 4 dereferenceable(8) %58)
          to label %518 unwind label %519

518:                                              ; preds = %508
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %523

519:                                              ; preds = %508
  %520 = landingpad { ptr, i32 }
          cleanup
  %521 = extractvalue { ptr, i32 } %520, 0
  store ptr %521, ptr %13, align 8
  %522 = extractvalue { ptr, i32 } %520, 1
  store i32 %522, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %530

523:                                              ; preds = %518, %489
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %54) #8
  br label %524

524:                                              ; preds = %523
  %525 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  br label %486

526:                                              ; preds = %488
  br label %527

527:                                              ; preds = %526
  %528 = load i32, ptr %41, align 4, !tbaa !8
  %529 = add nsw i32 %528, 1
  store i32 %529, ptr %41, align 4, !tbaa !8
  br label %421, !llvm.loop !23

530:                                              ; preds = %519, %469
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %1105

531:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %532 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %532, ptr %59, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 24, ptr %60) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  br label %533

533:                                              ; preds = %541, %531
  %534 = load i32, ptr %59, align 4, !tbaa !8
  %535 = icmp ne i32 %534, 1
  br i1 %535, label %536, label %561

536:                                              ; preds = %533
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %537 = load i32, ptr %59, align 4, !tbaa !8
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds [200009 x i32], ptr @edge, i64 0, i64 %538
  %540 = load i32, ptr %539, align 4, !tbaa !8
  store i32 %540, ptr %61, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %541 unwind label %557

541:                                              ; preds = %536
  %542 = load i32, ptr %61, align 4, !tbaa !8
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %543
  store i8 1, ptr %544, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  %545 = load i32, ptr %59, align 4, !tbaa !8
  %546 = load i32, ptr %61, align 4, !tbaa !8
  %547 = sext i32 %546 to i64
  %548 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %547
  %549 = load i32, ptr %548, align 4, !tbaa !8
  %550 = xor i32 %545, %549
  %551 = load i32, ptr %61, align 4, !tbaa !8
  %552 = sext i32 %551 to i64
  %553 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %552
  %554 = load i32, ptr %553, align 4, !tbaa !8
  %555 = xor i32 %550, %554
  store i32 %555, ptr %62, align 4, !tbaa !8
  %556 = load i32, ptr %62, align 4, !tbaa !8
  store i32 %556, ptr %59, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  br label %533, !llvm.loop !26

557:                                              ; preds = %536
  %558 = landingpad { ptr, i32 }
          cleanup
  %559 = extractvalue { ptr, i32 } %558, 0
  store ptr %559, ptr %13, align 8
  %560 = extractvalue { ptr, i32 } %558, 1
  store i32 %560, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  br label %1104

561:                                              ; preds = %533
  %562 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %563 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %63, i32 0, i32 0
  store ptr %562, ptr %563, align 8
  %564 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %565 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %64, i32 0, i32 0
  store ptr %564, ptr %565, align 8
  %566 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %63, i32 0, i32 0
  %567 = load ptr, ptr %566, align 8
  %568 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %64, i32 0, i32 0
  %569 = load ptr, ptr %568, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %567, ptr %569)
          to label %570 unwind label %577

570:                                              ; preds = %561
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #8
  store i32 0, ptr %65, align 4, !tbaa !8
  br label %571

571:                                              ; preds = %589, %570
  %572 = load i32, ptr %65, align 4, !tbaa !8
  %573 = sext i32 %572 to i64
  %574 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %575 = icmp ult i64 %573, %574
  br i1 %575, label %581, label %576

576:                                              ; preds = %571
  store i32 28, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #8
  br label %592

577:                                              ; preds = %561
  %578 = landingpad { ptr, i32 }
          cleanup
  %579 = extractvalue { ptr, i32 } %578, 0
  store ptr %579, ptr %13, align 8
  %580 = extractvalue { ptr, i32 } %578, 1
  store i32 %580, ptr %14, align 4
  br label %1104

581:                                              ; preds = %571
  %582 = load i32, ptr %65, align 4, !tbaa !8
  %583 = load i32, ptr %65, align 4, !tbaa !8
  %584 = sext i32 %583 to i64
  %585 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %584) #8
  %586 = load i32, ptr %585, align 4, !tbaa !8
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %587
  store i32 %582, ptr %588, align 4, !tbaa !8
  br label %589

589:                                              ; preds = %581
  %590 = load i32, ptr %65, align 4, !tbaa !8
  %591 = add nsw i32 %590, 1
  store i32 %591, ptr %65, align 4, !tbaa !8
  br label %571, !llvm.loop !27

592:                                              ; preds = %576
  call void @llvm.lifetime.start.p0(i64 24, ptr %66) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #8
  store i32 1, ptr %67, align 4, !tbaa !8
  br label %593

593:                                              ; preds = %604, %592
  %594 = load i32, ptr %67, align 4, !tbaa !8
  %595 = load i32, ptr %2, align 4, !tbaa !8
  %596 = icmp sle i32 %594, %595
  br i1 %596, label %598, label %597

597:                                              ; preds = %593
  store i32 31, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  br label %611

598:                                              ; preds = %593
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #8
  %599 = load i32, ptr %67, align 4, !tbaa !8
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %600
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %68, ptr noundef nonnull align 8 dereferenceable(8) %601, ptr noundef nonnull align 4 dereferenceable(4) %67)
          to label %602 unwind label %607

602:                                              ; preds = %598
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(12) %68)
          to label %603 unwind label %607

603:                                              ; preds = %602
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #8
  br label %604

604:                                              ; preds = %603
  %605 = load i32, ptr %67, align 4, !tbaa !8
  %606 = add nsw i32 %605, 1
  store i32 %606, ptr %67, align 4, !tbaa !8
  br label %593, !llvm.loop !28

607:                                              ; preds = %602, %598
  %608 = landingpad { ptr, i32 }
          cleanup
  %609 = extractvalue { ptr, i32 } %608, 0
  store ptr %609, ptr %13, align 8
  %610 = extractvalue { ptr, i32 } %608, 1
  store i32 %610, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  br label %1103

611:                                              ; preds = %597
  %612 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %613 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %69, i32 0, i32 0
  store ptr %612, ptr %613, align 8
  %614 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %615 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %70, i32 0, i32 0
  store ptr %614, ptr %615, align 8
  %616 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %69, i32 0, i32 0
  %617 = load ptr, ptr %616, align 8
  %618 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %70, i32 0, i32 0
  %619 = load ptr, ptr %618, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %617, ptr %619)
          to label %620 unwind label %626

620:                                              ; preds = %611
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #8
  store i32 1, ptr %71, align 4, !tbaa !8
  br label %621

621:                                              ; preds = %636, %620
  %622 = load i32, ptr %71, align 4, !tbaa !8
  %623 = load i32, ptr %2, align 4, !tbaa !8
  %624 = icmp sle i32 %622, %623
  br i1 %624, label %630, label %625

625:                                              ; preds = %621
  store i32 34, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  br label %639

626:                                              ; preds = %737, %611
  %627 = landingpad { ptr, i32 }
          cleanup
  %628 = extractvalue { ptr, i32 } %627, 0
  store ptr %628, ptr %13, align 8
  %629 = extractvalue { ptr, i32 } %627, 1
  store i32 %629, ptr %14, align 4
  br label %1103

630:                                              ; preds = %621
  %631 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %632 = trunc i64 %631 to i32
  %633 = load i32, ptr %71, align 4, !tbaa !8
  %634 = sext i32 %633 to i64
  %635 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %634
  store i32 %632, ptr %635, align 4, !tbaa !8
  br label %636

636:                                              ; preds = %630
  %637 = load i32, ptr %71, align 4, !tbaa !8
  %638 = add nsw i32 %637, 1
  store i32 %638, ptr %71, align 4, !tbaa !8
  br label %621, !llvm.loop !29

639:                                              ; preds = %625
  store i32 -1, ptr getelementptr inbounds ([200009 x i32], ptr @l, i64 0, i64 1), align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  store ptr %66, ptr %72, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #8
  %640 = load ptr, ptr %72, align 8, !tbaa !16
  %641 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %640) #8
  %642 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %73, i32 0, i32 0
  store ptr %641, ptr %642, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #8
  %643 = load ptr, ptr %72, align 8, !tbaa !16
  %644 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %643) #8
  %645 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %74, i32 0, i32 0
  store ptr %644, ptr %645, align 8
  br label %646

646:                                              ; preds = %716, %639
  %647 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %74) #8
  br i1 %647, label %649, label %648

648:                                              ; preds = %646
  store i32 37, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %718

649:                                              ; preds = %646
  call void @llvm.lifetime.start.p0(i64 16, ptr %75) #8
  %650 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %75, ptr align 8 %650, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  %651 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %75) #8
  store ptr %651, ptr %76, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  %652 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %75) #8
  store ptr %652, ptr %77, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #8
  %653 = load ptr, ptr %77, align 8, !tbaa !16
  %654 = load i32, ptr %653, align 4, !tbaa !8
  %655 = sext i32 %654 to i64
  %656 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @S, i64 0, i64 %655
  store ptr %656, ptr %78, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #8
  %657 = load ptr, ptr %78, align 8, !tbaa !16
  %658 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %657) #8
  %659 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %79, i32 0, i32 0
  store ptr %658, ptr %659, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #8
  %660 = load ptr, ptr %78, align 8, !tbaa !16
  %661 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %660) #8
  %662 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %80, i32 0, i32 0
  store ptr %661, ptr %662, align 8
  br label %663

663:                                              ; preds = %713, %649
  %664 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(8) %80) #8
  br i1 %664, label %666, label %665

665:                                              ; preds = %663
  store i32 39, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #8
  br label %715

666:                                              ; preds = %663
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #8
  %667 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %79) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %667, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #8
  %668 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %81) #8
  store ptr %668, ptr %82, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #8
  %669 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %81) #8
  store ptr %669, ptr %83, align 8, !tbaa !16
  %670 = load ptr, ptr %83, align 8, !tbaa !16
  %671 = load i32, ptr %670, align 4, !tbaa !8
  %672 = sext i32 %671 to i64
  %673 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %672
  %674 = load i8, ptr %673, align 1, !tbaa !24, !range !31, !noundef !32
  %675 = trunc i8 %674 to i1
  br i1 %675, label %676, label %696

676:                                              ; preds = %666
  %677 = load ptr, ptr %82, align 8, !tbaa !16
  %678 = load i32, ptr %677, align 4, !tbaa !8
  %679 = sext i32 %678 to i64
  %680 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %679
  %681 = load ptr, ptr %83, align 8, !tbaa !16
  %682 = load i32, ptr %681, align 4, !tbaa !8
  %683 = sext i32 %682 to i64
  %684 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %683
  %685 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %680, ptr noundef nonnull align 4 dereferenceable(4) %684)
          to label %686 unwind label %692

686:                                              ; preds = %676
  %687 = load i32, ptr %685, align 4, !tbaa !8
  %688 = load ptr, ptr %82, align 8, !tbaa !16
  %689 = load i32, ptr %688, align 4, !tbaa !8
  %690 = sext i32 %689 to i64
  %691 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %690
  store i32 %687, ptr %691, align 4, !tbaa !8
  br label %712

692:                                              ; preds = %696, %676
  %693 = landingpad { ptr, i32 }
          cleanup
  %694 = extractvalue { ptr, i32 } %693, 0
  store ptr %694, ptr %13, align 8
  %695 = extractvalue { ptr, i32 } %693, 1
  store i32 %695, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %1103

696:                                              ; preds = %666
  %697 = load ptr, ptr %82, align 8, !tbaa !16
  %698 = load i32, ptr %697, align 4, !tbaa !8
  %699 = sext i32 %698 to i64
  %700 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %699
  %701 = load ptr, ptr %77, align 8, !tbaa !16
  %702 = load i32, ptr %701, align 4, !tbaa !8
  %703 = sext i32 %702 to i64
  %704 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %703
  %705 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %700, ptr noundef nonnull align 4 dereferenceable(4) %704)
          to label %706 unwind label %692

706:                                              ; preds = %696
  %707 = load i32, ptr %705, align 4, !tbaa !8
  %708 = load ptr, ptr %82, align 8, !tbaa !16
  %709 = load i32, ptr %708, align 4, !tbaa !8
  %710 = sext i32 %709 to i64
  %711 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %710
  store i32 %707, ptr %711, align 4, !tbaa !8
  br label %712

712:                                              ; preds = %706, %686
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %713

713:                                              ; preds = %712
  %714 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %79) #8
  br label %663

715:                                              ; preds = %665
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #8
  br label %716

716:                                              ; preds = %715
  %717 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  br label %646

718:                                              ; preds = %648
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #8
  store i32 1, ptr %84, align 4, !tbaa !8
  br label %719

719:                                              ; preds = %730, %718
  %720 = load i32, ptr %84, align 4, !tbaa !8
  %721 = load i32, ptr %2, align 4, !tbaa !8
  %722 = icmp sle i32 %720, %721
  br i1 %722, label %724, label %723

723:                                              ; preds = %719
  store i32 41, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #8
  br label %737

724:                                              ; preds = %719
  call void @llvm.lifetime.start.p0(i64 16, ptr %85) #8
  %725 = load i32, ptr %84, align 4, !tbaa !8
  %726 = sext i32 %725 to i64
  %727 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %726
  invoke void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %85, ptr noundef nonnull align 8 dereferenceable(8) %727, ptr noundef nonnull align 4 dereferenceable(4) %84)
          to label %728 unwind label %733

728:                                              ; preds = %724
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(12) %85)
          to label %729 unwind label %733

729:                                              ; preds = %728
  call void @llvm.lifetime.end.p0(i64 16, ptr %85) #8
  br label %730

730:                                              ; preds = %729
  %731 = load i32, ptr %84, align 4, !tbaa !8
  %732 = add nsw i32 %731, 1
  store i32 %732, ptr %84, align 4, !tbaa !8
  br label %719, !llvm.loop !33

733:                                              ; preds = %728, %724
  %734 = landingpad { ptr, i32 }
          cleanup
  %735 = extractvalue { ptr, i32 } %734, 0
  store ptr %735, ptr %13, align 8
  %736 = extractvalue { ptr, i32 } %734, 1
  store i32 %736, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %85) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #8
  br label %1103

737:                                              ; preds = %723
  %738 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %739 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %86, i32 0, i32 0
  store ptr %738, ptr %739, align 8
  %740 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %741 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %87, i32 0, i32 0
  store ptr %740, ptr %741, align 8
  %742 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %86, i32 0, i32 0
  %743 = load ptr, ptr %742, align 8
  %744 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %87, i32 0, i32 0
  %745 = load ptr, ptr %744, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %743, ptr %745)
          to label %746 unwind label %626

746:                                              ; preds = %737
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #8
  store i32 1, ptr %88, align 4, !tbaa !8
  br label %747

747:                                              ; preds = %756, %746
  %748 = load i32, ptr %88, align 4, !tbaa !8
  %749 = load i32, ptr %2, align 4, !tbaa !8
  %750 = icmp sle i32 %748, %749
  br i1 %750, label %752, label %751

751:                                              ; preds = %747
  store i32 44, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #8
  br label %759

752:                                              ; preds = %747
  %753 = load i32, ptr %88, align 4, !tbaa !8
  %754 = sext i32 %753 to i64
  %755 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %754
  store i32 -1, ptr %755, align 4, !tbaa !8
  br label %756

756:                                              ; preds = %752
  %757 = load i32, ptr %88, align 4, !tbaa !8
  %758 = add nsw i32 %757, 1
  store i32 %758, ptr %88, align 4, !tbaa !8
  br label %747, !llvm.loop !34

759:                                              ; preds = %751
  %760 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %761 = trunc i64 %760 to i32
  %762 = load i32, ptr %2, align 4, !tbaa !8
  %763 = sext i32 %762 to i64
  %764 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %763
  store i32 %761, ptr %764, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #8
  store ptr %66, ptr %89, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %90) #8
  %765 = load ptr, ptr %89, align 8, !tbaa !16
  %766 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %765) #8
  %767 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %90, i32 0, i32 0
  store ptr %766, ptr %767, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %91) #8
  %768 = load ptr, ptr %89, align 8, !tbaa !16
  %769 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %768) #8
  %770 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %91, i32 0, i32 0
  store ptr %769, ptr %770, align 8
  br label %771

771:                                              ; preds = %841, %759
  %772 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %91) #8
  br i1 %772, label %774, label %773

773:                                              ; preds = %771
  store i32 47, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #8
  br label %843

774:                                              ; preds = %771
  call void @llvm.lifetime.start.p0(i64 16, ptr %92) #8
  %775 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %90) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 8 %775, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %93) #8
  %776 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %92) #8
  store ptr %776, ptr %93, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %94) #8
  %777 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %92) #8
  store ptr %777, ptr %94, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %95) #8
  %778 = load ptr, ptr %94, align 8, !tbaa !16
  %779 = load i32, ptr %778, align 4, !tbaa !8
  %780 = sext i32 %779 to i64
  %781 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @R, i64 0, i64 %780
  store ptr %781, ptr %95, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %96) #8
  %782 = load ptr, ptr %95, align 8, !tbaa !16
  %783 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %782) #8
  %784 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %96, i32 0, i32 0
  store ptr %783, ptr %784, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %97) #8
  %785 = load ptr, ptr %95, align 8, !tbaa !16
  %786 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %785) #8
  %787 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %97, i32 0, i32 0
  store ptr %786, ptr %787, align 8
  br label %788

788:                                              ; preds = %838, %774
  %789 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %97) #8
  br i1 %789, label %791, label %790

790:                                              ; preds = %788
  store i32 49, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #8
  br label %840

791:                                              ; preds = %788
  call void @llvm.lifetime.start.p0(i64 8, ptr %98) #8
  %792 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %792, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %99) #8
  %793 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %98) #8
  store ptr %793, ptr %99, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %100) #8
  %794 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %98) #8
  store ptr %794, ptr %100, align 8, !tbaa !16
  %795 = load ptr, ptr %100, align 8, !tbaa !16
  %796 = load i32, ptr %795, align 4, !tbaa !8
  %797 = sext i32 %796 to i64
  %798 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %797
  %799 = load i8, ptr %798, align 1, !tbaa !24, !range !31, !noundef !32
  %800 = trunc i8 %799 to i1
  br i1 %800, label %801, label %821

801:                                              ; preds = %791
  %802 = load ptr, ptr %99, align 8, !tbaa !16
  %803 = load i32, ptr %802, align 4, !tbaa !8
  %804 = sext i32 %803 to i64
  %805 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %804
  %806 = load ptr, ptr %100, align 8, !tbaa !16
  %807 = load i32, ptr %806, align 4, !tbaa !8
  %808 = sext i32 %807 to i64
  %809 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %808
  %810 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %805, ptr noundef nonnull align 4 dereferenceable(4) %809)
          to label %811 unwind label %817

811:                                              ; preds = %801
  %812 = load i32, ptr %810, align 4, !tbaa !8
  %813 = load ptr, ptr %99, align 8, !tbaa !16
  %814 = load i32, ptr %813, align 4, !tbaa !8
  %815 = sext i32 %814 to i64
  %816 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %815
  store i32 %812, ptr %816, align 4, !tbaa !8
  br label %837

817:                                              ; preds = %821, %801
  %818 = landingpad { ptr, i32 }
          cleanup
  %819 = extractvalue { ptr, i32 } %818, 0
  store ptr %819, ptr %13, align 8
  %820 = extractvalue { ptr, i32 } %818, 1
  store i32 %820, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %99) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %92) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #8
  br label %1103

821:                                              ; preds = %791
  %822 = load ptr, ptr %99, align 8, !tbaa !16
  %823 = load i32, ptr %822, align 4, !tbaa !8
  %824 = sext i32 %823 to i64
  %825 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %824
  %826 = load ptr, ptr %94, align 8, !tbaa !16
  %827 = load i32, ptr %826, align 4, !tbaa !8
  %828 = sext i32 %827 to i64
  %829 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %828
  %830 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %825, ptr noundef nonnull align 4 dereferenceable(4) %829)
          to label %831 unwind label %817

831:                                              ; preds = %821
  %832 = load i32, ptr %830, align 4, !tbaa !8
  %833 = load ptr, ptr %99, align 8, !tbaa !16
  %834 = load i32, ptr %833, align 4, !tbaa !8
  %835 = sext i32 %834 to i64
  %836 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %835
  store i32 %832, ptr %836, align 4, !tbaa !8
  br label %837

837:                                              ; preds = %831, %811
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %99) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #8
  br label %838

838:                                              ; preds = %837
  %839 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #8
  br label %788

840:                                              ; preds = %790
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %92) #8
  br label %841

841:                                              ; preds = %840
  %842 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %90) #8
  br label %771

843:                                              ; preds = %773
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #8
  store i32 1, ptr %101, align 4, !tbaa !8
  br label %844

844:                                              ; preds = %938, %843
  %845 = load i32, ptr %101, align 4, !tbaa !8
  %846 = load i32, ptr %2, align 4, !tbaa !8
  %847 = icmp sle i32 %845, %846
  br i1 %847, label %849, label %848

848:                                              ; preds = %844
  store i32 51, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #8
  br label %941

849:                                              ; preds = %844
  call void @llvm.lifetime.start.p0(i64 8, ptr %102) #8
  %850 = load i32, ptr %101, align 4, !tbaa !8
  %851 = sext i32 %850 to i64
  %852 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %851
  store ptr %852, ptr %102, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #8
  %853 = load ptr, ptr %102, align 8, !tbaa !16
  %854 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %853) #8
  %855 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %103, i32 0, i32 0
  store ptr %854, ptr %855, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %104) #8
  %856 = load ptr, ptr %102, align 8, !tbaa !16
  %857 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %856) #8
  %858 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %104, i32 0, i32 0
  store ptr %857, ptr %858, align 8
  br label %859

859:                                              ; preds = %934, %849
  %860 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(8) %104) #8
  br i1 %860, label %862, label %861

861:                                              ; preds = %859
  store i32 54, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %102) #8
  br label %937

862:                                              ; preds = %859
  call void @llvm.lifetime.start.p0(i64 12, ptr %105) #8
  %863 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %103) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %863, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %106) #8
  %864 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %105) #8
  store ptr %864, ptr %106, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %107) #8
  %865 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %105) #8
  store ptr %865, ptr %107, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %108) #8
  %866 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %105) #8
  store ptr %866, ptr %108, align 8, !tbaa !16
  %867 = load ptr, ptr %108, align 8, !tbaa !16
  %868 = load i32, ptr %867, align 4, !tbaa !8
  %869 = sext i32 %868 to i64
  %870 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %869
  %871 = load i8, ptr %870, align 1, !tbaa !24, !range !31, !noundef !32
  %872 = trunc i8 %871 to i1
  br i1 %872, label %873, label %874

873:                                              ; preds = %862
  store i32 55, ptr %42, align 4
  br label %931

874:                                              ; preds = %862
  call void @llvm.lifetime.start.p0(i64 8, ptr %109) #8
  %875 = load i32, ptr %101, align 4, !tbaa !8
  %876 = sext i32 %875 to i64
  %877 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %876
  %878 = load i64, ptr %877, align 8, !tbaa !13
  %879 = load ptr, ptr %106, align 8, !tbaa !16
  %880 = load i32, ptr %879, align 4, !tbaa !8
  %881 = sext i32 %880 to i64
  %882 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %881
  %883 = load i64, ptr %882, align 8, !tbaa !13
  %884 = add nsw i64 %878, %883
  %885 = load ptr, ptr %107, align 8, !tbaa !16
  %886 = load i32, ptr %885, align 4, !tbaa !8
  %887 = sext i32 %886 to i64
  %888 = add nsw i64 %884, %887
  store i64 %888, ptr %109, align 8, !tbaa !13
  %889 = load i32, ptr %101, align 4, !tbaa !8
  %890 = sext i32 %889 to i64
  %891 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %890
  %892 = load i32, ptr %891, align 4, !tbaa !8
  %893 = add nsw i32 %892, 1
  %894 = load ptr, ptr %106, align 8, !tbaa !16
  %895 = load i32, ptr %894, align 4, !tbaa !8
  %896 = sext i32 %895 to i64
  %897 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %896
  %898 = load i32, ptr %897, align 4, !tbaa !8
  %899 = sub nsw i32 %898, 1
  %900 = icmp sle i32 %893, %899
  br i1 %900, label %901, label %930

901:                                              ; preds = %874
  %902 = load i32, ptr %101, align 4, !tbaa !8
  %903 = sext i32 %902 to i64
  %904 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %903
  %905 = load i32, ptr %904, align 4, !tbaa !8
  %906 = add nsw i32 %905, 1
  %907 = sext i32 %906 to i64
  %908 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %907
  call void @llvm.lifetime.start.p0(i64 16, ptr %110) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %111) #8
  store i32 1, ptr %111, align 4, !tbaa !8
  invoke void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %110, ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 4 dereferenceable(4) %111)
          to label %909 unwind label %922

909:                                              ; preds = %901
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %908, ptr noundef nonnull align 8 dereferenceable(12) %110)
          to label %910 unwind label %922

910:                                              ; preds = %909
  call void @llvm.lifetime.end.p0(i64 4, ptr %111) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %110) #8
  %911 = load ptr, ptr %106, align 8, !tbaa !16
  %912 = load i32, ptr %911, align 4, !tbaa !8
  %913 = sext i32 %912 to i64
  %914 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %913
  %915 = load i32, ptr %914, align 4, !tbaa !8
  %916 = sub nsw i32 %915, 1
  %917 = add nsw i32 %916, 1
  %918 = sext i32 %917 to i64
  %919 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %918
  call void @llvm.lifetime.start.p0(i64 16, ptr %112) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %113) #8
  store i32 -1, ptr %113, align 4, !tbaa !8
  invoke void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %112, ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 4 dereferenceable(4) %113)
          to label %920 unwind label %926

920:                                              ; preds = %910
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %919, ptr noundef nonnull align 8 dereferenceable(12) %112)
          to label %921 unwind label %926

921:                                              ; preds = %920
  call void @llvm.lifetime.end.p0(i64 4, ptr %113) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %112) #8
  br label %930

922:                                              ; preds = %909, %901
  %923 = landingpad { ptr, i32 }
          cleanup
  %924 = extractvalue { ptr, i32 } %923, 0
  store ptr %924, ptr %13, align 8
  %925 = extractvalue { ptr, i32 } %923, 1
  store i32 %925, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %111) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %110) #8
  br label %936

926:                                              ; preds = %920, %910
  %927 = landingpad { ptr, i32 }
          cleanup
  %928 = extractvalue { ptr, i32 } %927, 0
  store ptr %928, ptr %13, align 8
  %929 = extractvalue { ptr, i32 } %927, 1
  store i32 %929, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %113) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %112) #8
  br label %936

930:                                              ; preds = %921, %874
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #8
  store i32 0, ptr %42, align 4
  br label %931

931:                                              ; preds = %930, %873
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %105) #8
  %932 = load i32, ptr %42, align 4
  switch i32 %932, label %1111 [
    i32 0, label %933
    i32 55, label %934
  ]

933:                                              ; preds = %931
  br label %934

934:                                              ; preds = %933, %931
  %935 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %103) #8
  br label %859

936:                                              ; preds = %926, %922
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %105) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %102) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #8
  br label %1103

937:                                              ; preds = %861
  br label %938

938:                                              ; preds = %937
  %939 = load i32, ptr %101, align 4, !tbaa !8
  %940 = add nsw i32 %939, 1
  store i32 %940, ptr %101, align 4, !tbaa !8
  br label %844, !llvm.loop !35

941:                                              ; preds = %848
  call void @llvm.lifetime.start.p0(i64 48, ptr %114) #8
  call void @_ZNSt8multisetIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %114) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %115) #8
  store i32 0, ptr %115, align 4, !tbaa !8
  br label %942

942:                                              ; preds = %1005, %941
  %943 = load i32, ptr %115, align 4, !tbaa !8
  %944 = sext i32 %943 to i64
  %945 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %946 = icmp ult i64 %944, %945
  br i1 %946, label %948, label %947

947:                                              ; preds = %942
  store i32 56, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %115) #8
  br label %1008

948:                                              ; preds = %942
  call void @llvm.lifetime.start.p0(i64 8, ptr %116) #8
  %949 = load i32, ptr %115, align 4, !tbaa !8
  %950 = sext i32 %949 to i64
  %951 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %950
  store ptr %951, ptr %116, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %117) #8
  %952 = load ptr, ptr %116, align 8, !tbaa !16
  %953 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %952) #8
  %954 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %117, i32 0, i32 0
  store ptr %953, ptr %954, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %118) #8
  %955 = load ptr, ptr %116, align 8, !tbaa !16
  %956 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %955) #8
  %957 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %118, i32 0, i32 0
  store ptr %956, ptr %957, align 8
  br label %958

958:                                              ; preds = %988, %948
  %959 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 8 dereferenceable(8) %118) #8
  br i1 %959, label %961, label %960

960:                                              ; preds = %958
  store i32 59, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %117) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #8
  br label %990

961:                                              ; preds = %958
  call void @llvm.lifetime.start.p0(i64 16, ptr %119) #8
  %962 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %962, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %120) #8
  %963 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %119) #8
  store ptr %963, ptr %120, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %121) #8
  %964 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %119) #8
  store ptr %964, ptr %121, align 8, !tbaa !16
  %965 = load ptr, ptr %121, align 8, !tbaa !16
  %966 = load i32, ptr %965, align 4, !tbaa !8
  %967 = icmp eq i32 %966, 1
  br i1 %967, label %968, label %977

968:                                              ; preds = %961
  %969 = load ptr, ptr %120, align 8, !tbaa !16
  %970 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr noundef nonnull align 8 dereferenceable(8) %969)
          to label %971 unwind label %973

971:                                              ; preds = %968
  %972 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %122, i32 0, i32 0
  store ptr %970, ptr %972, align 8
  br label %987

973:                                              ; preds = %980, %977, %968
  %974 = landingpad { ptr, i32 }
          cleanup
  %975 = extractvalue { ptr, i32 } %974, 0
  store ptr %975, ptr %13, align 8
  %976 = extractvalue { ptr, i32 } %974, 1
  store i32 %976, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %121) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %120) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %119) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %117) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %115) #8
  br label %1102

977:                                              ; preds = %961
  %978 = load ptr, ptr %120, align 8, !tbaa !16
  %979 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr noundef nonnull align 8 dereferenceable(8) %978)
          to label %980 unwind label %973

980:                                              ; preds = %977
  %981 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %123, i32 0, i32 0
  store ptr %979, ptr %981, align 8
  %982 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %123, i32 0, i32 0
  %983 = load ptr, ptr %982, align 8
  %984 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr %983)
          to label %985 unwind label %973

985:                                              ; preds = %980
  %986 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %124, i32 0, i32 0
  store ptr %984, ptr %986, align 8
  br label %987

987:                                              ; preds = %985, %971
  call void @llvm.lifetime.end.p0(i64 8, ptr %121) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %120) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %119) #8
  br label %988

988:                                              ; preds = %987
  %989 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #8
  br label %958

990:                                              ; preds = %960
  %991 = call noundef zeroext i1 @_ZNKSt8multisetIxSt4lessIxESaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %114) #8
  br i1 %991, label %992, label %996

992:                                              ; preds = %990
  %993 = load i32, ptr %115, align 4, !tbaa !8
  %994 = sext i32 %993 to i64
  %995 = getelementptr inbounds [200009 x i64], ptr @f, i64 0, i64 %994
  store i64 1000000000000000000, ptr %995, align 8, !tbaa !13
  br label %1004

996:                                              ; preds = %990
  call void @llvm.lifetime.start.p0(i64 8, ptr %125) #8
  %997 = call ptr @_ZNKSt8multisetIxSt4lessIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %114) #8
  %998 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %125, i32 0, i32 0
  store ptr %997, ptr %998, align 8
  %999 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIxEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %125) #8
  %1000 = load i64, ptr %999, align 8, !tbaa !13
  %1001 = load i32, ptr %115, align 4, !tbaa !8
  %1002 = sext i32 %1001 to i64
  %1003 = getelementptr inbounds [200009 x i64], ptr @f, i64 0, i64 %1002
  store i64 %1000, ptr %1003, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #8
  br label %1004

1004:                                             ; preds = %996, %992
  br label %1005

1005:                                             ; preds = %1004
  %1006 = load i32, ptr %115, align 4, !tbaa !8
  %1007 = add nsw i32 %1006, 1
  store i32 %1007, ptr %115, align 4, !tbaa !8
  br label %942, !llvm.loop !36

1008:                                             ; preds = %947
  br label %1009

1009:                                             ; preds = %1097, %1008
  %1010 = load i32, ptr %4, align 4, !tbaa !8
  %1011 = add nsw i32 %1010, -1
  store i32 %1011, ptr %4, align 4, !tbaa !8
  %1012 = icmp ne i32 %1010, 0
  br i1 %1012, label %1013, label %1100

1013:                                             ; preds = %1009
  call void @llvm.lifetime.start.p0(i64 4, ptr %126) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %127) #8
  %1014 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %126)
          to label %1015 unwind label %1070

1015:                                             ; preds = %1013
  %1016 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1014, ptr noundef nonnull align 4 dereferenceable(4) %127)
          to label %1017 unwind label %1070

1017:                                             ; preds = %1015
  call void @llvm.lifetime.start.p0(i64 8, ptr %128) #8
  %1018 = load i32, ptr %126, align 4, !tbaa !8
  %1019 = sext i32 %1018 to i64
  %1020 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %1019
  %1021 = load i32, ptr %1020, align 4, !tbaa !8
  %1022 = sext i32 %1021 to i64
  %1023 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %1022
  %1024 = load i64, ptr %1023, align 8, !tbaa !13
  %1025 = load i32, ptr %126, align 4, !tbaa !8
  %1026 = sext i32 %1025 to i64
  %1027 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %1026
  %1028 = load i32, ptr %1027, align 4, !tbaa !8
  %1029 = sext i32 %1028 to i64
  %1030 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %1029
  %1031 = load i64, ptr %1030, align 8, !tbaa !13
  %1032 = add nsw i64 %1024, %1031
  %1033 = load i32, ptr %127, align 4, !tbaa !8
  %1034 = sext i32 %1033 to i64
  %1035 = add nsw i64 %1032, %1034
  store i64 %1035, ptr %128, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %129) #8
  %1036 = load i32, ptr %126, align 4, !tbaa !8
  %1037 = sext i32 %1036 to i64
  %1038 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %1037
  %1039 = load i32, ptr %1038, align 4, !tbaa !8
  %1040 = sext i32 %1039 to i64
  %1041 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %1040
  %1042 = load i64, ptr %1041, align 8, !tbaa !13
  %1043 = load i32, ptr %126, align 4, !tbaa !8
  %1044 = sext i32 %1043 to i64
  %1045 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %1044
  %1046 = load i32, ptr %1045, align 4, !tbaa !8
  %1047 = sext i32 %1046 to i64
  %1048 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %1047
  %1049 = load i64, ptr %1048, align 8, !tbaa !13
  %1050 = add nsw i64 %1042, %1049
  %1051 = load i32, ptr %127, align 4, !tbaa !8
  %1052 = sext i32 %1051 to i64
  %1053 = add nsw i64 %1050, %1052
  store i64 %1053, ptr %129, align 8, !tbaa !13
  %1054 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(8) %129)
          to label %1055 unwind label %1074

1055:                                             ; preds = %1017
  %1056 = load i64, ptr %1054, align 8, !tbaa !13
  store i64 %1056, ptr %128, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %130) #8
  store i64 1000000000000000000, ptr %130, align 8, !tbaa !13
  %1057 = load i32, ptr %126, align 4, !tbaa !8
  %1058 = sext i32 %1057 to i64
  %1059 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %1058
  %1060 = load i8, ptr %1059, align 1, !tbaa !24, !range !31, !noundef !32
  %1061 = trunc i8 %1060 to i1
  br i1 %1061, label %1062, label %1078

1062:                                             ; preds = %1055
  %1063 = load i32, ptr %126, align 4, !tbaa !8
  %1064 = sext i32 %1063 to i64
  %1065 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %1064
  %1066 = load i32, ptr %1065, align 4, !tbaa !8
  %1067 = sext i32 %1066 to i64
  %1068 = getelementptr inbounds [200009 x i64], ptr @f, i64 0, i64 %1067
  %1069 = load i64, ptr %1068, align 8, !tbaa !13
  store i64 %1069, ptr %130, align 8, !tbaa !13
  br label %1089

1070:                                             ; preds = %1015, %1013
  %1071 = landingpad { ptr, i32 }
          cleanup
  %1072 = extractvalue { ptr, i32 } %1071, 0
  store ptr %1072, ptr %13, align 8
  %1073 = extractvalue { ptr, i32 } %1071, 1
  store i32 %1073, ptr %14, align 4
  br label %1099

1074:                                             ; preds = %1017
  %1075 = landingpad { ptr, i32 }
          cleanup
  %1076 = extractvalue { ptr, i32 } %1075, 0
  store ptr %1076, ptr %13, align 8
  %1077 = extractvalue { ptr, i32 } %1075, 1
  store i32 %1077, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #8
  br label %1098

1078:                                             ; preds = %1055
  %1079 = load i32, ptr %2, align 4, !tbaa !8
  %1080 = sext i32 %1079 to i64
  %1081 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %1080
  %1082 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(8) %1081)
          to label %1083 unwind label %1085

1083:                                             ; preds = %1078
  %1084 = load i64, ptr %1082, align 8, !tbaa !13
  store i64 %1084, ptr %130, align 8, !tbaa !13
  br label %1089

1085:                                             ; preds = %1095, %1091, %1089, %1078
  %1086 = landingpad { ptr, i32 }
          cleanup
  %1087 = extractvalue { ptr, i32 } %1086, 0
  store ptr %1087, ptr %13, align 8
  %1088 = extractvalue { ptr, i32 } %1086, 1
  store i32 %1088, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #8
  br label %1098

1089:                                             ; preds = %1083, %1062
  %1090 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(8) %130)
          to label %1091 unwind label %1085

1091:                                             ; preds = %1089
  %1092 = load i64, ptr %1090, align 8, !tbaa !13
  store i64 %1092, ptr %128, align 8, !tbaa !13
  %1093 = load i64, ptr %128, align 8, !tbaa !13
  %1094 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %1093)
          to label %1095 unwind label %1085

1095:                                             ; preds = %1091
  %1096 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1094, i8 noundef signext 10)
          to label %1097 unwind label %1085

1097:                                             ; preds = %1095
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %127) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %126) #8
  br label %1009, !llvm.loop !37

1098:                                             ; preds = %1085, %1074
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #8
  br label %1099

1099:                                             ; preds = %1098, %1070
  call void @llvm.lifetime.end.p0(i64 4, ptr %127) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %126) #8
  br label %1102

1100:                                             ; preds = %1009
  store i32 0, ptr %1, align 4
  store i32 1, ptr %42, align 4
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %114) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %114) #8
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %66) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %1101 = load i32, ptr %1, align 4
  ret i32 %1101

1102:                                             ; preds = %1099, %973
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %114) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %114) #8
  br label %1103

1103:                                             ; preds = %1102, %936, %817, %733, %692, %626, %607
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %66) #8
  br label %1104

1104:                                             ; preds = %1103, %577, %557
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  br label %1105

1105:                                             ; preds = %1104, %530, %419, %357, %317, %308, %240, %236
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %1106

1106:                                             ; preds = %1105
  %1107 = load ptr, ptr %13, align 8
  %1108 = load i32, ptr %14, align 4
  %1109 = insertvalue { ptr, i32 } poison, ptr %1107, 0
  %1110 = insertvalue { ptr, i32 } %1109, i32 %1108, 1
  resume { ptr, i32 } %1110

1111:                                             ; preds = %931
  unreachable
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12)) #0

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #7

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #7

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


; 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::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::array" = type { [3 x i32] }
%"class.std::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::array.10" = type { [2 x i32] }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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.__gnu_cxx::__normal_iterator.17" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_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_const_iterator" = type { ptr }

@g = external dso_local global [200009 x %"class.std::vector"], align 16
@d = external dso_local global [200009 x i64], align 16
@rd = external dso_local global [200009 x i64], align 16
@f = external dso_local local_unnamed_addr global [200009 x i64], align 16
@S = external dso_local global [200009 x %"class.std::vector.0"], align 16
@R = external dso_local global [200009 x %"class.std::vector.0"], align 16
@sp_edge = external dso_local local_unnamed_addr global [200009 x i8], align 16
@path_id = external dso_local global [200009 x i32], align 16
@l = external dso_local global [200009 x i32], align 16
@r = external dso_local global [200009 x i32], align 16
@u = external dso_local global [200009 x i32], align 16
@v = external dso_local global [200009 x i32], align 16
@w = external dso_local global [200009 x i32], align 16
@edge = external dso_local local_unnamed_addr global [200009 x i32], align 16
@event = external dso_local global [200009 x %"class.std::vector.5"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::array", align 4
  %5 = alloca %"struct.std::array", align 4
  %6 = alloca %"class.std::priority_queue", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"struct.std::array", align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"class.std::priority_queue", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"struct.std::array", align 4
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"struct.std::array", align 4
  %26 = alloca %"struct.std::array.10", align 4
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"struct.std::array", align 4
  %30 = alloca %"struct.std::array.10", align 4
  %31 = alloca %"class.std::vector.11", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::vector.5", align 8
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %38 = alloca %"struct.std::pair", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %41 = alloca %"struct.std::array.10", align 8
  %42 = alloca i32, align 4
  %43 = alloca %"struct.std::pair", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %49 = alloca %"struct.std::array.10", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %52 = alloca %"struct.std::array", align 4
  %53 = alloca i64, align 8
  %54 = alloca %"struct.std::pair", align 8
  %55 = alloca i32, align 4
  %56 = alloca %"struct.std::pair", align 8
  %57 = alloca i32, align 4
  %58 = alloca %"class.std::multiset", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %61 = alloca %"struct.std::pair", align 8
  %62 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i64, align 8
  %66 = alloca i64, align 8
  %67 = alloca i64, align 8
  %68 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %69 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %70 = getelementptr i8, ptr %69, i64 -24
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %71
  %73 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %72, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %77 = load i32, ptr %2, align 4, !tbaa !8
  %.not196 = icmp slt i32 %77, 1
  br i1 %.not196, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0
  %78 = getelementptr inbounds i8, ptr %4, i64 4
  %79 = getelementptr inbounds i8, ptr %4, i64 8
  %80 = getelementptr inbounds i8, ptr %5, i64 4
  %81 = getelementptr inbounds i8, ptr %5, i64 8
  br label %88

._crit_edge:                                      ; preds = %88, %0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %82 = load i32, ptr %1, align 4, !tbaa !8
  %.not160198 = icmp slt i32 %82, 1
  br i1 %.not160198, label %._crit_edge202, label %.lr.ph201.preheader

.lr.ph201.preheader:                              ; preds = %._crit_edge
  %83 = add nuw i32 %82, 1
  %wide.trip.count = zext i32 %83 to i64
  %84 = zext nneg i32 %82 to i64
  %min.iters.check = icmp ult i32 %82, 4
  br i1 %min.iters.check, label %.lr.ph201.preheader343, label %vector.ph

.lr.ph201.preheader343:                           ; preds = %middle.block, %.lr.ph201.preheader
  %indvars.iv288.ph = phi i64 [ 1, %.lr.ph201.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph201

vector.ph:                                        ; preds = %.lr.ph201.preheader
  %n.vec = and i64 %84, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %85 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %offset.idx
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  store <2 x i64> <i64 1000000000000000000, i64 1000000000000000000>, ptr %85, align 8, !tbaa !11
  store <2 x i64> <i64 1000000000000000000, i64 1000000000000000000>, ptr %86, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 4
  %87 = icmp eq i64 %index.next, %n.vec
  br i1 %87, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %84
  br i1 %cmp.n, label %._crit_edge202, label %.lr.ph201.preheader343

88:                                               ; preds = %.lr.ph, %88
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %88 ]
  %89 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %indvars.iv
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %89)
  %91 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %indvars.iv
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = getelementptr inbounds [200009 x i32], ptr @w, i64 0, i64 %indvars.iv
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 4 dereferenceable(4) %93)
  %95 = load i32, ptr %89, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %96
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #9
  %98 = load i32, ptr %91, align 4, !tbaa !8
  store i32 %98, ptr %4, align 4, !tbaa !8
  %99 = load i32, ptr %93, align 4, !tbaa !8
  store i32 %99, ptr %78, align 4, !tbaa !8
  %100 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %100, ptr %79, align 4, !tbaa !8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #9
  %101 = load i32, ptr %91, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %102
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #9
  %104 = load i32, ptr %89, align 4, !tbaa !8
  store i32 %104, ptr %5, align 4, !tbaa !8
  %105 = load i32, ptr %93, align 4, !tbaa !8
  store i32 %105, ptr %80, align 4, !tbaa !8
  store i32 %100, ptr %81, align 4, !tbaa !8
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %106 = load i32, ptr %2, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %.not.not = icmp slt i64 %indvars.iv, %107
  br i1 %.not.not, label %88, label %._crit_edge, !llvm.loop !17

._crit_edge202:                                   ; preds = %.lr.ph201, %middle.block, %._crit_edge
  store i64 0, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 1, ptr %9, align 4, !tbaa !8
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %109 unwind label %122

.lr.ph201:                                        ; preds = %.lr.ph201.preheader343, %.lr.ph201
  %indvars.iv288 = phi i64 [ %indvars.iv.next289, %.lr.ph201 ], [ %indvars.iv288.ph, %.lr.ph201.preheader343 ]
  %108 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %indvars.iv288
  store i64 1000000000000000000, ptr %108, align 8, !tbaa !11
  %indvars.iv.next289 = add nuw nsw i64 %indvars.iv288, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next289, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge202, label %.lr.ph201, !llvm.loop !18

109:                                              ; preds = %._crit_edge202
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  %110 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %110, label %._crit_edge208, label %.lr.ph207

.lr.ph207:                                        ; preds = %109, %._crit_edge205
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %111 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %111, i64 16, i1 false)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %10) #9
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %10) #9
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %114 unwind label %124

114:                                              ; preds = %.lr.ph207
  %115 = load i32, ptr %113, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %116
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %118 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #9
  store ptr %118, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %119 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #9
  store ptr %119, ptr %12, align 8
  %120 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %120, label %.lr.ph204, label %._crit_edge205

._crit_edge205:                                   ; preds = %151, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %121 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %121, label %._crit_edge208, label %.lr.ph207, !llvm.loop !19

122:                                              ; preds = %._crit_edge202
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %552

124:                                              ; preds = %.lr.ph207
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %154

.lr.ph204:                                        ; preds = %114, %151
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #9
  %126 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %126, i64 12, i1 false), !tbaa.struct !20
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  %130 = load i32, ptr %113, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = load i32, ptr %128, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = add nsw i64 %133, %135
  %137 = load i32, ptr %127, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = icmp slt i64 %136, %140
  br i1 %141, label %142, label %151

142:                                              ; preds = %.lr.ph204
  store i64 %136, ptr %139, align 8, !tbaa !11
  %143 = load i32, ptr %129, align 4, !tbaa !8
  %144 = getelementptr inbounds [200009 x i32], ptr @edge, i64 0, i64 %138
  store i32 %143, ptr %144, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %145 = load i32, ptr %127, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %146
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull align 4 dereferenceable(4) %127)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(12) %14)
          to label %148 unwind label %149

148:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %151

149:                                              ; preds = %142
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %154

151:                                              ; preds = %148, %.lr.ph204
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #9
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %153, label %.lr.ph204, label %._crit_edge205

154:                                              ; preds = %149, %124
  %.pn186 = phi { ptr, i32 } [ %150, %149 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %552

._crit_edge208:                                   ; preds = %._crit_edge205, %109
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #9
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %155 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(25) %15) #9
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  %156 = load i32, ptr %1, align 4, !tbaa !8
  %.not161209 = icmp slt i32 %156, 1
  br i1 %.not161209, label %._crit_edge213, label %.lr.ph212.preheader

.lr.ph212.preheader:                              ; preds = %._crit_edge208
  %157 = add nuw i32 %156, 1
  %wide.trip.count294 = zext i32 %157 to i64
  %158 = zext nneg i32 %156 to i64
  %min.iters.check331 = icmp ult i32 %156, 4
  br i1 %min.iters.check331, label %.lr.ph212.preheader342, label %vector.ph332

.lr.ph212.preheader342:                           ; preds = %middle.block329, %.lr.ph212.preheader
  %indvars.iv291.ph = phi i64 [ 1, %.lr.ph212.preheader ], [ %ind.end335, %middle.block329 ]
  br label %.lr.ph212

vector.ph332:                                     ; preds = %.lr.ph212.preheader
  %n.vec334 = and i64 %158, 2147483644
  %ind.end335 = or disjoint i64 %n.vec334, 1
  br label %vector.body337

vector.body337:                                   ; preds = %vector.body337, %vector.ph332
  %index338 = phi i64 [ 0, %vector.ph332 ], [ %index.next340, %vector.body337 ]
  %offset.idx339 = or disjoint i64 %index338, 1
  %159 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %offset.idx339
  %160 = getelementptr inbounds i8, ptr %159, i64 16
  store <2 x i64> <i64 1000000000000000000, i64 1000000000000000000>, ptr %159, align 8, !tbaa !11
  store <2 x i64> <i64 1000000000000000000, i64 1000000000000000000>, ptr %160, align 8, !tbaa !11
  %index.next340 = add nuw i64 %index338, 4
  %161 = icmp eq i64 %index.next340, %n.vec334
  br i1 %161, label %middle.block329, label %vector.body337, !llvm.loop !22

middle.block329:                                  ; preds = %vector.body337
  %cmp.n341 = icmp eq i64 %n.vec334, %158
  br i1 %cmp.n341, label %._crit_edge213, label %.lr.ph212.preheader342

._crit_edge213:                                   ; preds = %.lr.ph212, %middle.block329, %._crit_edge208
  %162 = sext i32 %156 to i64
  %163 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %162
  store i64 0, ptr %163, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  store i32 0, ptr %17, align 4, !tbaa !8
  call void @_ZNSt4pairIxiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %1)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(12) %16)
          to label %165 unwind label %181

.lr.ph212:                                        ; preds = %.lr.ph212.preheader342, %.lr.ph212
  %indvars.iv291 = phi i64 [ %indvars.iv.next292, %.lr.ph212 ], [ %indvars.iv291.ph, %.lr.ph212.preheader342 ]
  %164 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %indvars.iv291
  store i64 1000000000000000000, ptr %164, align 8, !tbaa !11
  %indvars.iv.next292 = add nuw nsw i64 %indvars.iv291, 1
  %exitcond295.not = icmp eq i64 %indvars.iv.next292, %wide.trip.count294
  br i1 %exitcond295.not, label %._crit_edge213, label %.lr.ph212, !llvm.loop !23

165:                                              ; preds = %._crit_edge213
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  %166 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %166, label %.preheader192, label %.lr.ph218

.preheader192:                                    ; preds = %._crit_edge216, %165
  %167 = load i32, ptr %1, align 4, !tbaa !8
  %.not162225 = icmp slt i32 %167, 1
  br i1 %.not162225, label %._crit_edge228.thread, label %.lr.ph227

._crit_edge228.thread:                            ; preds = %.preheader192
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  br label %.lr.ph233.preheader

.lr.ph227:                                        ; preds = %.preheader192
  %168 = getelementptr inbounds i8, ptr %26, i64 4
  %169 = getelementptr inbounds i8, ptr %30, i64 4
  br label %209

.lr.ph218:                                        ; preds = %165, %._crit_edge216
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  %170 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %170, i64 16, i1 false)
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %18) #9
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %18) #9
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %173 unwind label %183

173:                                              ; preds = %.lr.ph218
  %174 = load i32, ptr %172, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %175
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %177 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #9
  store ptr %177, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %178 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #9
  store ptr %178, ptr %20, align 8
  %179 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %179, label %.lr.ph215, label %._crit_edge216

._crit_edge216:                                   ; preds = %205, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  %180 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  br i1 %180, label %.preheader192, label %.lr.ph218, !llvm.loop !24

181:                                              ; preds = %._crit_edge213
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %552

183:                                              ; preds = %.lr.ph218
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %208

.lr.ph215:                                        ; preds = %173, %205
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #9
  %185 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %185, i64 12, i1 false), !tbaa.struct !20
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  %189 = load i32, ptr %172, align 4, !tbaa !8
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !11
  %193 = load i32, ptr %187, align 4, !tbaa !8
  %194 = sext i32 %193 to i64
  %195 = add nsw i64 %192, %194
  %196 = load i32, ptr %186, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !11
  %200 = icmp slt i64 %195, %199
  br i1 %200, label %201, label %205

201:                                              ; preds = %.lr.ph215
  store i64 %195, ptr %198, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 4 dereferenceable(4) %186)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(12) %22)
          to label %202 unwind label %203

202:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  br label %205

203:                                              ; preds = %201
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %208

205:                                              ; preds = %202, %.lr.ph215
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %207 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %207, label %.lr.ph215, label %._crit_edge216

208:                                              ; preds = %203, %183
  %.pn184 = phi { ptr, i32 } [ %204, %203 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %552

._crit_edge228:                                   ; preds = %._crit_edge224
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %.not163230 = icmp eq i32 %243, 1
  br i1 %.not163230, label %._crit_edge234, label %.lr.ph233.preheader

.lr.ph233.preheader:                              ; preds = %._crit_edge228.thread, %._crit_edge228
  %.0148231.ph = phi i32 [ %243, %._crit_edge228 ], [ %167, %._crit_edge228.thread ]
  br label %.lr.ph233

209:                                              ; preds = %.lr.ph227, %._crit_edge224
  %indvars.iv296 = phi i64 [ 1, %.lr.ph227 ], [ %indvars.iv.next297, %._crit_edge224 ]
  %210 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %211 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #9
  store ptr %211, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  %212 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #9
  store ptr %212, ptr %24, align 8
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br i1 %213, label %.lr.ph220, label %._crit_edge221

.lr.ph220:                                        ; preds = %209
  %214 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %indvars.iv296
  %215 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @S, i64 0, i64 %indvars.iv296
  br label %221

._crit_edge221:                                   ; preds = %240, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #9
  %216 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #9
  store ptr %216, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #9
  %217 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #9
  store ptr %217, ptr %28, align 8
  %218 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #9
  br i1 %218, label %.lr.ph223, label %._crit_edge224

.lr.ph223:                                        ; preds = %._crit_edge221
  %219 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %indvars.iv296
  %220 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @R, i64 0, i64 %indvars.iv296
  br label %245

221:                                              ; preds = %.lr.ph220, %240
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #9
  %222 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %222, i64 12, i1 false), !tbaa.struct !20
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %25) #9
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %25) #9
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %25) #9
  %226 = load i64, ptr %214, align 8, !tbaa !11
  %227 = load i32, ptr %224, align 4, !tbaa !8
  %228 = sext i32 %227 to i64
  %229 = add nsw i64 %226, %228
  %230 = load i32, ptr %223, align 4, !tbaa !8
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !11
  %234 = icmp eq i64 %229, %233
  br i1 %234, label %235, label %240

235:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  store i32 %230, ptr %26, align 4, !tbaa !8
  %236 = load i32, ptr %225, align 4, !tbaa !8
  store i32 %236, ptr %168, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %215, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %237 unwind label %238

237:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br label %240

238:                                              ; preds = %235
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  br label %552

240:                                              ; preds = %237, %221
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #9
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  %242 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br i1 %242, label %221, label %._crit_edge221

._crit_edge224:                                   ; preds = %264, %._crit_edge221
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  %indvars.iv.next297 = add nuw nsw i64 %indvars.iv296, 1
  %243 = load i32, ptr %1, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %.not162.not = icmp slt i64 %indvars.iv296, %244
  br i1 %.not162.not, label %209, label %._crit_edge228, !llvm.loop !25

245:                                              ; preds = %.lr.ph223, %264
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #9
  %246 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %246, i64 12, i1 false), !tbaa.struct !20
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %29) #9
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %29) #9
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %29) #9
  %250 = load i64, ptr %219, align 8, !tbaa !11
  %251 = load i32, ptr %248, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  %253 = add nsw i64 %250, %252
  %254 = load i32, ptr %247, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !11
  %258 = icmp eq i64 %253, %257
  br i1 %258, label %259, label %264

259:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #9
  store i32 %254, ptr %30, align 4, !tbaa !8
  %260 = load i32, ptr %249, align 4, !tbaa !8
  store i32 %260, ptr %169, align 4, !tbaa !8
  invoke void @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %261 unwind label %262

261:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  br label %264

262:                                              ; preds = %259
  %263 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  br label %552

264:                                              ; preds = %261, %245
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #9
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  %266 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #9
  br i1 %266, label %245, label %._crit_edge224

.lr.ph233:                                        ; preds = %.lr.ph233.preheader, %270
  %.0148231 = phi i32 [ %279, %270 ], [ %.0148231.ph, %.lr.ph233.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %267 = sext i32 %.0148231 to i64
  %268 = getelementptr inbounds [200009 x i32], ptr @edge, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !8
  store i32 %269, ptr %32, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %270 unwind label %280

270:                                              ; preds = %.lr.ph233
  %271 = load i32, ptr %32, align 4, !tbaa !8
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %272
  store i8 1, ptr %273, align 1, !tbaa !26
  %274 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %272
  %275 = load i32, ptr %274, align 4, !tbaa !8
  %276 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %272
  %277 = load i32, ptr %276, align 4, !tbaa !8
  %278 = xor i32 %275, %277
  %279 = xor i32 %278, %.0148231
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  %.not163 = icmp eq i32 %279, 1
  br i1 %.not163, label %._crit_edge234, label %.lr.ph233, !llvm.loop !28

280:                                              ; preds = %.lr.ph233
  %281 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  br label %551

._crit_edge234:                                   ; preds = %270, %._crit_edge228
  %282 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %283 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %282, ptr %283)
          to label %.preheader191 unwind label %286

.preheader191:                                    ; preds = %._crit_edge234
  %284 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %.not = icmp eq i64 %284, 0
  br i1 %.not, label %._crit_edge237, label %.lr.ph236

._crit_edge237:                                   ; preds = %.lr.ph236, %.preheader191
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  store i32 1, ptr %34, align 4, !tbaa !8
  %285 = load i32, ptr %1, align 4, !tbaa !8
  %.not164238 = icmp slt i32 %285, 1
  br i1 %.not164238, label %._crit_edge242, label %.lr.ph241

286:                                              ; preds = %._crit_edge234
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %551

.lr.ph236:                                        ; preds = %.preheader191, %.lr.ph236
  %indvars.iv299 = phi i64 [ %indvars.iv.next300, %.lr.ph236 ], [ 0, %.preheader191 ]
  %288 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv299) #9
  %289 = load i32, ptr %288, align 4, !tbaa !8
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %290
  %292 = trunc nuw nsw i64 %indvars.iv299 to i32
  store i32 %292, ptr %291, align 4, !tbaa !8
  %indvars.iv.next300 = add nuw nsw i64 %indvars.iv299, 1
  %293 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %294 = icmp ugt i64 %293, %indvars.iv.next300
  br i1 %294, label %.lr.ph236, label %._crit_edge237, !llvm.loop !29

._crit_edge242:                                   ; preds = %300, %._crit_edge237
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  %295 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %296 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %295, ptr %296)
          to label %.preheader190 unwind label %309

.preheader190:                                    ; preds = %._crit_edge242
  %297 = load i32, ptr %1, align 4, !tbaa !8
  %.not165243 = icmp slt i32 %297, 1
  br i1 %.not165243, label %._crit_edge246, label %.lr.ph245

.lr.ph241:                                        ; preds = %._crit_edge237, %300
  %storemerge239 = phi i32 [ %302, %300 ], [ 1, %._crit_edge237 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #9
  %298 = sext i32 %storemerge239 to i64
  %299 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %298
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %35, ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef nonnull align 4 dereferenceable(4) %34)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(12) %35)
          to label %300 unwind label %304

300:                                              ; preds = %.lr.ph241
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #9
  %301 = load i32, ptr %34, align 4, !tbaa !8
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %34, align 4, !tbaa !8
  %303 = load i32, ptr %1, align 4, !tbaa !8
  %.not164.not = icmp slt i32 %301, %303
  br i1 %.not164.not, label %.lr.ph241, label %._crit_edge242, !llvm.loop !30

304:                                              ; preds = %.lr.ph241
  %305 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  br label %550

._crit_edge246:                                   ; preds = %.lr.ph245, %.preheader190
  store i32 -1, ptr getelementptr inbounds (i8, ptr @l, i64 4), align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #9
  %306 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  store ptr %306, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #9
  %307 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  store ptr %307, ptr %37, align 8
  %308 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  br i1 %308, label %.lr.ph251, label %._crit_edge252

309:                                              ; preds = %._crit_edge257, %._crit_edge242
  %310 = landingpad { ptr, i32 }
          cleanup
  br label %550

.lr.ph245:                                        ; preds = %.preheader190, %.lr.ph245
  %indvars.iv302 = phi i64 [ %indvars.iv.next303, %.lr.ph245 ], [ 1, %.preheader190 ]
  %311 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %312 = trunc i64 %311 to i32
  %313 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %indvars.iv302
  store i32 %312, ptr %313, align 4, !tbaa !8
  %indvars.iv.next303 = add nuw nsw i64 %indvars.iv302, 1
  %314 = load i32, ptr %1, align 4, !tbaa !8
  %315 = sext i32 %314 to i64
  %.not165.not = icmp slt i64 %indvars.iv302, %315
  br i1 %.not165.not, label %.lr.ph245, label %._crit_edge246, !llvm.loop !31

._crit_edge252:                                   ; preds = %._crit_edge249, %._crit_edge246
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #9
  store i32 1, ptr %42, align 4, !tbaa !8
  %316 = load i32, ptr %1, align 4, !tbaa !8
  %.not167253 = icmp slt i32 %316, 1
  br i1 %.not167253, label %._crit_edge257, label %.lr.ph256

.lr.ph251:                                        ; preds = %._crit_edge246, %._crit_edge249
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #9
  %317 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %317, i64 16, i1 false)
  %318 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %38) #9
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %38) #9
  %320 = load i32, ptr %319, align 4, !tbaa !8
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @S, i64 0, i64 %321
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #9
  %323 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %322) #9
  store ptr %323, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #9
  %324 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %322) #9
  store ptr %324, ptr %40, align 8
  %325 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #9
  br i1 %325, label %.lr.ph248, label %._crit_edge249

._crit_edge249:                                   ; preds = %.lr.ph248, %.lr.ph251
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #9
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %327 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  br i1 %327, label %.lr.ph251, label %._crit_edge252

.lr.ph248:                                        ; preds = %.lr.ph251, %.lr.ph248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #9
  %328 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  %329 = load i64, ptr %328, align 4, !tbaa !21
  store i64 %329, ptr %41, align 8, !tbaa !21
  %330 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %41) #9
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %41) #9
  %332 = load i32, ptr %331, align 4, !tbaa !8
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %333
  %335 = load i8, ptr %334, align 1, !tbaa !26, !range !32, !noundef !33
  %336 = trunc nuw i8 %335 to i1
  %337 = load i32, ptr %330, align 4, !tbaa !8
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %338
  %340 = load i32, ptr %319, align 4
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %341
  %343 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %333
  %.sink322 = select i1 %336, ptr %343, ptr %342
  %344 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %339, ptr noundef nonnull align 4 dereferenceable(4) %.sink322)
  %345 = load i32, ptr %344, align 4, !tbaa !8
  %346 = load i32, ptr %330, align 4, !tbaa !8
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %347
  store i32 %345, ptr %348, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #9
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  %350 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #9
  br i1 %350, label %.lr.ph248, label %._crit_edge249

._crit_edge257:                                   ; preds = %358, %._crit_edge252
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #9
  %351 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %352 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %351, ptr %352)
          to label %.preheader189 unwind label %309

.preheader189:                                    ; preds = %._crit_edge257
  %353 = load i32, ptr %1, align 4, !tbaa !8
  %.not168258 = icmp slt i32 %353, 1
  br i1 %.not168258, label %._crit_edge261, label %.lr.ph260.preheader

.lr.ph260.preheader:                              ; preds = %.preheader189
  %354 = zext nneg i32 %353 to i64
  %355 = shl nuw nsw i64 %354, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @r, i64 4), i8 -1, i64 %355, i1 false), !tbaa !8
  br label %._crit_edge261

.lr.ph256:                                        ; preds = %._crit_edge252, %358
  %storemerge166254 = phi i32 [ %360, %358 ], [ 1, %._crit_edge252 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %43) #9
  %356 = sext i32 %storemerge166254 to i64
  %357 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %356
  call void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %43, ptr noundef nonnull align 8 dereferenceable(8) %357, ptr noundef nonnull align 4 dereferenceable(4) %42)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(12) %43)
          to label %358 unwind label %362

358:                                              ; preds = %.lr.ph256
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #9
  %359 = load i32, ptr %42, align 4, !tbaa !8
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %42, align 4, !tbaa !8
  %361 = load i32, ptr %1, align 4, !tbaa !8
  %.not167.not = icmp slt i32 %359, %361
  br i1 %.not167.not, label %.lr.ph256, label %._crit_edge257, !llvm.loop !34

362:                                              ; preds = %.lr.ph256
  %363 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #9
  br label %550

._crit_edge261:                                   ; preds = %.lr.ph260.preheader, %.preheader189
  %364 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %365 = trunc i64 %364 to i32
  %366 = load i32, ptr %1, align 4, !tbaa !8
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %367
  store i32 %365, ptr %368, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #9
  %369 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  store ptr %369, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #9
  %370 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  store ptr %370, ptr %45, align 8
  %371 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  br i1 %371, label %.lr.ph266, label %._crit_edge267

._crit_edge267:                                   ; preds = %._crit_edge264, %._crit_edge261
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #9
  %372 = load i32, ptr %1, align 4, !tbaa !8
  %.not169271 = icmp slt i32 %372, 1
  br i1 %.not169271, label %._crit_edge275, label %.lr.ph274

.lr.ph266:                                        ; preds = %._crit_edge261, %._crit_edge264
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #9
  %373 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %373, i64 16, i1 false)
  %374 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %46) #9
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %46) #9
  %376 = load i32, ptr %375, align 4, !tbaa !8
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @R, i64 0, i64 %377
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #9
  %379 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %378) #9
  store ptr %379, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #9
  %380 = call ptr @_ZNSt6vectorISt5arrayIiLm2EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %378) #9
  store ptr %380, ptr %48, align 8
  %381 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #9
  br i1 %381, label %.lr.ph263, label %._crit_edge264

._crit_edge264:                                   ; preds = %.lr.ph263, %.lr.ph266
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #9
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  %383 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  br i1 %383, label %.lr.ph266, label %._crit_edge267

.lr.ph263:                                        ; preds = %.lr.ph266, %.lr.ph263
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #9
  %384 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #9
  %385 = load i64, ptr %384, align 4, !tbaa !21
  store i64 %385, ptr %49, align 8, !tbaa !21
  %386 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %49) #9
  %387 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm2EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(8) %49) #9
  %388 = load i32, ptr %387, align 4, !tbaa !8
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %389
  %391 = load i8, ptr %390, align 1, !tbaa !26, !range !32, !noundef !33
  %392 = trunc nuw i8 %391 to i1
  %393 = load i32, ptr %386, align 4, !tbaa !8
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %394
  %396 = load i32, ptr %375, align 4
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %397
  %399 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %389
  %.sink328 = select i1 %392, ptr %399, ptr %398
  %400 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %395, ptr noundef nonnull align 4 dereferenceable(4) %.sink328)
  %401 = load i32, ptr %400, align 4, !tbaa !8
  %402 = load i32, ptr %386, align 4, !tbaa !8
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %403
  store i32 %401, ptr %404, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #9
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #9
  %406 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm2EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #9
  br i1 %406, label %.lr.ph263, label %._crit_edge264

._crit_edge275:                                   ; preds = %._crit_edge270, %._crit_edge267
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %58) #9
  call void @_ZNSt8multisetIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %58) #9
  %407 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %.not285 = icmp eq i64 %407, 0
  br i1 %.not285, label %.preheader, label %.lr.ph281

.lr.ph274:                                        ; preds = %._crit_edge267, %._crit_edge270
  %indvars.iv308 = phi i64 [ %indvars.iv.next309, %._crit_edge270 ], [ 1, %._crit_edge267 ]
  %408 = getelementptr inbounds [200009 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv308
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #9
  %409 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %408) #9
  store ptr %409, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #9
  %410 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %408) #9
  store ptr %410, ptr %51, align 8
  %411 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #9
  br i1 %411, label %.lr.ph269, label %._crit_edge270

.lr.ph269:                                        ; preds = %.lr.ph274
  %412 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %indvars.iv308
  %413 = getelementptr inbounds [200009 x i32], ptr @l, i64 0, i64 %indvars.iv308
  br label %416

._crit_edge270:                                   ; preds = %457, %.lr.ph274
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #9
  %indvars.iv.next309 = add nuw nsw i64 %indvars.iv308, 1
  %414 = load i32, ptr %1, align 4, !tbaa !8
  %415 = sext i32 %414 to i64
  %.not169.not = icmp slt i64 %indvars.iv308, %415
  br i1 %.not169.not, label %.lr.ph274, label %._crit_edge275, !llvm.loop !35

416:                                              ; preds = %.lr.ph269, %457
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %52) #9
  %417 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %417, i64 12, i1 false), !tbaa.struct !20
  %418 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %52) #9
  %419 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %52) #9
  %420 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %52) #9
  %421 = load i32, ptr %420, align 4, !tbaa !8
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %422
  %424 = load i8, ptr %423, align 1, !tbaa !26, !range !32, !noundef !33
  %425 = trunc nuw i8 %424 to i1
  br i1 %425, label %457, label %426

426:                                              ; preds = %416
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %53) #9
  %427 = load i64, ptr %412, align 8, !tbaa !11
  %428 = load i32, ptr %418, align 4, !tbaa !8
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %429
  %431 = load i64, ptr %430, align 8, !tbaa !11
  %432 = add nsw i64 %431, %427
  %433 = load i32, ptr %419, align 4, !tbaa !8
  %434 = sext i32 %433 to i64
  %435 = add nsw i64 %432, %434
  store i64 %435, ptr %53, align 8, !tbaa !11
  %436 = load i32, ptr %413, align 4, !tbaa !8
  %437 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %429
  %438 = load i32, ptr %437, align 4, !tbaa !8
  %439 = add nsw i32 %438, -1
  %.not175.not = icmp slt i32 %436, %439
  br i1 %.not175.not, label %440, label %456

440:                                              ; preds = %426
  %441 = add nsw i32 %436, 1
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %442
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %55) #9
  store i32 1, ptr %55, align 4, !tbaa !8
  call void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %54, ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %55)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %443, ptr noundef nonnull align 8 dereferenceable(12) %54)
          to label %444 unwind label %452

444:                                              ; preds = %440
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #9
  %445 = load i32, ptr %418, align 4, !tbaa !8
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [200009 x i32], ptr @r, i64 0, i64 %446
  %448 = load i32, ptr %447, align 4, !tbaa !8
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %449
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #9
  store i32 -1, ptr %57, align 4, !tbaa !8
  call void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %56, ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %57)
  invoke void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %450, ptr noundef nonnull align 8 dereferenceable(12) %56)
          to label %451 unwind label %454

451:                                              ; preds = %444
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #9
  br label %456

452:                                              ; preds = %440
  %453 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #9
  br label %460

454:                                              ; preds = %444
  %455 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #9
  br label %460

456:                                              ; preds = %451, %426
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #9
  br label %457

457:                                              ; preds = %416, %456
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %52) #9
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #9
  %459 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #9
  br i1 %459, label %416, label %._crit_edge270

460:                                              ; preds = %454, %452
  %.pn176 = phi { ptr, i32 } [ %455, %454 ], [ %453, %452 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #9
  br label %550

.preheader:                                       ; preds = %488, %._crit_edge275
  %461 = load i32, ptr %3, align 4, !tbaa !8
  %462 = add nsw i32 %461, -1
  store i32 %462, ptr %3, align 4, !tbaa !8
  %.not170282 = icmp eq i32 %461, 0
  br i1 %.not170282, label %._crit_edge284, label %.lr.ph283

.lr.ph281:                                        ; preds = %._crit_edge275, %488
  %indvars.iv311 = phi i64 [ %indvars.iv.next312, %488 ], [ 0, %._crit_edge275 ]
  %463 = getelementptr inbounds [200009 x %"class.std::vector.5"], ptr @event, i64 0, i64 %indvars.iv311
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #9
  %464 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %463) #9
  store ptr %464, ptr %59, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #9
  %465 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %463) #9
  store ptr %465, ptr %60, align 8
  %466 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #9
  br i1 %466, label %.lr.ph277, label %._crit_edge278

._crit_edge278:                                   ; preds = %481, %.lr.ph281
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  %467 = call noundef zeroext i1 @_ZNKSt8multisetIxSt4lessIxESaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %58) #9
  br i1 %467, label %488, label %484

.lr.ph277:                                        ; preds = %.lr.ph281, %481
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %61) #9
  %468 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %468, i64 16, i1 false)
  %469 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %61) #9
  %470 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %61) #9
  %471 = load i32, ptr %470, align 4, !tbaa !8
  %472 = icmp eq i32 %471, 1
  br i1 %472, label %473, label %477

473:                                              ; preds = %.lr.ph277
  %474 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 8 dereferenceable(8) %469)
          to label %481 unwind label %475

475:                                              ; preds = %479, %477, %473
  %476 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  br label %549

477:                                              ; preds = %.lr.ph277
  %478 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 8 dereferenceable(8) %469)
          to label %479 unwind label %475

479:                                              ; preds = %477
  %480 = invoke ptr @_ZNSt8multisetIxSt4lessIxESaIxEE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIxE(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr %478)
          to label %481 unwind label %475

481:                                              ; preds = %479, %473
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %61) #9
  %482 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #9
  %483 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #9
  br i1 %483, label %.lr.ph277, label %._crit_edge278

484:                                              ; preds = %._crit_edge278
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %62) #9
  %485 = call ptr @_ZNKSt8multisetIxSt4lessIxESaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %58) #9
  store ptr %485, ptr %62, align 8
  %486 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIxEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %62) #9
  %487 = load i64, ptr %486, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #9
  br label %488

488:                                              ; preds = %._crit_edge278, %484
  %.sink = phi i64 [ %487, %484 ], [ 1000000000000000000, %._crit_edge278 ]
  %489 = getelementptr inbounds [200009 x i64], ptr @f, i64 0, i64 %indvars.iv311
  store i64 %.sink, ptr %489, align 8
  %indvars.iv.next312 = add nuw nsw i64 %indvars.iv311, 1
  %490 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %491 = icmp ugt i64 %490, %indvars.iv.next312
  br i1 %491, label %.lr.ph281, label %.preheader, !llvm.loop !36

.lr.ph283:                                        ; preds = %.preheader, %545
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %63) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %64) #9
  %492 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %493 unwind label %530

493:                                              ; preds = %.lr.ph283
  %494 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %492, ptr noundef nonnull align 4 dereferenceable(4) %64)
          to label %495 unwind label %530

495:                                              ; preds = %493
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #9
  %496 = load i32, ptr %63, align 4, !tbaa !8
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %497
  %499 = load i32, ptr %498, align 4, !tbaa !8
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %500
  %502 = load i64, ptr %501, align 8, !tbaa !11
  %503 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %497
  %504 = load i32, ptr %503, align 4, !tbaa !8
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %505
  %507 = load i64, ptr %506, align 8, !tbaa !11
  %508 = add nsw i64 %507, %502
  %509 = load i32, ptr %64, align 4, !tbaa !8
  %510 = sext i32 %509 to i64
  %511 = add nsw i64 %508, %510
  store i64 %511, ptr %65, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #9
  %512 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %505
  %513 = load i64, ptr %512, align 8, !tbaa !11
  %514 = getelementptr inbounds [200009 x i64], ptr @rd, i64 0, i64 %500
  %515 = load i64, ptr %514, align 8, !tbaa !11
  %516 = add i64 %513, %510
  %517 = add i64 %516, %515
  store i64 %517, ptr %66, align 8, !tbaa !11
  %518 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %66)
  %519 = load i64, ptr %518, align 8, !tbaa !11
  store i64 %519, ptr %65, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #9
  store i64 1000000000000000000, ptr %67, align 8, !tbaa !11
  %520 = load i32, ptr %63, align 4, !tbaa !8
  %521 = sext i32 %520 to i64
  %522 = getelementptr inbounds [200009 x i8], ptr @sp_edge, i64 0, i64 %521
  %523 = load i8, ptr %522, align 1, !tbaa !26, !range !32, !noundef !33
  %524 = trunc nuw i8 %523 to i1
  br i1 %524, label %525, label %532

525:                                              ; preds = %495
  %526 = getelementptr inbounds [200009 x i32], ptr @path_id, i64 0, i64 %521
  %527 = load i32, ptr %526, align 4, !tbaa !8
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds [200009 x i64], ptr @f, i64 0, i64 %528
  br label %539

530:                                              ; preds = %493, %.lr.ph283
  %531 = landingpad { ptr, i32 }
          cleanup
  br label %548

532:                                              ; preds = %495
  %533 = load i32, ptr %1, align 4, !tbaa !8
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds [200009 x i64], ptr @d, i64 0, i64 %534
  %536 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(8) %535)
  br label %539

537:                                              ; preds = %543, %539
  %538 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #9
  br label %548

539:                                              ; preds = %532, %525
  %storemerge171.in = phi ptr [ %536, %532 ], [ %529, %525 ]
  %storemerge171 = load i64, ptr %storemerge171.in, align 8, !tbaa !11
  store i64 %storemerge171, ptr %67, align 8, !tbaa !11
  %540 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %67)
  %541 = load i64, ptr %540, align 8, !tbaa !11
  store i64 %541, ptr %65, align 8, !tbaa !11
  %542 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %541)
          to label %543 unwind label %537

543:                                              ; preds = %539
  %544 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %542, i8 noundef signext 10)
          to label %545 unwind label %537

545:                                              ; preds = %543
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %63) #9
  %546 = load i32, ptr %3, align 4, !tbaa !8
  %547 = add nsw i32 %546, -1
  store i32 %547, ptr %3, align 4, !tbaa !8
  %.not170 = icmp eq i32 %546, 0
  br i1 %.not170, label %._crit_edge284, label %.lr.ph283, !llvm.loop !37

548:                                              ; preds = %537, %530
  %.pn = phi { ptr, i32 } [ %538, %537 ], [ %531, %530 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %63) #9
  br label %549

._crit_edge284:                                   ; preds = %545, %.preheader
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %58) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %58) #9
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0

549:                                              ; preds = %548, %475
  %.pn173 = phi { ptr, i32 } [ %476, %475 ], [ %.pn, %548 ]
  call void @_ZNSt8multisetIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %58) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %58) #9
  br label %550

550:                                              ; preds = %549, %460, %362, %309, %304
  %.pn178 = phi { ptr, i32 } [ %305, %304 ], [ %363, %362 ], [ %.pn176, %460 ], [ %.pn173, %549 ], [ %310, %309 ]
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #9
  br label %551

551:                                              ; preds = %550, %286, %280
  %.pn180 = phi { ptr, i32 } [ %281, %280 ], [ %.pn178, %550 ], [ %287, %286 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  br label %552

552:                                              ; preds = %238, %262, %551, %208, %181, %154, %122
  %.pn186.pn = phi { ptr, i32 } [ %.pn186, %154 ], [ %.pn184, %208 ], [ %.pn180, %551 ], [ %182, %181 ], [ %123, %122 ], [ %239, %238 ], [ %263, %262 ]
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn186.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #7

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxiEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass