; LLVM IR from ravireddy07/cpp-book :: src/Code-Chef/MAR2021-Long (CCNF)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Edge = type { i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@str = external dso_local global [150 x i8], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@c = external dso_local global [150 x i32], align 16
@bit = external dso_local global [150 x i32], align 16
@bln = external dso_local global [150 x i32], align 16
@e = external dso_local global [150 x [150 x i32]], align 16
@pe = external dso_local global [150 x i32], align 16
@rk = external dso_local global [150 x i32], align 16
@siz = external dso_local global [150 x i32], align 16
@rt = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@all = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@anc = external dso_local global [150 x i32], align 16
@vis = external dso_local global [150 x [513 x i32]], align 16
@a = external dso_local global [150 x %"class.std::vector"], align 16
@b = external dso_local global [150 x %"class.std::vector"], align 16
@cl = external dso_local global [150 x %"class.std::vector"], align 16
@tr = external dso_local global [150 x %"class.std::vector"], align 16
@has = external dso_local global [150 x %"class.std::vector"], align 16
@edg = external dso_local global [22500 x %struct.Edge], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3mcsv() #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z2dpiii(i32 noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.std::vector", align 8
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %struct.Edge, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %"class.std::vector", align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  %43 = call noundef i64 @_Z4readv()
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %2, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %633, %0
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %637

49:                                               ; preds = %45
  call void @llvm.memset.p0.i64(ptr align 16 @e, i8 0, i64 90000, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @bln, i8 0, i64 600, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 307800, i1 false)
  %50 = call noundef i64 @_Z4readv()
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr @n, align 4, !tbaa !5
  %52 = call noundef i64 @_Z4readv()
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr @m, align 4, !tbaa !5
  %54 = call noundef i64 @_Z4readv()
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr @k, align 4, !tbaa !5
  %56 = load i32, ptr @k, align 4, !tbaa !5
  %57 = shl i32 1, %56
  store i32 %57, ptr @all, align 4, !tbaa !5
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef getelementptr inbounds (i8, ptr @str, i64 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %88, %49
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %91

64:                                               ; preds = %59
  %65 = call noundef i64 @_Z4readv()
  %66 = trunc i64 %65 to i32
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %68
  store i32 %66, ptr %69, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [150 x i8], ptr @str, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !9
  %74 = sext i8 %73 to i32
  %75 = sub nsw i32 %74, 48
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %77
  store i32 %75, ptr %78, align 4, !tbaa !5
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %80
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #9
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %83
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #9
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %86
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  br label %88

88:                                               ; preds = %64
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %4, align 4, !tbaa !5
  br label %59, !llvm.loop !10

91:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %215, %91
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = load i32, ptr @m, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %218

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %98 = call noundef i64 @_Z4readv()
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %6, align 4, !tbaa !5
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %101
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104)
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %106
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %155, %97
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %158

115:                                              ; preds = %110
  %116 = call noundef i64 @_Z4readv()
  %117 = trunc i64 %116 to i32
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %119
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #9
  store i32 %117, ptr %123, align 4, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %125
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %128) #9
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = icmp sgt i32 %130, 0
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 1, i32 -1
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %135
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #9
  store i32 %133, ptr %139, align 4, !tbaa !5
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %141
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144) #9
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = load i32, ptr %5, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %148
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #9
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = mul nsw i32 %153, %146
  store i32 %154, ptr %152, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %115
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %7, align 4, !tbaa !5
  br label %110, !llvm.loop !12

158:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %159 = load i32, ptr %5, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %160
  store ptr %161, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %162 = load ptr, ptr %8, align 8, !tbaa !13
  %163 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #9
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %165 = load ptr, ptr %8, align 8, !tbaa !13
  %166 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #9
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %168

168:                                              ; preds = %212, %158
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br i1 %169, label %171, label %170

170:                                              ; preds = %168
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %214

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %173 = load i32, ptr %172, align 4, !tbaa !5
  store i32 %173, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %174 = load i32, ptr %5, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %175
  store ptr %176, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %177 = load ptr, ptr %12, align 8, !tbaa !13
  %178 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #9
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %180 = load ptr, ptr %12, align 8, !tbaa !13
  %181 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #9
  %182 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %181, ptr %182, align 8
  br label %183

183:                                              ; preds = %209, %171
  %184 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %184, label %186, label %185

185:                                              ; preds = %183
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %211

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %188 = load i32, ptr %187, align 4, !tbaa !5
  store i32 %188, ptr %15, align 4, !tbaa !5
  %189 = load i32, ptr %11, align 4, !tbaa !5
  %190 = load i32, ptr %15, align 4, !tbaa !5
  %191 = icmp eq i32 %189, %190
  br i1 %191, label %192, label %193

192:                                              ; preds = %186
  store i32 17, ptr %3, align 4
  br label %206

193:                                              ; preds = %186
  %194 = load i32, ptr %15, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %195
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [150 x i32], ptr %196, i64 0, i64 %198
  store i32 1, ptr %199, align 4, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %201
  %203 = load i32, ptr %15, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [150 x i32], ptr %202, i64 0, i64 %204
  store i32 1, ptr %205, align 4, !tbaa !5
  store i32 0, ptr %3, align 4
  br label %206

206:                                              ; preds = %193, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  %207 = load i32, ptr %3, align 4
  switch i32 %207, label %643 [
    i32 0, label %208
    i32 17, label %209
  ]

208:                                              ; preds = %206
  br label %209

209:                                              ; preds = %208, %206
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %183

211:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %212

212:                                              ; preds = %211
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %168

214:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %5, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %5, align 4, !tbaa !5
  br label %92, !llvm.loop !15

218:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %219 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %219, ptr %16, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %285, %218
  %221 = load i32, ptr %16, align 4, !tbaa !5
  %222 = icmp sge i32 %221, 1
  br i1 %222, label %224, label %223

223:                                              ; preds = %220
  store i32 18, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %288

224:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %225 = load i32, ptr %16, align 4, !tbaa !5
  %226 = sub nsw i32 %225, 1
  store i32 %226, ptr %17, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %281, %224
  %228 = load i32, ptr %17, align 4, !tbaa !5
  %229 = icmp sge i32 %228, 1
  br i1 %229, label %231, label %230

230:                                              ; preds = %227
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %284

231:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %232 = load i32, ptr %17, align 4, !tbaa !5
  %233 = sub nsw i32 %232, 1
  store i32 %233, ptr %18, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %277, %231
  %235 = load i32, ptr %18, align 4, !tbaa !5
  %236 = icmp sge i32 %235, 1
  br i1 %236, label %238, label %237

237:                                              ; preds = %234
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %280

