; LLVM IR from kazunetakahashi/atcoder :: 2020/0701_ABC164 (F)

; 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::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.3" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }
%class.Solve = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2Nov() #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator.3", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator.3", align 1
  %9 = alloca %"class.std::vector.6", align 8
  %10 = alloca %"class.std::allocator.7", align 1
  %11 = alloca %"class.std::vector.6", align 8
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector.10", align 8
  %22 = alloca %"class.std::vector.6", align 8
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::allocator.7", align 1
  %25 = alloca %"class.std::allocator.12", align 1
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.std::allocator.3", align 1
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca %"class.std::allocator.3", align 1
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::_Bit_reference", align 8
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::_Bit_reference", align 8
  %36 = alloca %class.Solve, align 8
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %"class.std::vector", align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::vector", align 8
  %41 = alloca %"class.std::vector.15", align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i64, align 8
  %46 = alloca %"struct.std::_Bit_reference", align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i64, align 8
  %50 = alloca i32, align 4
  %51 = alloca i64, align 8
  %52 = alloca %"struct.std::_Bit_reference", align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i64, align 8
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %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) %2)
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #7
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %61 unwind label %76

61:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #7
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %63, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %64 unwind label %80

64:                                               ; preds = %61
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %66, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %67 unwind label %84

67:                                               ; preds = %64
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %69, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %70 unwind label %88

70:                                               ; preds = %67
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %106, %70
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %92, label %75

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

76:                                               ; preds = %0
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %5, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  br label %643

80:                                               ; preds = %61
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %5, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %642

84:                                               ; preds = %64
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %641

88:                                               ; preds = %67
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %640

92:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %94 unwind label %109

94:                                               ; preds = %92
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %98)
          to label %100 unwind label %113

100:                                              ; preds = %94
  %101 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %102 = extractvalue { ptr, i64 } %99, 0
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %104 = extractvalue { ptr, i64 } %99, 1
  store i64 %104, ptr %103, align 8
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %96) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %106

106:                                              ; preds = %100
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !5
  br label %71, !llvm.loop !9

109:                                              ; preds = %92
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %5, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %6, align 4
  br label %117

113:                                              ; preds = %94
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %639

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

119:                                              ; preds = %138, %118
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = load i32, ptr %2, align 4, !tbaa !5
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %150

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %126 unwind label %141

126:                                              ; preds = %124
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %129 = load i32, ptr %16, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %130)
          to label %132 unwind label %145

132:                                              ; preds = %126
  %133 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %134 = extractvalue { ptr, i64 } %131, 0
  store ptr %134, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %136 = extractvalue { ptr, i64 } %131, 1
  store i64 %136, ptr %135, align 8
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext %128) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %138

138:                                              ; preds = %132
  %139 = load i32, ptr %16, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %16, align 4, !tbaa !5
  br label %119, !llvm.loop !11

141:                                              ; preds = %124
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %5, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %6, align 4
  br label %149

145:                                              ; preds = %126
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %5, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %149

149:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %639

150:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %162, %150
  %152 = load i32, ptr %19, align 4, !tbaa !5
  %153 = load i32, ptr %2, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %169

156:                                              ; preds = %151
  %157 = load i32, ptr %19, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %158) #7
  %160 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %159)
          to label %161 unwind label %165

161:                                              ; preds = %156
  br label %162

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

165:                                              ; preds = %156
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %639

169:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %181, %169
  %171 = load i32, ptr %20, align 4, !tbaa !5
  %172 = load i32, ptr %2, align 4, !tbaa !5
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %188

175:                                              ; preds = %170
  %176 = load i32, ptr %20, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %177) #7
  %179 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %178)
          to label %180 unwind label %184

180:                                              ; preds = %175
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %20, align 4, !tbaa !5
  br label %170, !llvm.loop !13

184:                                              ; preds = %175
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %5, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %639

188:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %189 = load i32, ptr %2, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %191 = load i32, ptr %2, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %192, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %193 unwind label %199

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  call void @_ZNSaISt6vectorIySaIyEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt6vectorIS_IySaIyEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %190, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %194 unwind label %203

194:                                              ; preds = %193
  call void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %582, %194
  %196 = load i32, ptr %26, align 4, !tbaa !5
  %197 = icmp slt i32 %196, 64
  br i1 %197, label %208, label %198

198:                                              ; preds = %195
  store i32 14, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %591

199:                                              ; preds = %188
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %5, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %6, align 4
  br label %207

203:                                              ; preds = %193
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %5, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %6, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %207

207:                                              ; preds = %203, %199
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  br label %638

208:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #7
  %209 = load i32, ptr %2, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %28, i64 noundef %210, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %211 unwind label %220

211:                                              ; preds = %208
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #7
  %212 = load i32, ptr %2, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef %213, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %214 unwind label %224

214:                                              ; preds = %211
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %247, %214
  %216 = load i32, ptr %32, align 4, !tbaa !5
  %217 = load i32, ptr %2, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %228, label %219

219:                                              ; preds = %215
  store i32 17, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %254

220:                                              ; preds = %208
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %5, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  br label %590

224:                                              ; preds = %211
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %5, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #7
  br label %589

228:                                              ; preds = %215
  %229 = load i32, ptr %32, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %230) #7
  %232 = load i64, ptr %231, align 8, !tbaa !14
  %233 = load i32, ptr %26, align 4, !tbaa !5
  %234 = zext i32 %233 to i64
  %235 = lshr i64 %232, %234
  %236 = and i64 %235, 1
  %237 = icmp ne i64 %236, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %238 = load i32, ptr %32, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %28, i64 noundef %239)
          to label %241 unwind label %250

241:                                              ; preds = %228
  %242 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %243 = extractvalue { ptr, i64 } %240, 0
  store ptr %243, ptr %242, align 8
  %244 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %245 = extractvalue { ptr, i64 } %240, 1
  store i64 %245, ptr %244, align 8
  %246 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %33, i1 noundef zeroext %237) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %247

247:                                              ; preds = %241
  %248 = load i32, ptr %32, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %32, align 4, !tbaa !5
  br label %215, !llvm.loop !16

250:                                              ; preds = %228
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %5, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %588

254:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %255

255:                                              ; preds = %279, %254
  %256 = load i32, ptr %34, align 4, !tbaa !5
  %257 = load i32, ptr %2, align 4, !tbaa !5
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %260, label %259

259:                                              ; preds = %255
  store i32 20, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %286

260:                                              ; preds = %255
  %261 = load i32, ptr %34, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %262) #7
  %264 = load i64, ptr %263, align 8, !tbaa !14
  %265 = load i32, ptr %26, align 4, !tbaa !5
  %266 = zext i32 %265 to i64
  %267 = lshr i64 %264, %266
  %268 = and i64 %267, 1
  %269 = icmp ne i64 %268, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %270 = load i32, ptr %34, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef %271)
          to label %273 unwind label %282

