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

; 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::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl" }
%"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl" = type { %"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl_data" }
%"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = 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.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.12" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.17" = type { i8 }
%class.Solve = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.20" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_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
@.str.8 = 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 @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector.3", align 8
  %4 = alloca %"class.std::allocator.7", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca %"class.std::allocator.7", align 1
  %9 = alloca %"class.std::vector.10", align 8
  %10 = alloca %"class.std::allocator.12", align 1
  %11 = alloca %"class.std::vector.10", align 8
  %12 = alloca %"class.std::allocator.12", 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.15", align 8
  %22 = alloca %"class.std::vector.10", align 8
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::allocator.12", align 1
  %25 = alloca %"class.std::allocator.17", align 1
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector.3", align 8
  %29 = alloca %"class.std::allocator.7", align 1
  %30 = alloca %"class.std::vector.3", align 8
  %31 = alloca %"class.std::allocator.7", 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.std::vector", align 8
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %class.Solve, align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::vector", align 8
  %41 = alloca %"class.std::vector.20", align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %"struct.std::_Bit_reference", align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %47 = 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
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 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 %49, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %50 unwind label %65

50:                                               ; 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
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sext i32 %51 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 %52, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %53 unwind label %69

53:                                               ; preds = %50
  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
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sext i32 %54 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 %55, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %56 unwind label %73

56:                                               ; preds = %53
  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
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 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 %58, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %59 unwind label %77

59:                                               ; preds = %56
  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 %60

60:                                               ; preds = %95, %59
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %81, label %64

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

65:                                               ; preds = %0
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, 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 %418

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, 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 %417

73:                                               ; preds = %53
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %5, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, 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 %416

77:                                               ; preds = %56
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %5, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, 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 %415

81:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %82 = 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 %83 unwind label %98

83:                                               ; preds = %81
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = icmp ne i32 %84, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %86 = load i32, ptr %13, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %87)
          to label %89 unwind label %102

89:                                               ; preds = %83
  %90 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %91 = extractvalue { ptr, i64 } %88, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %93 = extractvalue { ptr, i64 } %88, 1
  store i64 %93, ptr %92, align 8
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %85) #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 %95

95:                                               ; preds = %89
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !5
  br label %60, !llvm.loop !9

98:                                               ; preds = %81
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  br label %106

102:                                              ; preds = %83
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %414

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

108:                                              ; preds = %127, %107
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %113, label %112

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

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %114 = 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 %115 unwind label %130

115:                                              ; preds = %113
  %116 = load i32, ptr %17, align 4, !tbaa !5
  %117 = icmp ne i32 %116, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %119)
          to label %121 unwind label %134

121:                                              ; preds = %115
  %122 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %123 = extractvalue { ptr, i64 } %120, 0
  store ptr %123, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %125 = extractvalue { ptr, i64 } %120, 1
  store i64 %125, ptr %124, align 8
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext %117) #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 %127

127:                                              ; preds = %121
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %16, align 4, !tbaa !5
  br label %108, !llvm.loop !11

130:                                              ; preds = %113
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %5, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %6, align 4
  br label %138

134:                                              ; preds = %115
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %5, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %414

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

140:                                              ; preds = %151, %139
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

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

145:                                              ; preds = %140
  %146 = load i32, ptr %19, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %147) #7
  %149 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %150 unwind label %154

150:                                              ; preds = %145
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %19, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %19, align 4, !tbaa !5
  br label %140, !llvm.loop !12

154:                                              ; preds = %145
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %5, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %414

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

159:                                              ; preds = %170, %158
  %160 = load i32, ptr %20, align 4, !tbaa !5
  %161 = load i32, ptr %2, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

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

164:                                              ; preds = %159
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %166) #7
  %168 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %169 unwind label %173

169:                                              ; preds = %164
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %20, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %20, align 4, !tbaa !5
  br label %159, !llvm.loop !13

173:                                              ; preds = %164
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %5, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %414

177:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %178 = load i32, ptr %2, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %180 = load i32, ptr %2, align 4, !tbaa !5
  %181 = sext i32 %180 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 %181, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %182 unwind label %188

182:                                              ; preds = %177
  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 %179, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %183 unwind label %192

