; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2017/Codesprint 9/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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }

@g = external dso_local global [100100 x %"class.std::vector"], align 16
@comp = external dso_local global [100100 x %"class.std::vector.0"], align 16
@vis = external dso_local global [100100 x i32], align 16
@n = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@poss = external dso_local global [100100 x [10 x i32]], align 16
@ans = external dso_local global [10 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca [1024 x i64], align 16
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %47 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %48 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %49 = getelementptr i8, ptr %48, i64 -24
  %50 = load i64, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %50
  %52 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %51, ptr noundef null)
  %53 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %54 = getelementptr i8, ptr %53, i64 -24
  %55 = load i64, ptr %54, align 8
  %56 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %55
  %57 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %56, ptr noundef null)
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(4) @e)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %82, %0
  %61 = load i32, ptr %2, align 4, !tbaa !8
  %62 = load i32, ptr @e, align 4, !tbaa !8
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  br label %85

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %69 = load i32, ptr %5, align 4, !tbaa !8
  %70 = srem i32 %69, 10
  store i32 %70, ptr %5, align 4, !tbaa !8
  %71 = load i32, ptr %3, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %74 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %74, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  %75 = load i32, ptr %4, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %78 = load i32, ptr %5, align 4, !tbaa !8
  %79 = sub nsw i32 10, %78
  %80 = srem i32 %79, 10
  store i32 %80, ptr %8, align 4, !tbaa !8
  %81 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %8)
  store i64 %81, ptr %7, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %82

82:                                               ; preds = %65
  %83 = load i32, ptr %2, align 4, !tbaa !8
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %2, align 4, !tbaa !8
  br label %60, !llvm.loop !11

85:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %86

86:                                               ; preds = %102, %85
  %87 = load i32, ptr %10, align 4, !tbaa !8
  %88 = load i32, ptr @n, align 4, !tbaa !8
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %105

91:                                               ; preds = %86
  %92 = load i32, ptr %10, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100100 x i32], ptr @vis, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  br label %102

98:                                               ; preds = %91
  %99 = load i32, ptr %10, align 4, !tbaa !8
  %100 = load i32, ptr %9, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %9, align 4, !tbaa !8
  call void @_Z3dfsii(i32 noundef %99, i32 noundef %100)
  br label %102

102:                                              ; preds = %98, %97
  %103 = load i32, ptr %10, align 4, !tbaa !8
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !8
  br label %86, !llvm.loop !13

105:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %106

106:                                              ; preds = %417, %105
  %107 = load i32, ptr %11, align 4, !tbaa !8
  %108 = load i32, ptr %9, align 4, !tbaa !8
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %420

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %112 = load i32, ptr %11, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %113
  %115 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #10
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %13, align 4, !tbaa !8
  %117 = load i32, ptr %13, align 4, !tbaa !8
  %118 = icmp sle i32 %117, 0
  br i1 %118, label %119, label %219

119:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %120 = load i32, ptr %11, align 4, !tbaa !8
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %121
  store ptr %122, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %123 = load ptr, ptr %14, align 8, !tbaa !14
  %124 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #10
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %15, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %126 = load ptr, ptr %14, align 8, !tbaa !14
  %127 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #10
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %16, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  br label %129

129:                                              ; preds = %216, %119
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  br i1 %130, label %132, label %131

131:                                              ; preds = %129
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %218

132:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  store ptr %133, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %134 = load i32, ptr %11, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %135
  store ptr %136, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %137 = load ptr, ptr %18, align 8, !tbaa !14
  %138 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #10
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %19, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %140 = load ptr, ptr %18, align 8, !tbaa !14
  %141 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #10
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  br label %143

143:                                              ; preds = %164, %132
  %144 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br i1 %144, label %146, label %145

145:                                              ; preds = %143
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %166

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  store ptr %147, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %160, %146
  %149 = load i32, ptr %22, align 4, !tbaa !8
  %150 = icmp slt i32 %149, 10
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %163

152:                                              ; preds = %148
  %153 = load ptr, ptr %21, align 8, !tbaa !14
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %155
  %157 = load i32, ptr %22, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [10 x i32], ptr %156, i64 0, i64 %158
  store i32 0, ptr %159, align 4, !tbaa !8
  br label %160

160:                                              ; preds = %152
  %161 = load i32, ptr %22, align 4, !tbaa !8
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %22, align 4, !tbaa !8
  br label %148, !llvm.loop !16

163:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %164

164:                                              ; preds = %163
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br label %143