273:                                              ; preds = %260
  %274 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %275 = extractvalue { ptr, i64 } %272, 0
  store ptr %275, ptr %274, align 8
  %276 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %277 = extractvalue { ptr, i64 } %272, 1
  store i64 %277, ptr %276, align 8
  %278 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %35, i1 noundef zeroext %269) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %279

279:                                              ; preds = %273
  %280 = load i32, ptr %34, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %34, align 4, !tbaa !5
  br label %255, !llvm.loop !17

282:                                              ; preds = %260
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %5, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %588

286:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 192, ptr %36) #7
  %287 = load i32, ptr %2, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %37, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %288 unwind label %299

288:                                              ; preds = %286
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %289 unwind label %303

289:                                              ; preds = %288
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %290 unwind label %307

290:                                              ; preds = %289
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %40, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %291 unwind label %311

291:                                              ; preds = %290
  invoke void @_ZN5SolveC2EiSt6vectorIbSaIbEES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(192) %36, i32 noundef %287, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40)
          to label %292 unwind label %315

292:                                              ; preds = %291
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %40) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %39) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #7
  invoke void @_ZN5Solve6answerEv(ptr dead_on_unwind writable sret(%"class.std::vector.15") align 8 %41, ptr noundef nonnull align 8 dereferenceable(192) %36)
          to label %293 unwind label %322

293:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %294

294:                                              ; preds = %356, %293
  %295 = load i32, ptr %42, align 4, !tbaa !5
  %296 = load i32, ptr %2, align 4, !tbaa !5
  %297 = icmp slt i32 %295, %296
  br i1 %297, label %326, label %298

298:                                              ; preds = %294
  store i32 23, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %359

299:                                              ; preds = %286
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %5, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %6, align 4
  br label %587

303:                                              ; preds = %288
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %5, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %6, align 4
  br label %321

307:                                              ; preds = %289
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %5, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %6, align 4
  br label %320

311:                                              ; preds = %290
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %5, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %6, align 4
  br label %319

315:                                              ; preds = %291
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %5, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %6, align 4
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %40) #7
  br label %319

319:                                              ; preds = %315, %311
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %39) #7
  br label %320

320:                                              ; preds = %319, %307
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #7
  br label %321

321:                                              ; preds = %320, %303
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #7
  br label %587

322:                                              ; preds = %292
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %5, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %6, align 4
  br label %586

326:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %352, %326
  %328 = load i32, ptr %43, align 4, !tbaa !5
  %329 = load i32, ptr %2, align 4, !tbaa !5
  %330 = icmp slt i32 %328, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  store i32 26, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %355

332:                                              ; preds = %327
  %333 = load i32, ptr %42, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %334) #7
  %336 = load i32, ptr %43, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %335, i64 noundef %337) #7
  %339 = load i32, ptr %338, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = load i32, ptr %26, align 4, !tbaa !5
  %342 = zext i32 %341 to i64
  %343 = shl i64 %340, %342
  %344 = load i32, ptr %42, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %345) #7
  %347 = load i32, ptr %43, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %346, i64 noundef %348) #7
  %350 = load i64, ptr %349, align 8, !tbaa !14
  %351 = or i64 %350, %343
  store i64 %351, ptr %349, align 8, !tbaa !14
  br label %352

352:                                              ; preds = %332
  %353 = load i32, ptr %43, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %43, align 4, !tbaa !5
  br label %327, !llvm.loop !18

355:                                              ; preds = %331
  br label %356

356:                                              ; preds = %355
  %357 = load i32, ptr %42, align 4, !tbaa !5
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %42, align 4, !tbaa !5
  br label %294, !llvm.loop !19

359:                                              ; preds = %298
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsIyERSoS0_RKSt6vectorIS1_IT_SaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %361 unwind label %367

361:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %362

362:                                              ; preds = %469, %361
  %363 = load i32, ptr %44, align 4, !tbaa !5
  %364 = load i32, ptr %2, align 4, !tbaa !5
  %365 = icmp slt i32 %363, %364
  br i1 %365, label %371, label %366

366:                                              ; preds = %362
  store i32 29, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %473

367:                                              ; preds = %359
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %5, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %6, align 4
  br label %585

371:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %372 = load i32, ptr %44, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %373) #7
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef 0) #7
  %376 = load i64, ptr %375, align 8, !tbaa !14
  store i64 %376, ptr %45, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #7
  %377 = load i32, ptr %44, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %378)
          to label %380 unwind label %393

380:                                              ; preds = %371
  %381 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 0
  %382 = extractvalue { ptr, i64 } %379, 0
  store ptr %382, ptr %381, align 8
  %383 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 1
  %384 = extractvalue { ptr, i64 } %379, 1
  store i64 %384, ptr %383, align 8
  %385 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  %386 = xor i1 %385, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #7
  br i1 %386, label %387, label %411

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

388:                                              ; preds = %407, %387
  %389 = load i32, ptr %47, align 4, !tbaa !5
  %390 = load i32, ptr %2, align 4, !tbaa !5
  %391 = icmp slt i32 %389, %390
  br i1 %391, label %397, label %392

392:                                              ; preds = %388
  store i32 32, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %410

393:                                              ; preds = %371
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %5, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #7
  br label %472

397:                                              ; preds = %388
  %398 = load i32, ptr %44, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %399) #7
  %401 = load i32, ptr %47, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %400, i64 noundef %402) #7
  %404 = load i64, ptr %403, align 8, !tbaa !14
  %405 = load i64, ptr %45, align 8, !tbaa !14
  %406 = and i64 %405, %404
  store i64 %406, ptr %45, align 8, !tbaa !14
  br label %407

407:                                              ; preds = %397
  %408 = load i32, ptr %47, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %47, align 4, !tbaa !5
  br label %388, !llvm.loop !20

410:                                              ; preds = %392
  br label %431

411:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %412

412:                                              ; preds = %427, %411
  %413 = load i32, ptr %48, align 4, !tbaa !5
  %414 = load i32, ptr %2, align 4, !tbaa !5
  %415 = icmp slt i32 %413, %414
  br i1 %415, label %417, label %416

416:                                              ; preds = %412
  store i32 35, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %430

417:                                              ; preds = %412
  %418 = load i32, ptr %44, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %419) #7
  %421 = load i32, ptr %48, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %422) #7
  %424 = load i64, ptr %423, align 8, !tbaa !14
  %425 = load i64, ptr %45, align 8, !tbaa !14
  %426 = or i64 %425, %424
  store i64 %426, ptr %45, align 8, !tbaa !14
  br label %427

427:                                              ; preds = %417
  %428 = load i32, ptr %48, align 4, !tbaa !5
  %429 = add nsw i32 %428, 1
  store i32 %429, ptr %48, align 4, !tbaa !5
  br label %412, !llvm.loop !21