238:                                              ; preds = %234
  %239 = load i32, ptr %16, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %240
  %242 = load i32, ptr %17, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [150 x i32], ptr %241, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = load i32, ptr %16, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %247
  %249 = load i32, ptr %18, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [150 x i32], ptr %248, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = and i32 %245, %252
  %254 = load i32, ptr %17, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %255
  %257 = load i32, ptr %18, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [150 x i32], ptr %256, i64 0, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %261 = or i32 %260, %253
  store i32 %261, ptr %259, align 4, !tbaa !5
  %262 = load i32, ptr %17, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %263
  %265 = load i32, ptr %18, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [150 x i32], ptr %264, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = load i32, ptr %18, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %270
  %272 = load i32, ptr %17, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [150 x i32], ptr %271, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = or i32 %275, %268
  store i32 %276, ptr %274, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %238
  %278 = load i32, ptr %18, align 4, !tbaa !5
  %279 = add nsw i32 %278, -1
  store i32 %279, ptr %18, align 4, !tbaa !5
  br label %234, !llvm.loop !16

280:                                              ; preds = %237
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %17, align 4, !tbaa !5
  %283 = add nsw i32 %282, -1
  store i32 %283, ptr %17, align 4, !tbaa !5
  br label %227, !llvm.loop !17

284:                                              ; preds = %230
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %16, align 4, !tbaa !5
  %287 = add nsw i32 %286, -1
  store i32 %287, ptr %16, align 4, !tbaa !5
  br label %220, !llvm.loop !18

288:                                              ; preds = %223
  call void @_Z3mcsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %340, %288
  %290 = load i32, ptr %19, align 4, !tbaa !5
  %291 = load i32, ptr @n, align 4, !tbaa !5
  %292 = icmp slt i32 %290, %291
  br i1 %292, label %294, label %293

293:                                              ; preds = %289
  store i32 27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %343

294:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %295 = load i32, ptr %19, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [150 x i32], ptr @pe, i64 0, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !5
  store i32 %298, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %299

299:                                              ; preds = %325, %294
  %300 = load i32, ptr %21, align 4, !tbaa !5
  %301 = load i32, ptr @n, align 4, !tbaa !5
  %302 = icmp sle i32 %300, %301
  br i1 %302, label %304, label %303

303:                                              ; preds = %299
  store i32 30, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %328

304:                                              ; preds = %299
  %305 = load i32, ptr %20, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %306
  %308 = load i32, ptr %21, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [150 x i32], ptr %307, i64 0, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %324

313:                                              ; preds = %304
  %314 = load i32, ptr %21, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [150 x i32], ptr @rk, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = load i32, ptr %19, align 4, !tbaa !5
  %319 = icmp sgt i32 %317, %318
  br i1 %319, label %320, label %324

320:                                              ; preds = %313
  %321 = load i32, ptr %20, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %322
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %323, ptr noundef nonnull align 4 dereferenceable(4) %21)
  br label %324

324:                                              ; preds = %320, %313, %304
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %21, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %21, align 4, !tbaa !5
  br label %299, !llvm.loop !19

328:                                              ; preds = %303
  %329 = load i32, ptr %20, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %330
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %331, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %332 = load i32, ptr %20, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %333
  %335 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #9
  %336 = trunc i64 %335 to i32
  %337 = load i32, ptr %20, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %338
  store i32 %336, ptr %339, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %340

340:                                              ; preds = %328
  %341 = load i32, ptr %19, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %19, align 4, !tbaa !5
  br label %289, !llvm.loop !20

343:                                              ; preds = %293
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %344

344:                                              ; preds = %417, %343
  %345 = load i32, ptr %22, align 4, !tbaa !5
  %346 = load i32, ptr @n, align 4, !tbaa !5
  %347 = icmp sle i32 %345, %346
  br i1 %347, label %349, label %348

348:                                              ; preds = %344
  store i32 33, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %420

349:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %350

350:                                              ; preds = %413, %349
  %351 = load i32, ptr %23, align 4, !tbaa !5
  %352 = load i32, ptr %22, align 4, !tbaa !5
  %353 = icmp slt i32 %351, %352
  br i1 %353, label %355, label %354

354:                                              ; preds = %350
  store i32 36, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %416

355:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  %356 = load i32, ptr %22, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %357
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %358)
  %359 = load i32, ptr %23, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %360
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %361)
          to label %362 unwind label %379

362:                                              ; preds = %355
  invoke void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %25, ptr noundef %26, ptr noundef %27)
          to label %363 unwind label %383

363:                                              ; preds = %362
  %364 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  %365 = trunc i64 %364 to i32
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  store i32 %365, ptr %24, align 4, !tbaa !5
  %366 = load i32, ptr %22, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !5
  %370 = load i32, ptr %24, align 4, !tbaa !5
  %371 = icmp eq i32 %369, %370
  br i1 %371, label %372, label %388

372:                                              ; preds = %363
  %373 = load i32, ptr %22, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %374
  %376 = load i32, ptr @all, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [513 x i32], ptr %375, i64 0, i64 %377
  store i32 1, ptr %378, align 4, !tbaa !5
  br label %388

379:                                              ; preds = %355
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %28, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %29, align 4
  br label %387

383:                                              ; preds = %362
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %28, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %29, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  br label %387

387:                                              ; preds = %383, %379
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %636

388:                                              ; preds = %372, %363
  %389 = load i32, ptr %23, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %390
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = load i32, ptr %24, align 4, !tbaa !5
  %394 = icmp eq i32 %392, %393
  br i1 %394, label %395, label %402

395:                                              ; preds = %388
  %396 = load i32, ptr %23, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %397
  %399 = load i32, ptr @all, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [513 x i32], ptr %398, i64 0, i64 %400
  store i32 1, ptr %401, align 4, !tbaa !5
  br label %402

402:                                              ; preds = %395, %388
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #9
  %403 = getelementptr inbounds %struct.Edge, ptr %30, i32 0, i32 0
  %404 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %404, ptr %403, align 4, !tbaa !21
  %405 = getelementptr inbounds %struct.Edge, ptr %30, i32 0, i32 1
  %406 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %406, ptr %405, align 4, !tbaa !23
  %407 = getelementptr inbounds %struct.Edge, ptr %30, i32 0, i32 2
  %408 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %408, ptr %407, align 4, !tbaa !24
  %409 = load i32, ptr @tot, align 4, !tbaa !5
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr @tot, align 4, !tbaa !5
  %411 = sext i32 %409 to i64
  %412 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %411
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %412, ptr align 4 %30, i64 12, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %413