183:                                              ; preds = %182
  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 %184

184:                                              ; preds = %356, %183
  %185 = load i32, ptr %26, align 4, !tbaa !5
  %186 = icmp slt i32 %185, 64
  br i1 %186, label %197, label %187

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

188:                                              ; preds = %177
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %5, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %6, align 4
  br label %196

192:                                              ; preds = %182
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %5, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, 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 %196

196:                                              ; preds = %192, %188
  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 %413

197:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #7
  %198 = load i32, ptr %2, align 4, !tbaa !5
  %199 = sext i32 %198 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 %199, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %200 unwind label %209

200:                                              ; preds = %197
  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
  %201 = load i32, ptr %2, align 4, !tbaa !5
  %202 = sext i32 %201 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 %202, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %203 unwind label %213

203:                                              ; preds = %200
  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 %204

204:                                              ; preds = %236, %203
  %205 = load i32, ptr %32, align 4, !tbaa !5
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %217, label %208

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

209:                                              ; preds = %197
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %5, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, 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 %365

213:                                              ; preds = %200
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %5, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, 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 %364

217:                                              ; preds = %204
  %218 = load i32, ptr %32, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %219) #7
  %221 = load i64, ptr %220, align 8, !tbaa !14
  %222 = load i32, ptr %26, align 4, !tbaa !5
  %223 = zext i32 %222 to i64
  %224 = lshr i64 %221, %223
  %225 = and i64 %224, 1
  %226 = icmp ne i64 %225, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %227 = load i32, ptr %32, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %28, i64 noundef %228)
          to label %230 unwind label %239

230:                                              ; preds = %217
  %231 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %232 = extractvalue { ptr, i64 } %229, 0
  store ptr %232, ptr %231, align 8
  %233 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %234 = extractvalue { ptr, i64 } %229, 1
  store i64 %234, ptr %233, align 8
  %235 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %33, i1 noundef zeroext %226) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %236

236:                                              ; preds = %230
  %237 = load i32, ptr %32, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %32, align 4, !tbaa !5
  br label %204, !llvm.loop !16

239:                                              ; preds = %217
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %5, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, 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 %363

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

244:                                              ; preds = %268, %243
  %245 = load i32, ptr %34, align 4, !tbaa !5
  %246 = load i32, ptr %2, align 4, !tbaa !5
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %249, label %248

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

249:                                              ; preds = %244
  %250 = load i32, ptr %34, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %251) #7
  %253 = load i64, ptr %252, align 8, !tbaa !14
  %254 = load i32, ptr %26, align 4, !tbaa !5
  %255 = zext i32 %254 to i64
  %256 = lshr i64 %253, %255
  %257 = and i64 %256, 1
  %258 = icmp ne i64 %257, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %259 = load i32, ptr %34, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef %260)
          to label %262 unwind label %271

262:                                              ; preds = %249
  %263 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %264 = extractvalue { ptr, i64 } %261, 0
  store ptr %264, ptr %263, align 8
  %265 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %266 = extractvalue { ptr, i64 } %261, 1
  store i64 %266, ptr %265, align 8
  %267 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %35, i1 noundef zeroext %258) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %268

268:                                              ; preds = %262
  %269 = load i32, ptr %34, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %34, align 4, !tbaa !5
  br label %244, !llvm.loop !17

271:                                              ; preds = %249
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %5, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, 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 %363

275:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #7
  invoke void @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %36, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %276 unwind label %288

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #7
  invoke void @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %37, ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %277 unwind label %292

277:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #7
  %278 = load i32, ptr %2, align 4, !tbaa !5
  invoke void @_ZNSt6vectorI5StateSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %279 unwind label %296

279:                                              ; preds = %277
  invoke void @_ZNSt6vectorI5StateSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %280 unwind label %300

280:                                              ; preds = %279
  invoke void @_ZN5SolveC2EiSt6vectorI5StateSaIS1_EES3_(ptr noundef nonnull align 8 dereferenceable(80) %38, i32 noundef %278, ptr noundef %39, ptr noundef %40)
          to label %281 unwind label %304

