; LLVM IR from kazunetakahashi/atcoder :: 2017/1008_CF2017-qualB (C)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Tuple_impl.4", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.4" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.5" = type { i32 }
%"struct.std::_Head_base.6" = type { i32 }
%"class.std::stack.7" = type { %"class.std::deque.8" }
%"class.std::deque.8" = type { %"class.std::_Deque_base.9" }
%"class.std::_Deque_base.9" = type { %"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.13", %"struct.std::_Deque_iterator.13" }
%"struct.std::_Deque_iterator.13" = type { ptr, ptr, ptr, ptr }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Tuple_impl.16", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.16" = type { %"struct.std::_Head_base.5" }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@V = external dso_local global [100010 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca [100010 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca [100010 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca [100010 x i32], align 16
  %13 = alloca %"class.std::stack", align 8
  %14 = alloca %"class.std::tuple", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::tuple", align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::tuple", align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca i32, align 4
  %36 = alloca i64, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::stack.7", align 8
  %39 = alloca %"class.std::tuple.14", align 4
  %40 = alloca i32, align 4
  %41 = alloca [2 x i64], align 16
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::tuple.14", align 4
  %49 = alloca i32, align 4
  %50 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %72, %0
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = load i64, ptr @M, align 8, !tbaa !9
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %75

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = add nsw i32 %62, -1
  store i32 %63, ptr %3, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %4, align 4, !tbaa !5
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %67
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %70
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %72

72:                                               ; preds = %59
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %2, align 4, !tbaa !5
  br label %53, !llvm.loop !11

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

76:                                               ; preds = %97, %75
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = load i64, ptr @N, align 8, !tbaa !9
  %80 = icmp slt i64 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %100

82:                                               ; preds = %76
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %84
  %86 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %89
  %91 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #8
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8
  call void @_ZSt14random_shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %94, ptr %96)
  br label %97

97:                                               ; preds = %82
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %5, align 4, !tbaa !5
  br label %76, !llvm.loop !13

100:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 400040, ptr %8) #8
  %101 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 0
  %102 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 0
  %103 = getelementptr inbounds i32, ptr %102, i64 100010
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %101, ptr noundef %103, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 400040, ptr %10) #8
  %104 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 0
  %105 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 0
  %106 = getelementptr inbounds i32, ptr %105, i64 100010
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %104, ptr noundef %106, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 400040, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #8
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 -1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !5
  call void @_ZNSt5tupleIJiiiEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS3_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17) #8
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %107 unwind label %158

107:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  br label %108

108:                                              ; preds = %254, %252, %107
  %109 = invoke noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %110 unwind label %162

110:                                              ; preds = %108
  %111 = xor i1 %109, true
  br i1 %111, label %112, label %258

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %113 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %114 unwind label %166

114:                                              ; preds = %112
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %113) #8
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %117 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %118 unwind label %170

118:                                              ; preds = %114
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %117) #8
  %120 = load i32, ptr %119, align 4, !tbaa !5
  store i32 %120, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %121 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %122 unwind label %174

122:                                              ; preds = %118
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %121) #8
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %22, align 4, !tbaa !5
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %125 unwind label %174

125:                                              ; preds = %122
  %126 = load i32, ptr %20, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %203

131:                                              ; preds = %125
  %132 = load i32, ptr %20, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %133
  store i32 1, ptr %134, align 4, !tbaa !5
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100010 x i32], ptr %12, i64 0, i64 %137
  store i32 %135, ptr %138, align 4, !tbaa !5
  %139 = load i32, ptr %22, align 4, !tbaa !5
  %140 = load i32, ptr %20, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %141
  store i32 %139, ptr %142, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %143 = load i32, ptr %22, align 4, !tbaa !5
  %144 = sub nsw i32 3, %143
  store i32 %144, ptr %24, align 4, !tbaa !5
  call void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %24) #8
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %145 unwind label %178

145:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %147
  store ptr %148, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %149 = load ptr, ptr %25, align 8, !tbaa !14
  %150 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #8
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %152 = load ptr, ptr %25, align 8, !tbaa !14
  %153 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #8
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  br label %155

155:                                              ; preds = %200, %145
  %156 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %156, label %182, label %157

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %202

158:                                              ; preds = %100
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %18, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  br label %459

162:                                              ; preds = %108
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %18, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %19, align 4
  br label %459

166:                                              ; preds = %112
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %18, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %19, align 4
  br label %257

170:                                              ; preds = %114
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %18, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %19, align 4
  br label %256

174:                                              ; preds = %122, %118
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %18, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %19, align 4
  br label %255

178:                                              ; preds = %131
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %18, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  br label %255

182:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %184 = load i32, ptr %183, align 4, !tbaa !5
  store i32 %184, ptr %28, align 4, !tbaa !5
  %185 = load i32, ptr %28, align 4, !tbaa !5
  %186 = load i32, ptr %20, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100010 x i32], ptr %12, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = icmp ne i32 %185, %189
  br i1 %190, label %191, label %199

191:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %192 = load i32, ptr %22, align 4, !tbaa !5
  %193 = sub nsw i32 3, %192
  store i32 %193, ptr %30, align 4, !tbaa !5
  call void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %30) #8
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(12) %29)
          to label %194 unwind label %195

194:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  br label %199

195:                                              ; preds = %191
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %18, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %255

199:                                              ; preds = %194, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %200

200:                                              ; preds = %199
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %155

202:                                              ; preds = %157
  br label %251

203:                                              ; preds = %125
  %204 = load i32, ptr %20, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = icmp eq i32 %207, 1
  br i1 %208, label %209, label %250

209:                                              ; preds = %203
  %210 = load i32, ptr %21, align 4, !tbaa !5
  %211 = load i32, ptr %20, align 4, !tbaa !5
  %212 = icmp ne i32 %210, %211
  br i1 %212, label %213, label %245

213:                                              ; preds = %209
  %214 = load i32, ptr %20, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = load i32, ptr %22, align 4, !tbaa !5
  %219 = icmp eq i32 %217, %218
  br i1 %219, label %220, label %221

220:                                              ; preds = %213
  store i32 8, ptr %31, align 4
  br label %252, !llvm.loop !16

221:                                              ; preds = %213
  %222 = load i32, ptr %20, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %223
  store i32 3, ptr %224, align 4, !tbaa !5
  %225 = load i32, ptr %21, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %226
  store i32 3, ptr %227, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %228 = load i32, ptr %21, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [100010 x i32], ptr %12, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  store i32 %231, ptr %32, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %236, %221
  %233 = load i32, ptr %32, align 4, !tbaa !5
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = icmp ne i32 %233, %234
  br i1 %235, label %236, label %244

236:                                              ; preds = %232
  %237 = load i32, ptr %32, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %238
  store i32 3, ptr %239, align 4, !tbaa !5
  %240 = load i32, ptr %32, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [100010 x i32], ptr %12, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  store i32 %243, ptr %32, align 4, !tbaa !5
  br label %232, !llvm.loop !17

244:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %249

245:                                              ; preds = %209
  %246 = load i32, ptr %20, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %247
  store i32 2, ptr %248, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %245, %244
  br label %250

250:                                              ; preds = %249, %203
  br label %251

251:                                              ; preds = %250, %202
  store i32 0, ptr %31, align 4
  br label %252

252:                                              ; preds = %251, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %253 = load i32, ptr %31, align 4
  switch i32 %253, label %465 [
    i32 0, label %254
    i32 8, label %108
  ]

254:                                              ; preds = %252
  br label %108, !llvm.loop !16

255:                                              ; preds = %195, %178, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %256

256:                                              ; preds = %255, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %257

257:                                              ; preds = %256, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %459

258:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %273, %258
  %260 = load i32, ptr %33, align 4, !tbaa !5
  %261 = icmp slt i32 %260, 100010
  br i1 %261, label %263, label %262

262:                                              ; preds = %259
  store i32 14, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %276

263:                                              ; preds = %259
  %264 = load i32, ptr %33, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = icmp eq i32 %267, 3
  %269 = zext i1 %268 to i32
  %270 = load i32, ptr %33, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %271
  store i32 %269, ptr %272, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %263
  %274 = load i32, ptr %33, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %33, align 4, !tbaa !5
  br label %259, !llvm.loop !18

276:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store i64 0, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %293, %276
  %278 = load i32, ptr %35, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = load i64, ptr @N, align 8, !tbaa !9
  %281 = icmp slt i64 %279, %280
  br i1 %281, label %283, label %282

282:                                              ; preds = %277
  store i32 17, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %296

283:                                              ; preds = %277
  %284 = load i32, ptr %35, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [100010 x i32], ptr %10, i64 0, i64 %285
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = icmp eq i32 %287, 3
  br i1 %288, label %289, label %292

289:                                              ; preds = %283
  %290 = load i64, ptr %34, align 8, !tbaa !9
  %291 = add nsw i64 %290, 1
  store i64 %291, ptr %34, align 8, !tbaa !9
  br label %292

292:                                              ; preds = %289, %283
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %35, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %35, align 4, !tbaa !5
  br label %277, !llvm.loop !19

296:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  store i64 0, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %297

