; LLVM IR from eyangch/competitive-programming :: Codeforces/160 (d)

; 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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.DSU = type { [100000 x i64], [100000 x i64] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@U = external dso_local global [100000 x i64], align 16
@V = external dso_local global [100000 x i64], align 16
@W = external dso_local global [100000 x i64], align 16
@ans = external dso_local global [100000 x i64], align 16
@I = external dso_local global [1000001 x %"class.std::vector"], align 16
@graph = external dso_local global [100000 x %"class.std::vector.0"], align 16
@vis = external dso_local global [100000 x i8], align 16
@gt = external dso_local global i64, align 8
@dsu = external dso_local global %struct.DSU, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxx(i64 noundef, i64 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %30 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %32
  %34 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %33, ptr noundef null)
  %35 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %38

38:                                               ; preds = %65, %0
  %39 = load i64, ptr %2, align 8, !tbaa !8
  %40 = load i64, ptr @M, align 8, !tbaa !8
  %41 = icmp slt i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %68

43:                                               ; preds = %38
  %44 = load i64, ptr %2, align 8, !tbaa !8
  %45 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %44
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = load i64, ptr %2, align 8, !tbaa !8
  %48 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = load i64, ptr %2, align 8, !tbaa !8
  %51 = getelementptr inbounds [100000 x i64], ptr @W, i64 0, i64 %50
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) %51)
  %53 = load i64, ptr %2, align 8, !tbaa !8
  %54 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %56 = add nsw i64 %55, -1
  store i64 %56, ptr %54, align 8, !tbaa !8
  %57 = load i64, ptr %2, align 8, !tbaa !8
  %58 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !8
  %60 = add nsw i64 %59, -1
  store i64 %60, ptr %58, align 8, !tbaa !8
  %61 = load i64, ptr %2, align 8, !tbaa !8
  %62 = getelementptr inbounds [100000 x i64], ptr @W, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !8
  %64 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %63
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %65

65:                                               ; preds = %43
  %66 = load i64, ptr %2, align 8, !tbaa !8
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %2, align 8, !tbaa !8
  br label %38, !llvm.loop !11

68:                                               ; preds = %42
  %69 = load i64, ptr @N, align 8, !tbaa !8
  call void @_ZN3DSU4initEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %69)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %70

70:                                               ; preds = %217, %68
  %71 = load i64, ptr %3, align 8, !tbaa !8
  %72 = icmp sle i64 %71, 1000000
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %220

74:                                               ; preds = %70
  %75 = load i64, ptr %3, align 8, !tbaa !8
  %76 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %75
  %77 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  br label %217

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %81 = load i64, ptr %3, align 8, !tbaa !8
  %82 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %81
  store ptr %82, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %83 = load ptr, ptr %5, align 8, !tbaa !13
  %84 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #7
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %6, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %86 = load ptr, ptr %5, align 8, !tbaa !13
  %87 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #7
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %7, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  br label %89

89:                                               ; preds = %114, %80
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %94 = load i64, ptr %93, align 8, !tbaa !8
  store i64 %94, ptr %8, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %95 = load i64, ptr %8, align 8, !tbaa !8
  %96 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !8
  %98 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %97)
  store i64 %98, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %99 = load i64, ptr %8, align 8, !tbaa !8
  %100 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !8
  %102 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %101)
  store i64 %102, ptr %10, align 8, !tbaa !8
  %103 = load i64, ptr %9, align 8, !tbaa !8
  %104 = load i64, ptr %10, align 8, !tbaa !8
  %105 = icmp ne i64 %103, %104
  br i1 %105, label %106, label %113

106:                                              ; preds = %92
  %107 = load i64, ptr %9, align 8, !tbaa !8
  %108 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %109 = load i64, ptr %10, align 8, !tbaa !8
  %110 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  %111 = load i64, ptr %8, align 8, !tbaa !8
  %112 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %111
  store i64 1, ptr %112, align 8, !tbaa !8
  br label %113

113:                                              ; preds = %106, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %114

114:                                              ; preds = %113
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %89

116:                                              ; preds = %91
  store i64 0, ptr @gt, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %117 = load i64, ptr %3, align 8, !tbaa !8
  %118 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %117
  store ptr %118, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %119 = load ptr, ptr %13, align 8, !tbaa !13
  %120 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #7
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %14, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %122 = load ptr, ptr %13, align 8, !tbaa !13
  %123 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %15, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  br label %125

