; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2013-14/Dec 2013/13 Dec G1.ll (Z4initv)

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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { %"struct.std::pair.15", i32 }
%"struct.std::pair.15" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@Q = external dso_local global i32, align 4
@dist = external dso_local global [200 x [200 x i32]], align 16
@first = external dso_local global [200 x [20001 x i32]], align 16
@t = external dso_local global [200 x [20001 x i32]], align 16
@h = external dso_local global %"class.std::vector", align 8
@hub = external dso_local global %"class.std::unordered_map", align 8
@edge = external dso_local global %"class.std::vector.5", align 8
@from = external dso_local global [20001 x %"class.std::vector.10"], align 16
@to = external dso_local global [20001 x %"class.std::vector.10"], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %"struct.std::pair.15", align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca %"struct.std::pair.15", align 4
  %16 = alloca %"struct.std::pair.15", align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %21 = alloca %"struct.std::pair.15", align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %25 = alloca %"struct.std::pair.15", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %37 = alloca %"struct.std::pair.15", align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %43 = alloca %"struct.std::pair.15", align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 4 dereferenceable(4) @M)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) @K)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %83, %0
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = load i32, ptr @K, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %86

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %79, %55
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = load i32, ptr @K, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %82

61:                                               ; preds = %56
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %63
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [200 x i32], ptr %64, i64 0, i64 %66
  store i32 1000000007, ptr %67, align 4, !tbaa !5
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %71, label %78

71:                                               ; preds = %61
  %72 = load i32, ptr %1, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [200 x i32], ptr %74, i64 0, i64 %76
  store i32 0, ptr %77, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %71, %61
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %3, align 4, !tbaa !5
  br label %56, !llvm.loop !9

82:                                               ; preds = %60
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %1, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %1, align 4, !tbaa !5
  br label %50, !llvm.loop !11

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

87:                                               ; preds = %96, %86
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = load i32, ptr @M, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %99

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZNSt4pairIS_IiiEiEC2IS0_iTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS0_RKi(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @edge, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %96

96:                                               ; preds = %92
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %4, align 4, !tbaa !5
  br label %87, !llvm.loop !12

99:                                               ; preds = %91
  %100 = load i32, ptr @K, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %117, %99
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %104 = load i32, ptr @K, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %120

107:                                              ; preds = %102
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %109) #6
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %110)
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %114) #6
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %115)
  store i32 %112, ptr %116, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %107
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !5
  br label %102, !llvm.loop !13

120:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr @edge, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %121 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @edge) #6
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %123 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @edge) #6
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  br label %125

125:                                              ; preds = %176, %120
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %178

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %129, i64 12, i1 false)
  %130 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %131 = getelementptr inbounds %"struct.std::pair.15", ptr %130, i32 0, i32 0
  %132 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %131)
  %133 = icmp eq i64 %132, 0
  br i1 %133, label %134, label %144

134:                                              ; preds = %128
  %135 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %136 = getelementptr inbounds %"struct.std::pair.15", ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 4, !tbaa !16
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %140 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %141 = getelementptr inbounds %"struct.std::pair.15", ptr %140, i32 0, i32 1
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %141)
  %143 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 1
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %142, ptr noundef nonnull align 4 dereferenceable(4) %143)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %175

144:                                              ; preds = %128
  %145 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %146 = getelementptr inbounds %"struct.std::pair.15", ptr %145, i32 0, i32 1
  %147 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %146)
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %149, label %159

149:                                              ; preds = %144
  %150 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %151 = getelementptr inbounds %"struct.std::pair.15", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !19
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %155 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %156 = getelementptr inbounds %"struct.std::pair.15", ptr %155, i32 0, i32 0
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %156)
  %158 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 1
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %157, ptr noundef nonnull align 4 dereferenceable(4) %158)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %174