413:                                              ; preds = %402
  %414 = load i32, ptr %23, align 4, !tbaa !5
  %415 = add nsw i32 %414, 1
  store i32 %415, ptr %23, align 4, !tbaa !5
  br label %350, !llvm.loop !26

416:                                              ; preds = %354
  br label %417

417:                                              ; preds = %416
  %418 = load i32, ptr %22, align 4, !tbaa !5
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %22, align 4, !tbaa !5
  br label %344, !llvm.loop !27

420:                                              ; preds = %348
  %421 = load i32, ptr @tot, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds %struct.Edge, ptr @edg, i64 %422
  call void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef @edg, ptr noundef %423)
  %424 = load i32, ptr @n, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds i32, ptr @anc, i64 %425
  %427 = getelementptr inbounds i32, ptr %426, i64 1
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef getelementptr inbounds (i32, ptr @anc, i64 1), ptr noundef %427, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %428

428:                                              ; preds = %489, %420
  %429 = load i32, ptr %31, align 4, !tbaa !5
  %430 = load i32, ptr @tot, align 4, !tbaa !5
  %431 = icmp slt i32 %429, %430
  br i1 %431, label %433, label %432

432:                                              ; preds = %428
  store i32 39, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %492

433:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %434 = load i32, ptr %31, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %435
  %437 = getelementptr inbounds %struct.Edge, ptr %436, i32 0, i32 0
  %438 = load i32, ptr %437, align 4, !tbaa !21
  store i32 %438, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  %439 = load i32, ptr %31, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %440
  %442 = getelementptr inbounds %struct.Edge, ptr %441, i32 0, i32 1
  %443 = load i32, ptr %442, align 4, !tbaa !23
  store i32 %443, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %444 = load i32, ptr %31, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %445
  %447 = getelementptr inbounds %struct.Edge, ptr %446, i32 0, i32 2
  %448 = load i32, ptr %447, align 4, !tbaa !24
  store i32 %448, ptr %34, align 4, !tbaa !5
  %449 = load i32, ptr %32, align 4, !tbaa !5
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %450
  %452 = load i32, ptr @all, align 4, !tbaa !5
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds [513 x i32], ptr %451, i64 0, i64 %453
  %455 = load i32, ptr %454, align 4, !tbaa !5
  %456 = icmp ne i32 %455, 0
  br i1 %456, label %472, label %457

457:                                              ; preds = %433
  %458 = load i32, ptr %33, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %459
  %461 = load i32, ptr @all, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [513 x i32], ptr %460, i64 0, i64 %462
  %464 = load i32, ptr %463, align 4, !tbaa !5
  %465 = icmp ne i32 %464, 0
  br i1 %465, label %472, label %466

466:                                              ; preds = %457
  %467 = load i32, ptr %32, align 4, !tbaa !5
  %468 = call noundef i32 @_Z4findi(i32 noundef %467)
  %469 = load i32, ptr %33, align 4, !tbaa !5
  %470 = call noundef i32 @_Z4findi(i32 noundef %469)
  %471 = icmp eq i32 %468, %470
  br i1 %471, label %472, label %473

472:                                              ; preds = %466, %457, %433
  store i32 41, ptr %3, align 4
  br label %486

473:                                              ; preds = %466
  %474 = load i32, ptr %33, align 4, !tbaa !5
  %475 = call noundef i32 @_Z4findi(i32 noundef %474)
  %476 = load i32, ptr %32, align 4, !tbaa !5
  %477 = call noundef i32 @_Z4findi(i32 noundef %476)
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [150 x i32], ptr @anc, i64 0, i64 %478
  store i32 %475, ptr %479, align 4, !tbaa !5
  %480 = load i32, ptr %32, align 4, !tbaa !5
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %481
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %482, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %483 = load i32, ptr %33, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %484
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %485, ptr noundef nonnull align 4 dereferenceable(4) %32)
  store i32 0, ptr %3, align 4
  br label %486

486:                                              ; preds = %473, %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  %487 = load i32, ptr %3, align 4
  switch i32 %487, label %643 [
    i32 0, label %488
    i32 41, label %489
  ]

488:                                              ; preds = %486
  br label %489

489:                                              ; preds = %488, %486
  %490 = load i32, ptr %31, align 4, !tbaa !5
  %491 = add nsw i32 %490, 1
  store i32 %491, ptr %31, align 4, !tbaa !5
  br label %428, !llvm.loop !28

492:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 1, ptr %35, align 4, !tbaa !5
  br label %493

493:                                              ; preds = %559, %492
  %494 = load i32, ptr %35, align 4, !tbaa !5
  %495 = load i32, ptr @n, align 4, !tbaa !5
  %496 = icmp sle i32 %494, %495
  br i1 %496, label %498, label %497

497:                                              ; preds = %493
  store i32 42, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %562

498:                                              ; preds = %493
  %499 = load i32, ptr %35, align 4, !tbaa !5
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %500
  %502 = load i32, ptr @all, align 4, !tbaa !5
  %503 = sext i32 %502 to i64
  %504 = getelementptr inbounds [513 x i32], ptr %501, i64 0, i64 %503
  %505 = load i32, ptr %504, align 4, !tbaa !5
  %506 = icmp ne i32 %505, 0
  br i1 %506, label %507, label %508

507:                                              ; preds = %498
  br label %559

508:                                              ; preds = %498
  %509 = load i32, ptr %35, align 4, !tbaa !5
  store i32 %509, ptr @rt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %510

510:                                              ; preds = %555, %508
  %511 = load i32, ptr %36, align 4, !tbaa !5
  %512 = load i32, ptr @m, align 4, !tbaa !5
  %513 = icmp slt i32 %511, %512
  br i1 %513, label %515, label %514

514:                                              ; preds = %510
  store i32 45, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %558

515:                                              ; preds = %510
  %516 = load i32, ptr %36, align 4, !tbaa !5
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds [150 x i32], ptr @bln, i64 0, i64 %517
  %519 = load i32, ptr %518, align 4, !tbaa !5
  %520 = icmp ne i32 %519, 0
  br i1 %520, label %521, label %522

521:                                              ; preds = %515
  br label %555

522:                                              ; preds = %515
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  %523 = load i32, ptr %35, align 4, !tbaa !5
  %524 = sext i32 %523 to i64
  %525 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %524
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %525)
  %526 = load i32, ptr %36, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %527
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %528)
          to label %529 unwind label %538

529:                                              ; preds = %522
  invoke void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %37, ptr noundef %38, ptr noundef %39)
          to label %530 unwind label %542

530:                                              ; preds = %529
  %531 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  %532 = load i32, ptr %36, align 4, !tbaa !5
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %533
  %535 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %534) #9
  %536 = icmp ne i64 %531, %535
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  br i1 %536, label %537, label %547