281:                                              ; preds = %280
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #7
  invoke void @_ZN5Solve6AnswerEv(ptr dead_on_unwind writable sret(%"class.std::vector.20") align 8 %41, ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %282 unwind label %309

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

283:                                              ; preds = %352, %282
  %284 = load i32, ptr %42, align 4, !tbaa !5
  %285 = load i32, ptr %2, align 4, !tbaa !5
  %286 = icmp slt i32 %284, %285
  br i1 %286, label %313, label %287

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

288:                                              ; preds = %275
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %5, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %6, align 4
  br label %362

292:                                              ; preds = %276
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %5, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %6, align 4
  br label %361

296:                                              ; preds = %277
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %5, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %6, align 4
  br label %360

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

304:                                              ; preds = %280
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %5, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %6, align 4
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  br label %308

308:                                              ; preds = %304, %300
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  br label %360

309:                                              ; preds = %281
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %5, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %6, align 4
  br label %359

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

314:                                              ; preds = %344, %313
  %315 = load i32, ptr %43, align 4, !tbaa !5
  %316 = load i32, ptr %2, align 4, !tbaa !5
  %317 = icmp slt i32 %315, %316
  br i1 %317, label %319, label %318

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

319:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #7
  %320 = load i32, ptr %42, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %321) #7
  %323 = load i32, ptr %43, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %322, i64 noundef %324)
          to label %326 unwind label %347

326:                                              ; preds = %319
  %327 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %328 = extractvalue { ptr, i64 } %325, 0
  store ptr %328, ptr %327, align 8
  %329 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %330 = extractvalue { ptr, i64 } %325, 1
  store i64 %330, ptr %329, align 8
  %331 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %44) #7
  %332 = zext i1 %331 to i64
  %333 = load i32, ptr %26, align 4, !tbaa !5
  %334 = zext i32 %333 to i64
  %335 = shl i64 %332, %334
  %336 = load i32, ptr %42, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %337) #7
  %339 = load i32, ptr %43, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %338, i64 noundef %340) #7
  %342 = load i64, ptr %341, align 8, !tbaa !14
  %343 = or i64 %342, %335
  store i64 %343, ptr %341, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  br label %344

344:                                              ; preds = %326
  %345 = load i32, ptr %43, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %43, align 4, !tbaa !5
  br label %314, !llvm.loop !18

347:                                              ; preds = %319
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %5, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  br label %359

351:                                              ; preds = %318
  br label %352

352:                                              ; preds = %351
  %353 = load i32, ptr %42, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %42, align 4, !tbaa !5
  br label %283, !llvm.loop !19

355:                                              ; preds = %287
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_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(80) %38) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @llvm.lifetime.end.p0(i64 24, 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 %356

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

359:                                              ; preds = %347, %309
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %38) #7
  br label %360

360:                                              ; preds = %359, %308, %296
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  br label %361

361:                                              ; preds = %360, %292
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  br label %362

362:                                              ; preds = %361, %288
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #7
  br label %363

363:                                              ; preds = %362, %271, %239
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  br label %364

364:                                              ; preds = %363, %213
  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 %365

365:                                              ; preds = %364, %209
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %412

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

367:                                              ; preds = %407, %366
  %368 = load i32, ptr %45, align 4, !tbaa !5
  %369 = load i32, ptr %2, align 4, !tbaa !5
  %370 = icmp slt i32 %368, %369
  br i1 %370, label %372, label %371

371:                                              ; preds = %367
  store i32 29, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %410

372:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %373

373:                                              ; preds = %403, %372
  %374 = load i32, ptr %46, align 4, !tbaa !5
  %375 = load i32, ptr %2, align 4, !tbaa !5
  %376 = icmp slt i32 %374, %375
  br i1 %376, label %378, label %377

377:                                              ; preds = %373
  store i32 32, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %406

378:                                              ; preds = %373
  %379 = load i32, ptr %45, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %380) #7
  %382 = load i32, ptr %46, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %381, i64 noundef %383) #7
  %385 = load i64, ptr %384, align 8, !tbaa !14
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %385)
          to label %387 unwind label %395