125:                                              ; preds = %158, %116
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %160

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %130 = load i64, ptr %129, align 8, !tbaa !8
  store i64 %130, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %131 = load i64, ptr %16, align 8, !tbaa !8
  %132 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !8
  %134 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %133)
  store i64 %134, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %135 = load i64, ptr %16, align 8, !tbaa !8
  %136 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !8
  %138 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %137)
  store i64 %138, ptr %18, align 8, !tbaa !8
  %139 = load i64, ptr %17, align 8, !tbaa !8
  %140 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %139
  %141 = load i8, ptr %140, align 1, !tbaa !15, !range !17, !noundef !18
  %142 = trunc i8 %141 to i1
  br i1 %142, label %148, label %143

143:                                              ; preds = %128
  %144 = load i64, ptr %18, align 8, !tbaa !8
  %145 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !15, !range !17, !noundef !18
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %149

148:                                              ; preds = %143, %128
  store i32 11, ptr %4, align 4
  br label %152

149:                                              ; preds = %143
  %150 = load i64, ptr %17, align 8, !tbaa !8
  call void @_Z3dfsxx(i64 noundef %150, i64 noundef -1)
  %151 = load i64, ptr %18, align 8, !tbaa !8
  call void @_Z3dfsxx(i64 noundef %151, i64 noundef -1)
  store i32 0, ptr %4, align 4
  br label %152

152:                                              ; preds = %149, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %153 = load i32, ptr %4, align 4
  switch i32 %153, label %155 [
    i32 0, label %154
  ]

154:                                              ; preds = %152
  store i32 0, ptr %4, align 4
  br label %155

155:                                              ; preds = %154, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %156 = load i32, ptr %4, align 4
  switch i32 %156, label %254 [
    i32 0, label %157
    i32 11, label %158
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157, %155
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %125

160:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %161 = load i64, ptr %3, align 8, !tbaa !8
  %162 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %161
  store ptr %162, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %163 = load ptr, ptr %19, align 8, !tbaa !13
  %164 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #7
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %166 = load ptr, ptr %19, align 8, !tbaa !13
  %167 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %21, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  br label %169

169:                                              ; preds = %191, %160
  %170 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br i1 %170, label %172, label %171

171:                                              ; preds = %169
  store i32 12, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %193

172:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %174 = load i64, ptr %173, align 8, !tbaa !8
  store i64 %174, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %175 = load i64, ptr %22, align 8, !tbaa !8
  %176 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !8
  %178 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %177)
  store i64 %178, ptr %23, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %179 = load i64, ptr %22, align 8, !tbaa !8
  %180 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !8
  %182 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %181)
  store i64 %182, ptr %24, align 8, !tbaa !8
  %183 = load i64, ptr %23, align 8, !tbaa !8
  %184 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %183
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #7
  %185 = load i64, ptr %24, align 8, !tbaa !8
  %186 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %185
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
  %187 = load i64, ptr %23, align 8, !tbaa !8
  %188 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %187
  store i8 0, ptr %188, align 1, !tbaa !15
  %189 = load i64, ptr %24, align 8, !tbaa !8
  %190 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %189
  store i8 0, ptr %190, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %191

191:                                              ; preds = %172
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br label %169

193:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %194 = load i64, ptr %3, align 8, !tbaa !8
  %195 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %194
  store ptr %195, ptr %25, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %196 = load ptr, ptr %25, align 8, !tbaa !13
  %197 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %196) #7
  %198 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %26, i32 0, i32 0
  store ptr %197, ptr %198, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %199 = load ptr, ptr %25, align 8, !tbaa !13
  %200 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #7
  %201 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %27, i32 0, i32 0
  store ptr %200, ptr %201, align 8
  br label %202

202:                                              ; preds = %214, %193
  %203 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br i1 %203, label %205, label %204

204:                                              ; preds = %202
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %216

205:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %207 = load i64, ptr %206, align 8, !tbaa !8
  store i64 %207, ptr %28, align 8, !tbaa !8
  %208 = load i64, ptr %28, align 8, !tbaa !8
  %209 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !8
  %211 = load i64, ptr %28, align 8, !tbaa !8
  %212 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !8
  call void @_ZN3DSU2unExx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %210, i64 noundef %213)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %214

214:                                              ; preds = %205
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %202

216:                                              ; preds = %204
  br label %217

217:                                              ; preds = %216, %79
  %218 = load i64, ptr %3, align 8, !tbaa !8
  %219 = add nsw i64 %218, 1
  store i64 %219, ptr %3, align 8, !tbaa !8
  br label %70, !llvm.loop !19

220:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store i64 0, ptr %29, align 8, !tbaa !8
  br label %221

221:                                              ; preds = %249, %220
  %222 = load i64, ptr %29, align 8, !tbaa !8
  %223 = load i64, ptr @M, align 8, !tbaa !8
  %224 = icmp slt i64 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %252

226:                                              ; preds = %221
  %227 = load i64, ptr %29, align 8, !tbaa !8
  %228 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %227
  %229 = load i64, ptr %228, align 8, !tbaa !8
  %230 = icmp eq i64 %229, 0
  br i1 %230, label %231, label %233

