; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/VK Cup 2016 Round 1 /Problem E (E)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@dtime = external dso_local global i32, align 4
@g = external dso_local global [300100 x %"class.std::vector"], align 16
@disc1 = external dso_local global [300100 x i32], align 16
@bic1 = external dso_local global [300100 x i32], align 16
@bno1 = external dso_local global i32, align 4
@bgraph = external dso_local global [300100 x %"class.std::vector.0"], align 16
@biccomp = external dso_local global [300100 x i32], align 16
@biccompno = external dso_local global i32, align 4
@l = external dso_local global [300100 x i32], align 16
@r = external dso_local global [300100 x i32], align 16
@compressedForest = external dso_local global [300100 x %"class.std::vector"], align 16
@f = external dso_local global [300100 x i32], align 16
@low2 = external dso_local global [300100 x i32], align 16
@disc2 = external dso_local global [300100 x i32], align 16
@bic2 = external dso_local global [300100 x i32], align 16
@bno2 = external dso_local global i32, align 4
@st = external dso_local global %"class.std::stack", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

; 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 @_Z4dfs1ii(i32 noundef, i32 noundef) #1

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

; 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 @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_Z4dfs3ii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z14buildJumpTablev() #0

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

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

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

; 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 %"struct.std::pair", align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::vector.0", align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %"struct.std::pair", align 4
  %46 = alloca %"struct.std::pair", align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %"struct.std::pair", align 4
  %51 = alloca %"struct.std::pair", align 4
  %52 = alloca i32, align 4
  %53 = alloca i8, align 1
  %54 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %71, %0
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = load i32, ptr @m, align 4, !tbaa !5
  %59 = icmp sle i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %74

61:                                               ; preds = %56
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.7, ptr noundef %2, ptr noundef %3)
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %66 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %66, ptr %5, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %70 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %70, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %71

71:                                               ; preds = %61
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %4, align 4, !tbaa !5
  br label %56, !llvm.loop !9

74:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %89, %74
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %92

80:                                               ; preds = %75
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [300100 x i32], ptr @disc1, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %88, label %86

86:                                               ; preds = %80
  %87 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z4dfs1ii(i32 noundef %87, i32 noundef 0)
  br label %88

88:                                               ; preds = %86, %80
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !5
  br label %75, !llvm.loop !11

92:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %140, %92
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = load i32, ptr @n, align 4, !tbaa !5
  %96 = icmp sle i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %143

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %100
  %102 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #7
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  br label %104

104:                                              ; preds = %137, %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %106
  %108 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #7
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  %110 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br i1 %110, label %112, label %111

111:                                              ; preds = %104
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %139

112:                                              ; preds = %104
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %118 = getelementptr inbounds %"struct.std::pair", ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4, !tbaa !12
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = icmp ne i32 %116, %122
  br i1 %123, label %124, label %136

124:                                              ; preds = %112
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [300100 x %"class.std::vector.0"], ptr @bgraph, i64 0, i64 %129
  %131 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %132 = getelementptr inbounds %"struct.std::pair", ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !12
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %134
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 4 dereferenceable(4) %135)
  br label %136

136:                                              ; preds = %124, %112
  br label %137

137:                                              ; preds = %136
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %104, !llvm.loop !14

139:                                              ; preds = %111
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %8, align 4, !tbaa !5
  br label %93, !llvm.loop !15

143:                                              ; preds = %97
  store i32 0, ptr @dtime, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %161, %143
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = load i32, ptr @bno1, align 4, !tbaa !5
  %147 = icmp sle i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %164

149:                                              ; preds = %144
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [300100 x i32], ptr @l, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %160, label %155

155:                                              ; preds = %149
  %156 = load i32, ptr @biccompno, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr @biccompno, align 4, !tbaa !5
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = load i32, ptr %12, align 4, !tbaa !5
  call void @_Z4dfs2ii(i32 noundef %158, i32 noundef %159)
  br label %160

160:                                              ; preds = %155, %149
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %12, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %12, align 4, !tbaa !5
  br label %144, !llvm.loop !16

164:                                              ; preds = %148
  call void @_Z14buildJumpTablev()
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %596, %164
  %166 = load i32, ptr %14, align 4, !tbaa !5
  %167 = load i32, ptr @q, align 4, !tbaa !5
  %168 = icmp sle i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %602

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %171 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.7, ptr noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %188, %170
  %173 = load i32, ptr %20, align 4, !tbaa !5
  %174 = load i32, ptr %15, align 4, !tbaa !5
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %195

177:                                              ; preds = %172
  %178 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef %2)
          to label %179 unwind label %191

179:                                              ; preds = %177
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %180 = load i32, ptr %2, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %181
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %182)
          to label %183 unwind label %191

183:                                              ; preds = %179
  %184 = load i32, ptr %2, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %185
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %186)
          to label %187 unwind label %191

187:                                              ; preds = %183
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %20, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %20, align 4, !tbaa !5
  br label %172, !llvm.loop !17

191:                                              ; preds = %183, %179, %177
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %21, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %601

195:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %217, %195
  %197 = load i32, ptr %23, align 4, !tbaa !5
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = icmp sle i32 %197, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %196
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %229

201:                                              ; preds = %196
  %202 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.7, ptr noundef %2, ptr noundef %3)
          to label %203 unwind label %220

203:                                              ; preds = %201
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %204 = load i32, ptr %2, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  store i32 %207, ptr %2, align 4, !tbaa !5
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %208 = load i32, ptr %3, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  store i32 %211, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %212 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %213 unwind label %224

213:                                              ; preds = %203
  store i64 %212, ptr %24, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %214 unwind label %224

214:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %215 unwind label %220