159:                                              ; preds = %144
  %160 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 1
  %161 = load i32, ptr %160, align 4, !tbaa !20
  %162 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %163 = getelementptr inbounds %"struct.std::pair.15", ptr %162, i32 0, i32 0
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %163)
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %166
  %168 = getelementptr inbounds %"struct.std::pair", ptr %14, i32 0, i32 0
  %169 = getelementptr inbounds %"struct.std::pair.15", ptr %168, i32 0, i32 1
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %169)
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200 x i32], ptr %167, i64 0, i64 %172
  store i32 %161, ptr %173, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %159, %149
  br label %175

175:                                              ; preds = %174, %134
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  br label %176

176:                                              ; preds = %175
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %125

178:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %243, %178
  %180 = load i32, ptr %17, align 4, !tbaa !5
  %181 = load i32, ptr @N, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  %183 = icmp slt i32 %180, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %179
  store i32 16, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %246

185:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %186 = load i32, ptr %17, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %187
  store ptr %188, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %189 = load ptr, ptr %18, align 8, !tbaa !14
  %190 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #6
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %19, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %192 = load ptr, ptr %18, align 8, !tbaa !14
  %193 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #6
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %20, i32 0, i32 0
  store ptr %193, ptr %194, align 8
  br label %195

195:                                              ; preds = %240, %185
  %196 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %196, label %198, label %197

197:                                              ; preds = %195
  store i32 19, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %242

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %199 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %199, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %200 = load i32, ptr %17, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %201
  store ptr %202, ptr %22, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %203 = load ptr, ptr %22, align 8, !tbaa !14
  %204 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #6
  %205 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %23, i32 0, i32 0
  store ptr %204, ptr %205, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %206 = load ptr, ptr %22, align 8, !tbaa !14
  %207 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #6
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %24, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  br label %209

209:                                              ; preds = %237, %198
  %210 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br i1 %210, label %212, label %211

211:                                              ; preds = %209
  store i32 21, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %239

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %213 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %213, i64 8, i1 false)
  %214 = getelementptr inbounds %"struct.std::pair.15", ptr %21, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !21
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %216
  %218 = getelementptr inbounds %"struct.std::pair.15", ptr %25, i32 0, i32 0
  %219 = load i32, ptr %218, align 4, !tbaa !21
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [200 x i32], ptr %217, i64 0, i64 %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %222 = getelementptr inbounds %"struct.std::pair.15", ptr %21, i32 0, i32 1
  %223 = load i32, ptr %222, align 4, !tbaa !22
  %224 = getelementptr inbounds %"struct.std::pair.15", ptr %25, i32 0, i32 1
  %225 = load i32, ptr %224, align 4, !tbaa !22
  %226 = add nsw i32 %223, %225
  store i32 %226, ptr %26, align 4, !tbaa !5
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %221, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = getelementptr inbounds %"struct.std::pair.15", ptr %21, i32 0, i32 0
  %230 = load i32, ptr %229, align 4, !tbaa !21
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %231
  %233 = getelementptr inbounds %"struct.std::pair.15", ptr %25, i32 0, i32 0
  %234 = load i32, ptr %233, align 4, !tbaa !21
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [200 x i32], ptr %232, i64 0, i64 %235
  store i32 %228, ptr %236, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %237

237:                                              ; preds = %212
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %209

239:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %240

240:                                              ; preds = %239
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %195

242:                                              ; preds = %197
  br label %243

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

246:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %302, %246
  %248 = load i32, ptr %27, align 4, !tbaa !5
  %249 = load i32, ptr @K, align 4, !tbaa !5
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %247
  store i32 23, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %305

252:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %298, %252
  %254 = load i32, ptr %28, align 4, !tbaa !5
  %255 = load i32, ptr @K, align 4, !tbaa !5
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %253
  store i32 26, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %301

258:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %294, %258
  %260 = load i32, ptr %29, align 4, !tbaa !5
  %261 = load i32, ptr @K, align 4, !tbaa !5
  %262 = icmp slt i32 %260, %261
  br i1 %262, label %264, label %263

263:                                              ; preds = %259
  store i32 29, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %297

