; LLVM IR from tangjz/acm-icpc :: codeforces/complete (567E)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%struct.Hash = type { i64, i64 }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"struct.std::pair.0" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@eu = external dso_local global [100010 x i32], align 16
@ev = external dso_local global [100010 x i32], align 16
@ew = external dso_local global [100010 x i32], align 16
@dis1 = external dso_local global [100010 x i64], align 16
@dis2 = external dso_local global [100010 x i64], align 16
@e1 = external dso_local global [100010 x %"class.std::vector"], align 16
@e2 = external dso_local global [100010 x %"class.std::vector"], align 16
@vis = external dso_local global [100010 x i8], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@path1 = external dso_local global [100010 x %struct.Hash], align 16
@path2 = external dso_local global [100010 x %struct.Hash], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %"struct.std::pair.0", align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair.0", align 4
  %7 = alloca %struct.Hash, align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca { i64, i32 }, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca { i64, i32 }, align 8
  %18 = alloca %struct.Hash, align 8
  %19 = alloca %struct.Hash, align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca { i64, i32 }, align 8
  %29 = alloca %struct.Hash, align 8
  %30 = alloca i32, align 4
  %31 = alloca %struct.Hash, align 8
  store i32 0, ptr %1, align 4
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @s, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %75, %0
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %78

38:                                               ; preds = %33
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr @eu, i64 %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr @ev, i64 %43
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr @ew, i64 %46
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %41, ptr noundef %44, ptr noundef %47)
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e1, i64 0, i64 %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %56
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %59
  %61 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %60)
  store i64 %61, ptr %4, align 4
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e2, i64 0, i64 %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %69
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %72
  %74 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %73)
  store i64 %74, ptr %6, align 4
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  br label %75

75:                                               ; preds = %38
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %2, align 4, !tbaa !5
  br label %33, !llvm.loop !9

78:                                               ; preds = %37
  call void @llvm.memset.p0.i64(ptr align 16 @dis1, i8 63, i64 800080, i1 false)
  %79 = load i32, ptr @s, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %80
  store i64 0, ptr %81, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %82 = getelementptr inbounds %struct.Hash, ptr %7, i32 0, i32 0
  store i64 1, ptr %82, align 8, !tbaa !13
  %83 = getelementptr inbounds %struct.Hash, ptr %7, i32 0, i32 1
  store i64 1, ptr %83, align 8, !tbaa !15
  %84 = load i32, ptr @s, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %86, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %87 = load i32, ptr @s, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %88
  %90 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(4) @s)
  store { i64, i32 } %90, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %9, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %91

91:                                               ; preds = %202, %200, %78
  %92 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %93 = xor i1 %92, true
  br i1 %93, label %94, label %203

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %95 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %96 = getelementptr inbounds %"struct.std::pair", ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !17
  store i32 %97, ptr %10, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !19, !range !21, !noundef !22
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %104

103:                                              ; preds = %94
  store i32 5, ptr %11, align 4
  br label %200, !llvm.loop !23

104:                                              ; preds = %94
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %106
  store i8 1, ptr %107, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e1, i64 0, i64 %109
  %111 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #8
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  br label %113

113:                                              ; preds = %197, %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e1, i64 0, i64 %115
  %117 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #8
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br i1 %119, label %121, label %120

120:                                              ; preds = %113
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %199

121:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %122 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %123 = getelementptr inbounds %"struct.std::pair", ptr %122, i32 0, i32 1
  store ptr %123, ptr %14, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %124 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %125 = getelementptr inbounds %"struct.std::pair", ptr %124, i32 0, i32 0
  store ptr %125, ptr %15, align 8, !tbaa !24
  %126 = load ptr, ptr %14, align 8, !tbaa !24
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !11
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr %15, align 8, !tbaa !24
  %136 = load i64, ptr %135, align 8, !tbaa !11
  %137 = add nsw i64 %134, %136
  %138 = icmp sgt i64 %130, %137
  br i1 %138, label %139, label %164

139:                                              ; preds = %121
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %15, align 8, !tbaa !24
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = add nsw i64 %143, %145
  %147 = load ptr, ptr %14, align 8, !tbaa !24
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %149
  store i64 %146, ptr %150, align 8, !tbaa !11
  %151 = load i32, ptr %10, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %152
  %154 = load ptr, ptr %14, align 8, !tbaa !24
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %157, ptr align 16 %153, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %158 = load ptr, ptr %14, align 8, !tbaa !24
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %160
  %162 = load ptr, ptr %14, align 8, !tbaa !24
  %163 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull align 4 dereferenceable(4) %162)
  store { i64, i32 } %163, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %17, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %196