231:                                              ; preds = %226
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %233

233:                                              ; preds = %231, %226
  %234 = load i64, ptr %29, align 8, !tbaa !8
  %235 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %234
  %236 = load i64, ptr %235, align 8, !tbaa !8
  %237 = icmp eq i64 %236, 1
  br i1 %237, label %238, label %240

238:                                              ; preds = %233
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  br label %240

240:                                              ; preds = %238, %233
  %241 = load i64, ptr %29, align 8, !tbaa !8
  %242 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !8
  %244 = icmp eq i64 %243, 2
  br i1 %244, label %245, label %247

245:                                              ; preds = %240
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  br label %247

247:                                              ; preds = %245, %240
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  br label %249

249:                                              ; preds = %247
  %250 = load i64, ptr %29, align 8, !tbaa !8
  %251 = add nsw i64 %250, 1
  store i64 %251, ptr %29, align 8, !tbaa !8
  br label %221, !llvm.loop !20

252:                                              ; preds = %225
  %253 = load i32, ptr %1, align 4
  ret i32 %253

254:                                              ; preds = %155
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.DSU = type { [100000 x i64], [100000 x i64] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@U = external dso_local global [100000 x i64], align 16
@V = external dso_local global [100000 x i64], align 16
@W = external dso_local global [100000 x i64], align 16
@ans = external dso_local local_unnamed_addr global [100000 x i64], align 16
@I = external dso_local global [1000001 x %"class.std::vector"], align 16
@graph = external dso_local global [100000 x %"class.std::vector.0"], align 16
@vis = external dso_local local_unnamed_addr global [100000 x i8], align 16
@gt = external dso_local local_unnamed_addr global i64, align 8
@dsu = external dso_local global %struct.DSU, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxx(i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i64 0, ptr %1, align 8, !tbaa !8
  %23 = load i64, ptr @M, align 8, !tbaa !8
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %25 = load i64, ptr @N, align 8, !tbaa !8
  call void @_ZN3DSU4initEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %25)
  br label %50

.lr.ph:                                           ; preds = %0, %.lr.ph
  %storemerge40 = phi i64 [ %45, %.lr.ph ], [ 0, %0 ]
  %26 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %storemerge40
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = load i64, ptr %1, align 8, !tbaa !8
  %29 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %29)
  %31 = load i64, ptr %1, align 8, !tbaa !8
  %32 = getelementptr inbounds [100000 x i64], ptr @W, i64 0, i64 %31
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = load i64, ptr %1, align 8, !tbaa !8
  %35 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !8
  %37 = add nsw i64 %36, -1
  store i64 %37, ptr %35, align 8, !tbaa !8
  %38 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %34
  %39 = load i64, ptr %38, align 8, !tbaa !8
  %40 = add nsw i64 %39, -1
  store i64 %40, ptr %38, align 8, !tbaa !8
  %41 = getelementptr inbounds [100000 x i64], ptr @W, i64 0, i64 %34
  %42 = load i64, ptr %41, align 8, !tbaa !8
  %43 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %42
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %44 = load i64, ptr %1, align 8, !tbaa !8
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %1, align 8, !tbaa !8
  %46 = load i64, ptr @M, align 8, !tbaa !8
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader:                                       ; preds = %126
  %48 = load i64, ptr @M, align 8, !tbaa !8
  %49 = icmp sgt i64 %48, 0
  br i1 %49, label %.lr.ph55, label %._crit_edge56

50:                                               ; preds = %._crit_edge, %126
  %.03553 = phi i64 [ 0, %._crit_edge ], [ %127, %126 ]
  %51 = getelementptr inbounds [1000001 x %"class.std::vector"], ptr @I, i64 0, i64 %.03553
  %52 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %.not = icmp eq i64 %52, 0
  br i1 %.not, label %126, label %53

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %54 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %54, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %55 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %55, ptr %3, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %56, label %.lr.ph42, label %._crit_edge43

._crit_edge43:                                    ; preds = %76, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  store i64 0, ptr @gt, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %57 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %57, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %58 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %58, ptr %10, align 8
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %59, label %.lr.ph45, label %._crit_edge46

.lr.ph42:                                         ; preds = %53, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %61 = load i64, ptr %60, align 8, !tbaa !8
  store i64 %61, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %62 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !8
  %64 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %63)
  store i64 %64, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %65 = load i64, ptr %4, align 8, !tbaa !8
  %66 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %67)
  store i64 %68, ptr %6, align 8, !tbaa !8
  %69 = load i64, ptr %5, align 8, !tbaa !8
  %.not39 = icmp eq i64 %69, %68
  br i1 %.not39, label %76, label %70