264:                                              ; preds = %259
  %265 = load i32, ptr %28, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %266
  %268 = load i32, ptr %29, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [200 x i32], ptr %267, i64 0, i64 %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %271 = load i32, ptr %28, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %272
  %274 = load i32, ptr %27, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [200 x i32], ptr %273, i64 0, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load i32, ptr %27, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %279
  %281 = load i32, ptr %29, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [200 x i32], ptr %280, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = add nsw i32 %277, %284
  store i32 %285, ptr %30, align 4, !tbaa !5
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %270, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = load i32, ptr %28, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %289
  %291 = load i32, ptr %29, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [200 x i32], ptr %290, i64 0, i64 %292
  store i32 %287, ptr %293, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %294

294:                                              ; preds = %264
  %295 = load i32, ptr %29, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %29, align 4, !tbaa !5
  br label %259, !llvm.loop !24

297:                                              ; preds = %263
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %28, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %28, align 4, !tbaa !5
  br label %253, !llvm.loop !25

301:                                              ; preds = %257
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %27, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %27, align 4, !tbaa !5
  br label %247, !llvm.loop !26

305:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %306

306:                                              ; preds = %332, %305
  %307 = load i32, ptr %31, align 4, !tbaa !5
  %308 = icmp slt i32 %307, 200
  br i1 %308, label %310, label %309

309:                                              ; preds = %306
  store i32 32, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %335

310:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %328, %310
  %312 = load i32, ptr %32, align 4, !tbaa !5
  %313 = icmp slt i32 %312, 20001
  br i1 %313, label %315, label %314

314:                                              ; preds = %311
  store i32 35, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %331

315:                                              ; preds = %311
  %316 = load i32, ptr %31, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %317
  %319 = load i32, ptr %32, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [20001 x i32], ptr %318, i64 0, i64 %320
  store i32 1000000007, ptr %321, align 4, !tbaa !5
  %322 = load i32, ptr %31, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %323
  %325 = load i32, ptr %32, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [20001 x i32], ptr %324, i64 0, i64 %326
  store i32 1000000007, ptr %327, align 4, !tbaa !5
  br label %328

328:                                              ; preds = %315
  %329 = load i32, ptr %32, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %32, align 4, !tbaa !5
  br label %311, !llvm.loop !27

331:                                              ; preds = %314
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %31, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %31, align 4, !tbaa !5
  br label %306, !llvm.loop !28

335:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 1, ptr %33, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %447, %335
  %337 = load i32, ptr %33, align 4, !tbaa !5
  %338 = load i32, ptr @N, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  %340 = icmp slt i32 %337, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %336
  store i32 38, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %450

342:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %343 = load i32, ptr %33, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %344
  store ptr %345, ptr %34, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %346 = load ptr, ptr %34, align 8, !tbaa !14
  %347 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %346) #6
  %348 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %35, i32 0, i32 0
  store ptr %347, ptr %348, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %349 = load ptr, ptr %34, align 8, !tbaa !14
  %350 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %349) #6
  %351 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %36, i32 0, i32 0
  store ptr %350, ptr %351, align 8
  br label %352

352:                                              ; preds = %392, %342
  %353 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %353, label %355, label %354

354:                                              ; preds = %352
  store i32 41, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %394

355:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %356 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %356, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %357

357:                                              ; preds = %388, %355
  %358 = load i32, ptr %38, align 4, !tbaa !5
  %359 = load i32, ptr @K, align 4, !tbaa !5
  %360 = icmp slt i32 %358, %359
  br i1 %360, label %362, label %361

361:                                              ; preds = %357
  store i32 43, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %391