164:                                              ; preds = %121
  %165 = load ptr, ptr %14, align 8, !tbaa !24
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !11
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = load ptr, ptr %15, align 8, !tbaa !24
  %175 = load i64, ptr %174, align 8, !tbaa !11
  %176 = add nsw i64 %173, %175
  %177 = icmp eq i64 %169, %176
  br i1 %177, label %178, label %195

178:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %179 = load i32, ptr %10, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %180
  %182 = load ptr, ptr %14, align 8, !tbaa !24
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %184
  %186 = call { i64, i64 } @_ZNK4HashplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %181, ptr noundef nonnull align 8 dereferenceable(16) %185)
  %187 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %188 = extractvalue { i64, i64 } %186, 0
  store i64 %188, ptr %187, align 8
  %189 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %190 = extractvalue { i64, i64 } %186, 1
  store i64 %190, ptr %189, align 8
  %191 = load ptr, ptr %14, align 8, !tbaa !24
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %193
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %194, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %195

195:                                              ; preds = %178, %164
  br label %196

196:                                              ; preds = %195, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %197

197:                                              ; preds = %196
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %113, !llvm.loop !26

199:                                              ; preds = %120
  store i32 0, ptr %11, align 4
  br label %200

200:                                              ; preds = %199, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %201 = load i32, ptr %11, align 4
  switch i32 %201, label %452 [
    i32 0, label %202
    i32 5, label %91
  ]

202:                                              ; preds = %200
  br label %91, !llvm.loop !23

203:                                              ; preds = %91
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 100010, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dis2, i8 63, i64 800080, i1 false)
  %204 = load i32, ptr @t, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %205
  store i64 0, ptr %206, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %207 = getelementptr inbounds %struct.Hash, ptr %19, i32 0, i32 0
  store i64 1, ptr %207, align 8, !tbaa !13
  %208 = getelementptr inbounds %struct.Hash, ptr %19, i32 0, i32 1
  store i64 1, ptr %208, align 8, !tbaa !15
  %209 = load i32, ptr @t, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %211, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %212 = load i32, ptr @t, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %213
  %215 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef nonnull align 4 dereferenceable(4) @t)
  store { i64, i32 } %215, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %21, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %216

216:                                              ; preds = %327, %325, %203
  %217 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %218 = xor i1 %217, true
  br i1 %218, label %219, label %328

219:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %220 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %221 = getelementptr inbounds %"struct.std::pair", ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 8, !tbaa !17
  store i32 %222, ptr %22, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %223 = load i32, ptr %22, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %224
  %226 = load i8, ptr %225, align 1, !tbaa !19, !range !21, !noundef !22
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %229

228:                                              ; preds = %219
  store i32 10, ptr %11, align 4
  br label %325, !llvm.loop !27

229:                                              ; preds = %219
  %230 = load i32, ptr %22, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %231
  store i8 1, ptr %232, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %233 = load i32, ptr %22, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e2, i64 0, i64 %234
  %236 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %235) #8
  %237 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %236, ptr %237, align 8
  br label %238

238:                                              ; preds = %322, %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e2, i64 0, i64 %240
  %242 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #8
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  %244 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br i1 %244, label %246, label %245

245:                                              ; preds = %238
  store i32 12, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %324

246:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %247 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %248 = getelementptr inbounds %"struct.std::pair", ptr %247, i32 0, i32 1
  store ptr %248, ptr %25, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %249 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %250 = getelementptr inbounds %"struct.std::pair", ptr %249, i32 0, i32 0
  store ptr %250, ptr %26, align 8, !tbaa !24
  %251 = load ptr, ptr %25, align 8, !tbaa !24
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %253
  %255 = load i64, ptr %254, align 8, !tbaa !11
  %256 = load i32, ptr %22, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %257
  %259 = load i64, ptr %258, align 8, !tbaa !11
  %260 = load ptr, ptr %26, align 8, !tbaa !24
  %261 = load i64, ptr %260, align 8, !tbaa !11
  %262 = add nsw i64 %259, %261
  %263 = icmp sgt i64 %255, %262
  br i1 %263, label %264, label %289