430:                                              ; preds = %416
  br label %431

431:                                              ; preds = %430, %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %432 = load i32, ptr %44, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %433) #7
  %435 = load i64, ptr %434, align 8, !tbaa !14
  store i64 %435, ptr %49, align 8, !tbaa !14
  %436 = load i32, ptr %26, align 4, !tbaa !5
  %437 = icmp slt i32 %436, 63
  br i1 %437, label %438, label %446

438:                                              ; preds = %431
  %439 = load i32, ptr %26, align 4, !tbaa !5
  %440 = add nsw i32 %439, 1
  %441 = zext i32 %440 to i64
  %442 = shl i64 1, %441
  %443 = sub i64 %442, 1
  %444 = load i64, ptr %49, align 8, !tbaa !14
  %445 = and i64 %444, %443
  store i64 %445, ptr %49, align 8, !tbaa !14
  br label %446

446:                                              ; preds = %438, %431
  %447 = load i64, ptr %45, align 8, !tbaa !14
  %448 = load i64, ptr %49, align 8, !tbaa !14
  %449 = icmp ne i64 %447, %448
  br i1 %449, label %450, label %468

450:                                              ; preds = %446
  %451 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
          to label %452 unwind label %464

452:                                              ; preds = %450
  %453 = load i32, ptr %26, align 4, !tbaa !5
  %454 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %451, i32 noundef %453)
          to label %455 unwind label %464

455:                                              ; preds = %452
  %456 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %454, ptr noundef @.str.3)
          to label %457 unwind label %464

457:                                              ; preds = %455
  %458 = load i32, ptr %44, align 4, !tbaa !5
  %459 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %456, i32 noundef %458)
          to label %460 unwind label %464

460:                                              ; preds = %457
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %459, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %462 unwind label %464

462:                                              ; preds = %460
  invoke void @_Z2Nov()
          to label %463 unwind label %464

463:                                              ; preds = %462
  br label %468

464:                                              ; preds = %462, %460, %457, %455, %452, %450
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %5, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  br label %472

468:                                              ; preds = %463, %446
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %469

469:                                              ; preds = %468
  %470 = load i32, ptr %44, align 4, !tbaa !5
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %44, align 4, !tbaa !5
  br label %362, !llvm.loop !22

472:                                              ; preds = %464, %393
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %585

473:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  store i32 0, ptr %50, align 4, !tbaa !5
  br label %474

474:                                              ; preds = %577, %473
  %475 = load i32, ptr %50, align 4, !tbaa !5
  %476 = load i32, ptr %2, align 4, !tbaa !5
  %477 = icmp slt i32 %475, %476
  br i1 %477, label %479, label %478

478:                                              ; preds = %474
  store i32 38, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %581

479:                                              ; preds = %474
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  %480 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #7
  %481 = load i32, ptr %50, align 4, !tbaa !5
  %482 = sext i32 %481 to i64
  %483 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %480, i64 noundef %482) #7
  %484 = load i64, ptr %483, align 8, !tbaa !14
  store i64 %484, ptr %51, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #7
  %485 = load i32, ptr %50, align 4, !tbaa !5
  %486 = sext i32 %485 to i64
  %487 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %486)
          to label %488 unwind label %501

488:                                              ; preds = %479
  %489 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %490 = extractvalue { ptr, i64 } %487, 0
  store ptr %490, ptr %489, align 8
  %491 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %492 = extractvalue { ptr, i64 } %487, 1
  store i64 %492, ptr %491, align 8
  %493 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %52) #7
  %494 = xor i1 %493, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #7
  br i1 %494, label %495, label %519

495:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #7
  store i32 0, ptr %53, align 4, !tbaa !5
  br label %496

496:                                              ; preds = %515, %495
  %497 = load i32, ptr %53, align 4, !tbaa !5
  %498 = load i32, ptr %2, align 4, !tbaa !5
  %499 = icmp slt i32 %497, %498
  br i1 %499, label %505, label %500

500:                                              ; preds = %496
  store i32 41, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #7
  br label %518

501:                                              ; preds = %479
  %502 = landingpad { ptr, i32 }
          cleanup
  %503 = extractvalue { ptr, i32 } %502, 0
  store ptr %503, ptr %5, align 8
  %504 = extractvalue { ptr, i32 } %502, 1
  store i32 %504, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #7
  br label %580

505:                                              ; preds = %496
  %506 = load i32, ptr %53, align 4, !tbaa !5
  %507 = sext i32 %506 to i64
  %508 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %507) #7
  %509 = load i32, ptr %50, align 4, !tbaa !5
  %510 = sext i32 %509 to i64
  %511 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %508, i64 noundef %510) #7
  %512 = load i64, ptr %511, align 8, !tbaa !14
  %513 = load i64, ptr %51, align 8, !tbaa !14
  %514 = and i64 %513, %512
  store i64 %514, ptr %51, align 8, !tbaa !14
  br label %515

515:                                              ; preds = %505
  %516 = load i32, ptr %53, align 4, !tbaa !5
  %517 = add nsw i32 %516, 1
  store i32 %517, ptr %53, align 4, !tbaa !5
  br label %496, !llvm.loop !23

518:                                              ; preds = %500
  br label %539

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

520:                                              ; preds = %535, %519
  %521 = load i32, ptr %54, align 4, !tbaa !5
  %522 = load i32, ptr %2, align 4, !tbaa !5
  %523 = icmp slt i32 %521, %522
  br i1 %523, label %525, label %524

524:                                              ; preds = %520
  store i32 44, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  br label %538

525:                                              ; preds = %520
  %526 = load i32, ptr %54, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %527) #7
  %529 = load i32, ptr %50, align 4, !tbaa !5
  %530 = sext i32 %529 to i64
  %531 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %528, i64 noundef %530) #7
  %532 = load i64, ptr %531, align 8, !tbaa !14
  %533 = load i64, ptr %51, align 8, !tbaa !14
  %534 = or i64 %533, %532
  store i64 %534, ptr %51, align 8, !tbaa !14
  br label %535

535:                                              ; preds = %525
  %536 = load i32, ptr %54, align 4, !tbaa !5
  %537 = add nsw i32 %536, 1
  store i32 %537, ptr %54, align 4, !tbaa !5
  br label %520, !llvm.loop !24

538:                                              ; preds = %524
  br label %539

539:                                              ; preds = %538, %518
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  %540 = load i32, ptr %50, align 4, !tbaa !5
  %541 = sext i32 %540 to i64
  %542 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %541) #7
  %543 = load i64, ptr %542, align 8, !tbaa !14
  store i64 %543, ptr %55, align 8, !tbaa !14
  %544 = load i32, ptr %26, align 4, !tbaa !5
  %545 = icmp slt i32 %544, 63
  br i1 %545, label %546, label %554