166:                                              ; preds = %145
  %167 = load ptr, ptr %17, align 8, !tbaa !14
  %168 = load i32, ptr %167, align 4, !tbaa !8
  call void @_Z4dfs2ii(i32 noundef %168, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %169 = load i32, ptr %11, align 4, !tbaa !8
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %170
  store ptr %171, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %172 = load ptr, ptr %23, align 8, !tbaa !14
  %173 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #10
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %24, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %175 = load ptr, ptr %23, align 8, !tbaa !14
  %176 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #10
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %25, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  br label %178

178:                                              ; preds = %213, %166
  %179 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  br i1 %179, label %181, label %180

180:                                              ; preds = %178
  store i32 18, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %215

181:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  store ptr %182, ptr %26, align 8, !tbaa !14
  %183 = load ptr, ptr %17, align 8, !tbaa !14
  %184 = load i32, ptr %183, align 4, !tbaa !8
  %185 = load ptr, ptr %26, align 8, !tbaa !14
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = icmp ne i32 %184, %186
  br i1 %187, label %188, label %212

188:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  store i32 0, ptr %27, align 4, !tbaa !8
  br label %189

189:                                              ; preds = %208, %188
  %190 = load i32, ptr %27, align 4, !tbaa !8
  %191 = icmp slt i32 %190, 10
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %211

193:                                              ; preds = %189
  %194 = load ptr, ptr %26, align 8, !tbaa !14
  %195 = load i32, ptr %194, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %196
  %198 = load i32, ptr %27, align 4, !tbaa !8
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [10 x i32], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !8
  %202 = sext i32 %201 to i64
  %203 = load i32, ptr %27, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !17
  %207 = add nsw i64 %206, %202
  store i64 %207, ptr %205, align 8, !tbaa !17
  br label %208

208:                                              ; preds = %193
  %209 = load i32, ptr %27, align 4, !tbaa !8
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %27, align 4, !tbaa !8
  br label %189, !llvm.loop !19

211:                                              ; preds = %192
  br label %212

212:                                              ; preds = %211, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %213

213:                                              ; preds = %212
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  br label %178

215:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %216

216:                                              ; preds = %215
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  br label %129

218:                                              ; preds = %131
  br label %416

219:                                              ; preds = %111
  %220 = load i32, ptr %11, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %221
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef 0) #10
  %224 = load i32, ptr %223, align 4, !tbaa !8
  call void @_Z4dfs2ii(i32 noundef %224, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8192, ptr %28) #10
  %225 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %225, i8 0, i64 8192, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %226 = load i32, ptr %11, align 4, !tbaa !8
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %227
  store ptr %228, ptr %29, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %229 = load ptr, ptr %29, align 8, !tbaa !14
  %230 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %229) #10
  %231 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %30, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %232 = load ptr, ptr %29, align 8, !tbaa !14
  %233 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %232) #10
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %31, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  br label %235

235:                                              ; preds = %279, %219
  %236 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  br i1 %236, label %238, label %237

237:                                              ; preds = %235
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %281

238:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  store ptr %239, ptr %32, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !8
  br label %240

240:                                              ; preds = %260, %238
  %241 = load i32, ptr %34, align 4, !tbaa !8
  %242 = icmp slt i32 %241, 10
  br i1 %242, label %244, label %243

243:                                              ; preds = %240
  store i32 25, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %263

244:                                              ; preds = %240
  %245 = load ptr, ptr %32, align 8, !tbaa !14
  %246 = load i32, ptr %245, align 4, !tbaa !8
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %247
  %249 = load i32, ptr %34, align 4, !tbaa !8
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [10 x i32], ptr %248, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !8
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %259

254:                                              ; preds = %244
  %255 = load i32, ptr %34, align 4, !tbaa !8
  %256 = shl i32 1, %255
  %257 = load i32, ptr %33, align 4, !tbaa !8
  %258 = or i32 %257, %256
  store i32 %258, ptr %33, align 4, !tbaa !8
  br label %259

259:                                              ; preds = %254, %244
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %34, align 4, !tbaa !8
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %34, align 4, !tbaa !8
  br label %240, !llvm.loop !20

263:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %264 = load i32, ptr %33, align 4, !tbaa !8
  store i32 %264, ptr %35, align 4, !tbaa !8
  br label %265

265:                                              ; preds = %268, %263
  %266 = load i32, ptr %35, align 4, !tbaa !8
  %267 = icmp sgt i32 %266, 0
  br i1 %267, label %268, label %278

268:                                              ; preds = %265
  %269 = load i32, ptr %35, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %270
  %272 = load i64, ptr %271, align 8, !tbaa !17
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %271, align 8, !tbaa !17
  %274 = load i32, ptr %33, align 4, !tbaa !8
  %275 = load i32, ptr %35, align 4, !tbaa !8
  %276 = sub nsw i32 %275, 1
  %277 = and i32 %274, %276
  store i32 %277, ptr %35, align 4, !tbaa !8
  br label %265, !llvm.loop !21

278:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %279

279:                                              ; preds = %278
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  br label %235

281:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  store i32 0, ptr %36, align 4, !tbaa !8
  br label %282

282:                                              ; preds = %342, %281
  %283 = load i32, ptr %36, align 4, !tbaa !8
  %284 = icmp slt i32 %283, 10
  br i1 %284, label %286, label %285

285:                                              ; preds = %282
  store i32 30, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %345

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 1, ptr %37, align 4, !tbaa !8
  br label %287

287:                                              ; preds = %338, %286
  %288 = load i32, ptr %37, align 4, !tbaa !8
  %289 = icmp slt i32 %288, 1024
  br i1 %289, label %291, label %290

290:                                              ; preds = %287
  store i32 33, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %341

291:                                              ; preds = %287
  %292 = load i32, ptr %37, align 4, !tbaa !8
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %293
  %295 = load i64, ptr %294, align 8, !tbaa !17
  %296 = icmp ne i64 %295, 0
  br i1 %296, label %298, label %297