215:                                              ; preds = %214
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %216 unwind label %220

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %23, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %23, align 4, !tbaa !5
  br label %196, !llvm.loop !18

220:                                              ; preds = %215, %214, %201
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %21, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %22, align 4
  br label %228

224:                                              ; preds = %213, %203
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %21, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %228

228:                                              ; preds = %224, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %601

229:                                              ; preds = %200
  %230 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %231 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %25, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  %232 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %233 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %26, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %25, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %26, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %235, ptr %237, ptr noundef @_Z4compRKiS0_)
          to label %238 unwind label %247

238:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %239 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %240 = trunc i64 %239 to i32
  store i32 %240, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %241 = load i32, ptr %27, align 4, !tbaa !5
  %242 = sub nsw i32 %241, 1
  store i32 %242, ptr %28, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %280, %238
  %244 = load i32, ptr %28, align 4, !tbaa !5
  %245 = icmp sgt i32 %244, 0
  br i1 %245, label %251, label %246

246:                                              ; preds = %243
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %283

247:                                              ; preds = %229
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %21, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %22, align 4
  br label %601

251:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %252 = load i32, ptr %28, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %253) #7
  %255 = load i32, ptr %254, align 4, !tbaa !5
  store i32 %255, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %256 = load i32, ptr %28, align 4, !tbaa !5
  %257 = sub nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %258) #7
  %260 = load i32, ptr %259, align 4, !tbaa !5
  store i32 %260, ptr %30, align 4, !tbaa !5
  %261 = load i32, ptr %29, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [300100 x i32], ptr @biccomp, i64 0, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = load i32, ptr %30, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [300100 x i32], ptr @biccomp, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = icmp eq i32 %264, %268
  br i1 %269, label %270, label %279

270:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %271 = load i32, ptr %29, align 4, !tbaa !5
  %272 = load i32, ptr %30, align 4, !tbaa !5
  %273 = call noundef i32 @_Z3LCAii(i32 noundef %271, i32 noundef %272)
  store i32 %273, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %274 unwind label %275

274:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %279

275:                                              ; preds = %270
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %21, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %600

279:                                              ; preds = %274, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %28, align 4, !tbaa !5
  %282 = add nsw i32 %281, -1
  store i32 %282, ptr %28, align 4, !tbaa !5
  br label %243, !llvm.loop !19

283:                                              ; preds = %246
  %284 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %285 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %32, i32 0, i32 0
  store ptr %284, ptr %285, align 8
  %286 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %287 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %33, i32 0, i32 0
  store ptr %286, ptr %287, align 8
  %288 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %32, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8
  %290 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %33, i32 0, i32 0
  %291 = load ptr, ptr %290, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %289, ptr %291, ptr noundef @_Z4compRKiS0_)
          to label %292 unwind label %320

292:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %293 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %36, i32 0, i32 0
  store ptr %293, ptr %294, align 8
  %295 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %296 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %37, i32 0, i32 0
  store ptr %295, ptr %296, align 8
  %297 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %36, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8
  %299 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %37, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8
  %301 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %298, ptr %300)
          to label %302 unwind label %324

302:                                              ; preds = %292
  %303 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  store ptr %301, ptr %303, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %304 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %305 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %39, i32 0, i32 0
  store ptr %304, ptr %305, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  %306 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %34, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8
  %308 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %38, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8
  %310 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %307, ptr %309)
          to label %311 unwind label %328

311:                                              ; preds = %302
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %40, i32 0, i32 0
  store ptr %310, ptr %312, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  %313 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %314 = trunc i64 %313 to i32
  store i32 %314, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %315

315:                                              ; preds = %342, %311
  %316 = load i32, ptr %41, align 4, !tbaa !5
  %317 = load i32, ptr %27, align 4, !tbaa !5
  %318 = icmp slt i32 %316, %317
  br i1 %318, label %333, label %319

319:                                              ; preds = %315
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %345

320:                                              ; preds = %283
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %21, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %22, align 4
  br label %600

324:                                              ; preds = %292
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %21, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %22, align 4
  br label %332

328:                                              ; preds = %302
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %21, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %332

332:                                              ; preds = %328, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %600

333:                                              ; preds = %315
  %334 = load i32, ptr %41, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  %336 = load i32, ptr %41, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %337) #7
  %339 = load i32, ptr %338, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %340
  store i32 %335, ptr %341, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %333
  %343 = load i32, ptr %41, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %41, align 4, !tbaa !5
  br label %315, !llvm.loop !20

345:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 1, ptr %42, align 4, !tbaa !5
  br label %346

346:                                              ; preds = %364, %345
  %347 = load i32, ptr %42, align 4, !tbaa !5
  %348 = load i32, ptr %27, align 4, !tbaa !5
  %349 = icmp sle i32 %347, %348
  br i1 %349, label %351, label %350

350:                                              ; preds = %346
  store i32 32, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %367

351:                                              ; preds = %346
  %352 = load i32, ptr %42, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %353
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %354) #7
  %355 = load i32, ptr %42, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [300100 x i32], ptr @disc2, i64 0, i64 %356
  store i32 0, ptr %357, align 4, !tbaa !5
  %358 = load i32, ptr %42, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [300100 x i32], ptr @low2, i64 0, i64 %359
  store i32 0, ptr %360, align 4, !tbaa !5
  %361 = load i32, ptr %42, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %362
  store i32 0, ptr %363, align 4, !tbaa !5
  br label %364

364:                                              ; preds = %351
  %365 = load i32, ptr %42, align 4, !tbaa !5
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %42, align 4, !tbaa !5
  br label %346, !llvm.loop !21

367:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 0, ptr %43, align 4, !tbaa !5
  %368 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @st, ptr noundef nonnull align 4 dereferenceable(4) %368)
          to label %369 unwind label %375

369:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 1, ptr %44, align 4, !tbaa !5
  br label %370

370:                                              ; preds = %459, %369
  %371 = load i32, ptr %44, align 4, !tbaa !5
  %372 = load i32, ptr %27, align 4, !tbaa !5
  %373 = icmp slt i32 %371, %372
  br i1 %373, label %379, label %374

374:                                              ; preds = %370
  store i32 35, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %463

375:                                              ; preds = %517, %513, %367
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %21, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %22, align 4
  br label %599

379:                                              ; preds = %370
  br label %380

380:                                              ; preds = %401, %379
  %381 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %382 unwind label %402

382:                                              ; preds = %380
  br i1 %381, label %398, label %383

383:                                              ; preds = %382
  %384 = load i32, ptr %44, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %385) #7
  %387 = load i32, ptr %386, align 4, !tbaa !5
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [300100 x i32], ptr @r, i64 0, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !5
  %391 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %392 unwind label %402

392:                                              ; preds = %383
  %393 = load i32, ptr %391, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [300100 x i32], ptr @r, i64 0, i64 %394
  %396 = load i32, ptr %395, align 4, !tbaa !5
  %397 = icmp sgt i32 %390, %396
  br label %398

398:                                              ; preds = %392, %382
  %399 = phi i1 [ false, %382 ], [ %397, %392 ]
  br i1 %399, label %400, label %406

400:                                              ; preds = %398
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %401 unwind label %402

401:                                              ; preds = %400
  br label %380, !llvm.loop !22

402:                                              ; preds = %454, %409, %406, %400, %383, %380
  %403 = landingpad { ptr, i32 }
          cleanup
  %404 = extractvalue { ptr, i32 } %403, 0
  store ptr %404, ptr %21, align 8
  %405 = extractvalue { ptr, i32 } %403, 1
  store i32 %405, ptr %22, align 4
  br label %462

406:                                              ; preds = %398
  %407 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %408 unwind label %402

408:                                              ; preds = %406
  br i1 %407, label %454, label %409

409:                                              ; preds = %408
  %410 = load i32, ptr %43, align 4, !tbaa !5
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %43, align 4, !tbaa !5
  %412 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %413 unwind label %402

413:                                              ; preds = %409
  %414 = load i32, ptr %412, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %418
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %420 = load i32, ptr %44, align 4, !tbaa !5
  %421 = sext i32 %420 to i64
  %422 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %421) #7
  %423 = load i32, ptr %422, align 4, !tbaa !5
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %424
  %426 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %425, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %427 unwind label %446

427:                                              ; preds = %413
  store i64 %426, ptr %45, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %419, ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %428 unwind label %446

428:                                              ; preds = %427
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  %429 = load i32, ptr %44, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %430) #7
  %432 = load i32, ptr %431, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %433
  %435 = load i32, ptr %434, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %436
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %438 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %439 unwind label %450

439:                                              ; preds = %428
  %440 = load i32, ptr %438, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %441
  %443 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %442, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %444 unwind label %450

444:                                              ; preds = %439
  store i64 %443, ptr %46, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %437, ptr noundef nonnull align 4 dereferenceable(8) %46)
          to label %445 unwind label %450

445:                                              ; preds = %444
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %454

446:                                              ; preds = %427, %413
  %447 = landingpad { ptr, i32 }
          cleanup
  %448 = extractvalue { ptr, i32 } %447, 0
  store ptr %448, ptr %21, align 8
  %449 = extractvalue { ptr, i32 } %447, 1
  store i32 %449, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %462

450:                                              ; preds = %444, %439, %428
  %451 = landingpad { ptr, i32 }
          cleanup
  %452 = extractvalue { ptr, i32 } %451, 0
  store ptr %452, ptr %21, align 8
  %453 = extractvalue { ptr, i32 } %451, 1
  store i32 %453, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %462

454:                                              ; preds = %445, %408
  %455 = load i32, ptr %44, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %456) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @st, ptr noundef nonnull align 4 dereferenceable(4) %457)
          to label %458 unwind label %402

458:                                              ; preds = %454
  br label %459

459:                                              ; preds = %458
  %460 = load i32, ptr %44, align 4, !tbaa !5
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %44, align 4, !tbaa !5
  br label %370, !llvm.loop !23

462:                                              ; preds = %450, %446, %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %599

463:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %464

464:                                              ; preds = %500, %463
  %465 = load i32, ptr %47, align 4, !tbaa !5
  %466 = load i32, ptr %16, align 4, !tbaa !5
  %467 = icmp slt i32 %465, %466
  br i1 %467, label %469, label %468

468:                                              ; preds = %464
  store i32 40, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %512

469:                                              ; preds = %464
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %470 = load i32, ptr %47, align 4, !tbaa !5
  %471 = sext i32 %470 to i64
  %472 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %471) #7
  %473 = getelementptr inbounds %"struct.std::pair", ptr %472, i32 0, i32 0
  %474 = load i32, ptr %473, align 4, !tbaa !12
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %475
  %477 = load i32, ptr %476, align 4, !tbaa !5
  store i32 %477, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %478 = load i32, ptr %47, align 4, !tbaa !5
  %479 = sext i32 %478 to i64
  %480 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %479) #7
  %481 = getelementptr inbounds %"struct.std::pair", ptr %480, i32 0, i32 1
  %482 = load i32, ptr %481, align 4, !tbaa !24
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %483
  %485 = load i32, ptr %484, align 4, !tbaa !5
  store i32 %485, ptr %49, align 4, !tbaa !5
  %486 = load i32, ptr %43, align 4, !tbaa !5
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %43, align 4, !tbaa !5
  %488 = load i32, ptr %48, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %489
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  %491 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %492 unwind label %503