264:                                              ; preds = %246
  %265 = load i32, ptr %22, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %266
  %268 = load i64, ptr %267, align 8, !tbaa !11
  %269 = load ptr, ptr %26, align 8, !tbaa !24
  %270 = load i64, ptr %269, align 8, !tbaa !11
  %271 = add nsw i64 %268, %270
  %272 = load ptr, ptr %25, align 8, !tbaa !24
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %274
  store i64 %271, ptr %275, align 8, !tbaa !11
  %276 = load i32, ptr %22, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %277
  %279 = load ptr, ptr %25, align 8, !tbaa !24
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %281
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %282, ptr align 16 %278, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %283 = load ptr, ptr %25, align 8, !tbaa !24
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %285
  %287 = load ptr, ptr %25, align 8, !tbaa !24
  %288 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %286, ptr noundef nonnull align 4 dereferenceable(4) %287)
  store { i64, i32 } %288, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %28, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br label %321

289:                                              ; preds = %246
  %290 = load ptr, ptr %25, align 8, !tbaa !24
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %292
  %294 = load i64, ptr %293, align 8, !tbaa !11
  %295 = load i32, ptr %22, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %296
  %298 = load i64, ptr %297, align 8, !tbaa !11
  %299 = load ptr, ptr %26, align 8, !tbaa !24
  %300 = load i64, ptr %299, align 8, !tbaa !11
  %301 = add nsw i64 %298, %300
  %302 = icmp eq i64 %294, %301
  br i1 %302, label %303, label %320

303:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %304 = load i32, ptr %22, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %305
  %307 = load ptr, ptr %25, align 8, !tbaa !24
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %309
  %311 = call { i64, i64 } @_ZNK4HashplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %306, ptr noundef nonnull align 8 dereferenceable(16) %310)
  %312 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %313 = extractvalue { i64, i64 } %311, 0
  store i64 %313, ptr %312, align 8
  %314 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %315 = extractvalue { i64, i64 } %311, 1
  store i64 %315, ptr %314, align 8
  %316 = load ptr, ptr %25, align 8, !tbaa !24
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %319, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  br label %320

320:                                              ; preds = %303, %289
  br label %321

321:                                              ; preds = %320, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %322

322:                                              ; preds = %321
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %238, !llvm.loop !28

324:                                              ; preds = %245
  store i32 0, ptr %11, align 4
  br label %325

325:                                              ; preds = %324, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %326 = load i32, ptr %11, align 4
  switch i32 %326, label %452 [
    i32 0, label %327
    i32 10, label %216
  ]

327:                                              ; preds = %325
  br label %216, !llvm.loop !27

328:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %448, %328
  %330 = load i32, ptr %30, align 4, !tbaa !5
  %331 = load i32, ptr @m, align 4, !tbaa !5
  %332 = icmp slt i32 %330, %331
  br i1 %332, label %334, label %333

333:                                              ; preds = %329
  store i32 15, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %451

334:                                              ; preds = %329
  %335 = load i32, ptr %30, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %339
  %341 = load i64, ptr %340, align 8, !tbaa !11
  %342 = load i32, ptr %30, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %343
  %345 = load i32, ptr %344, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = add nsw i64 %341, %346
  %348 = load i32, ptr %30, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %352
  %354 = load i64, ptr %353, align 8, !tbaa !11
  %355 = add nsw i64 %347, %354
  %356 = load i32, ptr @t, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %357
  %359 = load i64, ptr %358, align 8, !tbaa !11
  %360 = icmp eq i64 %355, %359
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  br i1 %360, label %361, label %383

361:                                              ; preds = %334
  %362 = load i32, ptr %30, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !5
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %366
  %368 = load i32, ptr %30, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %369
  %371 = load i32, ptr %370, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %372
  %374 = call { i64, i64 } @_ZNK4HashmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %367, ptr noundef nonnull align 8 dereferenceable(16) %373)
  %375 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %376 = extractvalue { i64, i64 } %374, 0
  store i64 %376, ptr %375, align 8
  %377 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %378 = extractvalue { i64, i64 } %374, 1
  store i64 %378, ptr %377, align 8
  %379 = load i32, ptr @t, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %380
  %382 = call noundef zeroext i1 @_ZNK4HasheqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %381)
  br label %383