297:                                              ; preds = %291
  br label %338

298:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  %299 = load i32, ptr %37, align 4, !tbaa !8
  %300 = call i32 @llvm.ctpop.i32(i32 %299)
  store i32 %300, ptr %38, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  %301 = load i32, ptr %37, align 4, !tbaa !8
  %302 = load i32, ptr %36, align 4, !tbaa !8
  %303 = call noundef i32 @_Z3cbsii(i32 noundef %301, i32 noundef %302)
  store i32 %303, ptr %39, align 4, !tbaa !8
  %304 = load i32, ptr %38, align 4, !tbaa !8
  %305 = and i32 %304, 1
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %322

307:                                              ; preds = %298
  %308 = load i32, ptr %37, align 4, !tbaa !8
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %309
  %311 = load i64, ptr %310, align 8, !tbaa !17
  %312 = load i32, ptr %39, align 4, !tbaa !8
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %313
  %315 = load i64, ptr %314, align 8, !tbaa !17
  %316 = mul nsw i64 %311, %315
  %317 = load i32, ptr %36, align 4, !tbaa !8
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %318
  %320 = load i64, ptr %319, align 8, !tbaa !17
  %321 = add nsw i64 %320, %316
  store i64 %321, ptr %319, align 8, !tbaa !17
  br label %337

322:                                              ; preds = %298
  %323 = load i32, ptr %37, align 4, !tbaa !8
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %324
  %326 = load i64, ptr %325, align 8, !tbaa !17
  %327 = load i32, ptr %39, align 4, !tbaa !8
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [1024 x i64], ptr %28, i64 0, i64 %328
  %330 = load i64, ptr %329, align 8, !tbaa !17
  %331 = mul nsw i64 %326, %330
  %332 = load i32, ptr %36, align 4, !tbaa !8
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %333
  %335 = load i64, ptr %334, align 8, !tbaa !17
  %336 = sub nsw i64 %335, %331
  store i64 %336, ptr %334, align 8, !tbaa !17
  br label %337

337:                                              ; preds = %322, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %338

338:                                              ; preds = %337, %297
  %339 = load i32, ptr %37, align 4, !tbaa !8
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %37, align 4, !tbaa !8
  br label %287, !llvm.loop !22

341:                                              ; preds = %290
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %36, align 4, !tbaa !8
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %36, align 4, !tbaa !8
  br label %282, !llvm.loop !23

345:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  store i32 0, ptr %40, align 4, !tbaa !8
  br label %346

346:                                              ; preds = %412, %345
  %347 = load i32, ptr %40, align 4, !tbaa !8
  %348 = icmp slt i32 %347, 10
  br i1 %348, label %350, label %349

349:                                              ; preds = %346
  store i32 36, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  br label %415

350:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  %351 = load i32, ptr %11, align 4, !tbaa !8
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %352
  store ptr %353, ptr %41, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %354 = load ptr, ptr %41, align 8, !tbaa !14
  %355 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %354) #10
  %356 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %42, i32 0, i32 0
  store ptr %355, ptr %356, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  %357 = load ptr, ptr %41, align 8, !tbaa !14
  %358 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %357) #10
  %359 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %43, i32 0, i32 0
  store ptr %358, ptr %359, align 8
  br label %360

360:                                              ; preds = %409, %350
  %361 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #10
  br i1 %361, label %363, label %362

362:                                              ; preds = %360
  store i32 39, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  br label %411

363:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %364 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #10
  store ptr %364, ptr %44, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  store i32 0, ptr %45, align 4, !tbaa !8
  br label %365

365:                                              ; preds = %404, %363
  %366 = load i32, ptr %45, align 4, !tbaa !8
  %367 = icmp slt i32 %366, 10
  br i1 %367, label %369, label %368

368:                                              ; preds = %365
  store i32 41, ptr %12, align 4
  br label %407

369:                                              ; preds = %365
  %370 = load ptr, ptr %44, align 8, !tbaa !14
  %371 = load i32, ptr %370, align 4, !tbaa !8
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %372
  %374 = load i32, ptr %45, align 4, !tbaa !8
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [10 x i32], ptr %373, i64 0, i64 %375
  %377 = load i32, ptr %376, align 4, !tbaa !8
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %379, label %403

379:                                              ; preds = %369
  %380 = load i32, ptr %45, align 4, !tbaa !8
  %381 = load i32, ptr %40, align 4, !tbaa !8
  %382 = add nsw i32 %380, %381
  %383 = icmp slt i32 %382, 10
  br i1 %383, label %384, label %403

384:                                              ; preds = %379
  %385 = load ptr, ptr %44, align 8, !tbaa !14
  %386 = load i32, ptr %385, align 4, !tbaa !8
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %387
  %389 = load i32, ptr %45, align 4, !tbaa !8
  %390 = load i32, ptr %40, align 4, !tbaa !8
  %391 = add nsw i32 %389, %390
  %392 = srem i32 %391, 10
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [10 x i32], ptr %388, i64 0, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !8
  %396 = icmp ne i32 %395, 0
  br i1 %396, label %397, label %403