70:                                               ; preds = %.lr.ph42
  %71 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %72 = load i64, ptr %6, align 8, !tbaa !8
  %73 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %74 = load i64, ptr %4, align 8, !tbaa !8
  %75 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %74
  store i64 1, ptr %75, align 8, !tbaa !8
  br label %76

76:                                               ; preds = %70, %.lr.ph42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %78, label %.lr.ph42, label %._crit_edge43

._crit_edge46:                                    ; preds = %98, %._crit_edge43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %79 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %79, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %80 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %80, ptr %12, align 8
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br i1 %81, label %.lr.ph48, label %._crit_edge49

.lr.ph45:                                         ; preds = %._crit_edge43, %98
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %85)
  %87 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %83
  %88 = load i64, ptr %87, align 8, !tbaa !8
  %89 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %88)
  %90 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %86
  %91 = load i8, ptr %90, align 1, !tbaa !13, !range !15, !noundef !16
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %98, label %93

93:                                               ; preds = %.lr.ph45
  %94 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %89
  %95 = load i8, ptr %94, align 1, !tbaa !13, !range !15, !noundef !16
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  call void @_Z3dfsxx(i64 noundef %86, i64 noundef -1)
  call void @_Z3dfsxx(i64 noundef %89, i64 noundef -1)
  br label %98

98:                                               ; preds = %.lr.ph45, %93, %97
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %100, label %.lr.ph45, label %._crit_edge46

._crit_edge49:                                    ; preds = %.lr.ph48, %._crit_edge46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %101 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %101, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %102 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %102, ptr %14, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %103, label %.lr.ph51, label %._crit_edge52

.lr.ph48:                                         ; preds = %._crit_edge46, %.lr.ph48
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %105 = load i64, ptr %104, align 8, !tbaa !8
  %106 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !8
  %108 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %107)
  %109 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %105
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %111 = call noundef i64 @_ZN3DSU4findEx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %110)
  %112 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %108
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #7
  %113 = getelementptr inbounds [100000 x %"class.std::vector.0"], ptr @graph, i64 0, i64 %111
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #7
  %114 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %108
  store i8 0, ptr %114, align 1, !tbaa !13
  %115 = getelementptr inbounds [100000 x i8], ptr @vis, i64 0, i64 %111
  store i8 0, ptr %115, align 1, !tbaa !13
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br i1 %117, label %.lr.ph48, label %._crit_edge49

._crit_edge52:                                    ; preds = %.lr.ph51, %._crit_edge49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %126

.lr.ph51:                                         ; preds = %._crit_edge49, %.lr.ph51
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %119 = load i64, ptr %118, align 8, !tbaa !8
  %120 = getelementptr inbounds [100000 x i64], ptr @U, i64 0, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !8
  %122 = getelementptr inbounds [100000 x i64], ptr @V, i64 0, i64 %119
  %123 = load i64, ptr %122, align 8, !tbaa !8
  call void @_ZN3DSU2unExx(ptr noundef nonnull align 8 dereferenceable(1600000) @dsu, i64 noundef %121, i64 noundef %123)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %125 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %125, label %.lr.ph51, label %._crit_edge52

126:                                              ; preds = %50, %._crit_edge52
  %127 = add nuw nsw i64 %.03553, 1
  %exitcond.not = icmp eq i64 %127, 1000001
  br i1 %exitcond.not, label %.preheader, label %50, !llvm.loop !17

._crit_edge56:                                    ; preds = %143, %.preheader
  ret i32 0

.lr.ph55:                                         ; preds = %.preheader, %143
  %.054 = phi i64 [ %145, %143 ], [ 0, %.preheader ]
  %128 = getelementptr inbounds [100000 x i64], ptr @ans, i64 0, i64 %.054
  %129 = load i64, ptr %128, align 8, !tbaa !8
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %.lr.ph55
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %.pr = load i64, ptr %128, align 8, !tbaa !8
  br label %133

133:                                              ; preds = %131, %.lr.ph55
  %134 = phi i64 [ %.pr, %131 ], [ %129, %.lr.ph55 ]
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %136, label %138

136:                                              ; preds = %133
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %.pre = load i64, ptr %128, align 8, !tbaa !8
  br label %138

138:                                              ; preds = %136, %133
  %139 = phi i64 [ %.pre, %136 ], [ %134, %133 ]
  %140 = icmp eq i64 %139, 2
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  br label %143

143:                                              ; preds = %141, %138
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  %145 = add nuw nsw i64 %.054, 1
  %146 = load i64, ptr @M, align 8, !tbaa !8
  %147 = icmp slt i64 %145, %146
  br i1 %147, label %.lr.ph55, label %._crit_edge56, !llvm.loop !18
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(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_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

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


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