546:                                              ; preds = %539
  %547 = load i32, ptr %26, align 4, !tbaa !5
  %548 = add nsw i32 %547, 1
  %549 = zext i32 %548 to i64
  %550 = shl i64 1, %549
  %551 = sub i64 %550, 1
  %552 = load i64, ptr %55, align 8, !tbaa !14
  %553 = and i64 %552, %551
  store i64 %553, ptr %55, align 8, !tbaa !14
  br label %554

554:                                              ; preds = %546, %539
  %555 = load i64, ptr %51, align 8, !tbaa !14
  %556 = load i64, ptr %55, align 8, !tbaa !14
  %557 = icmp ne i64 %555, %556
  br i1 %557, label %558, label %576

558:                                              ; preds = %554
  %559 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
          to label %560 unwind label %572

560:                                              ; preds = %558
  %561 = load i32, ptr %26, align 4, !tbaa !5
  %562 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %559, i32 noundef %561)
          to label %563 unwind label %572

563:                                              ; preds = %560
  %564 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %562, ptr noundef @.str.4)
          to label %565 unwind label %572

565:                                              ; preds = %563
  %566 = load i32, ptr %50, align 4, !tbaa !5
  %567 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %564, i32 noundef %566)
          to label %568 unwind label %572

568:                                              ; preds = %565
  %569 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %567, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %570 unwind label %572

570:                                              ; preds = %568
  invoke void @_Z2Nov()
          to label %571 unwind label %572

571:                                              ; preds = %570
  br label %576

572:                                              ; preds = %570, %568, %565, %563, %560, %558
  %573 = landingpad { ptr, i32 }
          cleanup
  %574 = extractvalue { ptr, i32 } %573, 0
  store ptr %574, ptr %5, align 8
  %575 = extractvalue { ptr, i32 } %573, 1
  store i32 %575, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  br label %580

576:                                              ; preds = %571, %554
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %577

577:                                              ; preds = %576
  %578 = load i32, ptr %50, align 4, !tbaa !5
  %579 = add nsw i32 %578, 1
  store i32 %579, ptr %50, align 4, !tbaa !5
  br label %474, !llvm.loop !25

580:                                              ; preds = %572, %501
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %585

581:                                              ; preds = %478
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %36) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %36) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #7
  br label %582

582:                                              ; preds = %581
  %583 = load i32, ptr %26, align 4, !tbaa !5
  %584 = add nsw i32 %583, 1
  store i32 %584, ptr %26, align 4, !tbaa !5
  br label %195, !llvm.loop !26

585:                                              ; preds = %580, %472, %367
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  br label %586

586:                                              ; preds = %585, %322
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %36) #7
  br label %587

587:                                              ; preds = %586, %321, %299
  call void @llvm.lifetime.end.p0(i64 192, ptr %36) #7
  br label %588

588:                                              ; preds = %587, %282, %250
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  br label %589

589:                                              ; preds = %588, %224
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #7
  br label %590

590:                                              ; preds = %589, %220
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %637

591:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #7
  store i32 0, ptr %56, align 4, !tbaa !5
  br label %592

592:                                              ; preds = %632, %591
  %593 = load i32, ptr %56, align 4, !tbaa !5
  %594 = load i32, ptr %2, align 4, !tbaa !5
  %595 = icmp slt i32 %593, %594
  br i1 %595, label %597, label %596

596:                                              ; preds = %592
  store i32 47, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  br label %635

597:                                              ; preds = %592
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  store i32 0, ptr %57, align 4, !tbaa !5
  br label %598

598:                                              ; preds = %628, %597
  %599 = load i32, ptr %57, align 4, !tbaa !5
  %600 = load i32, ptr %2, align 4, !tbaa !5
  %601 = icmp slt i32 %599, %600
  br i1 %601, label %603, label %602

602:                                              ; preds = %598
  store i32 50, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  br label %631

603:                                              ; preds = %598
  %604 = load i32, ptr %56, align 4, !tbaa !5
  %605 = sext i32 %604 to i64
  %606 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %605) #7
  %607 = load i32, ptr %57, align 4, !tbaa !5
  %608 = sext i32 %607 to i64
  %609 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %606, i64 noundef %608) #7
  %610 = load i64, ptr %609, align 8, !tbaa !14
  %611 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %610)
          to label %612 unwind label %620

612:                                              ; preds = %603
  %613 = load i32, ptr %57, align 4, !tbaa !5
  %614 = load i32, ptr %2, align 4, !tbaa !5
  %615 = sub nsw i32 %614, 1
  %616 = icmp slt i32 %613, %615
  br i1 %616, label %617, label %624

617:                                              ; preds = %612
  %618 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %619 unwind label %620

619:                                              ; preds = %617
  br label %627

620:                                              ; preds = %624, %617, %603
  %621 = landingpad { ptr, i32 }
          cleanup
  %622 = extractvalue { ptr, i32 } %621, 0
  store ptr %622, ptr %5, align 8
  %623 = extractvalue { ptr, i32 } %621, 1
  store i32 %623, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  br label %637

624:                                              ; preds = %612
  %625 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %626 unwind label %620

626:                                              ; preds = %624
  br label %627

627:                                              ; preds = %626, %619
  br label %628

628:                                              ; preds = %627
  %629 = load i32, ptr %57, align 4, !tbaa !5
  %630 = add nsw i32 %629, 1
  store i32 %630, ptr %57, align 4, !tbaa !5
  br label %598, !llvm.loop !27

631:                                              ; preds = %602
  br label %632

632:                                              ; preds = %631
  %633 = load i32, ptr %56, align 4, !tbaa !5
  %634 = add nsw i32 %633, 1
  store i32 %634, ptr %56, align 4, !tbaa !5
  br label %592, !llvm.loop !28

635:                                              ; preds = %596
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %636 = load i32, ptr %1, align 4
  ret i32 %636

637:                                              ; preds = %620, %590
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %638

638:                                              ; preds = %637, %207
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %639

639:                                              ; preds = %638, %184, %165, %149, %117
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %640

640:                                              ; preds = %639, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %641

641:                                              ; preds = %640, %84
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  br label %642

642:                                              ; preds = %641, %80
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  br label %643

643:                                              ; preds = %642, %76
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %644

644:                                              ; preds = %643
  %645 = load ptr, ptr %5, align 8
  %646 = load i32, ptr %6, align 4
  %647 = insertvalue { ptr, i32 } poison, ptr %645, 0
  %648 = insertvalue { ptr, i32 } %647, i32 %646, 1
  resume { ptr, i32 } %648
}

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 nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16), 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 @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIySaIyEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5SolveC2EiSt6vectorIbSaIbEES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(192), i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Solve6answerEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.15") align 8, ptr noundef nonnull align 8 dereferenceable(192)) #2 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.3" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long long, std::allocator<unsigned long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long long>, std::allocator<std::vector<unsigned long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.12" = type { i8 }
%class.Solve = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