362:                                              ; preds = %357
  %363 = load i32, ptr %38, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %364
  %366 = load i32, ptr %33, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [20001 x i32], ptr %365, i64 0, i64 %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %369 = getelementptr inbounds %"struct.std::pair.15", ptr %37, i32 0, i32 1
  %370 = load i32, ptr %369, align 4, !tbaa !22
  %371 = getelementptr inbounds %"struct.std::pair.15", ptr %37, i32 0, i32 0
  %372 = load i32, ptr %371, align 4, !tbaa !21
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %373
  %375 = load i32, ptr %38, align 4, !tbaa !5
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [200 x i32], ptr %374, i64 0, i64 %376
  %378 = load i32, ptr %377, align 4, !tbaa !5
  %379 = add nsw i32 %370, %378
  store i32 %379, ptr %39, align 4, !tbaa !5
  %380 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %368, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %381 = load i32, ptr %380, align 4, !tbaa !5
  %382 = load i32, ptr %38, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %383
  %385 = load i32, ptr %33, align 4, !tbaa !5
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [20001 x i32], ptr %384, i64 0, i64 %386
  store i32 %381, ptr %387, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %388

388:                                              ; preds = %362
  %389 = load i32, ptr %38, align 4, !tbaa !5
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %38, align 4, !tbaa !5
  br label %357, !llvm.loop !29

391:                                              ; preds = %361
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %392

392:                                              ; preds = %391
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %352

394:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %395 = load i32, ptr %33, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %396
  store ptr %397, ptr %40, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %398 = load ptr, ptr %40, align 8, !tbaa !14
  %399 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #6
  %400 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %41, i32 0, i32 0
  store ptr %399, ptr %400, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %401 = load ptr, ptr %40, align 8, !tbaa !14
  %402 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %401) #6
  %403 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %42, i32 0, i32 0
  store ptr %402, ptr %403, align 8
  br label %404

404:                                              ; preds = %444, %394
  %405 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br i1 %405, label %407, label %406

406:                                              ; preds = %404
  store i32 46, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %446

407:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %408 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %408, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %409

409:                                              ; preds = %440, %407
  %410 = load i32, ptr %44, align 4, !tbaa !5
  %411 = load i32, ptr @K, align 4, !tbaa !5
  %412 = icmp slt i32 %410, %411
  br i1 %412, label %414, label %413

413:                                              ; preds = %409
  store i32 48, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %443

414:                                              ; preds = %409
  %415 = load i32, ptr %44, align 4, !tbaa !5
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %416
  %418 = load i32, ptr %33, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [20001 x i32], ptr %417, i64 0, i64 %419
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %421 = load i32, ptr %44, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %422
  %424 = getelementptr inbounds %"struct.std::pair.15", ptr %43, i32 0, i32 0
  %425 = load i32, ptr %424, align 4, !tbaa !21
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [200 x i32], ptr %423, i64 0, i64 %426
  %428 = load i32, ptr %427, align 4, !tbaa !5
  %429 = getelementptr inbounds %"struct.std::pair.15", ptr %43, i32 0, i32 1
  %430 = load i32, ptr %429, align 4, !tbaa !22
  %431 = add nsw i32 %428, %430
  store i32 %431, ptr %45, align 4, !tbaa !5
  %432 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %420, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %433 = load i32, ptr %432, align 4, !tbaa !5
  %434 = load i32, ptr %44, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %435
  %437 = load i32, ptr %33, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [20001 x i32], ptr %436, i64 0, i64 %438
  store i32 %433, ptr %439, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %440

440:                                              ; preds = %414
  %441 = load i32, ptr %44, align 4, !tbaa !5
  %442 = add nsw i32 %441, 1
  store i32 %442, ptr %44, align 4, !tbaa !5
  br label %409, !llvm.loop !30

443:                                              ; preds = %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %444

444:                                              ; preds = %443
  %445 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  br label %404

446:                                              ; preds = %406
  br label %447

447:                                              ; preds = %446
  %448 = load i32, ptr %33, align 4, !tbaa !5
  %449 = add nsw i32 %448, 1
  store i32 %449, ptr %33, align 4, !tbaa !5
  br label %336, !llvm.loop !31

