; LLVM IR from xirc/cp-algorithm :: atcoder/abc213/E/main.ll (Z5solvev)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::array" = type { [2 x i32] }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::vector.5", align 8
  %5 = alloca %"class.std::allocator.7", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca %"class.std::deque", align 8
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca %"class.std::initializer_list", align 8
  %12 = alloca [4 x i32], align 4
  %13 = alloca %"class.std::allocator.7", align 1
  %14 = alloca %"class.std::vector.5", align 8
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [4 x i32], align 4
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca %"struct.std::array", align 4
  %19 = alloca %"struct.std::array", align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::array", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::array", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 100000000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  %32 = load i32, ptr @H, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %34 = load i32, ptr @W, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %35, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %36 unwind label %90

36:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %33, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %37 unwind label %94

37:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %38 unwind label %99

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  %39 = getelementptr inbounds i32, ptr %12, i64 1
  store i32 -1, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %12, i64 2
  store i32 0, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %12, i64 3
  store i32 0, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 0
  store ptr %12, ptr %42, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1
  store i64 4, ptr %43, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  %44 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %47 = load i64, ptr %46, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %45, i64 %47, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %48 unwind label %103

48:                                               ; preds = %38
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %16, i64 1
  store i32 0, ptr %49, align 4, !tbaa !5
  %50 = getelementptr inbounds i32, ptr %16, i64 2
  store i32 1, ptr %50, align 4, !tbaa !5
  %51 = getelementptr inbounds i32, ptr %16, i64 3
  store i32 -1, ptr %51, align 4, !tbaa !5
  %52 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %52, align 8, !tbaa !9
  %53 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 4, ptr %53, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  %54 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %57 = load i64, ptr %56, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr %55, i64 %57, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %58 unwind label %107

58:                                               ; preds = %48
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef 0) #5
  store i32 0, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %61 = getelementptr inbounds %"struct.std::array", ptr %18, i32 0, i32 0
  store i32 0, ptr %61, align 4, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 1
  store i32 0, ptr %62, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %63 unwind label %111

63:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %64

64:                                               ; preds = %308, %63
  %65 = call noundef i64 @_ZNKSt5dequeISt5arrayIiLm2EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #5
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %310

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !14
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %19, i64 noundef 0) #5
  %70 = load i32, ptr %69, align 4, !tbaa !5
  store i32 %70, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %19, i64 noundef 1) #5
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %21, align 4, !tbaa !5
  %73 = load i32, ptr %20, align 4, !tbaa !5
  %74 = load i32, ptr @H, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = icmp eq i32 %73, %75
  br i1 %76, label %77, label %115

77:                                               ; preds = %67
  %78 = load i32, ptr %21, align 4, !tbaa !5
  %79 = load i32, ptr @W, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = icmp eq i32 %78, %80
  br i1 %81, label %82, label %115

82:                                               ; preds = %77
  %83 = load i32, ptr %20, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %84) #5
  %86 = load i32, ptr %21, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #5
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr %1, align 4
  store i32 1, ptr %22, align 4
  br label %306

90:                                               ; preds = %0
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %6, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %7, align 4
  br label %98

94:                                               ; preds = %36
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %98

98:                                               ; preds = %94, %90
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br label %326

99:                                               ; preds = %37
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  br label %325

103:                                              ; preds = %38
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %6, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %324

107:                                              ; preds = %48
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %6, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %323

111:                                              ; preds = %58
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %6, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %322

115:                                              ; preds = %77, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %206, %115
  %117 = load i32, ptr %23, align 4, !tbaa !5
  %118 = icmp slt i32 %117, 4
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 4, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %210

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %121 = load i32, ptr %20, align 4, !tbaa !5
  %122 = load i32, ptr %23, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %123) #5
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %121, %125
  store i32 %126, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %127 = load i32, ptr %21, align 4, !tbaa !5
  %128 = load i32, ptr %23, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %129) #5
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = add nsw i32 %127, %131
  store i32 %132, ptr %25, align 4, !tbaa !5
  %133 = load i32, ptr %24, align 4, !tbaa !5
  %134 = icmp slt i32 %133, 0
  br i1 %134, label %139, label %135