383:                                              ; preds = %361, %334
  %384 = phi i1 [ false, %334 ], [ %382, %361 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  br i1 %384, label %385, label %387

385:                                              ; preds = %383
  %386 = call i32 @puts(ptr noundef @.str.5)
  br label %447

387:                                              ; preds = %383
  %388 = load i32, ptr %30, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %389
  %391 = load i32, ptr %390, align 4, !tbaa !5
  %392 = icmp sgt i32 %391, 1
  br i1 %392, label %393, label %444

393:                                              ; preds = %387
  %394 = load i32, ptr %30, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %395
  %397 = load i32, ptr %396, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %398
  %400 = load i64, ptr %399, align 8, !tbaa !11
  %401 = load i32, ptr %30, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %402
  %404 = load i32, ptr %403, align 4, !tbaa !5
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %405
  %407 = load i64, ptr %406, align 8, !tbaa !11
  %408 = add nsw i64 %400, %407
  %409 = add nsw i64 %408, 1
  %410 = load i32, ptr @t, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %411
  %413 = load i64, ptr %412, align 8, !tbaa !11
  %414 = icmp slt i64 %409, %413
  br i1 %414, label %415, label %444

415:                                              ; preds = %393
  %416 = load i32, ptr %30, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %417
  %419 = load i32, ptr %418, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = load i32, ptr @t, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %422
  %424 = load i64, ptr %423, align 8, !tbaa !11
  %425 = sub nsw i64 %420, %424
  %426 = load i32, ptr %30, align 4, !tbaa !5
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %427
  %429 = load i32, ptr %428, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %430
  %432 = load i64, ptr %431, align 8, !tbaa !11
  %433 = add nsw i64 %425, %432
  %434 = load i32, ptr %30, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %435
  %437 = load i32, ptr %436, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %438
  %440 = load i64, ptr %439, align 8, !tbaa !11
  %441 = add nsw i64 %433, %440
  %442 = add nsw i64 %441, 1
  %443 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %442)
  br label %446

444:                                              ; preds = %393, %387
  %445 = call i32 @puts(ptr noundef @.str.7)
  br label %446

446:                                              ; preds = %444, %415
  br label %447

447:                                              ; preds = %446, %385
  br label %448

448:                                              ; preds = %447
  %449 = load i32, ptr %30, align 4, !tbaa !5
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %30, align 4, !tbaa !5
  br label %329, !llvm.loop !29

451:                                              ; preds = %333
  ret i32 0

452:                                              ; preds = %325, %200
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

; Function Attrs: 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) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZNK4HashplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZNK4HashmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

declare i32 @puts(ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #1

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%struct.Hash = type { i64, i64 }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"struct.std::pair.0" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@eu = external dso_local global [100010 x i32], align 16
@ev = external dso_local global [100010 x i32], align 16
@ew = external dso_local global [100010 x i32], align 16
@dis1 = external dso_local global [100010 x i64], align 16
@dis2 = external dso_local global [100010 x i64], align 16
@e1 = external dso_local global [100010 x %"class.std::vector"], align 16
@e2 = external dso_local global [100010 x %"class.std::vector"], align 16
@vis = external dso_local local_unnamed_addr global [100010 x i8], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@path1 = external dso_local global [100010 x %struct.Hash], align 16
@path2 = external dso_local global [100010 x %struct.Hash], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = alloca %"struct.std::pair.0", align 8
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %"struct.std::pair.0", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %struct.Hash, align 8
  %14 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800080) @dis1, i8 63, i64 800080, i1 false)
  %17 = load i32, ptr @s, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %18
  store i64 0, ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %18
  store i64 1, ptr %20, align 16, !tbaa !9
  %.sroa.470.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store i64 1, ptr %.sroa.470.0..sroa_idx, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %21 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) @s)
  %.fca.0.extract65 = extractvalue { i64, i32 } %21, 0
  %.fca.1.extract66 = extractvalue { i64, i32 } %21, 1
  store i64 %.fca.0.extract65, ptr %5, align 8
  %.sroa.268.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract66, ptr %.sroa.268.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %22 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %22, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %._crit_edge
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %38

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %23 = getelementptr inbounds i32, ptr @eu, i64 %indvars.iv
  %24 = getelementptr inbounds i32, ptr @ev, i64 %indvars.iv
  %25 = getelementptr inbounds i32, ptr @ew, i64 %indvars.iv
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  %27 = load i32, ptr %23, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e1, i64 0, i64 %28
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %30 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %24)
  store i64 %30, ptr %2, align 8
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(12) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  %31 = load i32, ptr %24, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e2, i64 0, i64 %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %34 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i64 %34, ptr %4, align 8
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !11

38:                                               ; preds = %.lr.ph95, %85
  %39 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !13
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !15, !range !17, !noundef !18
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %85, label %46, !llvm.loop !19