537:                                              ; preds = %530
  br label %555

538:                                              ; preds = %522
  %539 = landingpad { ptr, i32 }
          cleanup
  %540 = extractvalue { ptr, i32 } %539, 0
  store ptr %540, ptr %28, align 8
  %541 = extractvalue { ptr, i32 } %539, 1
  store i32 %541, ptr %29, align 4
  br label %546

542:                                              ; preds = %529
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %28, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %29, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  br label %546

546:                                              ; preds = %542, %538
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %636

547:                                              ; preds = %530
  %548 = load i32, ptr %35, align 4, !tbaa !5
  %549 = sext i32 %548 to i64
  %550 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %549
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %550, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %551 = load i32, ptr %35, align 4, !tbaa !5
  %552 = load i32, ptr %36, align 4, !tbaa !5
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds [150 x i32], ptr @bln, i64 0, i64 %553
  store i32 %551, ptr %554, align 4, !tbaa !5
  br label %555

555:                                              ; preds = %547, %537, %521
  %556 = load i32, ptr %36, align 4, !tbaa !5
  %557 = add nsw i32 %556, 1
  store i32 %557, ptr %36, align 4, !tbaa !5
  br label %510, !llvm.loop !29

558:                                              ; preds = %514
  br label %559

559:                                              ; preds = %558, %507
  %560 = load i32, ptr %35, align 4, !tbaa !5
  %561 = add nsw i32 %560, 1
  store i32 %561, ptr %35, align 4, !tbaa !5
  br label %493, !llvm.loop !30

562:                                              ; preds = %497
  %563 = load i32, ptr @rt, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %563, i32 noundef 0)
  store i32 1000000000, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %564

564:                                              ; preds = %622, %562
  %565 = load i32, ptr %40, align 4, !tbaa !5
  %566 = load i32, ptr @rt, align 4, !tbaa !5
  %567 = sext i32 %566 to i64
  %568 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %567
  %569 = load i32, ptr %568, align 4, !tbaa !5
  %570 = shl i32 1, %569
  %571 = icmp slt i32 %565, %570
  br i1 %571, label %573, label %572

572:                                              ; preds = %564
  store i32 48, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %625

573:                                              ; preds = %564
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %574

574:                                              ; preds = %611, %573
  %575 = load i32, ptr %42, align 4, !tbaa !5
  %576 = load i32, ptr @rt, align 4, !tbaa !5
  %577 = sext i32 %576 to i64
  %578 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %577
  %579 = load i32, ptr %578, align 4, !tbaa !5
  %580 = icmp slt i32 %575, %579
  br i1 %580, label %582, label %581

581:                                              ; preds = %574
  store i32 51, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %614

582:                                              ; preds = %574
  %583 = load i32, ptr @rt, align 4, !tbaa !5
  %584 = sext i32 %583 to i64
  %585 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %584
  %586 = load i32, ptr %42, align 4, !tbaa !5
  %587 = sext i32 %586 to i64
  %588 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %585, i64 noundef %587) #9
  %589 = load i32, ptr %588, align 4, !tbaa !5
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %590
  %592 = load i32, ptr %591, align 4, !tbaa !5
  %593 = load i32, ptr %40, align 4, !tbaa !5
  %594 = load i32, ptr %42, align 4, !tbaa !5
  %595 = ashr i32 %593, %594
  %596 = and i32 %595, 1
  %597 = load i32, ptr @rt, align 4, !tbaa !5
  %598 = sext i32 %597 to i64
  %599 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %598
  %600 = load i32, ptr %42, align 4, !tbaa !5
  %601 = sext i32 %600 to i64
  %602 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %599, i64 noundef %601) #9
  %603 = load i32, ptr %602, align 4, !tbaa !5
  %604 = sext i32 %603 to i64
  %605 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %604
  %606 = load i32, ptr %605, align 4, !tbaa !5
  %607 = xor i32 %596, %606
  %608 = mul nsw i32 %592, %607
  %609 = load i32, ptr %41, align 4, !tbaa !5
  %610 = add nsw i32 %609, %608
  store i32 %610, ptr %41, align 4, !tbaa !5
  br label %611

611:                                              ; preds = %582
  %612 = load i32, ptr %42, align 4, !tbaa !5
  %613 = add nsw i32 %612, 1
  store i32 %613, ptr %42, align 4, !tbaa !5
  br label %574, !llvm.loop !31

614:                                              ; preds = %581
  %615 = load i32, ptr @rt, align 4, !tbaa !5
  %616 = load i32, ptr %40, align 4, !tbaa !5
  %617 = call noundef i32 @_Z2dpiii(i32 noundef %615, i32 noundef 0, i32 noundef %616)
  %618 = load i32, ptr %41, align 4, !tbaa !5
  %619 = add nsw i32 %618, %617
  store i32 %619, ptr %41, align 4, !tbaa !5
  %620 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %621 = load i32, ptr %620, align 4, !tbaa !5
  store i32 %621, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %622

622:                                              ; preds = %614
  %623 = load i32, ptr %40, align 4, !tbaa !5
  %624 = add nsw i32 %623, 1
  store i32 %624, ptr %40, align 4, !tbaa !5
  br label %564, !llvm.loop !32

625:                                              ; preds = %572
  %626 = load i32, ptr @ans, align 4, !tbaa !5
  %627 = icmp sge i32 %626, 1000000000
  br i1 %627, label %628, label %630

628:                                              ; preds = %625
  %629 = call i32 @puts(ptr noundef @.str.12)
  br label %633

630:                                              ; preds = %625
  %631 = load i32, ptr @ans, align 4, !tbaa !5
  %632 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %631)
  br label %633

633:                                              ; preds = %630, %628
  %634 = load i32, ptr %2, align 4, !tbaa !5
  %635 = add nsw i32 %634, -1
  store i32 %635, ptr %2, align 4, !tbaa !5
  br label %45, !llvm.loop !33

636:                                              ; preds = %546, %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %638

637:                                              ; preds = %48
  ret i32 0

638:                                              ; preds = %636
  %639 = load ptr, ptr %28, align 8
  %640 = load i32, ptr %29, align 4
  %641 = insertvalue { ptr, i32 } poison, ptr %639, 0
  %642 = insertvalue { ptr, i32 } %641, i32 %640, 1
  resume { ptr, i32 } %642

643:                                              ; preds = %486, %206
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z4readv() #5

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) #0

declare i32 @puts(ptr noundef) #7

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

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

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

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


; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Edge = type { i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@str = external dso_local global [150 x i8], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@c = external dso_local local_unnamed_addr global [150 x i32], align 16
@bit = external dso_local local_unnamed_addr global [150 x i32], align 16
@bln = external dso_local local_unnamed_addr global [150 x i32], align 16
@e = external dso_local local_unnamed_addr global [150 x [150 x i32]], align 16
@pe = external dso_local local_unnamed_addr global [150 x i32], align 16
@rk = external dso_local local_unnamed_addr global [150 x i32], align 16
@siz = external dso_local local_unnamed_addr global [150 x i32], align 16
@rt = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local global i32, align 4
@all = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@anc = external dso_local global [150 x i32], align 16
@vis = external dso_local local_unnamed_addr global [150 x [513 x i32]], align 16
@a = external dso_local global [150 x %"class.std::vector"], align 16
@b = external dso_local global [150 x %"class.std::vector"], align 16
@cl = external dso_local global [150 x %"class.std::vector"], align 16
@tr = external dso_local global [150 x %"class.std::vector"], align 16
@has = external dso_local global [150 x %"class.std::vector"], align 16
@edg = external dso_local global [22500 x %struct.Edge], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, ptr noundef) 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3mcsv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z2dpiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca i32, align 4
  %17 = tail call noundef i64 @_Z4readv()
  %18 = trunc i64 %17 to i32
  %.not198 = icmp eq i32 %18, 0
  br i1 %.not198, label %._crit_edge202, label %.lr.ph201

._crit_edge202:                                   ; preds = %324, %0
  ret i32 0

.lr.ph201:                                        ; preds = %0, %324
  %.0103199 = phi i32 [ %325, %324 ], [ %18, %0 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(90000) @e, i8 0, i64 90000, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(600) @bln, i8 0, i64 600, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(307800) @vis, i8 0, i64 307800, i1 false)
  %19 = call noundef i64 @_Z4readv()
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr @n, align 4, !tbaa !5
  %21 = call noundef i64 @_Z4readv()
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr @m, align 4, !tbaa !5
  %23 = call noundef i64 @_Z4readv()
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr @k, align 4, !tbaa !5
  %25 = shl nuw i32 1, %24
  store i32 %25, ptr @all, align 4, !tbaa !5
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 1))
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %.not123141 = icmp slt i32 %27, 1
  br i1 %.not123141, label %.preheader140, label %.lr.ph

.preheader140:                                    ; preds = %.lr.ph, %.lr.ph201
  %28 = phi i32 [ %27, %.lr.ph201 ], [ %42, %.lr.ph ]
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph152, label %._crit_edge153

.lr.ph:                                           ; preds = %.lr.ph201, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph201 ]
  %31 = call noundef i64 @_Z4readv()
  %32 = trunc i64 %31 to i32
  %33 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %indvars.iv
  store i32 %32, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds [150 x i8], ptr @str, i64 0, i64 %indvars.iv
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = add nsw i32 %36, -48
  %38 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %indvars.iv
  store i32 %37, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %40 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  %41 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %.not123.not = icmp slt i64 %indvars.iv, %43
  br i1 %.not123.not, label %.lr.ph, label %.preheader140, !llvm.loop !10

._crit_edge153.loopexit:                          ; preds = %._crit_edge150
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge153

._crit_edge153:                                   ; preds = %._crit_edge153.loopexit, %.preheader140
  %44 = phi i32 [ %.pre, %._crit_edge153.loopexit ], [ %28, %.preheader140 ]
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.preheader138.preheader, label %._crit_edge163

.preheader138.preheader:                          ; preds = %._crit_edge153
  %46 = add nsw i32 %44, -2
  %47 = zext nneg i32 %44 to i64
  br label %.preheader138

.lr.ph152:                                        ; preds = %.preheader140, %._crit_edge150
  %indvars.iv209 = phi i64 [ %indvars.iv.next210, %._crit_edge150 ], [ 0, %.preheader140 ]
  %48 = call noundef i64 @_Z4readv()
  %49 = trunc i64 %48 to i32
  %50 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %indvars.iv209
  %sext = shl i64 %48, 32
  %51 = ashr exact i64 %sext, 32
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %51)
  %52 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %indvars.iv209
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %51)
  %53 = icmp sgt i32 %49, 0
  br i1 %53, label %.lr.ph144.preheader, label %._crit_edge

.lr.ph144.preheader:                              ; preds = %.lr.ph152
  %wide.trip.count = and i64 %48, 2147483647
  br label %.lr.ph144

._crit_edge:                                      ; preds = %.lr.ph144, %.lr.ph152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %54 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #8
  store ptr %54, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %55 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #8
  store ptr %55, ptr %2, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br i1 %56, label %.lr.ph149, label %._crit_edge150

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %.lr.ph144
  %indvars.iv206 = phi i64 [ 0, %.lr.ph144.preheader ], [ %indvars.iv.next207, %.lr.ph144 ]
  %57 = call noundef i64 @_Z4readv()
  %58 = trunc i64 %57 to i32
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %indvars.iv206) #8
  store i32 %58, ptr %59, align 4, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %indvars.iv206) #8
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %.inv = icmp slt i32 %61, 1
  %62 = select i1 %.inv, i32 -1, i32 1
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %indvars.iv206) #8
  store i32 %62, ptr %63, align 4, !tbaa !5
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %indvars.iv206) #8
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %indvars.iv206) #8
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = mul nsw i32 %67, %65
  store i32 %68, ptr %66, align 4, !tbaa !5
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph144, !llvm.loop !12

._crit_edge150:                                   ; preds = %._crit_edge147, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %69 = load i32, ptr @m, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next210, %70
  br i1 %71, label %.lr.ph152, label %._crit_edge153.loopexit, !llvm.loop !13

.lr.ph149:                                        ; preds = %._crit_edge, %._crit_edge147
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #8
  %73 = load i32, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %74 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #8
  store ptr %74, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %75 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #8
  store ptr %75, ptr %4, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br i1 %76, label %.lr.ph146, label %._crit_edge147

.lr.ph146:                                        ; preds = %.lr.ph149
  %77 = sext i32 %73 to i64
  br label %80

._crit_edge147:                                   ; preds = %88, %.lr.ph149
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #8
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br i1 %79, label %.lr.ph149, label %._crit_edge150

80:                                               ; preds = %.lr.ph146, %88
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp eq i32 %73, %82
  br i1 %83, label %88, label %84

84:                                               ; preds = %80
  %85 = sext i32 %82 to i64
  %86 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %85, i64 %77
  store i32 1, ptr %86, align 4, !tbaa !5
  %87 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %77, i64 %85
  store i32 1, ptr %87, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %80, %84
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br i1 %90, label %80, label %._crit_edge147