135:                                              ; preds = %120
  %136 = load i32, ptr %24, align 4, !tbaa !5
  %137 = load i32, ptr @H, align 4, !tbaa !5
  %138 = icmp sge i32 %136, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %135, %120
  store i32 6, ptr %22, align 4
  br label %203

140:                                              ; preds = %135
  %141 = load i32, ptr %25, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 0
  br i1 %142, label %147, label %143

143:                                              ; preds = %140
  %144 = load i32, ptr %25, align 4, !tbaa !5
  %145 = load i32, ptr @W, align 4, !tbaa !5
  %146 = icmp sge i32 %144, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %143, %140
  store i32 6, ptr %22, align 4
  br label %203

148:                                              ; preds = %143
  %149 = load i32, ptr %24, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %150) #5
  %152 = load i32, ptr %25, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %151, i64 noundef %153)
          to label %155 unwind label %194

155:                                              ; preds = %148
  %156 = load i8, ptr %154, align 1, !tbaa !15
  %157 = sext i8 %156 to i32
  %158 = icmp eq i32 %157, 46
  br i1 %158, label %159, label %202

159:                                              ; preds = %155
  %160 = load i32, ptr %24, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %161) #5
  %163 = load i32, ptr %25, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %164) #5
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = load i32, ptr %20, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %168) #5
  %170 = load i32, ptr %21, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %171) #5
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = icmp sgt i32 %166, %173
  br i1 %174, label %175, label %202

175:                                              ; preds = %159
  %176 = load i32, ptr %20, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %177) #5
  %179 = load i32, ptr %21, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #5
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = load i32, ptr %24, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %184) #5
  %186 = load i32, ptr %25, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #5
  store i32 %182, ptr %188, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %189 = getelementptr inbounds %"struct.std::array", ptr %26, i32 0, i32 0
  %190 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %190, ptr %189, align 4, !tbaa !5
  %191 = getelementptr inbounds i32, ptr %189, i64 1
  %192 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %192, ptr %191, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %193 unwind label %198

193:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %202

194:                                              ; preds = %148
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %6, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %7, align 4
  br label %209

198:                                              ; preds = %175
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %6, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %209

202:                                              ; preds = %193, %159, %155
  store i32 0, ptr %22, align 4
  br label %203

203:                                              ; preds = %202, %147, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %204 = load i32, ptr %22, align 4
  switch i32 %204, label %332 [
    i32 0, label %205
    i32 6, label %206
  ]

205:                                              ; preds = %203
  br label %206

206:                                              ; preds = %205, %203
  %207 = load i32, ptr %23, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %23, align 4, !tbaa !5
  br label %116, !llvm.loop !16

209:                                              ; preds = %198, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %309

210:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 -2, ptr %27, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %302, %210
  %212 = load i32, ptr %27, align 4, !tbaa !5
  %213 = icmp sle i32 %212, 2
  br i1 %213, label %215, label %214

214:                                              ; preds = %211
  store i32 7, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %305

215:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = load i32, ptr %27, align 4, !tbaa !5
  %218 = add nsw i32 %216, %217
  store i32 %218, ptr %28, align 4, !tbaa !5
  %219 = load i32, ptr %28, align 4, !tbaa !5
  %220 = icmp slt i32 %219, 0
  br i1 %220, label %225, label %221

221:                                              ; preds = %215
  %222 = load i32, ptr %28, align 4, !tbaa !5
  %223 = load i32, ptr @H, align 4, !tbaa !5
  %224 = icmp sge i32 %222, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %221, %215
  store i32 9, ptr %22, align 4
  br label %299

226:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 -2, ptr %29, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %295, %226
  %228 = load i32, ptr %29, align 4, !tbaa !5
  %229 = icmp sle i32 %228, 2
  br i1 %229, label %231, label %230

230:                                              ; preds = %227
  store i32 10, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %298

231:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %232 = load i32, ptr %21, align 4, !tbaa !5
  %233 = load i32, ptr %29, align 4, !tbaa !5
  %234 = add nsw i32 %232, %233
  store i32 %234, ptr %30, align 4, !tbaa !5
  %235 = load i32, ptr %30, align 4, !tbaa !5
  %236 = icmp slt i32 %235, 0
  br i1 %236, label %241, label %237