397:                                              ; preds = %384
  %398 = load i32, ptr %40, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %399
  %401 = load i64, ptr %400, align 8, !tbaa !17
  %402 = add nsw i64 %401, -1
  store i64 %402, ptr %400, align 8, !tbaa !17
  store i32 41, ptr %12, align 4
  br label %407

403:                                              ; preds = %384, %379, %369
  br label %404

404:                                              ; preds = %403
  %405 = load i32, ptr %45, align 4, !tbaa !8
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %45, align 4, !tbaa !8
  br label %365, !llvm.loop !24

407:                                              ; preds = %397, %368
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  br label %408

408:                                              ; preds = %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %409

409:                                              ; preds = %408
  %410 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #10
  br label %360

411:                                              ; preds = %362
  br label %412

412:                                              ; preds = %411
  %413 = load i32, ptr %40, align 4, !tbaa !8
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr %40, align 4, !tbaa !8
  br label %346, !llvm.loop !25

415:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 8192, ptr %28) #10
  br label %416

416:                                              ; preds = %415, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %417

417:                                              ; preds = %416
  %418 = load i32, ptr %11, align 4, !tbaa !8
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %11, align 4, !tbaa !8
  br label %106, !llvm.loop !26

420:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  store i32 0, ptr %46, align 4, !tbaa !8
  br label %421

421:                                              ; preds = %441, %420
  %422 = load i32, ptr %46, align 4, !tbaa !8
  %423 = icmp slt i32 %422, 10
  br i1 %423, label %425, label %424

424:                                              ; preds = %421
  store i32 44, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  br label %444

425:                                              ; preds = %421
  %426 = load i32, ptr %46, align 4, !tbaa !8
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %427
  %429 = load i64, ptr %428, align 8, !tbaa !17
  %430 = icmp sge i64 %429, 0
  br i1 %430, label %431, label %432

431:                                              ; preds = %425
  br label %434

432:                                              ; preds = %425
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.4, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__.main) #11
  unreachable

433:                                              ; No predecessors!
  br label %434

434:                                              ; preds = %433, %431
  %435 = load i32, ptr %46, align 4, !tbaa !8
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %436
  %438 = load i64, ptr %437, align 8, !tbaa !17
  %439 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %438)
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %439, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %441

441:                                              ; preds = %434
  %442 = load i32, ptr %46, align 4, !tbaa !8
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %46, align 4, !tbaa !8
  br label %421, !llvm.loop !27

444:                                              ; preds = %424
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  %445 = load i32, ptr %1, align 4
  ret i32 %445
}

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #7

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #9

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

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

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


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

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

@g = external dso_local global [100100 x %"class.std::vector"], align 16
@comp = external dso_local global [100100 x %"class.std::vector.0"], align 16
@vis = external dso_local local_unnamed_addr global [100100 x i32], align 16
@n = external dso_local global i32, align 4
@e = external dso_local global i32, align 4
@poss = external dso_local local_unnamed_addr global [100100 x [10 x i32]], align 16
@ans = external dso_local local_unnamed_addr global [10 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %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 i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %13 = alloca [1024 x i64], align 16
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %18 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %26
  %28 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %27, ptr noundef null)
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %30 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) @e)
  %31 = load i32, ptr @e, align 4, !tbaa !8
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %.preheader111

.preheader111:                                    ; preds = %.lr.ph, %0
  %33 = load i32, ptr @n, align 4, !tbaa !8
  %.not113 = icmp slt i32 %33, 1
  br i1 %.not113, label %.preheader, label %.lr.ph116

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.083112 = phi i32 [ %50, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = srem i32 %37, 10
  store i32 %38, ptr %3, align 4, !tbaa !8
  %39 = load i32, ptr %1, align 4, !tbaa !8
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  %42 = 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 %42, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %43 = load i32, ptr %2, align 4, !tbaa !8
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = sub nsw i32 10, %46
  %48 = srem i32 %47, 10
  store i32 %48, ptr %6, align 4, !tbaa !8
  %49 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %6)
  store i64 %49, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #11
  %50 = add nuw nsw i32 %.083112, 1
  %51 = load i32, ptr @e, align 4, !tbaa !8
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph, label %.preheader111, !llvm.loop !11

.preheader110:                                    ; preds = %60
  %53 = icmp sgt i32 %.1, 0
  br i1 %53, label %.lr.ph143.preheader, label %.preheader

.lr.ph143.preheader:                              ; preds = %.preheader110
  %wide.trip.count = zext nneg i32 %.1 to i64
  br label %.lr.ph143

.lr.ph116:                                        ; preds = %.preheader111, %60
  %54 = phi i32 [ %61, %60 ], [ %33, %.preheader111 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 1, %.preheader111 ]
  %.085115 = phi i32 [ %.1, %60 ], [ 0, %.preheader111 ]
  %55 = getelementptr inbounds [100100 x i32], ptr @vis, i64 0, i64 %indvars.iv
  %56 = load i32, ptr %55, align 4, !tbaa !8
  %.not104 = icmp eq i32 %56, 0
  br i1 %.not104, label %57, label %60