387:                                              ; preds = %378
  %388 = load i32, ptr %46, align 4, !tbaa !5
  %389 = load i32, ptr %2, align 4, !tbaa !5
  %390 = sub nsw i32 %389, 1
  %391 = icmp slt i32 %388, %390
  br i1 %391, label %392, label %399

392:                                              ; preds = %387
  %393 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %394 unwind label %395

394:                                              ; preds = %392
  br label %402

395:                                              ; preds = %399, %392, %378
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %5, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %412

399:                                              ; preds = %387
  %400 = 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 %401 unwind label %395

401:                                              ; preds = %399
  br label %402

402:                                              ; preds = %401, %394
  br label %403

403:                                              ; preds = %402
  %404 = load i32, ptr %46, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %46, align 4, !tbaa !5
  br label %373, !llvm.loop !21

406:                                              ; preds = %377
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %45, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %45, align 4, !tbaa !5
  br label %367, !llvm.loop !22

410:                                              ; preds = %371
  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
  %411 = load i32, ptr %1, align 4
  ret i32 %411

412:                                              ; preds = %395, %365
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %413

413:                                              ; preds = %412, %196
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %414

414:                                              ; preds = %413, %173, %154, %138, %106
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %415

415:                                              ; preds = %414, %77
  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 %416

416:                                              ; preds = %415, %73
  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 %417

417:                                              ; preds = %416, %69
  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 %418

418:                                              ; preds = %417, %65
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %419

419:                                              ; preds = %418
  %420 = load ptr, ptr %5, align 8
  %421 = load i32, ptr %6, align 4
  %422 = insertvalue { ptr, i32 } poison, ptr %420, 0
  %423 = insertvalue { ptr, i32 } %422, i32 %421, 1
  resume { ptr, i32 } %423
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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) #3 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) #3 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 #3 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 #3 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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}


; 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::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl" }
%"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl" = type { %"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl_data" }
%"struct.std::_Vector_base<State, std::allocator<State>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = 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.7" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.12" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.17" = type { i8 }
%class.Solve = type { i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.20" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_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
@.str.8 = 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 @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

35:                                               ; 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
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = sext i32 %36 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 %37, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %38 unwind label %52

38:                                               ; preds = %35
  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
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = sext i32 %39 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 %40, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %41 unwind label %54

41:                                               ; preds = %38
  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
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = sext i32 %42 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 %43, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %44 unwind label %56

44:                                               ; preds = %41
  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
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph, label %.preheader98.._crit_edge_crit_edge

.lr.ph:                                           ; preds = %44
  %47 = getelementptr inbounds i8, ptr %11, i64 8
  br label %58

.preheader100:                                    ; preds = %63
  %48 = icmp sgt i32 %68, 0
  br i1 %48, label %.lr.ph104, label %.preheader98.._crit_edge_crit_edge

.lr.ph104:                                        ; preds = %.preheader100
  %49 = getelementptr inbounds i8, ptr %13, i64 8
  br label %77

50:                                               ; preds = %0
  %51 = 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 %249

52:                                               ; preds = %35
  %53 = 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 %248

54:                                               ; preds = %38
  %55 = 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 %247

56:                                               ; preds = %41
  %57 = 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 %246

58:                                               ; preds = %.lr.ph, %63
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %63 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %59 = 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 %60 unwind label %71

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

63:                                               ; preds = %60
  %64 = icmp ne i32 %61, 0
  %65 = extractvalue { ptr, i64 } %62, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i64 } %62, 1
  store i64 %66, ptr %47, align 8
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext %64) #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
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next, %69
  br i1 %70, label %58, label %.preheader100, !llvm.loop !9

71:                                               ; preds = %58
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

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

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

.preheader99:                                     ; preds = %82
  %76 = icmp sgt i32 %87, 0
  br i1 %76, label %.lr.ph106, label %.preheader98.._crit_edge_crit_edge

77:                                               ; preds = %.lr.ph104, %82
  %indvars.iv130 = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next131, %82 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %78 = 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 %79 unwind label %90

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

82:                                               ; preds = %79
  %83 = icmp ne i32 %80, 0
  %84 = extractvalue { ptr, i64 } %81, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i64 } %81, 1
  store i64 %85, ptr %49, align 8
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext %83) #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.next131 = add nuw nsw i64 %indvars.iv130, 1
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next131, %88
  br i1 %89, label %77, label %.preheader99, !llvm.loop !11

