; LLVM IR from ShahjalalShohag/code-library :: Graph Theory/Eppsteins Algorithm.ll (Z8Eppsteiniiii)

; 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::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }
%"class.std::priority_queue" = type <{ %"class.std::vector.15", [8 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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 }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::array" = type { [3 x i32] }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.27" = type { i8 }
%struct.heap = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%class.anon = type { i8 }
%"class.std::priority_queue.31" = type <{ %"class.std::vector.32", [8 x i8] }>
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.38", %"struct.std::_Head_base.39" }
%"struct.std::_Tuple_impl.38" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.39" = type { i64 }
%"struct.heap<long long>::node" = type { [2 x ptr], i32, i64, i32, i32 }

@g = external dso_local global %"class.std::vector", align 8
@rg = external dso_local global %"class.std::vector", align 8
@_ZL3INF = external hidden constant i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8Eppsteiniiii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca %"class.std::allocator.2", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.5", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::allocator.7", align 1
  %21 = alloca %"class.std::vector.10", align 8
  %22 = alloca %"class.std::allocator.12", align 1
  %23 = alloca %"class.std::priority_queue", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"struct.std::array", align 4
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::vector.25", align 8
  %37 = alloca %"class.std::allocator.27", align 1
  %38 = alloca i32, align 4
  %39 = alloca %struct.heap, align 8
  %40 = alloca %"class.std::queue", align 8
  %41 = alloca i32, align 4
  %42 = alloca %struct.heap, align 8
  %43 = alloca %struct.heap, align 8
  %44 = alloca ptr, align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"struct.std::array", align 4
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca %struct.heap, align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %54 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %55 = alloca i32, align 4
  %56 = alloca %class.anon, align 1
  %57 = alloca %"class.std::priority_queue.31", align 8
  %58 = alloca %"class.std::vector.32", align 8
  %59 = alloca %struct.heap, align 8
  %60 = alloca %struct.heap, align 8
  %61 = alloca i1, align 1
  %62 = alloca %"class.std::tuple", align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca i32, align 4
  %66 = alloca i64, align 8
  %67 = alloca i64, align 8
  %68 = alloca i64, align 8
  %69 = alloca i64, align 8
  store ptr %0, ptr %6, align 8
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %71, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %72 unwind label %110

72:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 -1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %74, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %75 unwind label %114

75:                                               ; preds = %72
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 -1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %77, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %78 unwind label %118

78:                                               ; preds = %75
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %80, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %81 unwind label %122

81:                                               ; preds = %78
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %23)
          to label %82 unwind label %126

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE7emplaceIJiRiEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %83 unwind label %130

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %85) #6
  store i64 0, ptr %86, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %199, %83
  %88 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %23)
          to label %89 unwind label %134

89:                                               ; preds = %87
  %90 = xor i1 %88, true
  br i1 %90, label %91, label %202

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %92 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %23)
          to label %93 unwind label %138

93:                                               ; preds = %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %92, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %25) #6
  store ptr %94, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %25) #6
  store ptr %95, ptr %27, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %23)
          to label %96 unwind label %142

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %97 = load ptr, ptr %27, align 8, !tbaa !11
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt5arrayIiLm3EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %99) #6
  store ptr %100, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %101 = load ptr, ptr %28, align 8, !tbaa !11
  %102 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #6
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %104 = load ptr, ptr %28, align 8, !tbaa !11
  %105 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #6
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  br label %107

107:                                              ; preds = %197, %96
  %108 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %108, label %146, label %109

109:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %199

110:                                              ; preds = %5
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %13, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %588

114:                                              ; preds = %72
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %13, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %587

118:                                              ; preds = %75
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %13, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %586

122:                                              ; preds = %78
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %585

126:                                              ; preds = %81
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %13, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %14, align 4
  br label %584

130:                                              ; preds = %82
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %583

134:                                              ; preds = %87
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %14, align 4
  br label %583

138:                                              ; preds = %91
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %13, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %14, align 4
  br label %201

142:                                              ; preds = %93
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %13, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %14, align 4
  br label %200

146:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  %147 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %147, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %31) #6
  store ptr %148, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %31) #6
  store ptr %149, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %31) #6
  store ptr %150, ptr %34, align 8, !tbaa !11
  %151 = load ptr, ptr %32, align 8, !tbaa !11
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %153) #6
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = load ptr, ptr %26, align 8, !tbaa !11
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = load ptr, ptr %33, align 8, !tbaa !11
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = add nsw i64 %157, %160
  %162 = icmp sgt i64 %155, %161
  br i1 %162, label %163, label %196

163:                                              ; preds = %146
  %164 = load ptr, ptr %26, align 8, !tbaa !11
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = load ptr, ptr %33, align 8, !tbaa !11
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = add nsw i64 %165, %168
  %170 = load ptr, ptr %32, align 8, !tbaa !11
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %172) #6
  store i64 %169, ptr %173, align 8, !tbaa !9
  %174 = load ptr, ptr %27, align 8, !tbaa !11
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load ptr, ptr %32, align 8, !tbaa !11
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %178) #6
  store i32 %175, ptr %179, align 4, !tbaa !5
  %180 = load ptr, ptr %34, align 8, !tbaa !11
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load ptr, ptr %32, align 8, !tbaa !11
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %184) #6
  store i32 %181, ptr %185, align 4, !tbaa !5
  %186 = load ptr, ptr %32, align 8, !tbaa !11
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %188) #6
  %190 = load ptr, ptr %32, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE7emplaceIJRxRiEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %23, ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull align 4 dereferenceable(4) %190)
          to label %191 unwind label %192

191:                                              ; preds = %163
  br label %196

192:                                              ; preds = %163
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %13, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %200