; 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 #2 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)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2Nov() local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator.3", align 1
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator.3", align 1
  %6 = alloca %"class.std::vector.6", align 8
  %7 = alloca %"class.std::allocator.7", align 1
  %8 = alloca %"class.std::vector.6", align 8
  %9 = alloca %"class.std::allocator.7", align 1
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::_Bit_reference", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"class.std::vector.10", align 8
  %15 = alloca %"class.std::vector.6", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca %"class.std::allocator.12", align 1
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::allocator.3", align 1
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::allocator.3", align 1
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca %"struct.std::_Bit_reference", align 8
  %25 = alloca %class.Solve, align 8
  %26 = alloca %"class.std::vector", align 8
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca %"class.std::vector.15", align 8
  %31 = alloca %"struct.std::_Bit_reference", align 8
  %32 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %33 = 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)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %36 unwind label %51

36:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %39 unwind label %53

39:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %42 unwind label %55

42:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %44, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %45 unwind label %57

45:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph, label %.preheader176.._crit_edge_crit_edge

.lr.ph:                                           ; preds = %45
  %48 = getelementptr inbounds i8, ptr %11, i64 8
  br label %59

.preheader178:                                    ; preds = %64
  %49 = icmp sgt i32 %69, 0
  br i1 %49, label %.lr.ph184, label %.preheader176.._crit_edge_crit_edge

.lr.ph184:                                        ; preds = %.preheader178
  %50 = getelementptr inbounds i8, ptr %13, i64 8
  br label %78

51:                                               ; preds = %0
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  br label %352

53:                                               ; preds = %36
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %351

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %350

57:                                               ; preds = %42
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  br label %349

59:                                               ; preds = %.lr.ph, %64
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %64 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %61 unwind label %72

61:                                               ; preds = %59
  %62 = load i32, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %63 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %indvars.iv)
          to label %64 unwind label %74

64:                                               ; preds = %61
  %65 = icmp ne i32 %62, 0
  %66 = extractvalue { ptr, i64 } %63, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i64 } %63, 1
  store i64 %67, ptr %48, align 8
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext %65) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next, %70
  br i1 %71, label %59, label %.preheader178, !llvm.loop !9

72:                                               ; preds = %59
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %61
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %76

76:                                               ; preds = %74, %72
  %.pn156 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %348

.preheader177:                                    ; preds = %83
  %77 = icmp sgt i32 %88, 0
  br i1 %77, label %.lr.ph186, label %.preheader176.._crit_edge_crit_edge

78:                                               ; preds = %.lr.ph184, %83
  %indvars.iv239 = phi i64 [ 0, %.lr.ph184 ], [ %indvars.iv.next240, %83 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %80 unwind label %91

80:                                               ; preds = %78
  %81 = load i32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %82 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %indvars.iv239)
          to label %83 unwind label %93

83:                                               ; preds = %80
  %84 = icmp ne i32 %81, 0
  %85 = extractvalue { ptr, i64 } %82, 0
  store ptr %85, ptr %13, align 8
  %86 = extractvalue { ptr, i64 } %82, 1
  store i64 %86, ptr %50, align 8
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext %84) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %88 = load i32, ptr %1, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next240, %89
  br i1 %90, label %78, label %.preheader177, !llvm.loop !11

91:                                               ; preds = %78
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %80
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %95

95:                                               ; preds = %93, %91
  %.pn154 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %348

.preheader176:                                    ; preds = %100
  %96 = icmp sgt i32 %101, 0
  br i1 %96, label %.lr.ph188, label %.preheader176.._crit_edge_crit_edge

.preheader176.._crit_edge_crit_edge:              ; preds = %45, %.preheader178, %.preheader177, %.preheader176
  %97 = phi i32 [ %101, %.preheader176 ], [ %88, %.preheader177 ], [ %69, %.preheader178 ], [ %46, %45 ]
  %.pre = sext i32 %97 to i64
  br label %._crit_edge

.lr.ph186:                                        ; preds = %.preheader177, %100
  %indvars.iv242 = phi i64 [ %indvars.iv.next243, %100 ], [ 0, %.preheader177 ]
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv242) #7
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %100 unwind label %104

100:                                              ; preds = %.lr.ph186
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next243, %102
  br i1 %103, label %.lr.ph186, label %.preheader176, !llvm.loop !12

104:                                              ; preds = %.lr.ph186
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %348

._crit_edge:                                      ; preds = %108, %.preheader176.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader176.._crit_edge_crit_edge ], [ %110, %108 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store i64 0, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt6vectorIySaIyEEC2EmRKyRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.pre-phi, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %114 unwind label %122

.lr.ph188:                                        ; preds = %.preheader176, %108
  %indvars.iv245 = phi i64 [ %indvars.iv.next246, %108 ], [ 0, %.preheader176 ]
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv245) #7
  %107 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %108 unwind label %112

108:                                              ; preds = %.lr.ph188
  %indvars.iv.next246 = add nuw nsw i64 %indvars.iv245, 1
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next246, %110
  br i1 %111, label %.lr.ph188, label %._crit_edge, !llvm.loop !15

112:                                              ; preds = %.lr.ph188
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %348

114:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSaISt6vectorIySaIyEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt6vectorIS_IySaIyEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.pre-phi, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %115 unwind label %124

115:                                              ; preds = %114
  call void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  %116 = getelementptr inbounds i8, ptr %23, i64 8
  %117 = getelementptr inbounds i8, ptr %24, i64 8
  %118 = getelementptr inbounds i8, ptr %31, i64 8
  %119 = getelementptr inbounds i8, ptr %32, i64 8
  br label %127

.preheader163:                                    ; preds = %._crit_edge221
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %.preheader, label %._crit_edge227

122:                                              ; preds = %._crit_edge
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %126

124:                                              ; preds = %114
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %126

126:                                              ; preds = %124, %122
  %.pn = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ]
  call void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  br label %347

127:                                              ; preds = %115, %._crit_edge221
  %indvars.iv278 = phi i64 [ 0, %115 ], [ %indvars.iv.next279.pre-phi, %._crit_edge221 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #7
  %128 = load i32, ptr %1, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %19, i64 noundef %129, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %130 unwind label %139

130:                                              ; preds = %127
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #7
  %131 = load i32, ptr %1, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef %132, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %133 unwind label %141

133:                                              ; preds = %130
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  %134 = load i32, ptr %1, align 4, !tbaa !5
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.lr.ph191, label %._crit_edge194

.lr.ph191:                                        ; preds = %133
  %136 = shl nuw i64 1, %indvars.iv278
  br label %143

.preheader175:                                    ; preds = %147
  %137 = icmp sgt i32 %153, 0
  br i1 %137, label %.lr.ph193, label %._crit_edge194

.lr.ph193:                                        ; preds = %.preheader175
  %138 = shl nuw i64 1, %indvars.iv278
  br label %158

139:                                              ; preds = %127
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  br label %322

141:                                              ; preds = %130
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  br label %321

143:                                              ; preds = %.lr.ph191, %147
  %indvars.iv248 = phi i64 [ 0, %.lr.ph191 ], [ %indvars.iv.next249, %147 ]
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv248) #7
  %145 = load i64, ptr %144, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %146 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %19, i64 noundef %indvars.iv248)
          to label %147 unwind label %156