57:                                               ; preds = %.lr.ph116
  %58 = add nsw i32 %.085115, 1
  %59 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_Z3dfsii(i32 noundef %59, i32 noundef %.085115)
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %.lr.ph116, %57
  %61 = phi i32 [ %54, %.lr.ph116 ], [ %.pre, %57 ]
  %.1 = phi i32 [ %.085115, %.lr.ph116 ], [ %58, %57 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = sext i32 %61 to i64
  %.not.not = icmp slt i64 %indvars.iv, %62
  br i1 %.not.not, label %.lr.ph116, label %.preheader110, !llvm.loop !13

.preheader:                                       ; preds = %283, %.preheader111, %.preheader110
  %63 = load i64, ptr @ans, align 16, !tbaa !14
  %64 = icmp sgt i64 %63, -1
  br i1 %64, label %285, label %284

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %283
  %indvars.iv172 = phi i64 [ 0, %.lr.ph143.preheader ], [ %indvars.iv.next173, %283 ]
  %65 = getelementptr inbounds [100100 x %"class.std::vector.0"], ptr @comp, i64 0, i64 %indvars.iv172
  %66 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  %67 = trunc i64 %66 to i32
  %68 = icmp slt i32 %67, 1
  br i1 %68, label %69, label %147

69:                                               ; preds = %.lr.ph143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  %70 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %70, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  %71 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %71, ptr %8, align 8
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  br i1 %72, label %.lr.ph140, label %._crit_edge141

._crit_edge141:                                   ; preds = %._crit_edge138, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  br label %283

.lr.ph140:                                        ; preds = %69, %._crit_edge138
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %74 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %74, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  %75 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %75, ptr %10, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #11
  br i1 %76, label %.lr.ph133, label %._crit_edge134

._crit_edge134:                                   ; preds = %.lr.ph133, %.lr.ph140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  %77 = load i32, ptr %73, align 4, !tbaa !8
  call void @_Z4dfs2ii(i32 noundef %77, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  %78 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %78, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #11
  %79 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %79, ptr %12, align 8
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #11
  br i1 %80, label %.lr.ph137, label %._crit_edge138

.lr.ph133:                                        ; preds = %.lr.ph140, %.lr.ph133
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %83, i64 0
  store i32 0, ptr %84, align 8, !tbaa !8
  %85 = load i32, ptr %81, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %86, i64 1
  store i32 0, ptr %87, align 4, !tbaa !8
  %88 = load i32, ptr %81, align 4, !tbaa !8
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %89, i64 2
  store i32 0, ptr %90, align 8, !tbaa !8
  %91 = load i32, ptr %81, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %92, i64 3
  store i32 0, ptr %93, align 4, !tbaa !8
  %94 = load i32, ptr %81, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %95, i64 4
  store i32 0, ptr %96, align 8, !tbaa !8
  %97 = load i32, ptr %81, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %98, i64 5
  store i32 0, ptr %99, align 4, !tbaa !8
  %100 = load i32, ptr %81, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %101, i64 6
  store i32 0, ptr %102, align 8, !tbaa !8
  %103 = load i32, ptr %81, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %104, i64 7
  store i32 0, ptr %105, align 4, !tbaa !8
  %106 = load i32, ptr %81, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %107, i64 8
  store i32 0, ptr %108, align 8, !tbaa !8
  %109 = load i32, ptr %81, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %110, i64 9
  store i32 0, ptr %111, align 4, !tbaa !8
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  %113 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #11
  br i1 %113, label %.lr.ph133, label %._crit_edge134

._crit_edge138:                                   ; preds = %.loopexit, %._crit_edge134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  br i1 %115, label %.lr.ph140, label %._crit_edge141

.lr.ph137:                                        ; preds = %._crit_edge134, %.loopexit
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #11
  %117 = load i32, ptr %73, align 4, !tbaa !8
  %118 = load i32, ptr %116, align 4, !tbaa !8
  %.not103 = icmp eq i32 %117, %118
  br i1 %.not103, label %.loopexit, label %.preheader105

.preheader105:                                    ; preds = %.lr.ph137
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %119, i64 0
  %121 = load <2 x i32>, ptr %120, align 8, !tbaa !8
  %122 = sext <2 x i32> %121 to <2 x i64>
  %123 = load <2 x i64>, ptr @ans, align 16, !tbaa !14
  %124 = add nsw <2 x i64> %123, %122
  store <2 x i64> %124, ptr @ans, align 16, !tbaa !14
  %125 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %119, i64 2
  %126 = load <2 x i32>, ptr %125, align 8, !tbaa !8
  %127 = sext <2 x i32> %126 to <2 x i64>
  %128 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @ans, i64 16), align 16, !tbaa !14
  %129 = add nsw <2 x i64> %128, %127
  store <2 x i64> %129, ptr getelementptr inbounds (i8, ptr @ans, i64 16), align 16, !tbaa !14
  %130 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %119, i64 4
  %131 = load <2 x i32>, ptr %130, align 8, !tbaa !8
  %132 = sext <2 x i32> %131 to <2 x i64>
  %133 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @ans, i64 32), align 16, !tbaa !14
  %134 = add nsw <2 x i64> %133, %132
  store <2 x i64> %134, ptr getelementptr inbounds (i8, ptr @ans, i64 32), align 16, !tbaa !14
  %135 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %119, i64 6
  %136 = load <2 x i32>, ptr %135, align 8, !tbaa !8
  %137 = sext <2 x i32> %136 to <2 x i64>
  %138 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @ans, i64 48), align 16, !tbaa !14
  %139 = add nsw <2 x i64> %138, %137
  store <2 x i64> %139, ptr getelementptr inbounds (i8, ptr @ans, i64 48), align 16, !tbaa !14
  %140 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %119, i64 8
  %141 = load <2 x i32>, ptr %140, align 8, !tbaa !8
  %142 = sext <2 x i32> %141 to <2 x i64>
  %143 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @ans, i64 64), align 16, !tbaa !14
  %144 = add nsw <2 x i64> %143, %142
  store <2 x i64> %144, ptr getelementptr inbounds (i8, ptr @ans, i64 64), align 16, !tbaa !14
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader105, %.lr.ph137
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #11
  %146 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #11
  br i1 %146, label %.lr.ph137, label %._crit_edge138