196:                                              ; preds = %191, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  br label %197

197:                                              ; preds = %196
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %107

199:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %87, !llvm.loop !15

200:                                              ; preds = %192, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %201

201:                                              ; preds = %200, %138
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %583

202:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %227, %202
  %204 = load i32, ptr %35, align 4, !tbaa !5
  %205 = load i32, ptr %7, align 4, !tbaa !5
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %230

208:                                              ; preds = %203
  %209 = load i32, ptr %35, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %210) #6
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = icmp ne i32 %212, -1
  br i1 %213, label %214, label %226

214:                                              ; preds = %208
  %215 = load i32, ptr %35, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %216) #6
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %219) #6
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %221 unwind label %222

221:                                              ; preds = %214
  br label %226

222:                                              ; preds = %214
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %13, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %583

226:                                              ; preds = %221, %208
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %35, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %35, align 4, !tbaa !5
  br label %203, !llvm.loop !17

230:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #6
  %231 = load i32, ptr %7, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaI4heapIxEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  invoke void @_ZNSt6vectorI4heapIxESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %232, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %233 unwind label %239

233:                                              ; preds = %230
  call void @_ZNSt15__new_allocatorI4heapIxEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %248, %233
  %235 = load i32, ptr %38, align 4, !tbaa !5
  %236 = load i32, ptr %7, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %243, label %238

238:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %255

239:                                              ; preds = %230
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %13, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %14, align 4
  call void @_ZNSt15__new_allocatorI4heapIxEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  br label %582

243:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  invoke void @_ZN4heapIxEC2EPNS0_4nodeE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef null)
          to label %244 unwind label %251

244:                                              ; preds = %243
  %245 = load i32, ptr %38, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %246) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %247, ptr align 8 %39, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %248

248:                                              ; preds = %244
  %249 = load i32, ptr %38, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %38, align 4, !tbaa !5
  br label %234, !llvm.loop !19

251:                                              ; preds = %243
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %13, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %581

255:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 80, ptr %40) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %256 unwind label %291

256:                                              ; preds = %255
  %257 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE7emplaceIJRiEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %40, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %258 unwind label %295

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %390, %258
  %260 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %261 unwind label %295

261:                                              ; preds = %259
  %262 = xor i1 %260, true
  br i1 %262, label %263, label %392

263:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %264 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %265 unwind label %299

265:                                              ; preds = %263
  %266 = load i32, ptr %264, align 4, !tbaa !5
  store i32 %266, ptr %41, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %267 unwind label %299

267:                                              ; preds = %265
  %268 = load i32, ptr %41, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %269) #6
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = icmp ne i32 %271, -1
  br i1 %272, label %273, label %307

273:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %274 = load i32, ptr %41, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %275) #6
  %277 = load i32, ptr %41, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %278) #6
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %281) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %282, i64 8, i1 false), !tbaa.struct !18
  %283 = getelementptr inbounds %struct.heap, ptr %43, i32 0, i32 0
  %284 = load ptr, ptr %283, align 8
  %285 = invoke ptr @_ZN4heapIxE4meldES0_(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr %284)
          to label %286 unwind label %303

286:                                              ; preds = %273
  %287 = getelementptr inbounds %struct.heap, ptr %42, i32 0, i32 0
  store ptr %285, ptr %287, align 8
  %288 = load i32, ptr %41, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %289) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %290, ptr align 8 %42, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %307

291:                                              ; preds = %255
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %13, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %14, align 4
  br label %580

295:                                              ; preds = %259, %256
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %13, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %14, align 4
  br label %579

299:                                              ; preds = %265, %263
  %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
  br label %391

303:                                              ; preds = %273
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %13, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %391

307:                                              ; preds = %286, %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %308 = load i32, ptr %41, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt5arrayIiLm3EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @rg, i64 noundef %309) #6
  store ptr %310, ptr %44, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %311 = load ptr, ptr %44, align 8, !tbaa !11
  %312 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %311) #6
  %313 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %312, ptr %313, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %314 = load ptr, ptr %44, align 8, !tbaa !11
  %315 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %314) #6
  %316 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %315, ptr %316, align 8
  br label %317

317:                                              ; preds = %364, %307
  %318 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #6
  br i1 %318, label %320, label %319

319:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %366

320:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #6
  %321 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %321, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %322 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %47) #6
  store ptr %322, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %323 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %47) #6
  store ptr %323, ptr %49, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %47) #6
  store ptr %324, ptr %50, align 8, !tbaa !11
  %325 = load ptr, ptr %50, align 8, !tbaa !11
  %326 = load i32, ptr %325, align 4, !tbaa !5
  %327 = load i32, ptr %41, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %328) #6
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = icmp ne i32 %326, %330
  br i1 %331, label %332, label %363

332:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %333 = load i32, ptr %41, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %334) #6
  %336 = load ptr, ptr %49, align 8, !tbaa !11
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = load i32, ptr %41, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %340) #6
  %342 = load i64, ptr %341, align 8, !tbaa !9
  %343 = sub nsw i64 %338, %342
  %344 = load ptr, ptr %48, align 8, !tbaa !11
  %345 = load i32, ptr %344, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %346) #6
  %348 = load i64, ptr %347, align 8, !tbaa !9
  %349 = add nsw i64 %343, %348
  %350 = load i32, ptr %41, align 4, !tbaa !5
  %351 = load ptr, ptr %48, align 8, !tbaa !11
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = invoke ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8) %335, i64 noundef %349, i32 noundef %350, i32 noundef %352)
          to label %354 unwind label %359

354:                                              ; preds = %332
  %355 = getelementptr inbounds %struct.heap, ptr %51, i32 0, i32 0
  store ptr %353, ptr %355, align 8
  %356 = load i32, ptr %41, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %357) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %358, ptr align 8 %51, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %363