450:                                              ; preds = %341
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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: readwrite) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt4pairIS_IiiEiE", !18, i64 0, !6, i64 8}
!18 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!19 = !{!17, !6, i64 4}
!20 = !{!17, !6, i64 8}
!21 = !{!18, !6, i64 0}
!22 = !{!18, !6, i64 4}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { %"struct.std::pair.15", i32 }
%"struct.std::pair.15" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@Q = external dso_local global i32, align 4
@dist = external dso_local global [200 x [200 x i32]], align 16
@first = external dso_local global [200 x [20001 x i32]], align 16
@t = external dso_local global [200 x [20001 x i32]], align 16
@h = external dso_local global %"class.std::vector", align 8
@hub = external dso_local global %"class.std::unordered_map", align 8
@edge = external dso_local global %"class.std::vector.5", align 8
@from = external dso_local global [20001 x %"class.std::vector.10"], align 16
@to = external dso_local global [20001 x %"class.std::vector.10"], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 4
  %5 = alloca %"struct.std::pair.15", align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %"struct.std::pair.15", align 4
  %10 = alloca %"struct.std::pair.15", align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %22 = alloca i32, align 4
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) @M)
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) @K)
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  %27 = load i32, ptr @K, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.preheader94.us.preheader, label %.preheader93

.preheader94.us.preheader:                        ; preds = %0
  %wide.trip.count147 = zext nneg i32 %27 to i64
  %min.iters.check = icmp ult i32 %27, 8
  %n.vec = and i64 %wide.trip.count147, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count147
  br label %.preheader94.us

.preheader94.us:                                  ; preds = %.preheader94.us.preheader, %._crit_edge.us
  %indvars.iv144 = phi i64 [ 0, %.preheader94.us.preheader ], [ %indvars.iv.next145, %._crit_edge.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader94.us
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %indvars.iv144, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i64> %vec.ind, <i64 4, i64 4, i64 4, i64 4>
  %29 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv144, i64 %index
  %30 = icmp eq <4 x i64> %broadcast.splat, %vec.ind
  %31 = icmp eq <4 x i64> %broadcast.splat, %step.add
  %32 = select <4 x i1> %30, <4 x i32> zeroinitializer, <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  %33 = select <4 x i1> %31, <4 x i32> zeroinitializer, <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  %34 = getelementptr inbounds i8, ptr %29, i64 16
  store <4 x i32> %32, ptr %29, align 16, !tbaa !5
  store <4 x i32> %33, ptr %34, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader94.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader94.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %36 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv144, i64 %indvars.iv
  %37 = icmp eq i64 %indvars.iv144, %indvars.iv
  %spec.select.us = select i1 %37, i32 0, i32 1000000007
  store i32 %spec.select.us, ptr %36, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count147
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !13

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count147
  br i1 %exitcond148.not, label %.preheader93, label %.preheader94.us, !llvm.loop !14

.preheader93:                                     ; preds = %._crit_edge.us, %0
  %38 = load i32, ptr @M, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @K, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader93
  %40 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %27, %.preheader93 ]
  %41 = sext i32 %40 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %41)
  %42 = load i32, ptr @K, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph100, label %._crit_edge101

.lr.ph:                                           ; preds = %.preheader93, %.lr.ph
  %.07897 = phi i32 [ %47, %.lr.ph ], [ 0, %.preheader93 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZNSt4pairIS_IiiEiEC2IS0_iTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS4_S5_EEEbE4typeELb1EEERKS0_RKi(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @edge, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %47 = add nuw nsw i32 %.07897, 1
  %48 = load i32, ptr @M, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !15

._crit_edge101:                                   ; preds = %.lr.ph100, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %50 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @edge) #6
  store ptr %50, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %51 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @edge) #6
  store ptr %51, ptr %7, align 8
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %52, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %._crit_edge101
  %53 = getelementptr inbounds i8, ptr %8, i64 4
  %54 = getelementptr inbounds i8, ptr %8, i64 8
  br label %64

.lr.ph100:                                        ; preds = %._crit_edge, %.lr.ph100
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph100 ], [ 0, %._crit_edge ]
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %indvars.iv149) #6
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %indvars.iv149) #6
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %59 = trunc nuw nsw i64 %indvars.iv149 to i32
  store i32 %59, ptr %58, align 4, !tbaa !5
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %60 = load i32, ptr @K, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next150, %61
  br i1 %62, label %.lr.ph100, label %._crit_edge101, !llvm.loop !16