147:                                              ; preds = %.lr.ph143
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #11
  %149 = load i32, ptr %148, align 4, !tbaa !8
  call void @_Z4dfs2ii(i32 noundef %149, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %13) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(8192) %13, i8 0, i64 8192, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #11
  %150 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %150, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #11
  %151 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %151, ptr %15, align 8
  %152 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #11
  br i1 %152, label %.lr.ph122, label %._crit_edge123

._crit_edge123:                                   ; preds = %._crit_edge, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #11
  br label %.preheader107

.lr.ph122:                                        ; preds = %147, %._crit_edge
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #11
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %155, i64 0
  %157 = load i32, ptr %156, align 8, !tbaa !8
  %.not102 = icmp ne i32 %157, 0
  %158 = zext i1 %.not102 to i32
  %159 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %155, i64 1
  %160 = load <8 x i32>, ptr %159, align 4, !tbaa !8
  %161 = icmp eq <8 x i32> %160, zeroinitializer
  %162 = select <8 x i1> %161, <8 x i32> zeroinitializer, <8 x i32> <i32 2, i32 4, i32 8, i32 16, i32 32, i32 64, i32 128, i32 256>
  %163 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %155, i64 9
  %164 = load i32, ptr %163, align 4, !tbaa !8
  %.not102.9 = icmp eq i32 %164, 0
  %165 = select i1 %.not102.9, i32 0, i32 512
  %166 = call i32 @llvm.vector.reduce.or.v8i32(<8 x i32> %162)
  %op.rdx = or disjoint i32 %166, %165
  %op.rdx199 = or disjoint i32 %op.rdx, %158
  %.not198 = icmp eq i32 %op.rdx199, 0
  br i1 %.not198, label %._crit_edge, label %.lr.ph120

.lr.ph120:                                        ; preds = %.lr.ph122, %.lr.ph120
  %.089119 = phi i32 [ %172, %.lr.ph120 ], [ %op.rdx199, %.lr.ph122 ]
  %167 = zext nneg i32 %.089119 to i64
  %168 = getelementptr inbounds [1024 x i64], ptr %13, i64 0, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !14
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %168, align 8, !tbaa !14
  %171 = add nsw i32 %.089119, 1023
  %172 = and i32 %171, %op.rdx199
  %.not = icmp eq i32 %172, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph120, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph120, %.lr.ph122
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #11
  %174 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #11
  br i1 %174, label %.lr.ph122, label %._crit_edge123

.preheader107:                                    ; preds = %._crit_edge123, %177
  %indvars.iv152 = phi i64 [ 0, %._crit_edge123 ], [ %indvars.iv.next153, %177 ]
  %175 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %indvars.iv152
  %176 = trunc nuw nsw i64 %indvars.iv152 to i32
  br label %178

177:                                              ; preds = %191
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %exitcond155.not = icmp eq i64 %indvars.iv.next153, 10
  br i1 %exitcond155.not, label %.preheader109, label %.preheader107, !llvm.loop !17

178:                                              ; preds = %.preheader107, %191
  %indvars.iv149 = phi i64 [ 1, %.preheader107 ], [ %indvars.iv.next150, %191 ]
  %179 = getelementptr inbounds [1024 x i64], ptr %13, i64 0, i64 %indvars.iv149
  %180 = load i64, ptr %179, align 8, !tbaa !14
  %.not100 = icmp eq i64 %180, 0
  br i1 %.not100, label %191, label %.sink.split

.sink.split:                                      ; preds = %178
  %181 = trunc nuw nsw i64 %indvars.iv149 to i32
  %182 = call range(i32 0, 11) i32 @llvm.ctpop.i32(i32 %181)
  %183 = call noundef i32 @_Z3cbsii(i32 noundef %181, i32 noundef %176)
  %184 = and i32 %182, 1
  %.not101 = icmp eq i32 %184, 0
  %185 = sext i32 %183 to i64
  %186 = getelementptr inbounds [1024 x i64], ptr %13, i64 0, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !14
  %188 = mul nsw i64 %187, %180
  %189 = load i64, ptr %175, align 8, !tbaa !14
  %190 = sub i64 0, %188
  %.sink.p = select i1 %.not101, i64 %190, i64 %188
  %.sink = add i64 %189, %.sink.p
  store i64 %.sink, ptr %175, align 8, !tbaa !14
  br label %191