492:                                              ; preds = %469
  store i64 %491, ptr %50, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %490, ptr noundef nonnull align 4 dereferenceable(8) %50)
          to label %493 unwind label %503

493:                                              ; preds = %492
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  %494 = load i32, ptr %49, align 4, !tbaa !5
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %495
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  %497 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %498 unwind label %507

498:                                              ; preds = %493
  store i64 %497, ptr %51, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %496, ptr noundef nonnull align 4 dereferenceable(8) %51)
          to label %499 unwind label %507

499:                                              ; preds = %498
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %500

500:                                              ; preds = %499
  %501 = load i32, ptr %47, align 4, !tbaa !5
  %502 = add nsw i32 %501, 1
  store i32 %502, ptr %47, align 4, !tbaa !5
  br label %464, !llvm.loop !25

503:                                              ; preds = %492, %469
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %21, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %511

507:                                              ; preds = %498, %493
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %21, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %511

511:                                              ; preds = %507, %503
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %599

512:                                              ; preds = %468
  br label %513

513:                                              ; preds = %518, %512
  %514 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %515 unwind label %375

515:                                              ; preds = %513
  %516 = xor i1 %514, true
  br i1 %516, label %517, label %519

517:                                              ; preds = %515
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
          to label %518 unwind label %375

518:                                              ; preds = %517
  br label %513, !llvm.loop !26

519:                                              ; preds = %515
  store i32 0, ptr @bno2, align 4, !tbaa !5
  store i32 0, ptr @dtime, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  store i32 1, ptr %52, align 4, !tbaa !5
  br label %520

520:                                              ; preds = %539, %519
  %521 = load i32, ptr %52, align 4, !tbaa !5
  %522 = load i32, ptr %27, align 4, !tbaa !5
  %523 = icmp sle i32 %521, %522
  br i1 %523, label %525, label %524

524:                                              ; preds = %520
  store i32 45, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %542

525:                                              ; preds = %520
  %526 = load i32, ptr %52, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [300100 x i32], ptr @low2, i64 0, i64 %527
  %529 = load i32, ptr %528, align 4, !tbaa !5
  %530 = icmp ne i32 %529, 0
  br i1 %530, label %538, label %531

531:                                              ; preds = %525
  %532 = load i32, ptr %52, align 4, !tbaa !5
  invoke void @_Z4dfs3ii(i32 noundef %532, i32 noundef 0)
          to label %533 unwind label %534

533:                                              ; preds = %531
  br label %538

534:                                              ; preds = %531
  %535 = landingpad { ptr, i32 }
          cleanup
  %536 = extractvalue { ptr, i32 } %535, 0
  store ptr %536, ptr %21, align 8
  %537 = extractvalue { ptr, i32 } %535, 1
  store i32 %537, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %599

538:                                              ; preds = %533, %525
  br label %539

539:                                              ; preds = %538
  %540 = load i32, ptr %52, align 4, !tbaa !5
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %52, align 4, !tbaa !5
  br label %520, !llvm.loop !27

542:                                              ; preds = %524
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #7
  store i8 1, ptr %53, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  store i32 1, ptr %54, align 4, !tbaa !5
  br label %543

543:                                              ; preds = %573, %542
  %544 = load i32, ptr %54, align 4, !tbaa !5
  %545 = load i32, ptr %15, align 4, !tbaa !5
  %546 = icmp slt i32 %544, %545
  br i1 %546, label %548, label %547

547:                                              ; preds = %543
  store i32 48, ptr %9, align 4
  br label %576

548:                                              ; preds = %543
  %549 = load i32, ptr %54, align 4, !tbaa !5
  %550 = sext i32 %549 to i64
  %551 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %550) #7
  %552 = load i32, ptr %551, align 4, !tbaa !5
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %553
  %555 = load i32, ptr %554, align 4, !tbaa !5
  %556 = sext i32 %555 to i64
  %557 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %556
  %558 = load i32, ptr %557, align 4, !tbaa !5
  %559 = load i32, ptr %54, align 4, !tbaa !5
  %560 = sub nsw i32 %559, 1
  %561 = sext i32 %560 to i64
  %562 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %561) #7
  %563 = load i32, ptr %562, align 4, !tbaa !5
  %564 = sext i32 %563 to i64
  %565 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %564
  %566 = load i32, ptr %565, align 4, !tbaa !5
  %567 = sext i32 %566 to i64
  %568 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %567
  %569 = load i32, ptr %568, align 4, !tbaa !5
  %570 = icmp ne i32 %558, %569
  br i1 %570, label %571, label %572

571:                                              ; preds = %548
  store i8 0, ptr %53, align 1, !tbaa !28
  store i32 48, ptr %9, align 4
  br label %576

572:                                              ; preds = %548
  br label %573

573:                                              ; preds = %572
  %574 = load i32, ptr %54, align 4, !tbaa !5
  %575 = add nsw i32 %574, 1
  store i32 %575, ptr %54, align 4, !tbaa !5
  br label %543, !llvm.loop !30

576:                                              ; preds = %571, %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  br label %577

577:                                              ; preds = %576
  %578 = load i8, ptr %53, align 1, !tbaa !28, !range !31, !noundef !32
  %579 = trunc i8 %578 to i1
  br i1 %579, label %580, label %592

580:                                              ; preds = %577
  %581 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9)
          to label %582 unwind label %588

582:                                              ; preds = %580
  %583 = load i32, ptr %13, align 4, !tbaa !5
  %584 = load i32, ptr %14, align 4, !tbaa !5
  %585 = add nsw i32 %583, %584
  %586 = load i32, ptr @n, align 4, !tbaa !5
  %587 = srem i32 %585, %586
  store i32 %587, ptr %13, align 4, !tbaa !5
  br label %595