297:                                              ; preds = %419, %296
  %298 = load i32, ptr %37, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = load i64, ptr @N, align 8, !tbaa !9
  %301 = icmp slt i64 %299, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %297
  store i32 20, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %425

303:                                              ; preds = %297
  %304 = load i32, ptr %37, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %310

309:                                              ; preds = %303
  br label %419

310:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #8
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %311 unwind label %354

311:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !5
  call void @_ZNSt5tupleIJiiEEC2IRiiTnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %40) #8
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %38, ptr noundef nonnull align 4 dereferenceable(8) %39)
          to label %312 unwind label %358

312:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  call void @llvm.memset.p0.i64(ptr align 16 %41, i8 0, i64 16, i1 false)
  br label %313

313:                                              ; preds = %394, %312
  %314 = invoke noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %315 unwind label %362

315:                                              ; preds = %313
  %316 = xor i1 %314, true
  br i1 %316, label %317, label %397

317:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %318 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %319 unwind label %366

319:                                              ; preds = %317
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %318) #8
  %321 = load i32, ptr %320, align 4, !tbaa !5
  store i32 %321, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %322 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %323 unwind label %370

323:                                              ; preds = %319
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %322) #8
  %325 = load i32, ptr %324, align 4, !tbaa !5
  store i32 %325, ptr %43, align 4, !tbaa !5
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %326 unwind label %370

326:                                              ; preds = %323
  %327 = load i32, ptr %42, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %394, label %332

332:                                              ; preds = %326
  %333 = load i32, ptr %42, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %334
  store i32 1, ptr %335, align 4, !tbaa !5
  %336 = load i32, ptr %43, align 4, !tbaa !5
  %337 = srem i32 %336, 2
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [2 x i64], ptr %41, i64 0, i64 %338
  %340 = load i64, ptr %339, align 8, !tbaa !9
  %341 = add nsw i64 %340, 1
  store i64 %341, ptr %339, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %342 = load i32, ptr %42, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %343
  store ptr %344, ptr %44, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %345 = load ptr, ptr %44, align 8, !tbaa !14
  %346 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %345) #8
  %347 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %346, ptr %347, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %348 = load ptr, ptr %44, align 8, !tbaa !14
  %349 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %348) #8
  %350 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %349, ptr %350, align 8
  br label %351

351:                                              ; preds = %391, %332
  %352 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br i1 %352, label %374, label %353

353:                                              ; preds = %351
  store i32 25, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %393

354:                                              ; preds = %310
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %18, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %19, align 4
  br label %424

358:                                              ; preds = %311
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %18, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %423

362:                                              ; preds = %313
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %18, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %19, align 4
  br label %422

366:                                              ; preds = %317
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %18, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %19, align 4
  br label %396

370:                                              ; preds = %323, %319
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %18, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %19, align 4
  br label %395

374:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  %376 = load i32, ptr %375, align 4, !tbaa !5
  store i32 %376, ptr %47, align 4, !tbaa !5
  %377 = load i32, ptr %47, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %378
  %380 = load i32, ptr %379, align 4, !tbaa !5
  %381 = icmp ne i32 %380, 0
  br i1 %381, label %390, label %382

382:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %383 = load i32, ptr %43, align 4, !tbaa !5
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %49, align 4, !tbaa !5
  call void @_ZNSt5tupleIJiiEEC2IRiiTnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %49) #8
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %38, ptr noundef nonnull align 4 dereferenceable(8) %48)
          to label %385 unwind label %386

385:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %390

386:                                              ; preds = %382
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %18, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %395

390:                                              ; preds = %385, %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %391

391:                                              ; preds = %390
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  br label %351

393:                                              ; preds = %353
  br label %394

394:                                              ; preds = %393, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %313, !llvm.loop !20

395:                                              ; preds = %386, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %396

396:                                              ; preds = %395, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %422