359:                                              ; preds = %332
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %13, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %391

363:                                              ; preds = %354, %320
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #6
  br label %364

364:                                              ; preds = %363
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  br label %317

366:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %367 = load i32, ptr %41, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %368) #6
  store ptr %369, ptr %52, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %370 = load ptr, ptr %52, align 8, !tbaa !11
  %371 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %370) #6
  %372 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %53, i32 0, i32 0
  store ptr %371, ptr %372, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  %373 = load ptr, ptr %52, align 8, !tbaa !11
  %374 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %373) #6
  %375 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %54, i32 0, i32 0
  store ptr %374, ptr %375, align 8
  br label %376

376:                                              ; preds = %384, %366
  %377 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  br i1 %377, label %379, label %378

378:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  br label %390

379:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  %380 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  %381 = load i32, ptr %380, align 4, !tbaa !5
  store i32 %381, ptr %55, align 4, !tbaa !5
  %382 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE7emplaceIJRiEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %40, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %383 unwind label %386

383:                                              ; preds = %379
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  br label %384

384:                                              ; preds = %383
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  br label %376

386:                                              ; preds = %379
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %13, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  br label %391

390:                                              ; preds = %378
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %259, !llvm.loop !20

391:                                              ; preds = %386, %359, %303, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %579

392:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #6
  call void @llvm.memset.p0.i64(ptr align 8 %58, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0EC2ERKS9_OS8_"(ptr noundef nonnull align 8 dereferenceable(25) %57, ptr noundef nonnull align 1 dereferenceable(1) %56, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %393 unwind label %422

393:                                              ; preds = %392
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  invoke void @_ZN4heapIxEC2EPNS0_4nodeE(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef null)
          to label %394 unwind label %426

394:                                              ; preds = %393
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  %395 = load i32, ptr %8, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %396) #6
  %398 = load i64, ptr %397, align 8, !tbaa !9
  %399 = load i32, ptr %8, align 4, !tbaa !5
  %400 = invoke ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8) %59, i64 noundef %398, i32 noundef -1, i32 noundef %399)
          to label %401 unwind label %430

401:                                              ; preds = %394
  %402 = getelementptr inbounds %struct.heap, ptr %60, i32 0, i32 0
  store ptr %400, ptr %402, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 8 %60, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  %403 = load i32, ptr %8, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %404) #6
  %406 = getelementptr inbounds %struct.heap, ptr %59, i32 0, i32 0
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJRxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %57, ptr noundef nonnull align 8 dereferenceable(8) %405, ptr noundef nonnull align 8 dereferenceable(8) %406)
          to label %407 unwind label %426

407:                                              ; preds = %401
  store i1 false, ptr %61, align 1
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %408

408:                                              ; preds = %557, %407
  %409 = invoke noundef zeroext i1 @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(25) %57)
          to label %410 unwind label %434

410:                                              ; preds = %408
  %411 = xor i1 %409, true
  br i1 %411, label %412, label %560

412:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  %413 = invoke noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3topEv"(ptr noundef nonnull align 8 dereferenceable(25) %57)
          to label %414 unwind label %438

414:                                              ; preds = %412
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %413, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #6
  %415 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxPN4heapIxE4nodeEEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %62) #6
  store ptr %415, ptr %63, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #6
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxPN4heapIxE4nodeEEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %62) #6
  store ptr %416, ptr %64, align 8, !tbaa !11
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3popEv"(ptr noundef nonnull align 8 dereferenceable(25) %57)
          to label %417 unwind label %442

417:                                              ; preds = %414
  %418 = load ptr, ptr %63, align 8, !tbaa !11
  %419 = load i64, ptr %418, align 8, !tbaa !9
  %420 = icmp sge i64 %419, 1000000000000000000
  br i1 %420, label %421, label %446

421:                                              ; preds = %417
  store i32 19, ptr %65, align 4
  br label %555

422:                                              ; preds = %392
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %13, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %14, align 4
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #6
  br label %578

426:                                              ; preds = %401, %393
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %13, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %14, align 4
  br label %577

430:                                              ; preds = %394
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %13, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  br label %577

434:                                              ; preds = %408
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %13, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %14, align 4
  br label %576

438:                                              ; preds = %412
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %13, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %14, align 4
  br label %559

442:                                              ; preds = %446, %414
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %13, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %14, align 4
  br label %558

446:                                              ; preds = %417
  %447 = load ptr, ptr %63, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %447)
          to label %448 unwind label %442

448:                                              ; preds = %446
  %449 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %450 = load i32, ptr %10, align 4, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = icmp eq i64 %449, %451
  br i1 %452, label %453, label %454

453:                                              ; preds = %448
  store i32 19, ptr %65, align 4
  br label %555

454:                                              ; preds = %448
  %455 = load ptr, ptr %64, align 8, !tbaa !11
  %456 = load ptr, ptr %455, align 8, !tbaa !11
  %457 = getelementptr inbounds %"struct.heap<long long>::node", ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds [2 x ptr], ptr %457, i64 0, i64 0
  %459 = load ptr, ptr %458, align 8, !tbaa !11
  %460 = icmp ne ptr %459, null
  br i1 %460, label %461, label %486

461:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #6
  %462 = load ptr, ptr %63, align 8, !tbaa !11
  %463 = load i64, ptr %462, align 8, !tbaa !9
  %464 = load ptr, ptr %64, align 8, !tbaa !11
  %465 = load ptr, ptr %464, align 8, !tbaa !11
  %466 = getelementptr inbounds %"struct.heap<long long>::node", ptr %465, i32 0, i32 0
  %467 = getelementptr inbounds [2 x ptr], ptr %466, i64 0, i64 0
  %468 = load ptr, ptr %467, align 8, !tbaa !11
  %469 = getelementptr inbounds %"struct.heap<long long>::node", ptr %468, i32 0, i32 2
  %470 = load i64, ptr %469, align 8, !tbaa !21
  %471 = add nsw i64 %463, %470
  %472 = load ptr, ptr %64, align 8, !tbaa !11
  %473 = load ptr, ptr %472, align 8, !tbaa !11
  %474 = getelementptr inbounds %"struct.heap<long long>::node", ptr %473, i32 0, i32 2
  %475 = load i64, ptr %474, align 8, !tbaa !21
  %476 = sub nsw i64 %471, %475
  store i64 %476, ptr %66, align 8, !tbaa !9
  %477 = load ptr, ptr %64, align 8, !tbaa !11
  %478 = load ptr, ptr %477, align 8, !tbaa !11
  %479 = getelementptr inbounds %"struct.heap<long long>::node", ptr %478, i32 0, i32 0
  %480 = getelementptr inbounds [2 x ptr], ptr %479, i64 0, i64 0
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %57, ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %480)
          to label %481 unwind label %482

481:                                              ; preds = %461
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  br label %486

482:                                              ; preds = %461
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %13, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  br label %558

486:                                              ; preds = %481, %454
  %487 = load ptr, ptr %64, align 8, !tbaa !11
  %488 = load ptr, ptr %487, align 8, !tbaa !11
  %489 = getelementptr inbounds %"struct.heap<long long>::node", ptr %488, i32 0, i32 0
  %490 = getelementptr inbounds [2 x ptr], ptr %489, i64 0, i64 1
  %491 = load ptr, ptr %490, align 8, !tbaa !11
  %492 = icmp ne ptr %491, null
  br i1 %492, label %493, label %518

493:                                              ; preds = %486
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #6
  %494 = load ptr, ptr %63, align 8, !tbaa !11
  %495 = load i64, ptr %494, align 8, !tbaa !9
  %496 = load ptr, ptr %64, align 8, !tbaa !11
  %497 = load ptr, ptr %496, align 8, !tbaa !11
  %498 = getelementptr inbounds %"struct.heap<long long>::node", ptr %497, i32 0, i32 0
  %499 = getelementptr inbounds [2 x ptr], ptr %498, i64 0, i64 1
  %500 = load ptr, ptr %499, align 8, !tbaa !11
  %501 = getelementptr inbounds %"struct.heap<long long>::node", ptr %500, i32 0, i32 2
  %502 = load i64, ptr %501, align 8, !tbaa !21
  %503 = add nsw i64 %495, %502
  %504 = load ptr, ptr %64, align 8, !tbaa !11
  %505 = load ptr, ptr %504, align 8, !tbaa !11
  %506 = getelementptr inbounds %"struct.heap<long long>::node", ptr %505, i32 0, i32 2
  %507 = load i64, ptr %506, align 8, !tbaa !21
  %508 = sub nsw i64 %503, %507
  store i64 %508, ptr %67, align 8, !tbaa !9
  %509 = load ptr, ptr %64, align 8, !tbaa !11
  %510 = load ptr, ptr %509, align 8, !tbaa !11
  %511 = getelementptr inbounds %"struct.heap<long long>::node", ptr %510, i32 0, i32 0
  %512 = getelementptr inbounds [2 x ptr], ptr %511, i64 0, i64 1
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %57, ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(8) %512)
          to label %513 unwind label %514

513:                                              ; preds = %493
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  br label %518

514:                                              ; preds = %493
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %13, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  br label %558

518:                                              ; preds = %513, %486
  %519 = load ptr, ptr %64, align 8, !tbaa !11
  %520 = load ptr, ptr %519, align 8, !tbaa !11
  %521 = getelementptr inbounds %"struct.heap<long long>::node", ptr %520, i32 0, i32 4
  %522 = load i32, ptr %521, align 4, !tbaa !23
  %523 = sext i32 %522 to i64
  %524 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %523) #6
  %525 = getelementptr inbounds %struct.heap, ptr %524, i32 0, i32 0
  %526 = load ptr, ptr %525, align 8, !tbaa !24
  %527 = icmp ne ptr %526, null
  br i1 %527, label %528, label %554

528:                                              ; preds = %518
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #6
  %529 = load ptr, ptr %63, align 8, !tbaa !11
  %530 = load i64, ptr %529, align 8, !tbaa !9
  %531 = load ptr, ptr %64, align 8, !tbaa !11
  %532 = load ptr, ptr %531, align 8, !tbaa !11
  %533 = getelementptr inbounds %"struct.heap<long long>::node", ptr %532, i32 0, i32 4
  %534 = load i32, ptr %533, align 4, !tbaa !23
  %535 = sext i32 %534 to i64
  %536 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %535) #6
  %537 = getelementptr inbounds %struct.heap, ptr %536, i32 0, i32 0
  %538 = load ptr, ptr %537, align 8, !tbaa !24
  %539 = getelementptr inbounds %"struct.heap<long long>::node", ptr %538, i32 0, i32 2
  %540 = load i64, ptr %539, align 8, !tbaa !21
  %541 = add nsw i64 %530, %540
  store i64 %541, ptr %68, align 8, !tbaa !9
  %542 = load ptr, ptr %64, align 8, !tbaa !11
  %543 = load ptr, ptr %542, align 8, !tbaa !11
  %544 = getelementptr inbounds %"struct.heap<long long>::node", ptr %543, i32 0, i32 4
  %545 = load i32, ptr %544, align 4, !tbaa !23
  %546 = sext i32 %545 to i64
  %547 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %546) #6
  %548 = getelementptr inbounds %struct.heap, ptr %547, i32 0, i32 0
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %57, ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(8) %548)
          to label %549 unwind label %550