237:                                              ; preds = %231
  %238 = load i32, ptr %30, align 4, !tbaa !5
  %239 = load i32, ptr @W, align 4, !tbaa !5
  %240 = icmp sge i32 %238, %239
  br i1 %240, label %241, label %242

241:                                              ; preds = %237, %231
  store i32 12, ptr %22, align 4
  br label %292

242:                                              ; preds = %237
  %243 = load i32, ptr %27, align 4, !tbaa !5
  %244 = call i32 @llvm.abs.i32(i32 %243, i1 true)
  %245 = load i32, ptr %29, align 4, !tbaa !5
  %246 = call i32 @llvm.abs.i32(i32 %245, i1 true)
  %247 = add nsw i32 %244, %246
  %248 = icmp sge i32 %247, 4
  br i1 %248, label %249, label %250

249:                                              ; preds = %242
  store i32 12, ptr %22, align 4
  br label %292

250:                                              ; preds = %242
  %251 = load i32, ptr %28, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %252) #5
  %254 = load i32, ptr %30, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %255) #5
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = load i32, ptr %20, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %259) #5
  %261 = load i32, ptr %21, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %260, i64 noundef %262) #5
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  %266 = icmp sgt i32 %257, %265
  br i1 %266, label %267, label %291

267:                                              ; preds = %250
  %268 = load i32, ptr %20, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %269) #5
  %271 = load i32, ptr %21, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %272) #5
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = load i32, ptr %28, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %277) #5
  %279 = load i32, ptr %30, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #5
  store i32 %275, ptr %281, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %282 = getelementptr inbounds %"struct.std::array", ptr %31, i32 0, i32 0
  %283 = load i32, ptr %28, align 4, !tbaa !5
  store i32 %283, ptr %282, align 4, !tbaa !5
  %284 = getelementptr inbounds i32, ptr %282, i64 1
  %285 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %285, ptr %284, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(8) %31)
          to label %286 unwind label %287

286:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %291

287:                                              ; preds = %267
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %6, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %309

291:                                              ; preds = %286, %250
  store i32 0, ptr %22, align 4
  br label %292

292:                                              ; preds = %291, %249, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %293 = load i32, ptr %22, align 4
  switch i32 %293, label %332 [
    i32 0, label %294
    i32 12, label %295
  ]

294:                                              ; preds = %292
  br label %295

295:                                              ; preds = %294, %292
  %296 = load i32, ptr %29, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %29, align 4, !tbaa !5
  br label %227, !llvm.loop !18

298:                                              ; preds = %230
  store i32 0, ptr %22, align 4
  br label %299

299:                                              ; preds = %298, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  %300 = load i32, ptr %22, align 4
  switch i32 %300, label %332 [
    i32 0, label %301
    i32 9, label %302
  ]

301:                                              ; preds = %299
  br label %302

302:                                              ; preds = %301, %299
  %303 = load i32, ptr %27, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %27, align 4, !tbaa !5
  br label %211, !llvm.loop !19

305:                                              ; preds = %214
  store i32 0, ptr %22, align 4
  br label %306

306:                                              ; preds = %305, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %307 = load i32, ptr %22, align 4
  switch i32 %307, label %320 [
    i32 0, label %308
  ]

308:                                              ; preds = %306
  br label %64, !llvm.loop !20

309:                                              ; preds = %287, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %322

310:                                              ; preds = %64
  %311 = load i32, ptr @H, align 4, !tbaa !5
  %312 = sub nsw i32 %311, 1
  %313 = sext i32 %312 to i64
  %314 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %313) #5
  %315 = load i32, ptr @W, align 4, !tbaa !5
  %316 = sub nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %314, i64 noundef %317) #5
  %319 = load i32, ptr %318, align 4, !tbaa !5
  store i32 %319, ptr %1, align 4
  store i32 1, ptr %22, align 4
  br label %320

320:                                              ; preds = %310, %306
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %321 = load i32, ptr %1, align 4
  ret i32 %321

322:                                              ; preds = %309, %111
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %323

323:                                              ; preds = %322, %107
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %324

324:                                              ; preds = %323, %103
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #5
  br label %325