397:                                              ; preds = %315
  %398 = getelementptr inbounds [2 x i64], ptr %41, i64 0, i64 0
  %399 = load i64, ptr %398, align 16, !tbaa !9
  %400 = getelementptr inbounds [2 x i64], ptr %41, i64 0, i64 1
  %401 = load i64, ptr %400, align 8, !tbaa !9
  %402 = mul nsw i64 %399, %401
  %403 = load i64, ptr %36, align 8, !tbaa !9
  %404 = add nsw i64 %403, %402
  store i64 %404, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %405 = getelementptr inbounds [2 x i64], ptr %41, i64 0, i64 0
  %406 = load i64, ptr %405, align 16, !tbaa !9
  %407 = getelementptr inbounds [2 x i64], ptr %41, i64 0, i64 1
  %408 = load i64, ptr %407, align 8, !tbaa !9
  %409 = add nsw i64 %406, %408
  store i64 %409, ptr %50, align 8, !tbaa !9
  %410 = load i64, ptr @N, align 8, !tbaa !9
  %411 = load i64, ptr %34, align 8, !tbaa !9
  %412 = sub nsw i64 %410, %411
  %413 = load i64, ptr %50, align 8, !tbaa !9
  %414 = sub nsw i64 %412, %413
  %415 = load i64, ptr %50, align 8, !tbaa !9
  %416 = mul nsw i64 %414, %415
  %417 = load i64, ptr %36, align 8, !tbaa !9
  %418 = add nsw i64 %417, %416
  store i64 %418, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %38) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #8
  br label %419

419:                                              ; preds = %397, %309
  %420 = load i32, ptr %37, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %37, align 4, !tbaa !5
  br label %297, !llvm.loop !21

422:                                              ; preds = %396, %362
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %423

423:                                              ; preds = %422, %358
  call void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %38) #8
  br label %424

424:                                              ; preds = %423, %354
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %458

425:                                              ; preds = %302
  %426 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %427 unwind label %454

427:                                              ; preds = %425
  %428 = load i64, ptr %34, align 8, !tbaa !9
  %429 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %426, i64 noundef %428)
          to label %430 unwind label %454

430:                                              ; preds = %427
  %431 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %429, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %432 unwind label %454

432:                                              ; preds = %430
  %433 = load i64, ptr %34, align 8, !tbaa !9
  %434 = load i64, ptr %34, align 8, !tbaa !9
  %435 = sub nsw i64 %434, 1
  %436 = mul nsw i64 %433, %435
  %437 = sdiv i64 %436, 2
  %438 = load i64, ptr %34, align 8, !tbaa !9
  %439 = load i64, ptr @N, align 8, !tbaa !9
  %440 = load i64, ptr %34, align 8, !tbaa !9
  %441 = sub nsw i64 %439, %440
  %442 = mul nsw i64 %438, %441
  %443 = add nsw i64 %437, %442
  %444 = load i64, ptr @M, align 8, !tbaa !9
  %445 = sub nsw i64 %443, %444
  %446 = load i64, ptr %36, align 8, !tbaa !9
  %447 = add nsw i64 %446, %445
  store i64 %447, ptr %36, align 8, !tbaa !9
  %448 = load i64, ptr %36, align 8, !tbaa !9
  %449 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %448)
          to label %450 unwind label %454

450:                                              ; preds = %432
  %451 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %449, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %452 unwind label %454

452:                                              ; preds = %450
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %8) #8
  %453 = load i32, ptr %1, align 4
  ret i32 %453

454:                                              ; preds = %450, %432, %430, %427, %425
  %455 = landingpad { ptr, i32 }
          cleanup
  %456 = extractvalue { ptr, i32 } %455, 0
  store ptr %456, ptr %18, align 8
  %457 = extractvalue { ptr, i32 } %455, 1
  store i32 %457, ptr %19, align 4
  br label %458

458:                                              ; preds = %454, %424
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %459

459:                                              ; preds = %458, %257, %162, %158
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 400040, ptr %8) #8
  br label %460

460:                                              ; preds = %459
  %461 = load ptr, ptr %18, align 8
  %462 = load i32, ptr %19, align 4
  %463 = insertvalue { ptr, i32 } poison, ptr %461, 0
  %464 = insertvalue { ptr, i32 } %463, i32 %462, 1
  resume { ptr, i32 } %464