90:                                               ; preds = %77
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

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

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

.preheader98:                                     ; preds = %99
  %95 = icmp sgt i32 %100, 0
  br i1 %95, label %.lr.ph108, label %.preheader98.._crit_edge_crit_edge

.preheader98.._crit_edge_crit_edge:               ; preds = %44, %.preheader100, %.preheader99, %.preheader98
  %96 = phi i32 [ %100, %.preheader98 ], [ %87, %.preheader99 ], [ %68, %.preheader100 ], [ %45, %44 ]
  %.pre = sext i32 %96 to i64
  br label %._crit_edge

.lr.ph106:                                        ; preds = %.preheader99, %99
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %99 ], [ 0, %.preheader99 ]
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv133) #7
  %98 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %99 unwind label %103

99:                                               ; preds = %.lr.ph106
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %100 = load i32, ptr %1, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next134, %101
  br i1 %102, label %.lr.ph106, label %.preheader98, !llvm.loop !12

103:                                              ; preds = %.lr.ph106
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %245

._crit_edge:                                      ; preds = %107, %.preheader98.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader98.._crit_edge_crit_edge ], [ %109, %107 ]
  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 %113 unwind label %120

.lr.ph108:                                        ; preds = %.preheader98, %107
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %107 ], [ 0, %.preheader98 ]
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv136) #7
  %106 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %105)
          to label %107 unwind label %111

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

111:                                              ; preds = %.lr.ph108
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %245

113:                                              ; 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 %114 unwind label %122

114:                                              ; preds = %113
  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
  %115 = getelementptr inbounds i8, ptr %23, i64 8
  %116 = getelementptr inbounds i8, ptr %24, i64 8
  %117 = getelementptr inbounds i8, ptr %31, i64 8
  br label %125

.preheader94:                                     ; preds = %._crit_edge119
  %118 = load i32, ptr %1, align 4, !tbaa !5
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.preheader, label %._crit_edge125

120:                                              ; preds = %._crit_edge
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %113
  %123 = 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 %124

124:                                              ; preds = %122, %120
  %.pn = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  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 %244

125:                                              ; preds = %114, %._crit_edge119
  %indvars.iv151 = phi i64 [ 0, %114 ], [ %indvars.iv.next152, %._crit_edge119 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #7
  %126 = load i32, ptr %1, align 4, !tbaa !5
  %127 = sext i32 %126 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 %127, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %128 unwind label %137

128:                                              ; preds = %125
  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
  %129 = load i32, ptr %1, align 4, !tbaa !5
  %130 = sext i32 %129 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 %130, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %131 unwind label %139

131:                                              ; preds = %128
  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
  %132 = load i32, ptr %1, align 4, !tbaa !5
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %.lr.ph111, label %._crit_edge114

.lr.ph111:                                        ; preds = %131
  %134 = shl nuw i64 1, %indvars.iv151
  br label %141

.preheader97:                                     ; preds = %145
  %135 = icmp sgt i32 %151, 0
  br i1 %135, label %.lr.ph113, label %._crit_edge114

.lr.ph113:                                        ; preds = %.preheader97
  %136 = shl nuw i64 1, %indvars.iv151
  br label %156

137:                                              ; preds = %125
  %138 = 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 %219

139:                                              ; preds = %128
  %140 = 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 %218

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

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

154:                                              ; preds = %141
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %217

._crit_edge114:                                   ; preds = %160, %131, %.preheader97
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #7
  invoke void @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %171 unwind label %181

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

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

169:                                              ; preds = %156
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %217

171:                                              ; preds = %._crit_edge114
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #7
  invoke void @_Z9make_axisRKSt6vectorIbSaIbEES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %172 unwind label %183

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %27) #7
  %173 = load i32, ptr %1, align 4, !tbaa !5
  invoke void @_ZNSt6vectorI5StateSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %174 unwind label %185

174:                                              ; preds = %172
  invoke void @_ZNSt6vectorI5StateSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %175 unwind label %187

175:                                              ; preds = %174
  invoke void @_ZN5SolveC2EiSt6vectorI5StateSaIS1_EES3_(ptr noundef nonnull align 8 dereferenceable(80) %27, i32 noundef %173, ptr noundef nonnull %28, ptr noundef nonnull %29)
          to label %176 unwind label %189

176:                                              ; preds = %175
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #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.20") align 8 %30, ptr noundef nonnull align 8 dereferenceable(80) %27)
          to label %.preheader96 unwind label %192

.preheader96:                                     ; preds = %176
  %177 = load i32, ptr %1, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %.preheader95, label %._crit_edge119

.preheader95:                                     ; preds = %.preheader96, %._crit_edge117
  %179 = phi i32 [ %194, %._crit_edge117 ], [ %177, %.preheader96 ]
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %._crit_edge117 ], [ 0, %.preheader96 ]
  %180 = icmp sgt i32 %179, 0
  br i1 %180, label %.lr.ph116, label %.preheader95.._crit_edge117_crit_edge

.preheader95.._crit_edge117_crit_edge:            ; preds = %.preheader95
  %.pre160 = sext i32 %179 to i64
  br label %._crit_edge117

._crit_edge119:                                   ; preds = %._crit_edge117, %.preheader96
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_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(80) %27) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %27) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, 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
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next152, 64
  br i1 %exitcond.not, label %.preheader94, label %125, !llvm.loop !18

181:                                              ; preds = %._crit_edge114
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %216

183:                                              ; preds = %171
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %215

185:                                              ; preds = %172
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %214

187:                                              ; preds = %174
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %191

189:                                              ; preds = %175
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  br label %191

191:                                              ; preds = %189, %187
  %.pn72 = phi { ptr, i32 } [ %190, %189 ], [ %188, %187 ]
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  br label %214

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

._crit_edge117:                                   ; preds = %198, %.preheader95.._crit_edge117_crit_edge
  %.pre-phi161 = phi i64 [ %.pre160, %.preheader95.._crit_edge117_crit_edge ], [ %209, %198 ]
  %194 = phi i32 [ %179, %.preheader95.._crit_edge117_crit_edge ], [ %208, %198 ]
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %195 = icmp slt i64 %indvars.iv.next149, %.pre-phi161
  br i1 %195, label %.preheader95, label %._crit_edge119, !llvm.loop !19

.lr.ph116:                                        ; preds = %.preheader95, %198
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %198 ], [ 0, %.preheader95 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #7
  %196 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv148) #7
  %197 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %196, i64 noundef %indvars.iv145)
          to label %198 unwind label %211

198:                                              ; preds = %.lr.ph116
  %199 = extractvalue { ptr, i64 } %197, 0
  store ptr %199, ptr %31, align 8
  %200 = extractvalue { ptr, i64 } %197, 1
  store i64 %200, ptr %117, align 8
  %201 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  %202 = zext i1 %201 to i64
  %203 = shl nuw i64 %202, %indvars.iv151
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv148) #7
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %indvars.iv145) #7
  %206 = load i64, ptr %205, align 8, !tbaa !13
  %207 = or i64 %206, %203
  store i64 %207, ptr %205, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %208 = load i32, ptr %1, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = icmp slt i64 %indvars.iv.next146, %209
  br i1 %210, label %.lr.ph116, label %._crit_edge117, !llvm.loop !21

211:                                              ; preds = %.lr.ph116
  %212 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  br label %213

213:                                              ; preds = %211, %192
  %.pn74 = phi { ptr, i32 } [ %212, %211 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #7
  call void @_ZN5SolveD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %27) #7
  br label %214

214:                                              ; preds = %213, %191, %185
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %213 ], [ %.pn72, %191 ], [ %186, %185 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %27) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  br label %215

215:                                              ; preds = %214, %183
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn74.pn, %214 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #7
  call void @_ZNSt6vectorI5StateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %216

216:                                              ; preds = %215, %181
  %.pn74.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn, %215 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  br label %217