._crit_edge104:                                   ; preds = %90, %._crit_edge101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %63 = load i32, ptr @N, align 4, !tbaa !5
  %.not111 = icmp slt i32 %63, 1
  br i1 %.not111, label %.preheader92, label %.lr.ph114

64:                                               ; preds = %.lr.ph103, %90
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %65, i64 12, i1 false)
  %66 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %73

68:                                               ; preds = %64
  %69 = load i32, ptr %8, align 4, !tbaa !17
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %53)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %54)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %90

73:                                               ; preds = %64
  %74 = call noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load i32, ptr %53, align 4, !tbaa !20
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %54)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %90

81:                                               ; preds = %73
  %82 = load i32, ptr %54, align 4, !tbaa !21
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) @hub, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %85, i64 %88
  store i32 %82, ptr %89, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %76, %81, %68
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %92, label %64, label %._crit_edge104

.preheader92:                                     ; preds = %._crit_edge110, %._crit_edge104
  %93 = load i32, ptr @K, align 4, !tbaa !5
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.preheader91, label %vector.ph189.preheader

.lr.ph114:                                        ; preds = %._crit_edge104, %._crit_edge110
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %._crit_edge110 ], [ 1, %._crit_edge104 ]
  %95 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %indvars.iv152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %96 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  store ptr %96, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %97 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  store ptr %97, ptr %12, align 8
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %98, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %.lr.ph114
  %99 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %indvars.iv152
  br label %102

._crit_edge110:                                   ; preds = %._crit_edge107, %.lr.ph114
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %100 = load i32, ptr @N, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %.not.not = icmp slt i64 %indvars.iv152, %101
  br i1 %.not.not, label %.lr.ph114, label %.preheader92, !llvm.loop !22

102:                                              ; preds = %.lr.ph109, %._crit_edge107
  %103 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %.sroa.049.0.copyload = load i32, ptr %103, align 4
  %.sroa.551.0..sroa_idx = getelementptr inbounds i8, ptr %103, i64 4
  %.sroa.551.0.copyload = load i32, ptr %.sroa.551.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %104 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #6
  store ptr %104, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %105 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #6
  store ptr %105, ptr %14, align 8
  %106 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %106, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %102
  %107 = sext i32 %.sroa.049.0.copyload to i64
  br label %110

._crit_edge107:                                   ; preds = %110, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %109 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %109, label %102, label %._crit_edge110

110:                                              ; preds = %.lr.ph106, %110
  %111 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %.sroa.045.0.copyload = load i32, ptr %111, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %111, i64 4
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4
  %112 = sext i32 %.sroa.045.0.copyload to i64
  %113 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %107, i64 %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %114 = add nsw i32 %.sroa.5.0.copyload, %.sroa.551.0.copyload
  store i32 %114, ptr %15, align 4, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %113, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %113, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %118, label %110, label %._crit_edge107

.preheader91:                                     ; preds = %.preheader92, %._crit_edge119
  %119 = phi i32 [ %125, %._crit_edge119 ], [ %93, %.preheader92 ]
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %._crit_edge119 ], [ 0, %.preheader92 ]
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %.preheader90, label %._crit_edge119

.preheader90:                                     ; preds = %.preheader91, %._crit_edge117
  %121 = phi i32 [ %128, %._crit_edge117 ], [ %119, %.preheader91 ]
  %122 = phi i32 [ %129, %._crit_edge117 ], [ %119, %.preheader91 ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %._crit_edge117 ], [ 0, %.preheader91 ]
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %.lr.ph116, label %.preheader90.._crit_edge117_crit_edge

.preheader90.._crit_edge117_crit_edge:            ; preds = %.preheader90
  %.pre181 = sext i32 %122 to i64
  br label %._crit_edge117

.lr.ph116:                                        ; preds = %.preheader90
  %124 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv158, i64 %indvars.iv161
  br label %131