.preheader138:                                    ; preds = %.preheader138.preheader, %._crit_edge161
  %indvars.iv219 = phi i64 [ %47, %.preheader138.preheader ], [ %indvars.iv.next220, %._crit_edge161 ]
  %indvars.iv212 = phi i32 [ %46, %.preheader138.preheader ], [ %indvars.iv.next213, %._crit_edge161 ]
  %91 = icmp ugt i64 %indvars.iv219, 1
  br i1 %91, label %.lr.ph160, label %._crit_edge163

._crit_edge163:                                   ; preds = %.preheader138, %._crit_edge161, %._crit_edge153
  call void @_Z3mcsv()
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph171, label %._crit_edge172.thread

._crit_edge172.thread:                            ; preds = %._crit_edge163
  store i32 0, ptr @tot, align 4, !tbaa !5
  br label %._crit_edge178

.loopexit:                                        ; preds = %scalar.ph
  %indvars.iv.next215 = add i32 %indvars.iv214, -1
  br i1 %96, label %.lr.ph160, label %._crit_edge161, !llvm.loop !14

._crit_edge161:                                   ; preds = %.lr.ph160, %.loopexit
  %indvars.iv.next220 = add nsw i64 %indvars.iv219, -1
  %indvars.iv.next213 = add i32 %indvars.iv212, -1
  br i1 %91, label %.preheader138, label %._crit_edge163, !llvm.loop !15

.lr.ph160:                                        ; preds = %.preheader138, %.loopexit
  %indvars.iv221 = phi i64 [ %94, %.loopexit ], [ %indvars.iv219, %.preheader138 ]
  %indvars.iv214 = phi i32 [ %indvars.iv.next215, %.loopexit ], [ %indvars.iv212, %.preheader138 ]
  %94 = add nsw i64 %indvars.iv221, -1
  %95 = trunc nuw i64 %indvars.iv221 to i32
  %96 = icmp sgt i32 %95, 2
  br i1 %96, label %.lr.ph156, label %._crit_edge161

.lr.ph156:                                        ; preds = %.lr.ph160
  %97 = zext i32 %indvars.iv214 to i64
  %98 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %indvars.iv219, i64 %94
  br label %scalar.ph

scalar.ph:                                        ; preds = %.lr.ph156, %scalar.ph
  %indvars.iv216 = phi i64 [ %indvars.iv.next217, %scalar.ph ], [ %97, %.lr.ph156 ]
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %indvars.iv219, i64 %indvars.iv216
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = and i32 %101, %99
  %103 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %94, i64 %indvars.iv216
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = or i32 %104, %102
  store i32 %105, ptr %103, align 4, !tbaa !5
  %106 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %indvars.iv216, i64 %94
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = or i32 %107, %105
  store i32 %108, ptr %106, align 4, !tbaa !5
  %indvars.iv.next217 = add nsw i64 %indvars.iv216, -1
  %109 = trunc nuw i64 %indvars.iv216 to i32
  %110 = icmp sgt i32 %109, 1
  br i1 %110, label %scalar.ph, label %.loopexit, !llvm.loop !16

._crit_edge172:                                   ; preds = %._crit_edge168
  store i32 0, ptr @tot, align 4, !tbaa !5
  %.not124176 = icmp slt i32 %125, 1
  br i1 %.not124176, label %._crit_edge178, label %.preheader

.lr.ph171:                                        ; preds = %._crit_edge163, %._crit_edge168
  %111 = phi i32 [ %125, %._crit_edge168 ], [ %92, %._crit_edge163 ]
  %indvars.iv226 = phi i64 [ %indvars.iv.next227, %._crit_edge168 ], [ 0, %._crit_edge163 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %112 = getelementptr inbounds [150 x i32], ptr @pe, i64 0, i64 %indvars.iv226
  %113 = load i32, ptr %112, align 4, !tbaa !5
  store i32 %113, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  %.not136164 = icmp slt i32 %111, 1
  br i1 %.not136164, label %._crit_edge168, label %.lr.ph167

._crit_edge168.loopexit:                          ; preds = %141
  %.pre248 = load i32, ptr %5, align 4, !tbaa !5
  br label %._crit_edge168

._crit_edge168:                                   ; preds = %._crit_edge168.loopexit, %.lr.ph171
  %114 = phi i32 [ %.pre248, %._crit_edge168.loopexit ], [ %113, %.lr.ph171 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %115
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %118
  %120 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #8
  %121 = trunc i64 %120 to i32
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %123
  store i32 %121, ptr %124, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next227, %126
  br i1 %127, label %.lr.ph171, label %._crit_edge172, !llvm.loop !18

.lr.ph167:                                        ; preds = %.lr.ph171, %141
  %128 = phi i32 [ %142, %141 ], [ %111, %.lr.ph171 ]
  %storemerge135165 = phi i32 [ %144, %141 ], [ 1, %.lr.ph171 ]
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = sext i32 %storemerge135165 to i64
  %132 = getelementptr inbounds [150 x [150 x i32]], ptr @e, i64 0, i64 %130, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %.not137 = icmp eq i32 %133, 0
  br i1 %.not137, label %141, label %134

134:                                              ; preds = %.lr.ph167
  %135 = getelementptr inbounds [150 x i32], ptr @rk, i64 0, i64 %131
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv226, %137
  br i1 %138, label %139, label %141

139:                                              ; preds = %134
  %140 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %130
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %.pre246 = load i32, ptr %6, align 4, !tbaa !5
  %.pre247 = load i32, ptr @n, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %.lr.ph167, %134, %139
  %142 = phi i32 [ %128, %.lr.ph167 ], [ %128, %134 ], [ %.pre247, %139 ]
  %143 = phi i32 [ %storemerge135165, %.lr.ph167 ], [ %storemerge135165, %134 ], [ %.pre246, %139 ]
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %6, align 4, !tbaa !5
  %.not136.not = icmp slt i32 %143, %142
  br i1 %.not136.not, label %.lr.ph167, label %._crit_edge168.loopexit, !llvm.loop !19

.preheader:                                       ; preds = %._crit_edge172, %._crit_edge175
  %145 = phi i32 [ %158, %._crit_edge175 ], [ 0, %._crit_edge172 ]
  %146 = phi i32 [ %159, %._crit_edge175 ], [ %125, %._crit_edge172 ]
  %indvars.iv234 = phi i64 [ %indvars.iv.next235, %._crit_edge175 ], [ 1, %._crit_edge172 ]
  %147 = icmp ugt i64 %indvars.iv234, 1
  br i1 %147, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %.preheader
  %148 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %indvars.iv234
  %149 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %indvars.iv234
  %150 = trunc nuw nsw i64 %indvars.iv234 to i32
  br label %161

._crit_edge178:                                   ; preds = %._crit_edge175, %._crit_edge172.thread, %._crit_edge172
  %151 = phi i32 [ 0, %._crit_edge172 ], [ 0, %._crit_edge172.thread ], [ %158, %._crit_edge175 ]
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %struct.Edge, ptr @edg, i64 %152
  call void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef nonnull @edg, ptr noundef nonnull %153)
  %154 = load i32, ptr @n, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @anc, i64 4), i64 %155
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @anc, i64 4), ptr noundef nonnull %gep, i32 noundef 1)
  %156 = load i32, ptr @tot, align 4, !tbaa !5
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph181, label %.preheader139