465:                                              ; preds = %252
  unreachable
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt14random_shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Tuple_impl.4", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.4" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.5" = type { i32 }
%"struct.std::_Head_base.6" = type { i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::stack.7" = type { %"class.std::deque.8" }
%"class.std::deque.8" = type { %"class.std::_Deque_base.9" }
%"class.std::_Deque_base.9" = type { %"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.13", %"struct.std::_Deque_iterator.13" }
%"struct.std::_Deque_iterator.13" = type { ptr, ptr, ptr, ptr }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Tuple_impl.16", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.16" = type { %"struct.std::_Head_base.5" }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@V = external dso_local global [100010 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [100010 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca [100010 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca [100010 x i32], align 16
  %8 = alloca %"class.std::stack", align 8
  %9 = alloca %"class.std::tuple", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::tuple", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::tuple", align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::stack.7", align 8
  %23 = alloca %"class.std::tuple.14", align 4
  %24 = alloca i32, align 4
  %25 = alloca [2 x i64], align 16
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::tuple.14", align 4
  %30 = alloca i32, align 4
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %32 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %33 = load i64, ptr @M, align 8, !tbaa !5
  %34 = icmp sgt i64 %33, 0
  br i1 %34, label %.lr.ph, label %.preheader83

.preheader83:                                     ; preds = %.lr.ph, %0
  %35 = load i64, ptr @N, align 8, !tbaa !5
  %36 = icmp sgt i64 %35, 0
  br i1 %36, label %.lr.ph89, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %39 = load i32, ptr %1, align 4, !tbaa !9
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %1, align 4, !tbaa !9
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = add nsw i32 %41, -1
  store i32 %42, ptr %2, align 4, !tbaa !9
  %43 = sext i32 %40 to i64
  %44 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %43
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %45 = load i32, ptr %2, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %46
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i64, ptr @M, align 8, !tbaa !5
  %49 = icmp sgt i64 %48, %indvars.iv.next
  br i1 %49, label %.lr.ph, label %.preheader83, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph89, %.preheader83
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %3) #9
  %50 = getelementptr inbounds i8, ptr %3, i64 400040
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %3, ptr noundef nonnull %50, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %5) #9
  %51 = getelementptr inbounds i8, ptr %5, i64 400040
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %5, ptr noundef nonnull %51, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #9
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 1, ptr %12, align 4, !tbaa !9
  call void @_ZNSt5tupleIJiiiEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS3_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) #9
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %57 unwind label %100

.lr.ph89:                                         ; preds = %.preheader83, %.lr.ph89
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph89 ], [ 0, %.preheader83 ]
  %52 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %indvars.iv118
  %53 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #9
  %54 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #9
  call void @_ZSt14random_shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %53, ptr %54)
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %55 = load i64, ptr @N, align 8, !tbaa !5
  %56 = icmp sgt i64 %55, %indvars.iv.next119
  br i1 %56, label %.lr.ph89, label %._crit_edge, !llvm.loop !13

57:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  %58 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  br i1 %58, label %vector.body.preheader, label %.lr.ph100

vector.body.preheader:                            ; preds = %.loopexit, %57
  br label %vector.body

vector.body:                                      ; preds = %vector.body.1, %vector.body.preheader
  %index = phi i64 [ 0, %vector.body.preheader ], [ %index.next.1, %vector.body.1 ]
  %59 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %index
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %wide.load = load <4 x i32>, ptr %59, align 16, !tbaa !9
  %wide.load133 = load <4 x i32>, ptr %60, align 16, !tbaa !9
  %61 = icmp eq <4 x i32> %wide.load, <i32 3, i32 3, i32 3, i32 3>
  %62 = icmp eq <4 x i32> %wide.load133, <i32 3, i32 3, i32 3, i32 3>
  %63 = zext <4 x i1> %61 to <4 x i32>
  %64 = zext <4 x i1> %62 to <4 x i32>
  %65 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  store <4 x i32> %63, ptr %65, align 16, !tbaa !9
  store <4 x i32> %64, ptr %66, align 16, !tbaa !9
  %67 = icmp eq i64 %index, 100000
  br i1 %67, label %scalar.ph, label %vector.body.1, !llvm.loop !14

vector.body.1:                                    ; preds = %vector.body
  %index.next = or disjoint i64 %index, 8
  %68 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %index.next
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %wide.load.1 = load <4 x i32>, ptr %68, align 16, !tbaa !9
  %wide.load133.1 = load <4 x i32>, ptr %69, align 16, !tbaa !9
  %70 = icmp eq <4 x i32> %wide.load.1, <i32 3, i32 3, i32 3, i32 3>
  %71 = icmp eq <4 x i32> %wide.load133.1, <i32 3, i32 3, i32 3, i32 3>
  %72 = zext <4 x i1> %70 to <4 x i32>
  %73 = zext <4 x i1> %71 to <4 x i32>
  %74 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %index.next
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  store <4 x i32> %72, ptr %74, align 16, !tbaa !9
  store <4 x i32> %73, ptr %75, align 16, !tbaa !9
  %index.next.1 = add nuw nsw i64 %index, 16
  br label %vector.body

.lr.ph100:                                        ; preds = %57, %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %76) #9
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %13, align 4, !tbaa !9
  %79 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %79) #9
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %82) #9
  %84 = load i32, ptr %83, align 4, !tbaa !9
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !9
  switch i32 %88, label %.loopexit [
    i32 0, label %89
    i32 1, label %117
  ]