549:                                              ; preds = %528
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %554

550:                                              ; preds = %528
  %551 = landingpad { ptr, i32 }
          cleanup
  %552 = extractvalue { ptr, i32 } %551, 0
  store ptr %552, ptr %13, align 8
  %553 = extractvalue { ptr, i32 } %551, 1
  store i32 %553, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %558

554:                                              ; preds = %549, %518
  store i32 0, ptr %65, align 4
  br label %555

555:                                              ; preds = %554, %453, %421
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  %556 = load i32, ptr %65, align 4
  switch i32 %556, label %594 [
    i32 0, label %557
    i32 19, label %560
  ]

557:                                              ; preds = %555
  br label %408, !llvm.loop !26

558:                                              ; preds = %550, %514, %482, %442
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  br label %559

559:                                              ; preds = %558, %438
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  br label %576

560:                                              ; preds = %555, %410
  br label %561

561:                                              ; preds = %567, %560
  %562 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %563 = load i32, ptr %10, align 4, !tbaa !5
  %564 = sext i32 %563 to i64
  %565 = icmp ult i64 %562, %564
  br i1 %565, label %566, label %572

566:                                              ; preds = %561
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #6
  store i64 -1, ptr %69, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %567 unwind label %568

567:                                              ; preds = %566
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  br label %561, !llvm.loop !27

568:                                              ; preds = %566
  %569 = landingpad { ptr, i32 }
          cleanup
  %570 = extractvalue { ptr, i32 } %569, 0
  store ptr %570, ptr %13, align 8
  %571 = extractvalue { ptr, i32 } %569, 1
  store i32 %571, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  br label %576

572:                                              ; preds = %561
  store i1 true, ptr %61, align 1
  store i32 1, ptr %65, align 4
  %573 = load i1, ptr %61, align 1
  br i1 %573, label %575, label %574

574:                                              ; preds = %572
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %575

575:                                              ; preds = %574, %572
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %57) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %40) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %40) #6
  call void @_ZNSt6vectorI4heapIxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  ret void

576:                                              ; preds = %568, %559, %434
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %577

577:                                              ; preds = %576, %430, %426
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %57) #6
  br label %578

578:                                              ; preds = %577, %422
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  br label %579

579:                                              ; preds = %578, %391, %295
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %40) #6
  br label %580

580:                                              ; preds = %579, %291
  call void @llvm.lifetime.end.p0(i64 80, ptr %40) #6
  br label %581

581:                                              ; preds = %580, %251
  call void @_ZNSt6vectorI4heapIxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  br label %582

582:                                              ; preds = %581, %239
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  br label %583

583:                                              ; preds = %582, %222, %201, %134, %130
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %23) #6
  br label %584

584:                                              ; preds = %583, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %585

585:                                              ; preds = %584, %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %586

586:                                              ; preds = %585, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %587

587:                                              ; preds = %586, %114
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %588

588:                                              ; preds = %587, %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %589

589:                                              ; preds = %588
  %590 = load ptr, ptr %13, align 8
  %591 = load i32, ptr %14, align 4
  %592 = insertvalue { ptr, i32 } poison, ptr %590, 0
  %593 = insertvalue { ptr, i32 } %592, i32 %591, 1
  resume { ptr, i32 } %593

594:                                              ; preds = %555
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) #2 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)) #2 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) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i32 noundef, i32 noundef) #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0EC2ERKS9_OS8_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJRxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(25)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3topEv"(ptr noundef nonnull align 8 dereferenceable(25)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3popEv"(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<std::array<int, 3>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::array<int, 3>>, std::allocator<std::vector<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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }
%"class.std::priority_queue" = type <{ %"class.std::vector.15", [8 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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 }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::array" = type { [3 x i32] }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<heap<long long>, std::allocator<heap<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.27" = type { i8 }
%struct.heap = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%class.anon = type { i8 }
%"class.std::priority_queue.31" = type <{ %"class.std::vector.32", [8 x i8] }>
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, heap<long long>::node *>, std::allocator<std::tuple<long long, heap<long long>::node *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.38", %"struct.std::_Head_base.39" }
%"struct.std::_Tuple_impl.38" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.39" = type { i64 }

@g = external dso_local global %"class.std::vector", align 8
@rg = external dso_local global %"class.std::vector", align 8
@_ZL3INF = external hidden constant i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8Eppsteiniiii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca %"class.std::vector.5", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::allocator.7", align 1
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::allocator.7", align 1
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca %"class.std::allocator.12", align 1
  %17 = alloca %"class.std::priority_queue", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"struct.std::array", align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector.25", align 8
  %25 = alloca %"class.std::allocator.27", align 1
  %26 = alloca %struct.heap, align 8
  %27 = alloca %"class.std::queue", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"struct.std::array", align 4
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %33 = alloca i32, align 4
  %34 = alloca %class.anon, align 1
  %35 = alloca %"class.std::priority_queue.31", align 8
  %36 = alloca %"class.std::vector.32", align 8
  %37 = alloca %struct.heap, align 8
  %38 = alloca %"class.std::tuple", align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  store i32 %3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %43 = sext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %43, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %44 unwind label %64

44:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %45 unwind label %66

45:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %46 unwind label %68

46:                                               ; preds = %45
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %47 unwind label %70

47:                                               ; preds = %46
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE7emplaceIJiRiEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %48 unwind label %72

48:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %50) #6
  store i64 0, ptr %51, align 8, !tbaa !9
  %52 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %17)
  br i1 %52, label %._crit_edge118, label %.lr.ph117