191:                                              ; preds = %.sink.split, %178
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next150, 1024
  br i1 %exitcond.not, label %177, label %178, !llvm.loop !18

192:                                              ; preds = %._crit_edge129
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %13) #11
  br label %283

.preheader109:                                    ; preds = %177, %._crit_edge129
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %._crit_edge129 ], [ 0, %177 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  %193 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %193, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #11
  %194 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #11
  store ptr %194, ptr %17, align 8
  %195 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #11
  br i1 %195, label %.lr.ph128, label %._crit_edge129

.lr.ph128:                                        ; preds = %.preheader109
  %196 = getelementptr inbounds [10 x i64], ptr @ans, i64 0, i64 %indvars.iv160
  %197 = icmp ugt i64 %indvars.iv160, 8
  %198 = add nuw nsw i64 %indvars.iv160, 1
  %199 = icmp ugt i64 %indvars.iv160, 7
  %200 = add nuw nsw i64 %indvars.iv160, 2
  %201 = icmp ugt i64 %indvars.iv160, 6
  %202 = add nuw nsw i64 %indvars.iv160, 3
  %203 = icmp ugt i64 %indvars.iv160, 5
  %204 = add nuw nsw i64 %indvars.iv160, 4
  %205 = icmp ugt i64 %indvars.iv160, 4
  %206 = add nuw nsw i64 %indvars.iv160, 5
  %207 = icmp ugt i64 %indvars.iv160, 3
  %208 = add nuw nsw i64 %indvars.iv160, 6
  %209 = icmp ugt i64 %indvars.iv160, 2
  %210 = add nuw nsw i64 %indvars.iv160, 7
  %211 = icmp ugt i64 %indvars.iv160, 1
  %212 = add nuw nsw i64 %indvars.iv160, 8
  %213 = icmp ne i64 %indvars.iv160, 0
  %214 = add nuw nsw i64 %indvars.iv160, 9
  br label %215

._crit_edge129:                                   ; preds = %.loopexit106, %.preheader109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next161, 10
  br i1 %exitcond163.not, label %192, label %.preheader109, !llvm.loop !19

215:                                              ; preds = %.lr.ph128, %.loopexit106
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %217 = load i32, ptr %216, align 4, !tbaa !8
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 0
  %220 = load i32, ptr %219, align 8, !tbaa !8
  %.not98 = icmp eq i32 %220, 0
  br i1 %.not98, label %227, label %221

221:                                              ; preds = %215
  %222 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %indvars.iv160
  %223 = load i32, ptr %222, align 4, !tbaa !8
  %.not99 = icmp eq i32 %223, 0
  br i1 %.not99, label %227, label %224

224:                                              ; preds = %278, %272, %266, %260, %254, %248, %242, %236, %230, %221
  %225 = load i64, ptr %196, align 8, !tbaa !14
  %226 = add nsw i64 %225, -1
  store i64 %226, ptr %196, align 8, !tbaa !14
  br label %.loopexit106

227:                                              ; preds = %215, %221
  %228 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 1
  %229 = load i32, ptr %228, align 4, !tbaa !8
  %.not98.1 = icmp eq i32 %229, 0
  %brmerge = or i1 %.not98.1, %197
  br i1 %brmerge, label %233, label %230

230:                                              ; preds = %227
  %231 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %198
  %232 = load i32, ptr %231, align 4, !tbaa !8
  %.not99.1 = icmp eq i32 %232, 0
  br i1 %.not99.1, label %233, label %224

233:                                              ; preds = %227, %230
  %234 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 2
  %235 = load i32, ptr %234, align 8, !tbaa !8
  %.not98.2 = icmp eq i32 %235, 0
  %brmerge183 = or i1 %.not98.2, %199
  br i1 %brmerge183, label %239, label %236

236:                                              ; preds = %233
  %237 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %200
  %238 = load i32, ptr %237, align 4, !tbaa !8
  %.not99.2 = icmp eq i32 %238, 0
  br i1 %.not99.2, label %239, label %224

239:                                              ; preds = %233, %236
  %240 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 3
  %241 = load i32, ptr %240, align 4, !tbaa !8
  %.not98.3 = icmp eq i32 %241, 0
  %brmerge185 = or i1 %.not98.3, %201
  br i1 %brmerge185, label %245, label %242

242:                                              ; preds = %239
  %243 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %202
  %244 = load i32, ptr %243, align 4, !tbaa !8
  %.not99.3 = icmp eq i32 %244, 0
  br i1 %.not99.3, label %245, label %224

245:                                              ; preds = %239, %242
  %246 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 4
  %247 = load i32, ptr %246, align 8, !tbaa !8
  %.not98.4 = icmp eq i32 %247, 0
  %brmerge187 = or i1 %.not98.4, %203
  br i1 %brmerge187, label %251, label %248

248:                                              ; preds = %245
  %249 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %204
  %250 = load i32, ptr %249, align 4, !tbaa !8
  %.not99.4 = icmp eq i32 %250, 0
  br i1 %.not99.4, label %251, label %224

251:                                              ; preds = %245, %248
  %252 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 5
  %253 = load i32, ptr %252, align 4, !tbaa !8
  %.not98.5 = icmp eq i32 %253, 0
  %brmerge189 = or i1 %.not98.5, %205
  br i1 %brmerge189, label %257, label %254

254:                                              ; preds = %251
  %255 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %206
  %256 = load i32, ptr %255, align 4, !tbaa !8
  %.not99.5 = icmp eq i32 %256, 0
  br i1 %.not99.5, label %257, label %224

257:                                              ; preds = %251, %254
  %258 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 6
  %259 = load i32, ptr %258, align 8, !tbaa !8
  %.not98.6 = icmp eq i32 %259, 0
  %brmerge191 = or i1 %.not98.6, %207
  br i1 %brmerge191, label %263, label %260

260:                                              ; preds = %257
  %261 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %208
  %262 = load i32, ptr %261, align 4, !tbaa !8
  %.not99.6 = icmp eq i32 %262, 0
  br i1 %.not99.6, label %263, label %224

263:                                              ; preds = %257, %260
  %264 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 7
  %265 = load i32, ptr %264, align 4, !tbaa !8
  %.not98.7 = icmp eq i32 %265, 0
  %brmerge193 = or i1 %.not98.7, %209
  br i1 %brmerge193, label %269, label %266

266:                                              ; preds = %263
  %267 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %210
  %268 = load i32, ptr %267, align 4, !tbaa !8
  %.not99.7 = icmp eq i32 %268, 0
  br i1 %.not99.7, label %269, label %224

269:                                              ; preds = %263, %266
  %270 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 8
  %271 = load i32, ptr %270, align 8, !tbaa !8
  %.not98.8 = icmp eq i32 %271, 0
  %brmerge195 = or i1 %.not98.8, %211
  br i1 %brmerge195, label %275, label %272

272:                                              ; preds = %269
  %273 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %212
  %274 = load i32, ptr %273, align 4, !tbaa !8
  %.not99.8 = icmp eq i32 %274, 0
  br i1 %.not99.8, label %275, label %224

275:                                              ; preds = %269, %272
  %276 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 9
  %277 = load i32, ptr %276, align 4, !tbaa !8
  %.not98.9 = icmp eq i32 %277, 0
  %brmerge197 = or i1 %.not98.9, %213
  br i1 %brmerge197, label %.loopexit106, label %278

278:                                              ; preds = %275
  %279 = getelementptr inbounds [100100 x [10 x i32]], ptr @poss, i64 0, i64 %218, i64 %214
  %280 = load i32, ptr %279, align 4, !tbaa !8
  %.not99.9 = icmp eq i32 %280, 0
  br i1 %.not99.9, label %.loopexit106, label %224

.loopexit106:                                     ; preds = %275, %278, %224
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %282 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #11
  br i1 %282, label %215, label %._crit_edge129

283:                                              ; preds = %192, %._crit_edge141
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count
  br i1 %exitcond175.not, label %.preheader, label %.lr.ph143, !llvm.loop !20

284:                                              ; preds = %325, %320, %315, %310, %305, %300, %295, %290, %285, %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #12
  unreachable

285:                                              ; preds = %.preheader
  %286 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %63)
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %286, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %288 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 8), align 8, !tbaa !14
  %289 = icmp sgt i64 %288, -1
  br i1 %289, label %290, label %284