89:                                               ; preds = %.lr.ph100
  store i32 1, ptr %87, align 4, !tbaa !9
  %90 = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %86
  store i32 %81, ptr %90, align 4, !tbaa !9
  %91 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %86
  store i32 %84, ptr %91, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %92 = sub nsw i32 3, %84
  store i32 %92, ptr %15, align 4, !tbaa !9
  call void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %15) #9
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %93 unwind label %102

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %97 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #9
  store ptr %97, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %98 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #9
  store ptr %98, ptr %17, align 8
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %99, label %.lr.ph97, label %._crit_edge98

._crit_edge98:                                    ; preds = %114, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %.loopexit

100:                                              ; preds = %._crit_edge
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  br label %246

102:                                              ; preds = %89
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  br label %129

.lr.ph97:                                         ; preds = %93, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %105 = load i32, ptr %104, align 4, !tbaa !9
  store i32 %105, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %.not76 = icmp eq i32 %105, %109
  br i1 %.not76, label %114, label %110

110:                                              ; preds = %.lr.ph97
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  store i32 %92, ptr %20, align 4, !tbaa !9
  call void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %20) #9
  invoke void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %111 unwind label %112

111:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  br label %114

112:                                              ; preds = %110
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %129

114:                                              ; preds = %111, %.lr.ph97
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %116 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %116, label %.lr.ph97, label %._crit_edge98

117:                                              ; preds = %.lr.ph100
  %.not73 = icmp eq i32 %81, %85
  br i1 %.not73, label %127, label %118

118:                                              ; preds = %117
  %119 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %86
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = icmp eq i32 %120, %84
  br i1 %121, label %.loopexit, label %122, !llvm.loop !17

122:                                              ; preds = %118
  store i32 3, ptr %119, align 4, !tbaa !9
  %123 = sext i32 %81 to i64
  %124 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %123
  store i32 3, ptr %124, align 4, !tbaa !9
  %.062.in90 = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %123
  %.06291 = load i32, ptr %.062.in90, align 4, !tbaa !9
  %.not7592 = icmp eq i32 %.06291, %85
  br i1 %.not7592, label %.loopexit, label %.lr.ph95

.lr.ph95:                                         ; preds = %122, %.lr.ph95
  %.06293 = phi i32 [ %.062, %.lr.ph95 ], [ %.06291, %122 ]
  %125 = sext i32 %.06293 to i64
  %126 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %125
  store i32 3, ptr %126, align 4, !tbaa !9
  %.062.in = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %125
  %.062 = load i32, ptr %.062.in, align 4, !tbaa !9
  %.not75 = icmp eq i32 %.062, %85
  br i1 %.not75, label %.loopexit, label %.lr.ph95, !llvm.loop !18

127:                                              ; preds = %117
  store i32 2, ptr %87, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph95, %122, %._crit_edge98, %127, %.lr.ph100, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  %128 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  br i1 %128, label %vector.body.preheader, label %.lr.ph100