325:                                              ; preds = %324, %99
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %326

326:                                              ; preds = %325, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %6, align 8
  %329 = load i32, ptr %7, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331

332:                                              ; preds = %299, %292, %203
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_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 #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt16initializer_listIiE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{i64 0, i64 8, !15}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::array" = type { [2 x i32] }

@H = external dso_local local_unnamed_addr global i32, align 4
@W = external dso_local local_unnamed_addr global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::vector.5", align 8
  %4 = alloca %"class.std::allocator.7", align 1
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::deque", align 8
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca [4 x i32], align 16
  %9 = alloca %"class.std::allocator.7", align 1
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca [4 x i32], align 16
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca %"struct.std::array", align 4
  %14 = alloca %"struct.std::array", align 8
  %15 = alloca %"struct.std::array", align 4
  %16 = alloca %"struct.std::array", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 100000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  %17 = load i32, ptr @H, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  %18 = load i32, ptr @W, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %19, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %20 unwind label %52

20:                                               ; preds = %0
  %21 = sext i32 %17 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %21, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %22 unwind label %54

22:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %23 unwind label %57

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  store <4 x i32> <i32 1, i32 -1, i32 0, i32 0>, ptr %8, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %24 unwind label %59

24:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  store <4 x i32> <i32 0, i32 0, i32 1, i32 -1>, ptr %11, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %25 unwind label %61

25:                                               ; preds = %24
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #4
  store i32 0, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 0, ptr %28, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %29 unwind label %63

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  %30 = call noundef i64 @_ZNKSt5dequeISt5arrayIiLm2EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  %.not101 = icmp eq i64 %30, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29
  %31 = getelementptr inbounds i8, ptr %15, i64 4
  %32 = getelementptr inbounds i8, ptr %16, i64 4
  br label %33

33:                                               ; preds = %.lr.ph, %327
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  %35 = load i64, ptr %34, align 4, !tbaa !9
  store i64 %35, ptr %14, align 8, !tbaa !9
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 0) #4
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 1) #4
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr @H, align 4, !tbaa !5
  %41 = add nsw i32 %40, -1
  %42 = icmp eq i32 %37, %41
  br i1 %42, label %43, label %65

43:                                               ; preds = %33
  %44 = load i32, ptr @W, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  %46 = icmp eq i32 %39, %45
  br i1 %46, label %.thread, label %65

.thread:                                          ; preds = %43
  %47 = sext i32 %37 to i64
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %47) #4
  %49 = sext i32 %39 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #4
  %51 = load i32, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br label %339

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %20
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %344

57:                                               ; preds = %22
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %343

59:                                               ; preds = %23
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %342

61:                                               ; preds = %24
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  br label %341

63:                                               ; preds = %25
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %340

65:                                               ; preds = %43, %33
  %66 = sext i32 %37 to i64
  %67 = sext i32 %39 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #4
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add nsw i32 %69, %37
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #4
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, %39
  %74 = icmp sgt i32 %70, -1
  %75 = load i32, ptr @H, align 4
  %.not78 = icmp slt i32 %70, %75
  %or.cond = select i1 %74, i1 %.not78, i1 false
  br i1 %or.cond, label %76, label %103

76:                                               ; preds = %65
  %77 = icmp sgt i32 %73, -1
  %78 = load i32, ptr @W, align 4
  %.not79 = icmp slt i32 %73, %78
  %or.cond87 = select i1 %77, i1 %.not79, i1 false
  br i1 %or.cond87, label %79, label %103

79:                                               ; preds = %76
  %80 = zext nneg i32 %70 to i64
  %81 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %80) #4
  %82 = zext nneg i32 %73 to i64
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %81, i64 noundef %82)
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = icmp eq i8 %84, 46
  br i1 %85, label %86, label %103

86:                                               ; preds = %79
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %80) #4
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %82) #4
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %67) #4
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp sgt i32 %89, %92
  br i1 %93, label %94, label %103

94:                                               ; preds = %86
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %67) #4
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %80) #4
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %82) #4
  store i32 %97, ptr %99, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  store i32 %70, ptr %15, align 4, !tbaa !5
  store i32 %73, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %100 unwind label %101

100:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %103