588:                                              ; preds = %592, %580
  %589 = landingpad { ptr, i32 }
          cleanup
  %590 = extractvalue { ptr, i32 } %589, 0
  store ptr %590, ptr %21, align 8
  %591 = extractvalue { ptr, i32 } %589, 1
  store i32 %591, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #7
  br label %599

592:                                              ; preds = %577
  %593 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.10)
          to label %594 unwind label %588

594:                                              ; preds = %592
  br label %595

595:                                              ; preds = %594, %582
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %596

596:                                              ; preds = %595
  %597 = load i32, ptr %14, align 4, !tbaa !5
  %598 = add nsw i32 %597, 1
  store i32 %598, ptr %14, align 4, !tbaa !5
  br label %165, !llvm.loop !33

599:                                              ; preds = %588, %534, %511, %462, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %600

600:                                              ; preds = %599, %332, %320, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %601

601:                                              ; preds = %600, %247, %228, %191
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %604

602:                                              ; preds = %169
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %603 = load i32, ptr %1, align 4
  ret i32 %603

604:                                              ; preds = %601
  %605 = load ptr, ptr %21, align 8
  %606 = load i32, ptr %22, align 4
  %607 = insertvalue { ptr, i32 } poison, ptr %605, 0
  %608 = insertvalue { ptr, i32 } %607, i32 %606, 1
  resume { ptr, i32 } %608
}

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

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

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

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr, ptr, ptr noundef) #6

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) #6

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@dtime = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local global [300100 x %"class.std::vector"], align 16
@disc1 = external dso_local local_unnamed_addr global [300100 x i32], align 16
@bic1 = external dso_local global [300100 x i32], align 16
@bno1 = external dso_local local_unnamed_addr global i32, align 4
@bgraph = external dso_local global [300100 x %"class.std::vector.0"], align 16
@biccomp = external dso_local local_unnamed_addr global [300100 x i32], align 16
@biccompno = external dso_local local_unnamed_addr global i32, align 4
@l = external dso_local local_unnamed_addr global [300100 x i32], align 16
@r = external dso_local local_unnamed_addr global [300100 x i32], align 16
@compressedForest = external dso_local global [300100 x %"class.std::vector"], align 16
@f = external dso_local global [300100 x i32], align 16
@low2 = external dso_local local_unnamed_addr global [300100 x i32], align 16
@disc2 = external dso_local local_unnamed_addr global [300100 x i32], align 16
@bic2 = external dso_local local_unnamed_addr global [300100 x i32], align 16
@bno2 = external dso_local local_unnamed_addr global i32, align 4
@st = external dso_local global %"class.std::stack", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

; 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 @_Z4dfs1ii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; 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 @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(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_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_Z4dfs3ii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z14buildJumpTablev() local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::vector.0", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr @m, align 4, !tbaa !5
  %.not129 = icmp slt i32 %28, 1
  br i1 %.not129, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %.not94130 = icmp slt i32 %29, 1
  br i1 %.not94130, label %._crit_edge140, label %.lr.ph133

.lr.ph:                                           ; preds = %0, %.lr.ph
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %34 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %34, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %38 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %38, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !5
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %.not.not = icmp slt i32 %39, %41
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader128:                                    ; preds = %47
  %.not95137 = icmp slt i32 %48, 1
  br i1 %.not95137, label %._crit_edge140, label %.lr.ph139

.lr.ph133:                                        ; preds = %._crit_edge, %47
  %42 = phi i32 [ %48, %47 ], [ %29, %._crit_edge ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %47 ], [ 1, %._crit_edge ]
  %43 = getelementptr inbounds [300100 x i32], ptr @disc1, i64 0, i64 %indvars.iv
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %.not119 = icmp eq i32 %44, 0
  br i1 %.not119, label %45, label %47

45:                                               ; preds = %.lr.ph133
  %46 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_Z4dfs1ii(i32 noundef %46, i32 noundef 0)
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %.lr.ph133, %45
  %48 = phi i32 [ %42, %.lr.ph133 ], [ %.pre, %45 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = sext i32 %48 to i64
  %.not94.not = icmp slt i64 %indvars.iv, %49
  br i1 %.not94.not, label %.lr.ph133, label %.preheader128, !llvm.loop !11

._crit_edge140:                                   ; preds = %._crit_edge136, %._crit_edge, %.preheader128
  store i32 0, ptr @dtime, align 4, !tbaa !5
  %50 = load i32, ptr @bno1, align 4, !tbaa !5
  %.not96141 = icmp slt i32 %50, 1
  br i1 %.not96141, label %._crit_edge145, label %.lr.ph144

.lr.ph139:                                        ; preds = %.preheader128, %._crit_edge136
  %indvars.iv187 = phi i64 [ %indvars.iv.next188, %._crit_edge136 ], [ 1, %.preheader128 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %51 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv187
  %52 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %52, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %53 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %53, ptr %7, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %54, label %.lr.ph135, label %._crit_edge136

.lr.ph135:                                        ; preds = %.lr.ph139
  %55 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %indvars.iv187
  br label %58

._crit_edge136:                                   ; preds = %73, %.lr.ph139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %.not95.not = icmp slt i64 %indvars.iv187, %57
  br i1 %.not95.not, label %.lr.ph139, label %._crit_edge140, !llvm.loop !12

58:                                               ; preds = %.lr.ph135, %73
  %59 = load i32, ptr %55, align 4, !tbaa !5
  %60 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %.not118 = icmp eq i32 %59, %64
  br i1 %.not118, label %73, label %65

65:                                               ; preds = %58
  %66 = load i32, ptr %55, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [300100 x %"class.std::vector.0"], ptr @bgraph, i64 0, i64 %67
  %69 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %70 = load i32, ptr %69, align 4, !tbaa !13
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %71
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 4 dereferenceable(4) %72)
  br label %73

73:                                               ; preds = %58, %65
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %75 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  store ptr %75, ptr %7, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %76, label %58, label %._crit_edge136, !llvm.loop !15

._crit_edge145:                                   ; preds = %85, %._crit_edge140
  call void @_Z14buildJumpTablev()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  %77 = load i32, ptr @q, align 4, !tbaa !5
  %.not97181 = icmp slt i32 %77, 1
  br i1 %.not97181, label %._crit_edge185, label %.lr.ph184

.lr.ph144:                                        ; preds = %._crit_edge140, %85
  %78 = phi i32 [ %86, %85 ], [ %50, %._crit_edge140 ]
  %indvars.iv190 = phi i64 [ %indvars.iv.next191, %85 ], [ 1, %._crit_edge140 ]
  %79 = getelementptr inbounds [300100 x i32], ptr @l, i64 0, i64 %indvars.iv190
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %.not117 = icmp eq i32 %80, 0
  br i1 %.not117, label %81, label %85

81:                                               ; preds = %.lr.ph144
  %82 = load i32, ptr @biccompno, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @biccompno, align 4, !tbaa !5
  %84 = trunc nuw nsw i64 %indvars.iv190 to i32
  call void @_Z4dfs2ii(i32 noundef %84, i32 noundef %84)
  %.pre220 = load i32, ptr @bno1, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %.lr.ph144, %81
  %86 = phi i32 [ %78, %.lr.ph144 ], [ %.pre220, %81 ]
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %87 = sext i32 %86 to i64
  %.not96.not = icmp slt i64 %indvars.iv190, %87
  br i1 %.not96.not, label %.lr.ph144, label %._crit_edge145, !llvm.loop !16

._crit_edge185:                                   ; preds = %316, %._crit_edge145
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph184:                                        ; preds = %._crit_edge145, %316
  %.081182 = phi i32 [ %317, %316 ], [ 1, %._crit_edge145 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %88 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull %9, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %.not98146 = icmp slt i32 %89, 1
  br i1 %.not98146, label %.preheader127, label %.lr.ph149

.preheader127:                                    ; preds = %99, %.lr.ph184
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %.not99150 = icmp slt i32 %90, 1
  br i1 %.not99150, label %._crit_edge153, label %.lr.ph152

.lr.ph149:                                        ; preds = %.lr.ph184, %99
  %.082147 = phi i32 [ %100, %99 ], [ 1, %.lr.ph184 ]
  %91 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull %1)
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %93
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %94)
          to label %95 unwind label %102

95:                                               ; preds = %.lr.ph149
  %96 = load i32, ptr %1, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %97
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %98)
          to label %99 unwind label %102