129:                                              ; preds = %112, %102
  %.pn77 = phi { ptr, i32 } [ %113, %112 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  br label %246

.lr.ph104.preheader:                              ; preds = %scalar.ph
  %min.iters.check = icmp ult i64 %150, 4
  br i1 %min.iters.check, label %.lr.ph104.preheader144, label %vector.ph136

.lr.ph104.preheader144:                           ; preds = %middle.block134, %.lr.ph104.preheader
  %indvars.iv124.ph = phi i64 [ 0, %.lr.ph104.preheader ], [ %n.vec, %middle.block134 ]
  %.059102.ph = phi i64 [ 0, %.lr.ph104.preheader ], [ %139, %middle.block134 ]
  br label %.lr.ph104

vector.ph136:                                     ; preds = %.lr.ph104.preheader
  %n.vec = and i64 %150, 9223372036854775804
  br label %vector.body138

vector.body138:                                   ; preds = %vector.body138, %vector.ph136
  %index139 = phi i64 [ 0, %vector.ph136 ], [ %index.next143, %vector.body138 ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph136 ], [ %136, %vector.body138 ]
  %vec.phi140 = phi <2 x i64> [ zeroinitializer, %vector.ph136 ], [ %137, %vector.body138 ]
  %130 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %index139
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  %wide.load141 = load <2 x i32>, ptr %130, align 16, !tbaa !9
  %wide.load142 = load <2 x i32>, ptr %131, align 8, !tbaa !9
  %132 = icmp eq <2 x i32> %wide.load141, <i32 3, i32 3>
  %133 = icmp eq <2 x i32> %wide.load142, <i32 3, i32 3>
  %134 = zext <2 x i1> %132 to <2 x i64>
  %135 = zext <2 x i1> %133 to <2 x i64>
  %136 = add <2 x i64> %vec.phi, %134
  %137 = add <2 x i64> %vec.phi140, %135
  %index.next143 = add nuw i64 %index139, 4
  %138 = icmp eq i64 %index.next143, %n.vec
  br i1 %138, label %middle.block134, label %vector.body138, !llvm.loop !19

middle.block134:                                  ; preds = %vector.body138
  %bin.rdx = add <2 x i64> %137, %136
  %139 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %150, %n.vec
  br i1 %cmp.n, label %._crit_edge105, label %.lr.ph104.preheader144

._crit_edge105.thread:                            ; preds = %scalar.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  br label %._crit_edge115

scalar.ph:                                        ; preds = %vector.body
  %140 = getelementptr inbounds i8, ptr %5, i64 400032
  %141 = load i32, ptr %140, align 16, !tbaa !9
  %142 = icmp eq i32 %141, 3
  %143 = zext i1 %142 to i32
  %144 = getelementptr inbounds i8, ptr %3, i64 400032
  store i32 %143, ptr %144, align 16, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %5, i64 400036
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 3
  %148 = zext i1 %147 to i32
  %149 = getelementptr inbounds i8, ptr %3, i64 400036
  store i32 %148, ptr %149, align 4, !tbaa !9
  %150 = load i64, ptr @N, align 8, !tbaa !5
  %151 = icmp sgt i64 %150, 0
  br i1 %151, label %.lr.ph104.preheader, label %._crit_edge105.thread

._crit_edge105:                                   ; preds = %.lr.ph104, %middle.block134
  %spec.select.lcssa = phi i64 [ %139, %middle.block134 ], [ %spec.select, %.lr.ph104 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  store i32 0, ptr %21, align 4, !tbaa !9
  br i1 %151, label %.lr.ph114, label %._crit_edge115

.lr.ph114:                                        ; preds = %._crit_edge105
  %152 = getelementptr inbounds i8, ptr %25, i64 8
  br label %158

.lr.ph104:                                        ; preds = %.lr.ph104.preheader144, %.lr.ph104
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %.lr.ph104 ], [ %indvars.iv124.ph, %.lr.ph104.preheader144 ]
  %.059102 = phi i64 [ %spec.select, %.lr.ph104 ], [ %.059102.ph, %.lr.ph104.preheader144 ]
  %153 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %indvars.iv124
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp eq i32 %154, 3
  %156 = zext i1 %155 to i64
  %spec.select = add nuw nsw i64 %.059102, %156
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond127.not = icmp eq i64 %indvars.iv.next125, %150
  br i1 %exitcond127.not, label %._crit_edge105, label %.lr.ph104, !llvm.loop !20

._crit_edge115:                                   ; preds = %217, %._crit_edge105.thread, %._crit_edge105
  %.059.lcssa132 = phi i64 [ %spec.select.lcssa, %._crit_edge105 ], [ 0, %._crit_edge105.thread ], [ %spec.select.lcssa, %217 ]
  %.056.lcssa = phi i64 [ 0, %._crit_edge105 ], [ 0, %._crit_edge105.thread ], [ %.157, %217 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %225 unwind label %244

158:                                              ; preds = %.lr.ph114, %217
  %159 = phi i64 [ %150, %.lr.ph114 ], [ %218, %217 ]
  %160 = phi i32 [ 0, %.lr.ph114 ], [ %220, %217 ]
  %161 = phi i64 [ 0, %.lr.ph114 ], [ %221, %217 ]
  %.056112 = phi i64 [ 0, %.lr.ph114 ], [ %.157, %217 ]
  %162 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %.not = icmp eq i32 %163, 0
  br i1 %.not, label %164, label %217

164:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %22) #9
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
          to label %165 unwind label %188

165:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @_ZNSt5tupleIJiiEEC2IRiiTnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %24) #9
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %166 unwind label %190

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %25, i8 0, i64 16, i1 false)
  %167 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  br i1 %167, label %._crit_edge111, label %.lr.ph110

.lr.ph110:                                        ; preds = %166, %205
  %168 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %168) #9
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %171) #9
  %173 = load i32, ptr %172, align 4, !tbaa !9
  call void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  %174 = sext i32 %170 to i64
  %175 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %.not68 = icmp eq i32 %176, 0
  br i1 %.not68, label %177, label %205

177:                                              ; preds = %.lr.ph110
  store i32 1, ptr %175, align 4, !tbaa !9
  %178 = srem i32 %173, 2
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [2 x i64], ptr %25, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !5
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %180, align 8, !tbaa !5
  %183 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @V, i64 0, i64 %174
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %184 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #9
  store ptr %184, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #9
  %185 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #9
  store ptr %185, ptr %27, align 8
  %186 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  br i1 %186, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %177
  %187 = add nsw i32 %173, 1
  br label %192