._crit_edge175.loopexit:                          ; preds = %186
  %.pre249 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge175

._crit_edge175:                                   ; preds = %._crit_edge175.loopexit, %.preheader
  %158 = phi i32 [ %188, %._crit_edge175.loopexit ], [ %145, %.preheader ]
  %159 = phi i32 [ %.pre249, %._crit_edge175.loopexit ], [ %146, %.preheader ]
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %160 = sext i32 %159 to i64
  %.not124.not = icmp slt i64 %indvars.iv234, %160
  br i1 %.not124.not, label %.preheader, label %._crit_edge178, !llvm.loop !20

161:                                              ; preds = %.lr.ph174, %186
  %indvars.iv229 = phi i64 [ 1, %.lr.ph174 ], [ %indvars.iv.next230, %186 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %148)
  %162 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %indvars.iv229
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %162)
          to label %163 unwind label %173

163:                                              ; preds = %161
  invoke void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
          to label %164 unwind label %175

164:                                              ; preds = %163
  %165 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %166 = trunc i64 %165 to i32
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  %167 = load i32, ptr %149, align 4, !tbaa !5
  %168 = icmp eq i32 %167, %166
  br i1 %168, label %169, label %178

169:                                              ; preds = %164
  %170 = load i32, ptr @all, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %indvars.iv234, i64 %171
  store i32 1, ptr %172, align 4, !tbaa !5
  br label %178

173:                                              ; preds = %161
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %177

175:                                              ; preds = %163
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %177

177:                                              ; preds = %175, %173
  %.pn132 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %326

178:                                              ; preds = %169, %164
  %179 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %indvars.iv229
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = icmp eq i32 %180, %166
  br i1 %181, label %182, label %186

182:                                              ; preds = %178
  %183 = load i32, ptr @all, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %indvars.iv229, i64 %184
  store i32 1, ptr %185, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %182, %178
  %187 = load i32, ptr @tot, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr @tot, align 4, !tbaa !5
  %189 = sext i32 %187 to i64
  %190 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %189
  store i32 %150, ptr %190, align 4, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %190, i64 4
  %191 = trunc nuw nsw i64 %indvars.iv229 to i32
  store i32 %191, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %190, i64 8
  store i32 %166, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !5
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %exitcond233.not = icmp eq i64 %indvars.iv.next230, %indvars.iv234
  br i1 %exitcond233.not, label %._crit_edge175.loopexit, label %161, !llvm.loop !21

.preheader139:                                    ; preds = %224, %._crit_edge178
  %192 = load i32, ptr @n, align 4, !tbaa !5
  %.not125186 = icmp slt i32 %192, 1
  br i1 %.not125186, label %._crit_edge189, label %.lr.ph188

.lr.ph181:                                        ; preds = %._crit_edge178, %224
  %indvars.iv237 = phi i64 [ %indvars.iv.next238, %224 ], [ 0, %._crit_edge178 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %193 = getelementptr inbounds [22500 x %struct.Edge], ptr @edg, i64 0, i64 %indvars.iv237
  %194 = load i32, ptr %193, align 4, !tbaa !22
  store i32 %194, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %195 = getelementptr inbounds i8, ptr %193, i64 4
  %196 = load i32, ptr %195, align 4, !tbaa !24
  store i32 %196, ptr %11, align 4, !tbaa !5
  %197 = sext i32 %194 to i64
  %198 = load i32, ptr @all, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %197, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %.not130 = icmp eq i32 %201, 0
  br i1 %.not130, label %202, label %224

202:                                              ; preds = %.lr.ph181
  %203 = sext i32 %196 to i64
  %204 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %203, i64 %199
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %.not131 = icmp eq i32 %205, 0
  br i1 %.not131, label %206, label %224

206:                                              ; preds = %202
  %207 = call noundef i32 @_Z4findi(i32 noundef %194)
  %208 = load i32, ptr %11, align 4, !tbaa !5
  %209 = call noundef i32 @_Z4findi(i32 noundef %208)
  %210 = icmp eq i32 %207, %209
  br i1 %210, label %224, label %211

211:                                              ; preds = %206
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = call noundef i32 @_Z4findi(i32 noundef %212)
  %214 = load i32, ptr %10, align 4, !tbaa !5
  %215 = call noundef i32 @_Z4findi(i32 noundef %214)
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [150 x i32], ptr @anc, i64 0, i64 %216
  store i32 %213, ptr %217, align 4, !tbaa !5
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %219
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %221 = load i32, ptr %11, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %222
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 4 dereferenceable(4) %10)
  br label %224

224:                                              ; preds = %.lr.ph181, %202, %206, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  %indvars.iv.next238 = add nuw nsw i64 %indvars.iv237, 1
  %225 = load i32, ptr @tot, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = icmp slt i64 %indvars.iv.next238, %226
  br i1 %227, label %.lr.ph181, label %.preheader139, !llvm.loop !25

._crit_edge189:                                   ; preds = %273, %.preheader139
  %228 = load i32, ptr @rt, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %228, i32 noundef 0)
  store i32 1000000000, ptr @ans, align 4, !tbaa !5
  %229 = load i32, ptr @rt, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %.not203 = icmp eq i32 %232, 31
  br i1 %.not203, label %._crit_edge197.thread, label %.lr.ph196

.lr.ph188:                                        ; preds = %.preheader139, %273
  %.pre252253 = phi i32 [ %.pre252254, %273 ], [ %192, %.preheader139 ]
  %233 = phi i32 [ %274, %273 ], [ %192, %.preheader139 ]
  %indvars.iv240 = phi i64 [ %indvars.iv.next241, %273 ], [ 1, %.preheader139 ]
  %234 = load i32, ptr @all, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %indvars.iv240, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %.not126 = icmp eq i32 %237, 0
  br i1 %.not126, label %238, label %273

238:                                              ; preds = %.lr.ph188
  %239 = trunc nuw nsw i64 %indvars.iv240 to i32
  store i32 %239, ptr @rt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  %240 = load i32, ptr @m, align 4, !tbaa !5
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %.lr.ph184, label %._crit_edge185