99:                                               ; preds = %95
  %100 = add nuw nsw i32 %.082147, 1
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %.not98.not = icmp slt i32 %.082147, %101
  br i1 %.not98.not, label %.lr.ph149, label %.preheader127, !llvm.loop !17

102:                                              ; preds = %95, %.lr.ph149
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %320

._crit_edge153:                                   ; preds = %119, %.preheader127
  %104 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %105 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %104, ptr %105, ptr noundef nonnull @_Z4compRKiS0_)
          to label %126 unwind label %133

.lr.ph152:                                        ; preds = %.preheader127, %119
  %.092151 = phi i32 [ %120, %119 ], [ 1, %.preheader127 ]
  %106 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr %1, align 4, !tbaa !5
  call void @_Z6rotateRiS_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [300100 x i32], ptr @bic1, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %114, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %115 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %116 unwind label %124

116:                                              ; preds = %.lr.ph152
  store i64 %115, ptr %14, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %117 unwind label %124

117:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %118 unwind label %122

118:                                              ; preds = %117
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %119 unwind label %122

119:                                              ; preds = %118
  %120 = add nuw nsw i32 %.092151, 1
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %.not99.not = icmp slt i32 %.092151, %121
  br i1 %.not99.not, label %.lr.ph152, label %._crit_edge153, !llvm.loop !18

122:                                              ; preds = %118, %117
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %320

124:                                              ; preds = %116, %.lr.ph152
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %320

126:                                              ; preds = %._crit_edge153
  %127 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %128 = trunc i64 %127 to i32
  %129 = icmp sgt i32 %128, 1
  br i1 %129, label %.lr.ph158.preheader, label %._crit_edge159

.lr.ph158.preheader:                              ; preds = %126
  %130 = and i64 %127, 2147483647
  br label %.lr.ph158

._crit_edge159:                                   ; preds = %152, %126
  %131 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %132 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %131, ptr %132, ptr noundef nonnull @_Z4compRKiS0_)
          to label %154 unwind label %168

133:                                              ; preds = %._crit_edge153
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %320

.lr.ph158:                                        ; preds = %.lr.ph158.preheader, %152
  %indvars.iv193 = phi i64 [ %130, %.lr.ph158.preheader ], [ %indvars.iv.next194, %152 ]
  %indvars.iv.next194 = add nsw i64 %indvars.iv193, -1
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv.next194) #7
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = add nsw i64 %indvars.iv193, -2
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %137) #7
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %136 to i64
  %141 = getelementptr inbounds [300100 x i32], ptr @biccomp, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = sext i32 %139 to i64
  %144 = getelementptr inbounds [300100 x i32], ptr @biccomp, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = icmp eq i32 %142, %145
  br i1 %146, label %147, label %152

147:                                              ; preds = %.lr.ph158
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %148 = call noundef i32 @_Z3LCAii(i32 noundef %136, i32 noundef %139)
  store i32 %148, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %149 unwind label %150

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %152

150:                                              ; preds = %147
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %320