._crit_edge108:                                   ; preds = %202, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br label %205

188:                                              ; preds = %164
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %224

190:                                              ; preds = %165
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  br label %223

192:                                              ; preds = %.lr.ph107, %202
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #9
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  %194 = load i32, ptr %193, align 4, !tbaa !9
  store i32 %194, ptr %28, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %.not69 = icmp eq i32 %197, 0
  br i1 %.not69, label %198, label %202

198:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #9
  store i32 %187, ptr %30, align 4, !tbaa !9
  call void @_ZNSt5tupleIJiiEEC2IRiiTnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %30) #9
  invoke void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 4 dereferenceable(8) %29)
          to label %199 unwind label %200

199:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #9
  br label %202

200:                                              ; preds = %198
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #9
  br label %223

202:                                              ; preds = %199, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #9
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  br i1 %204, label %192, label %._crit_edge108

205:                                              ; preds = %._crit_edge108, %.lr.ph110
  %206 = call noundef zeroext i1 @_ZNKSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  br i1 %206, label %._crit_edge111.loopexit, label %.lr.ph110, !llvm.loop !21

._crit_edge111.loopexit:                          ; preds = %205
  %.pre = load i64, ptr %25, align 16, !tbaa !5
  %.pre128 = load i64, ptr %152, align 8, !tbaa !5
  br label %._crit_edge111

._crit_edge111:                                   ; preds = %._crit_edge111.loopexit, %166
  %207 = phi i64 [ %.pre128, %._crit_edge111.loopexit ], [ 0, %166 ]
  %208 = phi i64 [ %.pre, %._crit_edge111.loopexit ], [ 0, %166 ]
  %209 = mul nsw i64 %207, %208
  %210 = add nsw i64 %209, %.056112
  %211 = add nsw i64 %207, %208
  %212 = load i64, ptr @N, align 8, !tbaa !5
  %213 = add i64 %211, %spec.select.lcssa
  %214 = sub i64 %212, %213
  %215 = mul nsw i64 %214, %211
  %216 = add nsw i64 %210, %215
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #9
  call void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #9
  %.pre129 = load i32, ptr %21, align 4, !tbaa !9
  %.pre130 = load i64, ptr @N, align 8, !tbaa !5
  br label %217

217:                                              ; preds = %158, %._crit_edge111
  %218 = phi i64 [ %159, %158 ], [ %.pre130, %._crit_edge111 ]
  %219 = phi i32 [ %160, %158 ], [ %.pre129, %._crit_edge111 ]
  %.157 = phi i64 [ %.056112, %158 ], [ %216, %._crit_edge111 ]
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %21, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = icmp sgt i64 %218, %221
  br i1 %222, label %158, label %._crit_edge115, !llvm.loop !22

223:                                              ; preds = %200, %190
  %.pn = phi { ptr, i32 } [ %201, %200 ], [ %191, %190 ]
  call void @_ZNSt5stackISt5tupleIJiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #9
  br label %224

224:                                              ; preds = %223, %188
  %.pn.pn = phi { ptr, i32 } [ %.pn, %223 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  br label %246

225:                                              ; preds = %._crit_edge115
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %157, i64 noundef %.059.lcssa132)
          to label %227 unwind label %244

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %229 unwind label %244

229:                                              ; preds = %227
  %230 = add nsw i64 %.059.lcssa132, -1
  %231 = mul nsw i64 %230, %.059.lcssa132
  %232 = sdiv i64 %231, 2
  %233 = load i64, ptr @N, align 8, !tbaa !5
  %234 = sub nsw i64 %233, %.059.lcssa132
  %235 = mul nsw i64 %234, %.059.lcssa132
  %236 = load i64, ptr @M, align 8, !tbaa !5
  %237 = add i64 %.056.lcssa, %232
  %238 = sub i64 %237, %236
  %239 = add i64 %238, %235
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %239)
          to label %241 unwind label %244

241:                                              ; preds = %229
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %243 unwind label %244

243:                                              ; preds = %241
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %3) #9
  ret i32 0

244:                                              ; preds = %241, %229, %227, %225, %._crit_edge115
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %246

246:                                              ; preds = %224, %244, %129, %100
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %129 ], [ %101, %100 ], [ %.pn.pn, %224 ], [ %245, %244 ]
  call void @_ZNSt5stackISt5tupleIJiiiEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn77.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt14random_shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiEEC2IJRiS2_iELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #8

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12, !15, !16}
!20 = distinct !{!20, !12, !16, !15}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


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