.lr.ph117:                                        ; preds = %48, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %53 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %53, i64 16, i1 false)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %19) #6
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1ExiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 8 dereferenceable(12) %19) #6
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %17)
          to label %56 unwind label %74

56:                                               ; preds = %.lr.ph117
  %57 = load i32, ptr %55, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt5arrayIiLm3EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %58) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %60 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  store ptr %60, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %61 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  store ptr %61, ptr %21, align 8
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %62, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %106, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  %63 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %17)
  br i1 %63, label %._crit_edge118, label %.lr.ph117, !llvm.loop !11

64:                                               ; preds = %5
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %303

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %302

68:                                               ; preds = %45
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %301

70:                                               ; preds = %46
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  br label %300

72:                                               ; preds = %47
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  br label %299

74:                                               ; preds = %.lr.ph117
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %109

.lr.ph:                                           ; preds = %56, %106
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #6
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %76, i64 12, i1 false), !tbaa.struct !13
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %22) #6
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %22) #6
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %22) #6
  %80 = load i32, ptr %77, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %81) #6
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = load i64, ptr %54, align 8, !tbaa !9
  %85 = load i32, ptr %78, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = add nsw i64 %84, %86
  %88 = icmp sgt i64 %83, %87
  br i1 %88, label %89, label %106

89:                                               ; preds = %.lr.ph
  %90 = load i32, ptr %77, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %91) #6
  store i64 %87, ptr %92, align 8, !tbaa !9
  %93 = load i32, ptr %55, align 4, !tbaa !5
  %94 = load i32, ptr %77, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %95) #6
  store i32 %93, ptr %96, align 4, !tbaa !5
  %97 = load i32, ptr %79, align 4, !tbaa !5
  %98 = load i32, ptr %77, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %99) #6
  store i32 %97, ptr %100, align 4, !tbaa !5
  %101 = load i32, ptr %77, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %102) #6
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE7emplaceIJRxRiEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %17, ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 4 dereferenceable(4) %77)
          to label %106 unwind label %104

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %109

106:                                              ; preds = %89, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %108 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %108, label %.lr.ph, label %._crit_edge

109:                                              ; preds = %104, %74
  %.pn105 = phi { ptr, i32 } [ %105, %104 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %299

._crit_edge118:                                   ; preds = %._crit_edge, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  %110 = icmp sgt i32 %1, 0
  br i1 %110, label %.lr.ph121, label %._crit_edge122

._crit_edge122:                                   ; preds = %123, %._crit_edge118
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #6
  call void @_ZNSaI4heapIxEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt6vectorI4heapIxESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %127 unwind label %128

.lr.ph121:                                        ; preds = %._crit_edge118, %123
  %storemerge119 = phi i32 [ %125, %123 ], [ 0, %._crit_edge118 ]
  %111 = sext i32 %storemerge119 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %111) #6
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %.not104 = icmp eq i32 %113, -1
  br i1 %.not104, label %123, label %114

114:                                              ; preds = %.lr.ph121
  %115 = load i32, ptr %23, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %116) #6
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %119) #6
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %123 unwind label %121

121:                                              ; preds = %114
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  br label %299

123:                                              ; preds = %.lr.ph121, %114
  %124 = load i32, ptr %23, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %23, align 4, !tbaa !5
  %126 = icmp slt i32 %125, %1
  br i1 %126, label %.lr.ph121, label %._crit_edge122, !llvm.loop !15

127:                                              ; preds = %._crit_edge122
  call void @_ZNSt15__new_allocatorI4heapIxEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #6
  br i1 %110, label %.lr.ph125.preheader, label %._crit_edge126

.lr.ph125.preheader:                              ; preds = %127
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph125

._crit_edge126:                                   ; preds = %.lr.ph125, %127
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %27) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
          to label %132 unwind label %149

128:                                              ; preds = %._crit_edge122
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4heapIxEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #6
  br label %298

.lr.ph125:                                        ; preds = %.lr.ph125.preheader, %.lr.ph125
  %indvars.iv = phi i64 [ 0, %.lr.ph125.preheader ], [ %indvars.iv.next, %.lr.ph125 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  call void @_ZN4heapIxEC2EPNS0_4nodeE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef null)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv) #6
  %131 = load i64, ptr %26, align 8, !tbaa !16
  store i64 %131, ptr %130, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge126, label %.lr.ph125, !llvm.loop !18

132:                                              ; preds = %._crit_edge126
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE7emplaceIJRiEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %27, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader unwind label %151

.preheader:                                       ; preds = %132
  %134 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  br i1 %134, label %._crit_edge134, label %.lr.ph133

.lr.ph133:                                        ; preds = %.preheader, %._crit_edge132
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  %136 = load i32, ptr %135, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %137) #6
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %.not97 = icmp eq i32 %139, -1
  br i1 %.not97, label %155, label %140

140:                                              ; preds = %.lr.ph133
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %137) #6
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %137) #6
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %144) #6
  %.sroa.026.0.copyload = load ptr, ptr %145, align 8, !tbaa !16
  %146 = invoke ptr @_ZN4heapIxE4meldES0_(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr %.sroa.026.0.copyload)
          to label %147 unwind label %153

147:                                              ; preds = %140
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %137) #6
  store ptr %146, ptr %148, align 8, !tbaa !16
  br label %155

149:                                              ; preds = %._crit_edge126
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %297

151:                                              ; preds = %132
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %296

153:                                              ; preds = %140
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %296

155:                                              ; preds = %147, %.lr.ph133
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt5arrayIiLm3EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @rg, i64 noundef %137) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #6
  %157 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  store ptr %157, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #6
  %158 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  store ptr %158, ptr %29, align 8
  %159 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br i1 %159, label %.lr.ph128, label %._crit_edge129