152:                                              ; preds = %149, %.lr.ph158
  %153 = icmp ugt i64 %indvars.iv193, 2
  br i1 %153, label %.lr.ph158, label %._crit_edge159, !llvm.loop !19

154:                                              ; preds = %._crit_edge159
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %155 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %156 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %157 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %155, ptr %156)
          to label %158 unwind label %170

158:                                              ; preds = %154
  store ptr %157, ptr %17, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %159 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store ptr %159, ptr %19, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %160 = load ptr, ptr %16, align 8
  %161 = load ptr, ptr %18, align 8
  %162 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %160, ptr %161)
          to label %163 unwind label %172

163:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %164 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %165 = trunc i64 %164 to i32
  %166 = icmp slt i32 %165, 1
  br i1 %166, label %._crit_edge166, label %.lr.ph162.preheader

.lr.ph162.preheader:                              ; preds = %163
  %wide.trip.count = and i64 %164, 2147483647
  br label %.lr.ph162

.lr.ph165.preheader:                              ; preds = %.lr.ph162
  %167 = add nuw nsw i64 %164, 1
  %wide.trip.count202 = and i64 %167, 4294967295
  br label %.lr.ph165

168:                                              ; preds = %._crit_edge159
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %320

170:                                              ; preds = %154
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %158
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %174

174:                                              ; preds = %172, %170
  %.pn = phi { ptr, i32 } [ %173, %172 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %320

.lr.ph162:                                        ; preds = %.lr.ph162.preheader, %.lr.ph162
  %indvars.iv196 = phi i64 [ 0, %.lr.ph162.preheader ], [ %indvars.iv.next197, %.lr.ph162 ]
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv196) #7
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %177
  %179 = trunc nuw nsw i64 %indvars.iv.next197 to i32
  store i32 %179, ptr %178, align 4, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count
  br i1 %exitcond.not, label %.lr.ph165.preheader, label %.lr.ph162, !llvm.loop !20

._crit_edge166:                                   ; preds = %.lr.ph165, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @st, ptr noundef nonnull align 4 dereferenceable(4) %180)
          to label %.preheader125 unwind label %189

.preheader125:                                    ; preds = %._crit_edge166
  %181 = icmp sgt i32 %165, 1
  br i1 %181, label %.preheader.preheader, label %.preheader124

.preheader.preheader:                             ; preds = %.preheader125
  %wide.trip.count207 = and i64 %164, 2147483647
  br label %.preheader

.lr.ph165:                                        ; preds = %.lr.ph165.preheader, %.lr.ph165
  %indvars.iv199 = phi i64 [ 1, %.lr.ph165.preheader ], [ %indvars.iv.next200, %.lr.ph165 ]
  %182 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %indvars.iv199
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #7
  %183 = getelementptr inbounds [300100 x i32], ptr @disc2, i64 0, i64 %indvars.iv199
  store i32 0, ptr %183, align 4, !tbaa !5
  %184 = getelementptr inbounds [300100 x i32], ptr @low2, i64 0, i64 %indvars.iv199
  store i32 0, ptr %184, align 4, !tbaa !5
  %185 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %indvars.iv199
  store i32 0, ptr %185, align 4, !tbaa !5
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %._crit_edge166, label %.lr.ph165, !llvm.loop !21

.preheader124:                                    ; preds = %244, %.preheader125
  %186 = load i32, ptr %10, align 4, !tbaa !5
  %187 = icmp sgt i32 %186, 0
  br i1 %187, label %.lr.ph171, label %.preheader123

.preheader:                                       ; preds = %.preheader.preheader, %244
  %indvars.iv204 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next205, %244 ]
  %188 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  br i1 %188, label %.critedge, label %.lr.ph167

189:                                              ; preds = %._crit_edge166
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %319

.lr.ph167:                                        ; preds = %.preheader, %202
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv204) #7
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [300100 x i32], ptr @r, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [300100 x i32], ptr @r, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp sgt i32 %195, %200
  br i1 %201, label %202, label %.critedge

202:                                              ; preds = %.lr.ph167
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  %203 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  br i1 %203, label %.critedge, label %.lr.ph167, !llvm.loop !22

204:                                              ; preds = %242
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %319

.critedge:                                        ; preds = %.lr.ph167, %202, %.preheader
  %206 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  br i1 %206, label %242, label %207

207:                                              ; preds = %.critedge
  %208 = load i32, ptr %20, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %20, align 4, !tbaa !5
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv204) #7
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %217
  %219 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %218, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %220 unwind label %238

220:                                              ; preds = %207
  %221 = sext i32 %214 to i64
  %222 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %221
  store i64 %219, ptr %21, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %223 unwind label %238

223:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv204) #7
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %231
  %233 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %232, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %234 unwind label %240

234:                                              ; preds = %223
  %235 = sext i32 %228 to i64
  %236 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %235
  store i64 %233, ptr %22, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %236, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %237 unwind label %240

237:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %242

238:                                              ; preds = %220, %207
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %319

240:                                              ; preds = %234, %223
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %319

242:                                              ; preds = %237, %.critedge
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv204) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @st, ptr noundef nonnull align 4 dereferenceable(4) %243)
          to label %244 unwind label %204

244:                                              ; preds = %242
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %.preheader124, label %.preheader, !llvm.loop !23

.preheader123:                                    ; preds = %270, %.preheader124
  %245 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  br i1 %245, label %._crit_edge173, label %.lr.ph172

.lr.ph171:                                        ; preds = %.preheader124, %270
  %indvars.iv209 = phi i64 [ %indvars.iv.next210, %270 ], [ 0, %.preheader124 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %246 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv209) #7
  %247 = load i32, ptr %246, align 4, !tbaa !13
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  store i32 %250, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %251 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv209) #7
  %252 = getelementptr inbounds i8, ptr %251, i64 4
  %253 = load i32, ptr %252, align 4, !tbaa !24
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  store i32 %256, ptr %24, align 4, !tbaa !5
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %20, align 4, !tbaa !5
  %259 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %260 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %261 unwind label %274