._crit_edge119:                                   ; preds = %._crit_edge117, %.preheader91
  %125 = phi i32 [ %119, %.preheader91 ], [ %128, %._crit_edge117 ]
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next162, %126
  br i1 %127, label %.preheader91, label %vector.ph189.preheader, !llvm.loop !23

vector.ph189.preheader:                           ; preds = %._crit_edge119, %.preheader92
  br label %vector.ph189

._crit_edge117:                                   ; preds = %131, %.preheader90.._crit_edge117_crit_edge
  %.pre-phi = phi i64 [ %.pre181, %.preheader90.._crit_edge117_crit_edge ], [ %140, %131 ]
  %128 = phi i32 [ %121, %.preheader90.._crit_edge117_crit_edge ], [ %139, %131 ]
  %129 = phi i32 [ %122, %.preheader90.._crit_edge117_crit_edge ], [ %139, %131 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %130 = icmp slt i64 %indvars.iv.next159, %.pre-phi
  br i1 %130, label %.preheader90, label %._crit_edge119, !llvm.loop !25

131:                                              ; preds = %.lr.ph116, %131
  %indvars.iv155 = phi i64 [ 0, %.lr.ph116 ], [ %indvars.iv.next156, %131 ]
  %132 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv158, i64 %indvars.iv155
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %133 = load i32, ptr %124, align 4, !tbaa !5
  %134 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv161, i64 %indvars.iv155
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = add nsw i32 %135, %133
  store i32 %136, ptr %16, align 4, !tbaa !5
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %132, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %138 = load i32, ptr %137, align 4, !tbaa !5
  store i32 %138, ptr %132, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %139 = load i32, ptr @K, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next156, %140
  br i1 %141, label %131, label %._crit_edge117, !llvm.loop !26

vector.ph189:                                     ; preds = %vector.ph189.preheader, %scalar.ph188
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %scalar.ph188 ], [ 0, %vector.ph189.preheader ]
  br label %vector.body191

vector.body191:                                   ; preds = %vector.body191, %vector.ph189
  %index192 = phi i64 [ 0, %vector.ph189 ], [ %index.next193.1, %vector.body191 ]
  %142 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %indvars.iv168, i64 %index192
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %142, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %143, align 4, !tbaa !5
  %144 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %indvars.iv168, i64 %index192
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %144, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %145, align 4, !tbaa !5
  %index.next193 = or disjoint i64 %index192, 8
  %146 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %indvars.iv168, i64 %index.next193
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %146, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %147, align 4, !tbaa !5
  %148 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %indvars.iv168, i64 %index.next193
  %149 = getelementptr inbounds i8, ptr %148, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %148, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %149, align 4, !tbaa !5
  %index.next193.1 = add nuw nsw i64 %index192, 16
  %150 = icmp eq i64 %index.next193.1, 20000
  br i1 %150, label %scalar.ph188, label %vector.body191, !llvm.loop !27

.preheader:                                       ; preds = %scalar.ph188
  %151 = load i32, ptr @N, align 4, !tbaa !5
  %.not87137 = icmp slt i32 %151, 1
  br i1 %.not87137, label %._crit_edge140, label %.lr.ph139

scalar.ph188:                                     ; preds = %vector.body191
  %152 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %indvars.iv168, i64 20000
  store i32 1000000007, ptr %152, align 4, !tbaa !5
  %153 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %indvars.iv168, i64 20000
  store i32 1000000007, ptr %153, align 4, !tbaa !5
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next169, 200
  br i1 %exitcond171.not, label %.preheader, label %vector.ph189, !llvm.loop !28

._crit_edge140:                                   ; preds = %._crit_edge136, %.preheader
  ret void

.lr.ph139:                                        ; preds = %.preheader, %._crit_edge136
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %._crit_edge136 ], [ 1, %.preheader ]
  %154 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @from, i64 0, i64 %indvars.iv178
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %155 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #6
  store ptr %155, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %156 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #6
  store ptr %156, ptr %18, align 8
  %157 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %157, label %.lr.ph128, label %._crit_edge129