._crit_edge129:                                   ; preds = %189, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %137) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #6
  %161 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  store ptr %161, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #6
  %162 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  store ptr %162, ptr %32, align 8
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %163, label %.lr.ph131, label %._crit_edge132

.lr.ph128:                                        ; preds = %155, %189
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #6
  %164 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %164, i64 12, i1 false), !tbaa.struct !13
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %30) #6
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %30) #6
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EiLm3EEOT0_OSt5arrayIS0_XT1_EE(ptr noundef nonnull align 4 dereferenceable(12) %30) #6
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %137) #6
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %.not98 = icmp eq i32 %168, %170
  br i1 %.not98, label %189, label %171

171:                                              ; preds = %.lr.ph128
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %137) #6
  %173 = load i32, ptr %166, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %137) #6
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = sub i64 %174, %176
  %178 = load i32, ptr %165, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %179) #6
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = add nsw i64 %177, %181
  %183 = load i32, ptr %165, align 4, !tbaa !5
  %184 = invoke ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8) %172, i64 noundef %182, i32 noundef %136, i32 noundef %183)
          to label %185 unwind label %187

185:                                              ; preds = %171
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %137) #6
  store ptr %184, ptr %186, align 8, !tbaa !16
  br label %189

187:                                              ; preds = %171
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  br label %296

189:                                              ; preds = %185, %.lr.ph128
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #6
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  %191 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br i1 %191, label %.lr.ph128, label %._crit_edge129

._crit_edge132:                                   ; preds = %196, %._crit_edge129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  %192 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  br i1 %192, label %._crit_edge134, label %.lr.ph133, !llvm.loop !19

.lr.ph131:                                        ; preds = %._crit_edge129, %196
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #6
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  %194 = load i32, ptr %193, align 4, !tbaa !5
  store i32 %194, ptr %33, align 4, !tbaa !5
  %195 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE7emplaceIJRiEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %27, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %196 unwind label %199

196:                                              ; preds = %.lr.ph131
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  %198 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %198, label %.lr.ph131, label %._crit_edge132

199:                                              ; preds = %.lr.ph131
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  br label %296

._crit_edge134:                                   ; preds = %._crit_edge132, %.preheader
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %36) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %36, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0EC2ERKS9_OS8_"(ptr noundef nonnull align 8 dereferenceable(25) %35, ptr noundef nonnull align 1 dereferenceable(1) %34, ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %201 unwind label %216

201:                                              ; preds = %._crit_edge134
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #6
  call void @_ZN4heapIxEC2EPNS0_4nodeE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef null)
  %202 = sext i32 %2 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %202) #6
  %204 = load i64, ptr %203, align 8, !tbaa !9
  %205 = invoke ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %204, i32 noundef -1, i32 noundef %2)
          to label %206 unwind label %220

206:                                              ; preds = %201
  store ptr %205, ptr %37, align 8, !tbaa !16
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %202) #6
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJRxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %35, ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %208 unwind label %218

208:                                              ; preds = %206
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %209 = call noundef zeroext i1 @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(25) %35)
  %.pre142 = sext i32 %4 to i64
  br i1 %209, label %.loopexit, label %.lr.ph136

.lr.ph136:                                        ; preds = %208, %283
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #6
  %210 = call noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3topEv"(ptr noundef nonnull align 8 dereferenceable(25) %35)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %210, i64 16, i1 false)
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxPN4heapIxE4nodeEEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJxPN4heapIxE4nodeEEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3popEv"(ptr noundef nonnull align 8 dereferenceable(25) %35)
          to label %213 unwind label %222

213:                                              ; preds = %.lr.ph136
  %214 = load i64, ptr %211, align 8, !tbaa !9
  %215 = icmp sgt i64 %214, 999999999999999999
  br i1 %215, label %.thread, label %224

216:                                              ; preds = %._crit_edge134
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5tupleIJxPN4heapIxE4nodeEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #6
  br label %295

218:                                              ; preds = %206
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %294

220:                                              ; preds = %201
  %221 = landingpad { ptr, i32 }
          cleanup
  br label %294

222:                                              ; preds = %224, %.lr.ph136
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %285

224:                                              ; preds = %213
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %211)
          to label %225 unwind label %222

225:                                              ; preds = %224
  %226 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %227 = icmp eq i64 %226, %.pre142
  br i1 %227, label %.thread, label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr %212, align 8, !tbaa !16
  %230 = load ptr, ptr %229, align 8, !tbaa !16
  %.not = icmp eq ptr %230, null
  br i1 %.not, label %242, label %231

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #6
  %232 = load i64, ptr %211, align 8, !tbaa !9
  %233 = getelementptr inbounds i8, ptr %230, i64 24
  %234 = load i64, ptr %233, align 8, !tbaa !20
  %235 = add nsw i64 %234, %232
  %236 = getelementptr inbounds i8, ptr %229, i64 24
  %237 = load i64, ptr %236, align 8, !tbaa !20
  %238 = sub i64 %235, %237
  store i64 %238, ptr %39, align 8, !tbaa !9
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %35, ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %229)
          to label %239 unwind label %240

239:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #6
  %.pre = load ptr, ptr %212, align 8, !tbaa !16
  br label %242

240:                                              ; preds = %231
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #6
  br label %285

242:                                              ; preds = %239, %228
  %243 = phi ptr [ %.pre, %239 ], [ %229, %228 ]
  %244 = getelementptr inbounds i8, ptr %243, i64 8
  %245 = load ptr, ptr %244, align 8, !tbaa !16
  %.not90 = icmp eq ptr %245, null
  br i1 %.not90, label %257, label %246

246:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #6
  %247 = load i64, ptr %211, align 8, !tbaa !9
  %248 = getelementptr inbounds i8, ptr %245, i64 24
  %249 = load i64, ptr %248, align 8, !tbaa !20
  %250 = add nsw i64 %249, %247
  %251 = getelementptr inbounds i8, ptr %243, i64 24
  %252 = load i64, ptr %251, align 8, !tbaa !20
  %253 = sub i64 %250, %252
  store i64 %253, ptr %40, align 8, !tbaa !9
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %35, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %244)
          to label %254 unwind label %255

254:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #6
  %.pre141 = load ptr, ptr %212, align 8, !tbaa !16
  br label %257

255:                                              ; preds = %246
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #6
  br label %285

257:                                              ; preds = %254, %242
  %258 = phi ptr [ %.pre141, %254 ], [ %243, %242 ]
  %259 = getelementptr inbounds i8, ptr %258, i64 36
  %260 = load i32, ptr %259, align 4, !tbaa !22
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %261) #6
  %263 = load ptr, ptr %262, align 8, !tbaa !23
  %.not91 = icmp eq ptr %263, null
  br i1 %.not91, label %283, label %264

264:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #6
  %265 = load i64, ptr %211, align 8, !tbaa !9
  %266 = load ptr, ptr %212, align 8, !tbaa !16
  %267 = getelementptr inbounds i8, ptr %266, i64 36
  %268 = load i32, ptr %267, align 4, !tbaa !22
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %269) #6
  %271 = load ptr, ptr %270, align 8, !tbaa !23
  %272 = getelementptr inbounds i8, ptr %271, i64 24
  %273 = load i64, ptr %272, align 8, !tbaa !20
  %274 = add nsw i64 %273, %265
  store i64 %274, ptr %41, align 8, !tbaa !9
  %275 = load ptr, ptr %212, align 8, !tbaa !16
  %276 = getelementptr inbounds i8, ptr %275, i64 36
  %277 = load i32, ptr %276, align 4, !tbaa !22
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4heapIxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %278) #6
  invoke void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25) %35, ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %279)
          to label %280 unwind label %281

280:                                              ; preds = %264
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #6
  br label %283

281:                                              ; preds = %264
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #6
  br label %285

.thread:                                          ; preds = %213, %225
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  br label %.loopexit

283:                                              ; preds = %257, %280
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  %284 = call noundef zeroext i1 @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(25) %35)
  br i1 %284, label %.loopexit, label %.lr.ph136

285:                                              ; preds = %281, %255, %240, %222
  %.pn = phi { ptr, i32 } [ %282, %281 ], [ %256, %255 ], [ %241, %240 ], [ %223, %222 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  br label %293

.loopexit:                                        ; preds = %283, %208, %.thread
  %286 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %287 = icmp ult i64 %286, %.pre142
  br i1 %287, label %.lr.ph138, label %._crit_edge139

.lr.ph138:                                        ; preds = %.loopexit, %288
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #6
  store i64 -1, ptr %42, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %288 unwind label %291

288:                                              ; preds = %.lr.ph138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  %289 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %290 = icmp ult i64 %289, %.pre142
  br i1 %290, label %.lr.ph138, label %._crit_edge139, !llvm.loop !25

291:                                              ; preds = %.lr.ph138
  %292 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  br label %293

._crit_edge139:                                   ; preds = %288, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #6
  call void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %27) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %27) #6
  call void @_ZNSt6vectorI4heapIxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #6
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  ret void

293:                                              ; preds = %291, %285
  %.pn93 = phi { ptr, i32 } [ %292, %291 ], [ %.pn, %285 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %294

294:                                              ; preds = %293, %220, %218
  %.pn93.pn = phi { ptr, i32 } [ %.pn93, %293 ], [ %219, %218 ], [ %221, %220 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #6
  call void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %35) #6
  br label %295

295:                                              ; preds = %294, %216
  %.pn93.pn.pn = phi { ptr, i32 } [ %.pn93.pn, %294 ], [ %217, %216 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  br label %296

296:                                              ; preds = %153, %187, %199, %295, %151
  %.pn99.pn = phi { ptr, i32 } [ %.pn93.pn.pn, %295 ], [ %152, %151 ], [ %188, %187 ], [ %200, %199 ], [ %154, %153 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %27) #6
  br label %297

297:                                              ; preds = %296, %149
  %.pn99.pn.pn = phi { ptr, i32 } [ %.pn99.pn, %296 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %27) #6
  call void @_ZNSt6vectorI4heapIxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %298

298:                                              ; preds = %297, %128
  %.pn99.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn, %297 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #6
  br label %299

299:                                              ; preds = %298, %121, %109, %72
  %.pn105.pn = phi { ptr, i32 } [ %.pn105, %109 ], [ %122, %121 ], [ %.pn99.pn.pn.pn, %298 ], [ %73, %72 ]
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %300

300:                                              ; preds = %299, %70
  %.pn105.pn.pn = phi { ptr, i32 } [ %.pn105.pn, %299 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %301

301:                                              ; preds = %300, %68
  %.pn105.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn, %300 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %302

302:                                              ; preds = %301, %66
  %.pn105.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn, %301 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %303

303:                                              ; preds = %302, %64
  %.pn105.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn.pn, %302 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn105.pn.pn.pn.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE7emplaceIJRxRiEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) 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_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN4heapIxE6insertExii(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0EC2ERKS9_OS8_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJRxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3topEv"(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E3popEv"(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0E7emplaceIJxRS4_EEEvDpOT_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZNSt14priority_queueISt5tupleIJxPN4heapIxE4nodeEEESt6vectorIS5_SaIS5_EEZ8EppsteiniiiiE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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


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