290:                                              ; preds = %285
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %288)
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %293 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 16), align 16, !tbaa !14
  %294 = icmp sgt i64 %293, -1
  br i1 %294, label %295, label %284

295:                                              ; preds = %290
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %293)
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %298 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 24), align 8, !tbaa !14
  %299 = icmp sgt i64 %298, -1
  br i1 %299, label %300, label %284

300:                                              ; preds = %295
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %298)
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %303 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 32), align 16, !tbaa !14
  %304 = icmp sgt i64 %303, -1
  br i1 %304, label %305, label %284

305:                                              ; preds = %300
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %303)
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %308 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 40), align 8, !tbaa !14
  %309 = icmp sgt i64 %308, -1
  br i1 %309, label %310, label %284

310:                                              ; preds = %305
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %308)
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %311, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %313 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 48), align 16, !tbaa !14
  %314 = icmp sgt i64 %313, -1
  br i1 %314, label %315, label %284

315:                                              ; preds = %310
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %313)
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %318 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 56), align 8, !tbaa !14
  %319 = icmp sgt i64 %318, -1
  br i1 %319, label %320, label %284

320:                                              ; preds = %315
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %318)
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %321, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %323 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 64), align 16, !tbaa !14
  %324 = icmp sgt i64 %323, -1
  br i1 %324, label %325, label %284

325:                                              ; preds = %320
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %323)
  %327 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %328 = load i64, ptr getelementptr inbounds (i8, ptr @ans, i64 72), align 8, !tbaa !14
  %329 = icmp sgt i64 %328, -1
  br i1 %329, label %330, label %284

330:                                              ; preds = %325
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %328)
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__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 #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #7

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #9

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.or.v8i32(<8 x i32>) #10

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

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

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


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