46:                                               ; preds = %38
  store i8 1, ptr %43, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %47 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e1, i64 0, i64 %42
  %48 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  store ptr %48, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %49 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  store ptr %49, ptr %7, align 8
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %50, label %.lr.ph92, label %._crit_edge93

.lr.ph92:                                         ; preds = %46
  %51 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %42
  %52 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %42
  br label %53

._crit_edge93:                                    ; preds = %81, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %85

53:                                               ; preds = %.lr.ph92, %81
  %54 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %57 = load i32, ptr %55, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = load i64, ptr %51, align 8, !tbaa !9
  %62 = load i64, ptr %56, align 8, !tbaa !9
  %63 = add nsw i64 %62, %61
  %64 = icmp sgt i64 %60, %63
  br i1 %64, label %65, label %71

65:                                               ; preds = %53
  store i64 %63, ptr %59, align 8, !tbaa !9
  %66 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %66, ptr noundef nonnull align 16 dereferenceable(16) %52, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %67 = load i32, ptr %55, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %68
  %70 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %.fca.0.extract41 = extractvalue { i64, i32 } %70, 0
  %.fca.1.extract42 = extractvalue { i64, i32 } %70, 1
  store i64 %.fca.0.extract41, ptr %8, align 8
  store i32 %.fca.1.extract42, ptr %.sroa.244.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %81

71:                                               ; preds = %53
  %72 = icmp eq i64 %60, %63
  br i1 %72, label %73, label %81

73:                                               ; preds = %71
  %74 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %58
  %75 = call { i64, i64 } @_ZNK4HashplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %74)
  %76 = extractvalue { i64, i64 } %75, 0
  %77 = extractvalue { i64, i64 } %75, 1
  %78 = load i32, ptr %55, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %79
  store i64 %76, ptr %80, align 16, !tbaa !9
  %.sroa.440.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 8
  store i64 %77, ptr %.sroa.440.0..sroa_idx, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %71, %73, %65
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %83 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  store ptr %83, ptr %7, align 8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %84, label %53, label %._crit_edge93, !llvm.loop !21

85:                                               ; preds = %38, %._crit_edge93
  %86 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %86, label %._crit_edge96, label %38

._crit_edge96:                                    ; preds = %85, %._crit_edge
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100010) @vis, i8 0, i64 100010, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800080) @dis2, i8 63, i64 800080, i1 false)
  %87 = load i32, ptr @t, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %88
  store i64 0, ptr %89, align 8, !tbaa !9
  %90 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %88
  store i64 1, ptr %90, align 16, !tbaa !9
  %.sroa.438.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 8
  store i64 1, ptr %.sroa.438.0..sroa_idx, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %91 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %.fca.0.extract33 = extractvalue { i64, i32 } %91, 0
  %.fca.1.extract34 = extractvalue { i64, i32 } %91, 1
  store i64 %.fca.0.extract33, ptr %9, align 8
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %.fca.1.extract34, ptr %.sroa.236.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %92 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %92, label %.preheader, label %.lr.ph101

.lr.ph101:                                        ; preds = %._crit_edge96
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  br label %96

.preheader:                                       ; preds = %143, %._crit_edge96
  %93 = load i32, ptr @m, align 4, !tbaa !5
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %.preheader
  %95 = getelementptr inbounds i8, ptr %13, i64 8
  br label %145

96:                                               ; preds = %.lr.ph101, %143
  %97 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load i32, ptr %98, align 8, !tbaa !13
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100010 x i8], ptr @vis, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !15, !range !17, !noundef !18
  %103 = trunc nuw i8 %102 to i1
  br i1 %103, label %143, label %104, !llvm.loop !22

104:                                              ; preds = %96
  store i8 1, ptr %101, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %105 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e2, i64 0, i64 %100
  %106 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #8
  store ptr %106, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %107 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #8
  store ptr %107, ptr %11, align 8
  %108 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %108, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %104
  %109 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %100
  %110 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %100
  br label %111

._crit_edge99:                                    ; preds = %139, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %143

111:                                              ; preds = %.lr.ph98, %139
  %112 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %115 = load i32, ptr %113, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = load i64, ptr %109, align 8, !tbaa !9
  %120 = load i64, ptr %114, align 8, !tbaa !9
  %121 = add nsw i64 %120, %119
  %122 = icmp sgt i64 %118, %121
  br i1 %122, label %123, label %129