147:                                              ; preds = %143
  %148 = and i64 %145, %136
  %149 = icmp ne i64 %148, 0
  %150 = extractvalue { ptr, i64 } %146, 0
  store ptr %150, ptr %23, align 8
  %151 = extractvalue { ptr, i64 } %146, 1
  store i64 %151, ptr %116, align 8
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext %149) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %153 = load i32, ptr %1, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next249, %154
  br i1 %155, label %143, label %.preheader175, !llvm.loop !16

156:                                              ; preds = %143
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %320

._crit_edge194:                                   ; preds = %162, %133, %.preheader175
  %.lcssa = phi i32 [ %153, %.preheader175 ], [ %134, %133 ], [ %168, %162 ]
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %25) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %173 unwind label %188

158:                                              ; preds = %.lr.ph193, %162
  %indvars.iv251 = phi i64 [ 0, %.lr.ph193 ], [ %indvars.iv.next252, %162 ]
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv251) #7
  %160 = load i64, ptr %159, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %161 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef %indvars.iv251)
          to label %162 unwind label %171

162:                                              ; preds = %158
  %163 = and i64 %160, %138
  %164 = icmp ne i64 %163, 0
  %165 = extractvalue { ptr, i64 } %161, 0
  store ptr %165, ptr %24, align 8
  %166 = extractvalue { ptr, i64 } %161, 1
  store i64 %166, ptr %117, align 8
  %167 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %24, i1 noundef zeroext %164) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %168 = load i32, ptr %1, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = icmp slt i64 %indvars.iv.next252, %169
  br i1 %170, label %158, label %._crit_edge194, !llvm.loop !17

171:                                              ; preds = %158
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %320

173:                                              ; preds = %._crit_edge194
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %174 unwind label %190

174:                                              ; preds = %173
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %175 unwind label %192

175:                                              ; preds = %174
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %176 unwind label %194

176:                                              ; preds = %175
  invoke void @_ZN5SolveC2EiSt6vectorIbSaIbEES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(192) %25, i32 noundef %.lcssa, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
          to label %177 unwind label %196

177:                                              ; preds = %176
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #7
  invoke void @_ZN5Solve6answerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.15") align 8 %30, ptr noundef nonnull align 8 dereferenceable(192) %25)
          to label %.preheader174 unwind label %201

.preheader174:                                    ; preds = %177
  %178 = load i32, ptr %1, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %.preheader171, label %._crit_edge200

.preheader171:                                    ; preds = %.preheader174, %._crit_edge198
  %180 = phi i32 [ %203, %._crit_edge198 ], [ %178, %.preheader174 ]
  %indvars.iv257 = phi i64 [ %indvars.iv.next258, %._crit_edge198 ], [ 0, %.preheader174 ]
  %181 = icmp sgt i32 %180, 0
  br i1 %181, label %.lr.ph197, label %.preheader171.._crit_edge198_crit_edge

.preheader171.._crit_edge198_crit_edge:           ; preds = %.preheader171
  %.pre287 = sext i32 %180 to i64
  br label %._crit_edge198

._crit_edge200:                                   ; preds = %._crit_edge198, %.preheader174
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsIyERSoS0_RKSt6vectorIS1_IT_SaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %.preheader173 unwind label %221

.preheader173:                                    ; preds = %._crit_edge200
  %183 = load i32, ptr %1, align 4, !tbaa !5
  %184 = icmp sgt i32 %183, 0
  br i1 %184, label %.lr.ph210, label %._crit_edge221

.lr.ph210:                                        ; preds = %.preheader173
  %.not140 = icmp eq i64 %indvars.iv278, 63
  %notmask141 = shl nsw i64 -2, %indvars.iv278
  %185 = xor i64 %notmask141, -1
  %186 = select i1 %.not140, i64 -1, i64 %185
  %187 = trunc nuw nsw i64 %indvars.iv278 to i32
  br label %223

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

190:                                              ; preds = %173
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %200

192:                                              ; preds = %174
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %199

194:                                              ; preds = %175
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %198

196:                                              ; preds = %176
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #7
  br label %198

198:                                              ; preds = %196, %194
  %.pn133 = phi { ptr, i32 } [ %197, %196 ], [ %195, %194 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #7
  br label %199

199:                                              ; preds = %198, %192
  %.pn133.pn = phi { ptr, i32 } [ %.pn133, %198 ], [ %193, %192 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  br label %200

200:                                              ; preds = %199, %190
  %.pn133.pn.pn = phi { ptr, i32 } [ %.pn133.pn, %199 ], [ %191, %190 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #7
  br label %319

201:                                              ; preds = %177
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %318

._crit_edge198:                                   ; preds = %.lr.ph197, %.preheader171.._crit_edge198_crit_edge
  %.pre-phi288 = phi i64 [ %.pre287, %.preheader171.._crit_edge198_crit_edge ], [ %215, %.lr.ph197 ]
  %203 = phi i32 [ %180, %.preheader171.._crit_edge198_crit_edge ], [ %214, %.lr.ph197 ]
  %indvars.iv.next258 = add nuw nsw i64 %indvars.iv257, 1
  %204 = icmp slt i64 %indvars.iv.next258, %.pre-phi288
  br i1 %204, label %.preheader171, label %._crit_edge200, !llvm.loop !18

.lr.ph197:                                        ; preds = %.preheader171, %.lr.ph197
  %indvars.iv254 = phi i64 [ %indvars.iv.next255, %.lr.ph197 ], [ 0, %.preheader171 ]
  %205 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv257) #7
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %indvars.iv254) #7
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = shl i64 %208, %indvars.iv278
  %210 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv257) #7
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %indvars.iv254) #7
  %212 = load i64, ptr %211, align 8, !tbaa !13
  %213 = or i64 %212, %209
  store i64 %213, ptr %211, align 8, !tbaa !13
  %indvars.iv.next255 = add nuw nsw i64 %indvars.iv254, 1
  %214 = load i32, ptr %1, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = icmp slt i64 %indvars.iv.next255, %215
  br i1 %216, label %.lr.ph197, label %._crit_edge198, !llvm.loop !20

.preheader172:                                    ; preds = %266
  %217 = icmp sgt i32 %267, 0
  br i1 %217, label %.lr.ph220, label %._crit_edge221