261:                                              ; preds = %.lr.ph171
  %262 = sext i32 %259 to i64
  %263 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %262
  store i64 %260, ptr %25, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %263, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %264 unwind label %274

264:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  %265 = load i32, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %266 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %267 unwind label %276

267:                                              ; preds = %264
  %268 = sext i32 %265 to i64
  %269 = getelementptr inbounds [300100 x %"class.std::vector"], ptr @compressedForest, i64 0, i64 %268
  store i64 %266, ptr %26, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %269, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %270 unwind label %276

270:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = icmp slt i64 %indvars.iv.next210, %272
  br i1 %273, label %.lr.ph171, label %.preheader123, !llvm.loop !25

274:                                              ; preds = %261, %.lr.ph171
  %275 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %278

276:                                              ; preds = %267, %264
  %277 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %278

278:                                              ; preds = %276, %274
  %.pn106 = phi { ptr, i32 } [ %277, %276 ], [ %275, %274 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  br label %319

.lr.ph172:                                        ; preds = %.preheader123, %.lr.ph172
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  %279 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @st)
  br i1 %279, label %._crit_edge173, label %.lr.ph172, !llvm.loop !26

._crit_edge173:                                   ; preds = %.lr.ph172, %.preheader123
  store i32 0, ptr @bno2, align 4, !tbaa !5
  store i32 0, ptr @dtime, align 4, !tbaa !5
  br i1 %166, label %.preheader122, label %.lr.ph177.preheader

.lr.ph177.preheader:                              ; preds = %._crit_edge173
  %280 = add nuw nsw i64 %164, 1
  %wide.trip.count215 = and i64 %280, 4294967295
  br label %.lr.ph177

.preheader122:                                    ; preds = %288, %._crit_edge173
  %281 = load i32, ptr %9, align 4, !tbaa !5
  %.not104178 = icmp sgt i32 %281, 1
  br i1 %.not104178, label %.lr.ph180, label %.critedge121

.lr.ph177:                                        ; preds = %.lr.ph177.preheader, %288
  %indvars.iv212 = phi i64 [ 1, %.lr.ph177.preheader ], [ %indvars.iv.next213, %288 ]
  %282 = getelementptr inbounds [300100 x i32], ptr @low2, i64 0, i64 %indvars.iv212
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %.not105 = icmp eq i32 %283, 0
  br i1 %.not105, label %284, label %288

284:                                              ; preds = %.lr.ph177
  %285 = trunc nuw nsw i64 %indvars.iv212 to i32
  invoke void @_Z4dfs3ii(i32 noundef %285, i32 noundef 0)
          to label %288 unwind label %286

286:                                              ; preds = %284
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %319

288:                                              ; preds = %.lr.ph177, %284
  %indvars.iv.next213 = add nuw nsw i64 %indvars.iv212, 1
  %exitcond216.not = icmp eq i64 %indvars.iv.next213, %wide.trip.count215
  br i1 %exitcond216.not, label %.preheader122, label %.lr.ph177, !llvm.loop !27

289:                                              ; preds = %.lr.ph180
  %indvars.iv.next218 = add nuw nsw i64 %indvars.iv217, 1
  %290 = load i32, ptr %9, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %.not104 = icmp slt i64 %indvars.iv.next218, %291
  br i1 %.not104, label %.lr.ph180, label %.critedge121, !llvm.loop !28

.lr.ph180:                                        ; preds = %.preheader122, %289
  %indvars.iv217 = phi i64 [ %indvars.iv.next218, %289 ], [ 1, %.preheader122 ]
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv217) #7
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %294
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = add nsw i64 %indvars.iv217, -1
  %301 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %300) #7
  %302 = load i32, ptr %301, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [300100 x i32], ptr @f, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [300100 x i32], ptr @bic2, i64 0, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %.not103 = icmp eq i32 %299, %308
  br i1 %.not103, label %289, label %314

.critedge121:                                     ; preds = %289, %.preheader122
  %309 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %310 = load i32, ptr %8, align 4, !tbaa !5
  %311 = add nsw i32 %310, %.081182
  %312 = load i32, ptr @n, align 4, !tbaa !5
  %313 = srem i32 %311, %312
  store i32 %313, ptr %8, align 4, !tbaa !5
  br label %316

314:                                              ; preds = %.lr.ph180
  %315 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %316

316:                                              ; preds = %314, %.critedge121
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %317 = add nuw nsw i32 %.081182, 1
  %318 = load i32, ptr @q, align 4, !tbaa !5
  %.not97.not = icmp slt i32 %.081182, %318
  br i1 %.not97.not, label %.lr.ph184, label %._crit_edge185, !llvm.loop !29

319:                                              ; preds = %204, %238, %240, %286, %278, %189
  %.pn108.pn = phi { ptr, i32 } [ %.pn106, %278 ], [ %287, %286 ], [ %190, %189 ], [ %205, %204 ], [ %241, %240 ], [ %239, %238 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  br label %320

320:                                              ; preds = %150, %168, %174, %319, %122, %124, %133, %102
  %.pn115 = phi { ptr, i32 } [ %103, %102 ], [ %134, %133 ], [ %123, %122 ], [ %125, %124 ], [ %151, %150 ], [ %.pn108.pn, %319 ], [ %.pn, %174 ], [ %169, %168 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn115
}

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

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

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

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #6

; 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: 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 @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) local_unnamed_addr #6

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

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

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

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

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

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

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

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


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