101:                                              ; preds = %198, %164, %130, %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %329

103:                                              ; preds = %79, %86, %100, %76, %65
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1) #4
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = add nsw i32 %105, %37
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 1) #4
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %108, %39
  %110 = icmp sgt i32 %106, -1
  %111 = load i32, ptr @H, align 4
  %.not78.1 = icmp slt i32 %106, %111
  %or.cond.1 = select i1 %110, i1 %.not78.1, i1 false
  br i1 %or.cond.1, label %112, label %137

112:                                              ; preds = %103
  %113 = icmp sgt i32 %109, -1
  %114 = load i32, ptr @W, align 4
  %.not79.1 = icmp slt i32 %109, %114
  %or.cond87.1 = select i1 %113, i1 %.not79.1, i1 false
  br i1 %or.cond87.1, label %115, label %137

115:                                              ; preds = %112
  %116 = zext nneg i32 %106 to i64
  %117 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %116) #4
  %118 = zext nneg i32 %109 to i64
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %117, i64 noundef %118)
  %120 = load i8, ptr %119, align 1, !tbaa !9
  %121 = icmp eq i8 %120, 46
  br i1 %121, label %122, label %137

122:                                              ; preds = %115
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %116) #4
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %118) #4
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %67) #4
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp sgt i32 %125, %128
  br i1 %129, label %130, label %137

130:                                              ; preds = %122
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %67) #4
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %116) #4
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %118) #4
  store i32 %133, ptr %135, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  store i32 %106, ptr %15, align 4, !tbaa !5
  store i32 %109, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %136 unwind label %101

136:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %137

137:                                              ; preds = %136, %122, %115, %112, %103
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 2) #4
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %139, %37
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 2) #4
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = add nsw i32 %142, %39
  %144 = icmp sgt i32 %140, -1
  %145 = load i32, ptr @H, align 4
  %.not78.2 = icmp slt i32 %140, %145
  %or.cond.2 = select i1 %144, i1 %.not78.2, i1 false
  br i1 %or.cond.2, label %146, label %171

146:                                              ; preds = %137
  %147 = icmp sgt i32 %143, -1
  %148 = load i32, ptr @W, align 4
  %.not79.2 = icmp slt i32 %143, %148
  %or.cond87.2 = select i1 %147, i1 %.not79.2, i1 false
  br i1 %or.cond87.2, label %149, label %171

149:                                              ; preds = %146
  %150 = zext nneg i32 %140 to i64
  %151 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %150) #4
  %152 = zext nneg i32 %143 to i64
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %151, i64 noundef %152)
  %154 = load i8, ptr %153, align 1, !tbaa !9
  %155 = icmp eq i8 %154, 46
  br i1 %155, label %156, label %171

156:                                              ; preds = %149
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %150) #4
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %152) #4
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %67) #4
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = icmp sgt i32 %159, %162
  br i1 %163, label %164, label %171

164:                                              ; preds = %156
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %67) #4
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %150) #4
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %152) #4
  store i32 %167, ptr %169, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  store i32 %140, ptr %15, align 4, !tbaa !5
  store i32 %143, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %170 unwind label %101

170:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %171

171:                                              ; preds = %170, %156, %149, %146, %137
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 3) #4
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = add nsw i32 %173, %37
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 3) #4
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = add nsw i32 %176, %39
  %178 = icmp sgt i32 %174, -1
  %179 = load i32, ptr @H, align 4
  %.not78.3 = icmp slt i32 %174, %179
  %or.cond.3 = select i1 %178, i1 %.not78.3, i1 false
  br i1 %or.cond.3, label %180, label %.preheader92

180:                                              ; preds = %171
  %181 = icmp sgt i32 %177, -1
  %182 = load i32, ptr @W, align 4
  %.not79.3 = icmp slt i32 %177, %182
  %or.cond87.3 = select i1 %181, i1 %.not79.3, i1 false
  br i1 %or.cond87.3, label %183, label %.preheader92

183:                                              ; preds = %180
  %184 = zext nneg i32 %174 to i64
  %185 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %184) #4
  %186 = zext nneg i32 %177 to i64
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %185, i64 noundef %186)
  %188 = load i8, ptr %187, align 1, !tbaa !9
  %189 = icmp eq i8 %188, 46
  br i1 %189, label %190, label %.preheader92