.lr.ph220:                                        ; preds = %.preheader172
  %.not = icmp eq i64 %indvars.iv278, 63
  %notmask = shl nsw i64 -2, %indvars.iv278
  %218 = xor i64 %notmask, -1
  %219 = select i1 %.not, i64 -1, i64 %218
  %220 = trunc nuw nsw i64 %indvars.iv278 to i32
  br label %270

221:                                              ; preds = %._crit_edge200
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %317

223:                                              ; preds = %.lr.ph210, %266
  %indvars.iv266 = phi i64 [ 0, %.lr.ph210 ], [ %indvars.iv.next267, %266 ]
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv266) #7
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef 0) #7
  %226 = load i64, ptr %225, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #7
  %227 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %indvars.iv266)
          to label %228 unwind label %234

228:                                              ; preds = %223
  %229 = extractvalue { ptr, i64 } %227, 0
  store ptr %229, ptr %31, align 8
  %230 = extractvalue { ptr, i64 } %227, 1
  store i64 %230, ptr %118, align 8
  %231 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  %232 = load i32, ptr %1, align 4, !tbaa !5
  %233 = icmp sgt i32 %232, 0
  br i1 %231, label %.preheader167, label %.preheader169

.preheader169:                                    ; preds = %228
  br i1 %233, label %.lr.ph203, label %.loopexit168

.preheader167:                                    ; preds = %228
  br i1 %233, label %.lr.ph207, label %.loopexit168

234:                                              ; preds = %223
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  br label %317

.lr.ph203:                                        ; preds = %.preheader169, %.lr.ph203
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %.lr.ph203 ], [ 0, %.preheader169 ]
  %.095201 = phi i64 [ %239, %.lr.ph203 ], [ %226, %.preheader169 ]
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv266) #7
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %indvars.iv260) #7
  %238 = load i64, ptr %237, align 8, !tbaa !13
  %239 = and i64 %238, %.095201
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %240 = load i32, ptr %1, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = icmp slt i64 %indvars.iv.next261, %241
  br i1 %242, label %.lr.ph203, label %.loopexit168, !llvm.loop !21

.lr.ph207:                                        ; preds = %.preheader167, %.lr.ph207
  %indvars.iv263 = phi i64 [ %indvars.iv.next264, %.lr.ph207 ], [ 0, %.preheader167 ]
  %.196205 = phi i64 [ %246, %.lr.ph207 ], [ %226, %.preheader167 ]
  %243 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv266) #7
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %indvars.iv263) #7
  %245 = load i64, ptr %244, align 8, !tbaa !13
  %246 = or i64 %245, %.196205
  %indvars.iv.next264 = add nuw nsw i64 %indvars.iv263, 1
  %247 = load i32, ptr %1, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = icmp slt i64 %indvars.iv.next264, %248
  br i1 %249, label %.lr.ph207, label %.loopexit168, !llvm.loop !22

.loopexit168:                                     ; preds = %.lr.ph203, %.lr.ph207, %.preheader169, %.preheader167
  %.297 = phi i64 [ %226, %.preheader167 ], [ %226, %.preheader169 ], [ %246, %.lr.ph207 ], [ %239, %.lr.ph203 ]
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv266) #7
  %251 = load i64, ptr %250, align 8, !tbaa !13
  %.092 = and i64 %251, %186
  %.not142 = icmp eq i64 %.297, %.092
  br i1 %.not142, label %266, label %252

252:                                              ; preds = %.loopexit168
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
          to label %254 unwind label %264

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %253, i32 noundef %187)
          to label %256 unwind label %264

256:                                              ; preds = %254
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef nonnull @.str.3)
          to label %258 unwind label %264

258:                                              ; preds = %256
  %259 = trunc nuw nsw i64 %indvars.iv266 to i32
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %257, i32 noundef %259)
          to label %261 unwind label %264

261:                                              ; preds = %258
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %263 unwind label %264

263:                                              ; preds = %261
  invoke void @_Z2Nov()
          to label %266 unwind label %264

264:                                              ; preds = %263, %261, %258, %256, %254, %252
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %317

266:                                              ; preds = %263, %.loopexit168
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %267 = load i32, ptr %1, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = icmp slt i64 %indvars.iv.next267, %268
  br i1 %269, label %223, label %.preheader172, !llvm.loop !23

._crit_edge221:                                   ; preds = %313, %.preheader173, %.preheader172
  %indvars.iv.next279.pre-phi = add nuw nsw i64 %indvars.iv278, 1
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %25) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %25) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  %exitcond.not = icmp eq i64 %indvars.iv.next279.pre-phi, 64
  br i1 %exitcond.not, label %.preheader163, label %127, !llvm.loop !24

270:                                              ; preds = %.lr.ph220, %313
  %indvars.iv275 = phi i64 [ 0, %.lr.ph220 ], [ %indvars.iv.next276, %313 ]
  %271 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #7
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %271, i64 noundef %indvars.iv275) #7
  %273 = load i64, ptr %272, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #7
  %274 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %indvars.iv275)
          to label %275 unwind label %281

275:                                              ; preds = %270
  %276 = extractvalue { ptr, i64 } %274, 0
  store ptr %276, ptr %32, align 8
  %277 = extractvalue { ptr, i64 } %274, 1
  store i64 %277, ptr %119, align 8
  %278 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  %279 = load i32, ptr %1, align 4, !tbaa !5
  %280 = icmp sgt i32 %279, 0
  br i1 %278, label %.preheader164, label %.preheader165

.preheader165:                                    ; preds = %275
  br i1 %280, label %.lr.ph213, label %.loopexit

.preheader164:                                    ; preds = %275
  br i1 %280, label %.lr.ph217, label %.loopexit

281:                                              ; preds = %270
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  br label %317

.lr.ph213:                                        ; preds = %.preheader165, %.lr.ph213
  %indvars.iv269 = phi i64 [ %indvars.iv.next270, %.lr.ph213 ], [ 0, %.preheader165 ]
  %.090211 = phi i64 [ %286, %.lr.ph213 ], [ %273, %.preheader165 ]
  %283 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv269) #7
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %indvars.iv275) #7
  %285 = load i64, ptr %284, align 8, !tbaa !13
  %286 = and i64 %285, %.090211
  %indvars.iv.next270 = add nuw nsw i64 %indvars.iv269, 1
  %287 = load i32, ptr %1, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = icmp slt i64 %indvars.iv.next270, %288
  br i1 %289, label %.lr.ph213, label %.loopexit, !llvm.loop !25