.lr.ph184:                                        ; preds = %238
  %242 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %indvars.iv240
  %243 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %indvars.iv240
  br label %244

._crit_edge185.loopexit:                          ; preds = %268
  %.pre252.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge185

._crit_edge185:                                   ; preds = %._crit_edge185.loopexit, %238
  %.pre252 = phi i32 [ %.pre252.pre, %._crit_edge185.loopexit ], [ %.pre252253, %238 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %273

244:                                              ; preds = %.lr.ph184, %268
  %storemerge182 = phi i32 [ 0, %.lr.ph184 ], [ %270, %268 ]
  %245 = sext i32 %storemerge182 to i64
  %246 = getelementptr inbounds [150 x i32], ptr @bln, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %.not127 = icmp eq i32 %247, 0
  br i1 %.not127, label %248, label %268

248:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %242)
  %249 = load i32, ptr %12, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %250
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %251)
          to label %252 unwind label %259

252:                                              ; preds = %248
  invoke void @_Z9intersectSt6vectorIiSaIiEES1_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %13, ptr noundef nonnull %14, ptr noundef nonnull %15)
          to label %253 unwind label %261

253:                                              ; preds = %252
  %254 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %255 = load i32, ptr %12, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %256
  %258 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %257) #8
  %.not129 = icmp eq i64 %254, %258
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br i1 %.not129, label %264, label %._crit_edge250

._crit_edge250:                                   ; preds = %253
  %.pre251 = load i32, ptr %12, align 4, !tbaa !5
  br label %268

259:                                              ; preds = %248
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %263

261:                                              ; preds = %252
  %262 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %263

263:                                              ; preds = %261, %259
  %.pn = phi { ptr, i32 } [ %262, %261 ], [ %260, %259 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %326

264:                                              ; preds = %253
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %265 = load i32, ptr %12, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [150 x i32], ptr @bln, i64 0, i64 %266
  store i32 %239, ptr %267, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %._crit_edge250, %244, %264
  %269 = phi i32 [ %.pre251, %._crit_edge250 ], [ %storemerge182, %244 ], [ %265, %264 ]
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %12, align 4, !tbaa !5
  %271 = load i32, ptr @m, align 4, !tbaa !5
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %244, label %._crit_edge185.loopexit, !llvm.loop !26

273:                                              ; preds = %.lr.ph188, %._crit_edge185
  %.pre252254 = phi i32 [ %.pre252253, %.lr.ph188 ], [ %.pre252, %._crit_edge185 ]
  %274 = phi i32 [ %233, %.lr.ph188 ], [ %.pre252, %._crit_edge185 ]
  %indvars.iv.next241 = add nuw nsw i64 %indvars.iv240, 1
  %275 = sext i32 %274 to i64
  %.not125.not = icmp slt i64 %indvars.iv240, %275
  br i1 %.not125.not, label %.lr.ph188, label %._crit_edge189, !llvm.loop !27

._crit_edge197:                                   ; preds = %._crit_edge193
  %276 = icmp sgt i32 %285, 999999999
  br i1 %276, label %._crit_edge197.thread, label %322

.lr.ph196:                                        ; preds = %._crit_edge189, %._crit_edge193
  %277 = phi i32 [ %290, %._crit_edge193 ], [ %232, %._crit_edge189 ]
  %278 = phi i32 [ %287, %._crit_edge193 ], [ %229, %._crit_edge189 ]
  %.0101194 = phi i32 [ %286, %._crit_edge193 ], [ 0, %._crit_edge189 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  %279 = icmp sgt i32 %277, 0
  br i1 %279, label %.lr.ph192.preheader, label %._crit_edge193

.lr.ph192.preheader:                              ; preds = %.lr.ph196
  %280 = sext i32 %278 to i64
  br label %.lr.ph192

._crit_edge193:                                   ; preds = %.lr.ph192, %.lr.ph196
  %.lcssa = phi i32 [ %278, %.lr.ph196 ], [ %315, %.lr.ph192 ]
  %281 = call noundef i32 @_Z2dpiii(i32 noundef %.lcssa, i32 noundef 0, i32 noundef %.0101194)
  %282 = load i32, ptr %16, align 4, !tbaa !5
  %283 = add nsw i32 %282, %281
  store i32 %283, ptr %16, align 4, !tbaa !5
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %285 = load i32, ptr %284, align 4, !tbaa !5
  store i32 %285, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %286 = add nuw nsw i32 %.0101194, 1
  %287 = load i32, ptr @rt, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = shl nuw i32 1, %290
  %292 = icmp slt i32 %286, %291
  br i1 %292, label %.lr.ph196, label %._crit_edge197, !llvm.loop !28

.lr.ph192:                                        ; preds = %.lr.ph192.preheader, %.lr.ph192
  %indvars.iv243 = phi i64 [ 0, %.lr.ph192.preheader ], [ %indvars.iv.next244, %.lr.ph192 ]
  %293 = phi i64 [ %280, %.lr.ph192.preheader ], [ %316, %.lr.ph192 ]
  %294 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %293
  %295 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %294, i64 noundef %indvars.iv243) #8
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = trunc nuw nsw i64 %indvars.iv243 to i32
  %301 = lshr i32 %.0101194, %300
  %302 = and i32 %301, 1
  %303 = load i32, ptr @rt, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %304
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %indvars.iv243) #8
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = xor i32 %310, %302
  %312 = mul nsw i32 %311, %299
  %313 = load i32, ptr %16, align 4, !tbaa !5
  %314 = add nsw i32 %312, %313
  store i32 %314, ptr %16, align 4, !tbaa !5
  %indvars.iv.next244 = add nuw nsw i64 %indvars.iv243, 1
  %315 = load i32, ptr @rt, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = icmp slt i64 %indvars.iv.next244, %319
  br i1 %320, label %.lr.ph192, label %._crit_edge193, !llvm.loop !29

._crit_edge197.thread:                            ; preds = %._crit_edge189, %._crit_edge197
  %321 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %324

322:                                              ; preds = %._crit_edge197
  %323 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %285)
  br label %324

324:                                              ; preds = %322, %._crit_edge197.thread
  %325 = add nsw i32 %.0103199, -1
  %.not = icmp eq i32 %325, 0
  br i1 %.not, label %._crit_edge202, label %.lr.ph201, !llvm.loop !30

326:                                              ; preds = %263, %177
  %.pn132.pn = phi { ptr, i32 } [ %.pn132, %177 ], [ %.pn, %263 ]
  resume { ptr, i32 } %.pn132.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z4readv() local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11, !17}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!24 = !{!23, !6, i64 4}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}


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