190:                                              ; preds = %183
  %191 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %184) #4
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %186) #4
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %67) #4
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = icmp sgt i32 %193, %196
  br i1 %197, label %198, label %.preheader92

198:                                              ; preds = %190
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %67) #4
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %184) #4
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %186) #4
  store i32 %201, ptr %203, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  store i32 %174, ptr %15, align 4, !tbaa !5
  store i32 %177, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %204 unwind label %101

204:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %.preheader92

.preheader92:                                     ; preds = %204, %190, %183, %180, %171
  %205 = add nsw i32 %39, -2
  %206 = icmp slt i32 %39, 2
  %207 = zext nneg i32 %205 to i64
  %208 = add nsw i32 %39, -1
  %209 = icmp slt i32 %39, 1
  %210 = zext nneg i32 %208 to i64
  %211 = icmp slt i32 %39, 0
  %212 = zext nneg i32 %39 to i64
  %213 = add nsw i32 %39, 1
  %214 = icmp slt i32 %39, -1
  %215 = zext nneg i32 %213 to i64
  %216 = add nsw i32 %39, 2
  %217 = icmp slt i32 %39, -2
  %218 = zext nneg i32 %216 to i64
  br label %219

219:                                              ; preds = %.preheader92, %.loopexit
  %.059100 = phi i32 [ -2, %.preheader92 ], [ %326, %.loopexit ]
  %220 = add nsw i32 %.059100, %37
  %221 = icmp sgt i32 %220, -1
  %222 = load i32, ptr @H, align 4
  %.not76 = icmp slt i32 %220, %222
  %or.cond88 = select i1 %221, i1 %.not76, i1 false
  br i1 %or.cond88, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %219
  %223 = call i32 @llvm.abs.i32(i32 %.059100, i1 true)
  %224 = zext nneg i32 %220 to i64
  %225 = load i32, ptr @W, align 4
  %.not77 = icmp sge i32 %205, %225
  %or.cond89.not123 = select i1 %206, i1 true, i1 %.not77
  %226 = icmp ugt i32 %223, 1
  %or.cond117 = select i1 %or.cond89.not123, i1 true, i1 %226
  br i1 %or.cond117, label %246, label %227

227:                                              ; preds = %.preheader
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %207) #4
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %67) #4
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  %235 = icmp sgt i32 %230, %234
  br i1 %235, label %236, label %246

236:                                              ; preds = %227
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %67) #4
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  %241 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %207) #4
  store i32 %240, ptr %242, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  store i32 %220, ptr %16, align 4, !tbaa !5
  store i32 %205, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %243 unwind label %244

243:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %246

244:                                              ; preds = %318, %298, %278, %258, %236
  %245 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %329

246:                                              ; preds = %227, %243, %.preheader
  %247 = load i32, ptr @W, align 4
  %.not77.1 = icmp sgt i32 %39, %247
  %or.cond89.1.not125 = select i1 %209, i1 true, i1 %.not77.1
  %248 = icmp ugt i32 %223, 2
  %or.cond118 = select i1 %or.cond89.1.not125, i1 true, i1 %248
  br i1 %or.cond118, label %266, label %249

249:                                              ; preds = %246
  %250 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef %210) #4
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %67) #4
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  %257 = icmp sgt i32 %252, %256
  br i1 %257, label %258, label %266

258:                                              ; preds = %249
  %259 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef %67) #4
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  %263 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %263, i64 noundef %210) #4
  store i32 %262, ptr %264, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  store i32 %220, ptr %16, align 4, !tbaa !5
  store i32 %208, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %265 unwind label %244

265:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %266

266:                                              ; preds = %265, %249, %246
  %267 = load i32, ptr @W, align 4
  %.not77.2 = icmp sge i32 %39, %267
  %or.cond89.2.not127 = select i1 %211, i1 true, i1 %.not77.2
  %268 = icmp ugt i32 %223, 3
  %or.cond119 = select i1 %or.cond89.2.not127, i1 true, i1 %268
  br i1 %or.cond119, label %286, label %269