.lr.ph217:                                        ; preds = %.preheader164, %.lr.ph217
  %indvars.iv272 = phi i64 [ %indvars.iv.next273, %.lr.ph217 ], [ 0, %.preheader164 ]
  %.1215 = phi i64 [ %293, %.lr.ph217 ], [ %273, %.preheader164 ]
  %290 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv272) #7
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef %indvars.iv275) #7
  %292 = load i64, ptr %291, align 8, !tbaa !13
  %293 = or i64 %292, %.1215
  %indvars.iv.next273 = add nuw nsw i64 %indvars.iv272, 1
  %294 = load i32, ptr %1, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = icmp slt i64 %indvars.iv.next273, %295
  br i1 %296, label %.lr.ph217, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph213, %.lr.ph217, %.preheader165, %.preheader164
  %.2 = phi i64 [ %273, %.preheader164 ], [ %273, %.preheader165 ], [ %293, %.lr.ph217 ], [ %286, %.lr.ph213 ]
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv275) #7
  %298 = load i64, ptr %297, align 8, !tbaa !13
  %.087 = and i64 %298, %219
  %.not137 = icmp eq i64 %.2, %.087
  br i1 %.not137, label %313, label %299

299:                                              ; preds = %.loopexit
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
          to label %301 unwind label %311

301:                                              ; preds = %299
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %300, i32 noundef %220)
          to label %303 unwind label %311

303:                                              ; preds = %301
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef nonnull @.str.4)
          to label %305 unwind label %311

305:                                              ; preds = %303
  %306 = trunc nuw nsw i64 %indvars.iv275 to i32
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %304, i32 noundef %306)
          to label %308 unwind label %311

308:                                              ; preds = %305
  %309 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %307, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %310 unwind label %311

310:                                              ; preds = %308
  invoke void @_Z2Nov()
          to label %313 unwind label %311

311:                                              ; preds = %310, %308, %305, %303, %301, %299
  %312 = landingpad { ptr, i32 }
          cleanup
  br label %317

313:                                              ; preds = %310, %.loopexit
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %314 = load i32, ptr %1, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = icmp slt i64 %indvars.iv.next276, %315
  br i1 %316, label %270, label %._crit_edge221, !llvm.loop !27

317:                                              ; preds = %281, %311, %234, %264, %221
  %.pn143.pn = phi { ptr, i32 } [ %222, %221 ], [ %265, %264 ], [ %235, %234 ], [ %312, %311 ], [ %282, %281 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  br label %318

318:                                              ; preds = %317, %201
  %.pn143.pn.pn = phi { ptr, i32 } [ %.pn143.pn, %317 ], [ %202, %201 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %25) #7
  br label %319

319:                                              ; preds = %318, %200, %188
  %.pn143.pn.pn.pn = phi { ptr, i32 } [ %.pn143.pn.pn, %318 ], [ %.pn133.pn.pn, %200 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %25) #7
  br label %320

320:                                              ; preds = %319, %171, %156
  %.pn148 = phi { ptr, i32 } [ %157, %156 ], [ %172, %171 ], [ %.pn143.pn.pn.pn, %319 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  br label %321

321:                                              ; preds = %320, %141
  %.pn148.pn = phi { ptr, i32 } [ %.pn148, %320 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  br label %322

322:                                              ; preds = %321, %139
  %.pn148.pn.pn = phi { ptr, i32 } [ %.pn148.pn, %321 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  br label %346

.preheader:                                       ; preds = %.preheader163, %._crit_edge225
  %323 = phi i32 [ %325, %._crit_edge225 ], [ %120, %.preheader163 ]
  %indvars.iv284 = phi i64 [ %indvars.iv.next285, %._crit_edge225 ], [ 0, %.preheader163 ]
  %324 = icmp sgt i32 %323, 0
  br i1 %324, label %.lr.ph224, label %.preheader.._crit_edge225_crit_edge

.preheader.._crit_edge225_crit_edge:              ; preds = %.preheader
  %.pre290 = sext i32 %323 to i64
  br label %._crit_edge225

._crit_edge227:                                   ; preds = %._crit_edge225, %.preheader163
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

._crit_edge225:                                   ; preds = %342, %.preheader.._crit_edge225_crit_edge
  %.pre-phi291 = phi i64 [ %.pre290, %.preheader.._crit_edge225_crit_edge ], [ %344, %342 ]
  %325 = phi i32 [ %323, %.preheader.._crit_edge225_crit_edge ], [ %343, %342 ]
  %indvars.iv.next285 = add nuw nsw i64 %indvars.iv284, 1
  %326 = icmp slt i64 %indvars.iv.next285, %.pre-phi291
  br i1 %326, label %.preheader, label %._crit_edge227, !llvm.loop !28

.lr.ph224:                                        ; preds = %.preheader, %342
  %indvars.iv281 = phi i64 [ %indvars.iv.next282, %342 ], [ 0, %.preheader ]
  %327 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv284) #7
  %328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %327, i64 noundef %indvars.iv281) #7
  %329 = load i64, ptr %328, align 8, !tbaa !13
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %329)
          to label %331 unwind label %338

331:                                              ; preds = %.lr.ph224
  %332 = load i32, ptr %1, align 4, !tbaa !5
  %333 = add nsw i32 %332, -1
  %334 = sext i32 %333 to i64
  %335 = icmp slt i64 %indvars.iv281, %334
  br i1 %335, label %336, label %340

336:                                              ; preds = %331
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %342 unwind label %338

338:                                              ; preds = %340, %336, %.lr.ph224
  %339 = landingpad { ptr, i32 }
          cleanup
  br label %346

340:                                              ; preds = %331
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %342 unwind label %338

342:                                              ; preds = %336, %340
  %indvars.iv.next282 = add nuw nsw i64 %indvars.iv281, 1
  %343 = load i32, ptr %1, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = icmp slt i64 %indvars.iv.next282, %344
  br i1 %345, label %.lr.ph224, label %._crit_edge225, !llvm.loop !29

346:                                              ; preds = %338, %322
  %.pn148.pn.pn.pn = phi { ptr, i32 } [ %.pn148.pn.pn, %322 ], [ %339, %338 ]
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %347

347:                                              ; preds = %346, %126
  %.pn148.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn148.pn.pn.pn, %346 ], [ %.pn, %126 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %348

348:                                              ; preds = %347, %112, %104, %95, %76
  %.pn156.pn = phi { ptr, i32 } [ %.pn156, %76 ], [ %.pn154, %95 ], [ %105, %104 ], [ %113, %112 ], [ %.pn148.pn.pn.pn.pn, %347 ]
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %349

349:                                              ; preds = %348, %57
  %.pn156.pn.pn = phi { ptr, i32 } [ %.pn156.pn, %348 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %350

350:                                              ; preds = %349, %55
  %.pn156.pn.pn.pn = phi { ptr, i32 } [ %.pn156.pn.pn, %349 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %351

351:                                              ; preds = %350, %53
  %.pn156.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn156.pn.pn.pn, %350 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  br label %352

352:                                              ; preds = %351, %51
  %.pn156.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn156.pn.pn.pn.pn, %351 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn156.pn.pn.pn.pn.pn
}

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 nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16), 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 @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIySaIyEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5SolveC2EiSt6vectorIbSaIbEES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(192), i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Solve6answerEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.15") align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIyED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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


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