217:                                              ; preds = %216, %169, %154
  %.pn79 = phi { ptr, i32 } [ %155, %154 ], [ %170, %169 ], [ %.pn74.pn.pn.pn, %216 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  br label %218

218:                                              ; preds = %217, %139
  %.pn79.pn = phi { ptr, i32 } [ %.pn79, %217 ], [ %140, %139 ]
  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 %219

219:                                              ; preds = %218, %137
  %.pn79.pn.pn = phi { ptr, i32 } [ %.pn79.pn, %218 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  br label %243

.preheader:                                       ; preds = %.preheader94, %._crit_edge123
  %220 = phi i32 [ %222, %._crit_edge123 ], [ %118, %.preheader94 ]
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %._crit_edge123 ], [ 0, %.preheader94 ]
  %221 = icmp sgt i32 %220, 0
  br i1 %221, label %.lr.ph122, label %.preheader.._crit_edge123_crit_edge

.preheader.._crit_edge123_crit_edge:              ; preds = %.preheader
  %.pre162 = sext i32 %220 to i64
  br label %._crit_edge123

._crit_edge125:                                   ; preds = %._crit_edge123, %.preheader94
  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_edge123:                                   ; preds = %239, %.preheader.._crit_edge123_crit_edge
  %.pre-phi163 = phi i64 [ %.pre162, %.preheader.._crit_edge123_crit_edge ], [ %241, %239 ]
  %222 = phi i32 [ %220, %.preheader.._crit_edge123_crit_edge ], [ %240, %239 ]
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %223 = icmp slt i64 %indvars.iv.next158, %.pre-phi163
  br i1 %223, label %.preheader, label %._crit_edge125, !llvm.loop !22

.lr.ph122:                                        ; preds = %.preheader, %239
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %239 ], [ 0, %.preheader ]
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IySaIyEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv157) #7
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIySaIyEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %indvars.iv154) #7
  %226 = load i64, ptr %225, align 8, !tbaa !13
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %226)
          to label %228 unwind label %235

228:                                              ; preds = %.lr.ph122
  %229 = load i32, ptr %1, align 4, !tbaa !5
  %230 = add nsw i32 %229, -1
  %231 = sext i32 %230 to i64
  %232 = icmp slt i64 %indvars.iv154, %231
  br i1 %232, label %233, label %237

233:                                              ; preds = %228
  %234 = 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.8)
          to label %239 unwind label %235

235:                                              ; preds = %237, %233, %.lr.ph122
  %236 = landingpad { ptr, i32 }
          cleanup
  br label %243

237:                                              ; preds = %228
  %238 = 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 %239 unwind label %235

239:                                              ; preds = %233, %237
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %240 = load i32, ptr %1, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = icmp slt i64 %indvars.iv.next155, %241
  br i1 %242, label %.lr.ph122, label %._crit_edge123, !llvm.loop !23

243:                                              ; preds = %235, %219
  %.pn79.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn, %219 ], [ %236, %235 ]
  call void @_ZNSt6vectorIS_IySaIyEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %244

244:                                              ; preds = %243, %124
  %.pn79.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn, %243 ], [ %.pn, %124 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %245

245:                                              ; preds = %244, %111, %103, %94, %75
  %.pn87.pn = phi { ptr, i32 } [ %.pn87, %75 ], [ %.pn85, %94 ], [ %104, %103 ], [ %112, %111 ], [ %.pn79.pn.pn.pn.pn, %244 ]
  call void @_ZNSt6vectorIySaIyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %246

246:                                              ; preds = %245, %56
  %.pn87.pn.pn = phi { ptr, i32 } [ %.pn87.pn, %245 ], [ %57, %56 ]
  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 %247

247:                                              ; preds = %246, %54
  %.pn87.pn.pn.pn = phi { ptr, i32 } [ %.pn87.pn.pn, %246 ], [ %55, %54 ]
  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 %248

248:                                              ; preds = %247, %52
  %.pn87.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn87.pn.pn.pn, %247 ], [ %53, %52 ]
  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 %249

249:                                              ; preds = %248, %50
  %.pn87.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn87.pn.pn.pn.pn, %248 ], [ %51, %50 ]
  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 } %.pn87.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 #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIyEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #3 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 #3 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 #3 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 #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIySaIyEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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 = distinct !{!19, !10, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !20}
!23 = distinct !{!23, !10}


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