269:                                              ; preds = %266
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %212) #4
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %67) #4
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  %277 = icmp sgt i32 %272, %276
  br i1 %277, label %278, label %286

278:                                              ; preds = %269
  %279 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef %67) #4
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  %283 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %212) #4
  store i32 %282, ptr %284, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  store i32 %220, ptr %16, align 4, !tbaa !5
  store i32 %39, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %285 unwind label %244

285:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %286

286:                                              ; preds = %285, %269, %266
  %287 = load i32, ptr @W, align 4
  %.not77.3 = icmp sge i32 %213, %287
  %or.cond89.3.not129 = select i1 %214, i1 true, i1 %.not77.3
  %288 = icmp ugt i32 %223, 2
  %or.cond120 = select i1 %or.cond89.3.not129, i1 true, i1 %288
  br i1 %or.cond120, label %306, label %289

289:                                              ; preds = %286
  %290 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %291 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef %215) #4
  %292 = load i32, ptr %291, align 4, !tbaa !5
  %293 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %293, i64 noundef %67) #4
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  %297 = icmp sgt i32 %292, %296
  br i1 %297, label %298, label %306

298:                                              ; preds = %289
  %299 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %67) #4
  %301 = load i32, ptr %300, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  %303 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %303, i64 noundef %215) #4
  store i32 %302, ptr %304, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  store i32 %220, ptr %16, align 4, !tbaa !5
  store i32 %213, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %305 unwind label %244

305:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %306

306:                                              ; preds = %305, %289, %286
  %307 = load i32, ptr @W, align 4
  %.not77.4 = icmp sge i32 %216, %307
  %or.cond89.4.not131 = select i1 %217, i1 true, i1 %.not77.4
  %308 = icmp ugt i32 %223, 1
  %or.cond121 = select i1 %or.cond89.4.not131, i1 true, i1 %308
  br i1 %or.cond121, label %.loopexit, label %309

309:                                              ; preds = %306
  %310 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %310, i64 noundef %218) #4
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %314 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %67) #4
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  %317 = icmp sgt i32 %312, %316
  br i1 %317, label %318, label %.loopexit

318:                                              ; preds = %309
  %319 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %66) #4
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %67) #4
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  %323 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #4
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %323, i64 noundef %218) #4
  store i32 %322, ptr %324, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  store i32 %220, ptr %16, align 4, !tbaa !5
  store i32 %216, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %325 unwind label %244

325:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %.loopexit

.loopexit:                                        ; preds = %306, %309, %325, %219
  %326 = add nsw i32 %.059100, 1
  %exitcond.not = icmp eq i32 %326, 3
  br i1 %exitcond.not, label %327, label %219, !llvm.loop !10

327:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  %328 = call noundef i64 @_ZNKSt5dequeISt5arrayIiLm2EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  %.not = icmp eq i64 %328, 0
  br i1 %.not, label %._crit_edge, label %33, !llvm.loop !12

329:                                              ; preds = %244, %101
  %.pn80 = phi { ptr, i32 } [ %102, %101 ], [ %245, %244 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br label %340

._crit_edge:                                      ; preds = %327, %29
  %330 = load i32, ptr @H, align 4, !tbaa !5
  %331 = add nsw i32 %330, -1
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %332) #4
  %334 = load i32, ptr @W, align 4, !tbaa !5
  %335 = add nsw i32 %334, -1
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %333, i64 noundef %336) #4
  %338 = load i32, ptr %337, align 4, !tbaa !5
  br label %339

339:                                              ; preds = %.thread, %._crit_edge
  %.2 = phi i32 [ %338, %._crit_edge ], [ %51, %.thread ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 %.2

340:                                              ; preds = %329, %63
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %329 ], [ %64, %63 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %341

341:                                              ; preds = %340, %61
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %340 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %342

342:                                              ; preds = %341, %59
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %341 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt5dequeISt5arrayIiLm2EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #4
  br label %343

343:                                              ; preds = %342, %57
  %.pn80.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn.pn, %342 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br label %344

344:                                              ; preds = %343, %56
  %.pn80.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn.pn.pn, %343 ], [ %.pn, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  resume { ptr, i32 } %.pn80.pn.pn.pn.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_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 #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #3

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

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

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

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

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

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

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


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