123:                                              ; preds = %111
  store i64 %121, ptr %117, align 8, !tbaa !9
  %124 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %124, ptr noundef nonnull align 16 dereferenceable(16) %110, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %125 = load i32, ptr %113, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %126
  %128 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 4 dereferenceable(4) %113)
  %.fca.0.extract = extractvalue { i64, i32 } %128, 0
  %.fca.1.extract = extractvalue { i64, i32 } %128, 1
  store i64 %.fca.0.extract, ptr %12, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %139

129:                                              ; preds = %111
  %130 = icmp eq i64 %118, %121
  br i1 %130, label %131, label %139

131:                                              ; preds = %129
  %132 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %116
  %133 = call { i64, i64 } @_ZNK4HashplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 8 dereferenceable(16) %132)
  %134 = extractvalue { i64, i64 } %133, 0
  %135 = extractvalue { i64, i64 } %133, 1
  %136 = load i32, ptr %113, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %137
  store i64 %134, ptr %138, align 16, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %138, i64 8
  store i64 %135, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %129, %131, %123
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %141 = call ptr @_ZNSt6vectorISt4pairIxiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #8
  store ptr %141, ptr %11, align 8
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %142, label %111, label %._crit_edge99, !llvm.loop !23

143:                                              ; preds = %96, %._crit_edge99
  %144 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %144, label %.preheader, label %96

._crit_edge104:                                   ; preds = %205, %.preheader
  ret i32 0

145:                                              ; preds = %.lr.ph103, %205
  %indvars.iv106 = phi i64 [ 0, %.lr.ph103 ], [ %indvars.iv.next107, %205 ]
  %146 = getelementptr inbounds [100010 x i32], ptr @eu, i64 0, i64 %indvars.iv106
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds [100010 x i32], ptr @ew, i64 0, i64 %indvars.iv106
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = add nsw i64 %150, %153
  %155 = getelementptr inbounds [100010 x i32], ptr @ev, i64 0, i64 %indvars.iv106
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = add nsw i64 %154, %159
  %161 = load i32, ptr @t, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = icmp eq i64 %160, %164
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  br i1 %165, label %166, label %.critedge

166:                                              ; preds = %145
  %167 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %148
  %168 = getelementptr inbounds [100010 x %struct.Hash], ptr @path2, i64 0, i64 %157
  %169 = call { i64, i64 } @_ZNK4HashmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %167, ptr noundef nonnull align 8 dereferenceable(16) %168)
  %170 = extractvalue { i64, i64 } %169, 0
  store i64 %170, ptr %13, align 8
  %171 = extractvalue { i64, i64 } %169, 1
  store i64 %171, ptr %95, align 8
  %172 = load i32, ptr @t, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [100010 x %struct.Hash], ptr @path1, i64 0, i64 %173
  %175 = call noundef zeroext i1 @_ZNK4HasheqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %174)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br i1 %175, label %176, label %._crit_edge109

._crit_edge109:                                   ; preds = %166
  %.pre = load i32, ptr %151, align 4, !tbaa !5
  br label %178

176:                                              ; preds = %166
  %177 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %205

.critedge:                                        ; preds = %145
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %178

178:                                              ; preds = %._crit_edge109, %.critedge
  %179 = phi i32 [ %.pre, %._crit_edge109 ], [ %152, %.critedge ]
  %180 = icmp sgt i32 %179, 1
  br i1 %180, label %181, label %203

181:                                              ; preds = %178
  %182 = load i32, ptr %146, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %183
  %185 = load i64, ptr %184, align 8, !tbaa !9
  %186 = load i32, ptr %155, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100010 x i64], ptr @dis2, i64 0, i64 %187
  %189 = load i64, ptr %188, align 8, !tbaa !9
  %190 = add i64 %185, 1
  %191 = add i64 %190, %189
  %192 = load i32, ptr @t, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100010 x i64], ptr @dis1, i64 0, i64 %193
  %195 = load i64, ptr %194, align 8, !tbaa !9
  %196 = icmp slt i64 %191, %195
  br i1 %196, label %197, label %203

197:                                              ; preds = %181
  %narrow = add nuw i32 %179, 1
  %198 = zext i32 %narrow to i64
  %199 = add i64 %185, %198
  %200 = add i64 %199, %189
  %201 = sub i64 %200, %195
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %201)
  br label %205

203:                                              ; preds = %181, %178
  %204 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %205

205:                                              ; preds = %176, %203, %197
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %206 = load i32, ptr @m, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = icmp slt i64 %indvars.iv.next107, %207
  br i1 %208, label %145, label %._crit_edge104, !llvm.loop !24
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) 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 uwtable
declare dso_local void @_ZNSt6vectorISt4pairIxiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress 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) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

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


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