._crit_edge129:                                   ; preds = %._crit_edge126, %.lr.ph139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %158 = getelementptr inbounds [20001 x %"class.std::vector.10"], ptr @to, i64 0, i64 %indvars.iv178
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %159 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #6
  store ptr %159, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %160 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #6
  store ptr %160, ptr %21, align 8
  %161 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_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 %161, label %.lr.ph135, label %._crit_edge136

.lr.ph128:                                        ; preds = %.lr.ph139, %._crit_edge126
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %.sroa.412.0..sroa_idx = getelementptr inbounds i8, ptr %162, i64 4
  %.sroa.412.0.copyload = load i32, ptr %.sroa.412.0..sroa_idx, align 4
  %163 = load i32, ptr @K, align 4, !tbaa !5
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %.lr.ph128
  %.sroa.011.0.copyload = load i32, ptr %162, align 4
  %165 = sext i32 %.sroa.011.0.copyload to i64
  br label %168

._crit_edge126:                                   ; preds = %168, %.lr.ph128
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %167, label %.lr.ph128, label %._crit_edge129

168:                                              ; preds = %.lr.ph125, %168
  %indvars.iv172 = phi i64 [ 0, %.lr.ph125 ], [ %indvars.iv.next173, %168 ]
  %169 = getelementptr inbounds [200 x [20001 x i32]], ptr @first, i64 0, i64 %indvars.iv172, i64 %indvars.iv178
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %170 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %165, i64 %indvars.iv172
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = add nsw i32 %171, %.sroa.412.0.copyload
  store i32 %172, ptr %19, align 4, !tbaa !5
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %169, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %174 = load i32, ptr %173, align 4, !tbaa !5
  store i32 %174, ptr %169, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %175 = load i32, ptr @K, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = icmp slt i64 %indvars.iv.next173, %176
  br i1 %177, label %168, label %._crit_edge126, !llvm.loop !29

._crit_edge136:                                   ; preds = %._crit_edge133, %._crit_edge129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %178 = load i32, ptr @N, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %.not87.not = icmp slt i64 %indvars.iv178, %179
  br i1 %.not87.not, label %.lr.ph139, label %._crit_edge140, !llvm.loop !30

.lr.ph135:                                        ; preds = %._crit_edge129, %._crit_edge133
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %180, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4
  %181 = load i32, ptr @K, align 4, !tbaa !5
  %182 = icmp sgt i32 %181, 0
  br i1 %182, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %.lr.ph135
  %.sroa.0.0.copyload = load i32, ptr %180, align 4
  %183 = sext i32 %.sroa.0.0.copyload to i64
  br label %186

._crit_edge133:                                   ; preds = %186, %.lr.ph135
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %185 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_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 %185, label %.lr.ph135, label %._crit_edge136

186:                                              ; preds = %.lr.ph132, %186
  %indvars.iv175 = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next176, %186 ]
  %187 = getelementptr inbounds [200 x [20001 x i32]], ptr @t, i64 0, i64 %indvars.iv175, i64 %indvars.iv178
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  %188 = getelementptr inbounds [200 x [200 x i32]], ptr @dist, i64 0, i64 %indvars.iv175, i64 %183
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = add nsw i32 %189, %.sroa.4.0.copyload
  store i32 %190, ptr %22, align 4, !tbaa !5
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %187, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %192 = load i32, ptr %191, align 4, !tbaa !5
  store i32 %192, ptr %187, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %193 = load i32, ptr @K, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = icmp slt i64 %indvars.iv.next176, %194
  br i1 %195, label %186, label %._crit_edge133, !llvm.loop !31
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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: readwrite) }
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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSSt4pairIS_IiiEiE", !19, i64 0, !6, i64 8}
!19 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!20 = !{!18, !6, i64 4}
!21 = !{!18, !6, i64 8}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10, !24}
!24 = !{!"llvm.loop.unswitch.partial.disable"}
!25 = distinct !{!25, !10, !24}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10, !11, !12}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass