; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/0707_ARC041 (D)

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

%"class.std::basic_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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i8 }
%"struct.std::_Head_base.2" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }
%"class.std::tuple.4" = type { %"struct.std::_Tuple_impl.5" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Tuple_impl.6", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Tuple_impl.7", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.7" = type { %"struct.std::_Head_base.8" }
%"struct.std::_Head_base.8" = type { i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_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.12" = type { %"struct.std::_Tuple_impl.13" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; 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 [2010 x %"class.std::vector"], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::tuple", align 4
  %13 = alloca %"class.std::tuple.4", align 4
  %14 = alloca %"class.std::tuple", align 4
  %15 = alloca %"class.std::tuple.4", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::queue", align 8
  %20 = alloca %"class.std::tuple.12", align 4
  %21 = alloca i8, align 1
  %22 = alloca [2010 x i8], align 16
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca [2010 x i32], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.std::tuple", align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i8, align 1
  %36 = alloca %"class.std::tuple.12", align 4
  %37 = alloca i8, align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 48240, ptr %4) #8
  %40 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %41 = getelementptr inbounds %"class.std::vector", ptr %40, i64 2010
  br label %42

42:                                               ; preds = %42, %0
  %43 = phi ptr [ %40, %0 ], [ %44, %42 ]
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %44 = getelementptr inbounds %"class.std::vector", ptr %43, i64 1
  %45 = icmp eq ptr %44, %41
  br i1 %45, label %46, label %42

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %77, %46
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %93

52:                                               ; preds = %47
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %54 unwind label %80

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %56 unwind label %80

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %58 unwind label %80

58:                                               ; preds = %56
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, -1
  store i32 %62, ptr %6, align 4, !tbaa !5
  %63 = load i8, ptr %7, align 1, !tbaa !9
  %64 = sext i8 %63 to i32
  %65 = icmp eq i32 %64, 114
  %66 = zext i1 %65 to i32
  store i32 %66, ptr %8, align 4, !tbaa !5
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i64 0, i64 %68
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  invoke void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple.4") align 4 %13, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %70 unwind label %84

70:                                               ; preds = %58
  call void @_ZNSt5tupleIJiibEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEOS_IJS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  invoke void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %71 unwind label %84

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i64 0, i64 %73
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  invoke void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple.4") align 4 %15, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %75 unwind label %88

75:                                               ; preds = %71
  call void @_ZNSt5tupleIJiibEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEOS_IJS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %15) #8
  invoke void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %76 unwind label %88

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !5
  br label %47, !llvm.loop !10

80:                                               ; preds = %56, %54, %52
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %10, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %11, align 4
  br label %92

84:                                               ; preds = %70, %58
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %10, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %92

88:                                               ; preds = %75, %71
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  br label %92

92:                                               ; preds = %88, %84, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %318

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

94:                                               ; preds = %293, %93
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = load i32, ptr %2, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 5, ptr %17, align 4
  br label %296

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

100:                                              ; preds = %283, %99
  %101 = load i32, ptr %18, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 2
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 8, ptr %17, align 4
  br label %290

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #8
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %105 unwind label %164

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  %106 = load i32, ptr %18, align 4, !tbaa !5
  %107 = icmp eq i32 %106, 0
  %108 = zext i1 %107 to i8
  store i8 %108, ptr %21, align 1, !tbaa !12
  invoke void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple.12") align 4 %20, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %109 unwind label %168

109:                                              ; preds = %105
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %110 unwind label %168

110:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 2010, ptr %22) #8
  %111 = getelementptr inbounds [2010 x i8], ptr %22, i64 0, i64 0
  %112 = getelementptr inbounds [2010 x i8], ptr %22, i64 0, i64 0
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  store i8 0, ptr %23, align 1, !tbaa !12
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %111, ptr noundef %115, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %116 unwind label %172

116:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8040, ptr %25) #8
  %117 = getelementptr inbounds [2010 x i32], ptr %25, i64 0, i64 0
  %118 = getelementptr inbounds [2010 x i32], ptr %25, i64 0, i64 0
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 -1, ptr %26, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %117, ptr noundef %121, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %122 unwind label %176

122:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %123

123:                                              ; preds = %276, %122
  %124 = invoke noundef zeroext i1 @_ZNKSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %125 unwind label %180

125:                                              ; preds = %123
  %126 = xor i1 %124, true
  br i1 %126, label %127, label %279

127:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %128 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %129 unwind label %184

129:                                              ; preds = %127
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %128) #8
  %131 = load i32, ptr %130, align 4, !tbaa !5
  store i32 %131, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  %132 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %133 unwind label %188

133:                                              ; preds = %129
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %132) #8
  %135 = load i8, ptr %134, align 1, !tbaa !12, !range !14, !noundef !15
  %136 = trunc i8 %135 to i1
  %137 = zext i1 %136 to i8
  store i8 %137, ptr %28, align 1, !tbaa !12
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %138 unwind label %188

138:                                              ; preds = %133
  %139 = load i32, ptr %27, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [2010 x i32], ptr %25, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp eq i32 %142, -1
  br i1 %143, label %144, label %257

144:                                              ; preds = %138
  %145 = load i8, ptr %28, align 1, !tbaa !12, !range !14, !noundef !15
  %146 = trunc i8 %145 to i1
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, i32 0, i32 1
  %149 = load i32, ptr %27, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [2010 x i32], ptr %25, i64 0, i64 %150
  store i32 %148, ptr %151, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %152 = load i32, ptr %27, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i64 0, i64 %153
  store ptr %154, ptr %29, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %155 = load ptr, ptr %29, align 8, !tbaa !16
  %156 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %155) #8
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %158 = load ptr, ptr %29, align 8, !tbaa !16
  %159 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #8
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %159, ptr %160, align 8
  br label %161

161:                                              ; preds = %251, %144
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %162, label %192, label %163

163:                                              ; preds = %161
  store i32 13, ptr %17, align 4
  br label %254

164:                                              ; preds = %104
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %10, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %11, align 4
  br label %289

168:                                              ; preds = %109, %105
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %10, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %288

172:                                              ; preds = %110
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %10, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %287

176:                                              ; preds = %116
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %10, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %286

180:                                              ; preds = %123
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %10, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %11, align 4
  br label %286

184:                                              ; preds = %127
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  br label %278

188:                                              ; preds = %269, %267, %133, %129
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %10, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %11, align 4
  br label %277

192:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  %193 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %193, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  %195 = load i32, ptr %194, align 4, !tbaa !5
  store i32 %195, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  %197 = load i32, ptr %196, align 4, !tbaa !5
  store i32 %197, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  %198 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm2EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  %199 = load i8, ptr %198, align 1, !tbaa !12, !range !14, !noundef !15
  %200 = trunc i8 %199 to i1
  %201 = zext i1 %200 to i8
  store i8 %201, ptr %35, align 1, !tbaa !12
  %202 = load i8, ptr %35, align 1, !tbaa !12, !range !14, !noundef !15
  %203 = trunc i8 %202 to i1
  %204 = zext i1 %203 to i32
  %205 = load i8, ptr %28, align 1, !tbaa !12, !range !14, !noundef !15
  %206 = trunc i8 %205 to i1
  %207 = zext i1 %206 to i32
  %208 = icmp eq i32 %204, %207
  br i1 %208, label %209, label %244

209:                                              ; preds = %192
  %210 = load i32, ptr %34, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [2010 x i8], ptr %22, i64 0, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !12, !range !14, !noundef !15
  %214 = trunc i8 %213 to i1
  br i1 %214, label %244, label %215

215:                                              ; preds = %209
  %216 = load i32, ptr %34, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [2010 x i8], ptr %22, i64 0, i64 %217
  store i8 1, ptr %218, align 1, !tbaa !12
  %219 = load i32, ptr %24, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #8
  %221 = load i8, ptr %28, align 1, !tbaa !12, !range !14, !noundef !15
  %222 = trunc i8 %221 to i1
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i8
  store i8 %224, ptr %37, align 1, !tbaa !12
  invoke void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple.12") align 4 %36, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %225 unwind label %235

225:                                              ; preds = %215
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %226 unwind label %235

226:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  %227 = load i32, ptr %24, align 4, !tbaa !5
  %228 = load i32, ptr %3, align 4, !tbaa !5
  %229 = icmp eq i32 %227, %228
  br i1 %229, label %230, label %243

230:                                              ; preds = %226
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %232 unwind label %239

232:                                              ; preds = %230
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %234 unwind label %239

234:                                              ; preds = %232
  store i32 0, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %245

235:                                              ; preds = %225, %215
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %253

239:                                              ; preds = %232, %230
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %10, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %11, align 4
  br label %253

243:                                              ; preds = %226
  br label %244

244:                                              ; preds = %243, %209, %192
  store i32 0, ptr %17, align 4
  br label %245

245:                                              ; preds = %244, %234
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %246 = load i32, ptr %17, align 4
  switch i32 %246, label %248 [
    i32 0, label %247
  ]

247:                                              ; preds = %245
  store i32 0, ptr %17, align 4
  br label %248

248:                                              ; preds = %247, %245
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  %249 = load i32, ptr %17, align 4
  switch i32 %249, label %254 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br label %161

253:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %277

254:                                              ; preds = %248, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %255 = load i32, ptr %17, align 4
  switch i32 %255, label %274 [
    i32 13, label %256
  ]

256:                                              ; preds = %254
  br label %273

257:                                              ; preds = %138
  %258 = load i32, ptr %27, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [2010 x i32], ptr %25, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = load i8, ptr %28, align 1, !tbaa !12, !range !14, !noundef !15
  %263 = trunc i8 %262 to i1
  %264 = zext i1 %263 to i64
  %265 = select i1 %263, i32 0, i32 1
  %266 = icmp ne i32 %261, %265
  br i1 %266, label %267, label %272

267:                                              ; preds = %257
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %269 unwind label %188

269:                                              ; preds = %267
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %271 unwind label %188

271:                                              ; preds = %269
  store i32 0, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %274

272:                                              ; preds = %257
  br label %273

273:                                              ; preds = %272, %256
  store i32 0, ptr %17, align 4
  br label %274

274:                                              ; preds = %273, %271, %254
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  %275 = load i32, ptr %17, align 4
  switch i32 %275, label %280 [
    i32 0, label %276
  ]

276:                                              ; preds = %274
  br label %123, !llvm.loop !18

277:                                              ; preds = %253, %188
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  br label %278

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

279:                                              ; preds = %125
  store i32 0, ptr %17, align 4
  br label %280

280:                                              ; preds = %279, %274
  call void @llvm.lifetime.end.p0(i64 8040, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 2010, ptr %22) #8
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #8
  %281 = load i32, ptr %17, align 4
  switch i32 %281, label %290 [
    i32 0, label %282
  ]

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %18, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %18, align 4, !tbaa !5
  br label %100, !llvm.loop !19

286:                                              ; preds = %278, %180, %176
  call void @llvm.lifetime.end.p0(i64 8040, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %287

287:                                              ; preds = %286, %172
  call void @llvm.lifetime.end.p0(i64 2010, ptr %22) #8
  br label %288

288:                                              ; preds = %287, %168
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #8
  br label %289

289:                                              ; preds = %288, %164
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %318

290:                                              ; preds = %280, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  %291 = load i32, ptr %17, align 4
  switch i32 %291, label %296 [
    i32 8, label %292
  ]

292:                                              ; preds = %290
  br label %293

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

296:                                              ; preds = %290, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  %297 = load i32, ptr %17, align 4
  switch i32 %297, label %303 [
    i32 5, label %298
  ]

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %300 unwind label %314

300:                                              ; preds = %298
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %302 unwind label %314

302:                                              ; preds = %300
  store i32 0, ptr %17, align 4
  br label %303

303:                                              ; preds = %302, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  %304 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %305 = getelementptr inbounds %"class.std::vector", ptr %304, i64 2010
  br label %306

306:                                              ; preds = %306, %303
  %307 = phi ptr [ %305, %303 ], [ %308, %306 ]
  %308 = getelementptr inbounds %"class.std::vector", ptr %307, i64 -1
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %308) #8
  %309 = icmp eq ptr %308, %304
  br i1 %309, label %310, label %306

310:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 48240, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %311 = load i32, ptr %17, align 4
  switch i32 %311, label %331 [
    i32 0, label %312
    i32 1, label %312
  ]

312:                                              ; preds = %310, %310
  %313 = load i32, ptr %1, align 4
  ret i32 %313

314:                                              ; preds = %300, %298
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %10, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %11, align 4
  br label %318

318:                                              ; preds = %314, %289, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  %319 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %320 = getelementptr inbounds %"class.std::vector", ptr %319, i64 2010
  br label %321

321:                                              ; preds = %321, %318
  %322 = phi ptr [ %320, %318 ], [ %323, %321 ]
  %323 = getelementptr inbounds %"class.std::vector", ptr %322, i64 -1
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %323) #8
  %324 = icmp eq ptr %323, %319
  br i1 %324, label %325, label %321

325:                                              ; preds = %321
  call void @llvm.lifetime.end.p0(i64 48240, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %326

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

331:                                              ; preds = %310
  unreachable
}

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.4") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.12") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; 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) #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #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: readwrite) }
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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}


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

%"class.std::basic_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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, bool>, std::allocator<std::tuple<int, int, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i8 }
%"struct.std::_Head_base.2" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }
%"class.std::tuple.4" = type { %"struct.std::_Tuple_impl.5" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Tuple_impl.6", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Tuple_impl.7", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.7" = type { %"struct.std::_Head_base.8" }
%"struct.std::_Head_base.8" = type { i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::tuple<int, bool>, std::allocator<std::tuple<int, bool>>>::_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.12" = type { %"struct.std::_Tuple_impl.13" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; 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 [2010 x %"class.std::vector"], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::tuple", align 4
  %10 = alloca %"class.std::tuple.4", align 4
  %11 = alloca %"class.std::tuple", align 4
  %12 = alloca %"class.std::tuple.4", align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::queue", align 8
  %15 = alloca %"class.std::tuple.12", align 4
  %16 = alloca i8, align 1
  %17 = alloca [2010 x i8], align 16
  %18 = alloca i8, align 1
  %19 = alloca [2010 x i32], align 16
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.std::tuple", align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::tuple.12", align 4
  %26 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 48240, ptr nonnull %3) #8
  br label %29

29:                                               ; preds = %29, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %29 ]
  %.ptr = getelementptr inbounds i8, ptr %3, i64 %.idx
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %30 = icmp eq i64 %.add, 48240
  br i1 %30, label %31, label %29

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %3, i64 48240
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %56, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.preheader, label %._crit_edge113

.lr.ph:                                           ; preds = %31, %56
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %38 unwind label %61

38:                                               ; preds = %.lr.ph
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %40 unwind label %61

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %42 unwind label %61

42:                                               ; preds = %40
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %5, align 4, !tbaa !5
  %47 = load i8, ptr %6, align 1, !tbaa !9
  %48 = icmp eq i8 %47, 114
  %49 = zext i1 %48 to i32
  store i32 %49, ptr %7, align 4, !tbaa !5
  %50 = sext i32 %44 to i64
  %51 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %3, i64 0, i64 %50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.4") align 4 %10, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZNSt5tupleIJiibEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEOS_IJS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  invoke void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %52 unwind label %63

52:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %3, i64 0, i64 %54
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  call void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.4") align 4 %12, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZNSt5tupleIJiibEEC2IJiiiELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEOS_IJS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  invoke void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %56 unwind label %65

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %8, align 4, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !10

61:                                               ; preds = %40, %38, %.lr.ph
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %67

63:                                               ; preds = %42
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %67

65:                                               ; preds = %52
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  br label %67

67:                                               ; preds = %65, %63, %61
  %.pn78 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %214

.preheader:                                       ; preds = %._crit_edge, %._crit_edge111.1
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #8
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %68 unwind label %96

68:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  store i8 1, ptr %16, align 1, !tbaa !12
  call void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.12") align 4 %15, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(1) %16)
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %69 unwind label %98

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 2010, ptr nonnull %17) #8
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %17, i64 %71
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #8
  store i8 0, ptr %18, align 1, !tbaa !12
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %17, ptr noundef nonnull %72, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %73 unwind label %100

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 8040, ptr nonnull %19) #8
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %19, i64 %75
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 -1, ptr %20, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %19, ptr noundef nonnull %76, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %77 unwind label %102

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  %78 = call noundef zeroext i1 @_ZNKSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %78, label %._crit_edge111, label %.lr.ph110

.lr.ph110:                                        ; preds = %77, %139
  %.056108 = phi i32 [ %.662, %139 ], [ 0, %77 ]
  %79 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %79) #8
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %82) #8
  %84 = load i8, ptr %83, align 1, !tbaa !12, !range !14, !noundef !15
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %85 = sext i32 %81 to i64
  %86 = getelementptr inbounds [2010 x i32], ptr %19, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp eq i32 %87, -1
  %89 = xor i8 %84, 1
  %not.71 = zext nneg i8 %89 to i32
  br i1 %88, label %90, label %135

90:                                               ; preds = %.lr.ph110
  store i32 %not.71, ptr %86, align 4, !tbaa !5
  %91 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %3, i64 0, i64 %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %92 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  store ptr %92, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %93 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  store ptr %93, ptr %22, align 8
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %94, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %90
  %95 = xor i8 %84, 1
  br label %106

96:                                               ; preds = %._crit_edge111, %.preheader
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %201

98:                                               ; preds = %141, %68
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %200

100:                                              ; preds = %142, %69
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  br label %199

102:                                              ; preds = %146, %73
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %198

104:                                              ; preds = %137, %.loopexit116
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %198

106:                                              ; preds = %.lr.ph106, %131
  %.157104 = phi i32 [ %.056108, %.lr.ph106 ], [ %.359.ph, %131 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  %107 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %107, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %109 = load i32, ptr %108, align 4, !tbaa !5
  store i32 %109, ptr %24, align 4, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm2EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %113 = load i8, ptr %112, align 1, !tbaa !12, !range !14, !noundef !15
  %114 = icmp eq i8 %113, %84
  br i1 %114, label %115, label %131

115:                                              ; preds = %106
  %116 = sext i32 %111 to i64
  %117 = getelementptr inbounds [2010 x i8], ptr %17, i64 0, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !12, !range !14, !noundef !15
  %119 = trunc nuw i8 %118 to i1
  br i1 %119, label %131, label %120

120:                                              ; preds = %115
  store i8 1, ptr %117, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #8
  store i8 %95, ptr %26, align 1, !tbaa !12
  call void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.12") align 4 %25, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 1 dereferenceable(1) %26)
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %121 unwind label %.loopexit

121:                                              ; preds = %120
  %122 = add nsw i32 %.157104, 1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  %123 = load i32, ptr %2, align 4, !tbaa !5
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %.loopexit114, label %131

.loopexit114:                                     ; preds = %121, %185
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %126 unwind label %129

126:                                              ; preds = %.loopexit114
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %select.unfold unwind label %129

.loopexit:                                        ; preds = %120
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %128

.loopexit.split-lp:                               ; preds = %184
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %128

128:                                              ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  br label %134

129:                                              ; preds = %126, %.loopexit114
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %134

131:                                              ; preds = %121, %115, %106
  %.359.ph = phi i32 [ %.157104, %106 ], [ %122, %121 ], [ %.157104, %115 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %133 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %133, label %106, label %._crit_edge107

134:                                              ; preds = %129, %128
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %lpad.phi, %128 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %198

._crit_edge107:                                   ; preds = %131, %90
  %.157.lcssa = phi i32 [ %.056108, %90 ], [ %.359.ph, %131 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %139

135:                                              ; preds = %.lr.ph110
  %.not = icmp eq i32 %87, %not.71
  br i1 %.not, label %139, label %.loopexit116

.loopexit116:                                     ; preds = %135, %163
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %137 unwind label %104

137:                                              ; preds = %.loopexit116
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %202 unwind label %104

select.unfold:                                    ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %202

139:                                              ; preds = %._crit_edge107, %135
  %.662 = phi i32 [ %.056108, %135 ], [ %.157.lcssa, %._crit_edge107 ]
  %140 = call noundef zeroext i1 @_ZNKSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %140, label %._crit_edge111, label %.lr.ph110, !llvm.loop !16

._crit_edge111:                                   ; preds = %139, %77
  call void @llvm.lifetime.end.p0(i64 8040, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 2010, ptr nonnull %17) #8
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #8
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %141 unwind label %96

141:                                              ; preds = %._crit_edge111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  store i8 0, ptr %16, align 1, !tbaa !12
  call void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.12") align 4 %15, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(1) %16)
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %142 unwind label %98

142:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 2010, ptr nonnull %17) #8
  %143 = load i32, ptr %2, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %17, i64 %144
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #8
  store i8 0, ptr %18, align 1, !tbaa !12
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %17, ptr noundef nonnull %145, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %146 unwind label %100

146:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 8040, ptr nonnull %19) #8
  %147 = load i32, ptr %1, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i32, ptr %19, i64 %148
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 -1, ptr %20, align 4, !tbaa !5
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %19, ptr noundef nonnull %149, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %150 unwind label %102

150:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  %151 = call noundef zeroext i1 @_ZNKSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %151, label %._crit_edge111.1, label %.lr.ph110.1

.lr.ph110.1:                                      ; preds = %150, %192
  %.056108.1 = phi i32 [ %.662.1, %192 ], [ 0, %150 ]
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %152) #8
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %155) #8
  %157 = load i8, ptr %156, align 1, !tbaa !12, !range !14, !noundef !15
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %158 = sext i32 %154 to i64
  %159 = getelementptr inbounds [2010 x i32], ptr %19, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = icmp eq i32 %160, -1
  %162 = xor i8 %157, 1
  %not.71.1 = zext nneg i8 %162 to i32
  br i1 %161, label %164, label %163

163:                                              ; preds = %.lr.ph110.1
  %.not.1 = icmp eq i32 %160, %not.71.1
  br i1 %.not.1, label %192, label %.loopexit116

164:                                              ; preds = %.lr.ph110.1
  store i32 %not.71.1, ptr %159, align 4, !tbaa !5
  %165 = getelementptr inbounds [2010 x %"class.std::vector"], ptr %3, i64 0, i64 %158
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %166 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #8
  store ptr %166, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %167 = call ptr @_ZNSt6vectorISt5tupleIJiibEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #8
  store ptr %167, ptr %22, align 8
  %168 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %168, label %.lr.ph106.1, label %._crit_edge107.1

.lr.ph106.1:                                      ; preds = %164
  %169 = xor i8 %157, 1
  br label %170

170:                                              ; preds = %189, %.lr.ph106.1
  %.157104.1 = phi i32 [ %.056108.1, %.lr.ph106.1 ], [ %.359.ph.1, %189 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  %171 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %171, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %173 = load i32, ptr %172, align 4, !tbaa !5
  store i32 %173, ptr %24, align 4, !tbaa !5
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm2EJiibEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  %177 = load i8, ptr %176, align 1, !tbaa !12, !range !14, !noundef !15
  %178 = icmp eq i8 %177, %157
  br i1 %178, label %179, label %189

179:                                              ; preds = %170
  %180 = sext i32 %175 to i64
  %181 = getelementptr inbounds [2010 x i8], ptr %17, i64 0, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !12, !range !14, !noundef !15
  %183 = trunc nuw i8 %182 to i1
  br i1 %183, label %189, label %184

184:                                              ; preds = %179
  store i8 1, ptr %181, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #8
  store i8 %169, ptr %26, align 1, !tbaa !12
  call void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.12") align 4 %25, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 1 dereferenceable(1) %26)
  invoke void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %185 unwind label %.loopexit.split-lp

185:                                              ; preds = %184
  %186 = add nsw i32 %.157104.1, 1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  %187 = load i32, ptr %2, align 4, !tbaa !5
  %188 = icmp eq i32 %186, %187
  br i1 %188, label %.loopexit114, label %189

189:                                              ; preds = %185, %179, %170
  %.359.ph.1 = phi i32 [ %.157104.1, %170 ], [ %186, %185 ], [ %.157104.1, %179 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %191 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiibEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %191, label %170, label %._crit_edge107.1

._crit_edge107.1:                                 ; preds = %189, %164
  %.157.lcssa.1 = phi i32 [ %.056108.1, %164 ], [ %.359.ph.1, %189 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br label %192

192:                                              ; preds = %._crit_edge107.1, %163
  %.662.1 = phi i32 [ %.056108.1, %163 ], [ %.157.lcssa.1, %._crit_edge107.1 ]
  %193 = call noundef zeroext i1 @_ZNKSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %193, label %._crit_edge111.1, label %.lr.ph110.1, !llvm.loop !16

._crit_edge111.1:                                 ; preds = %192, %150
  call void @llvm.lifetime.end.p0(i64 8040, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 2010, ptr nonnull %17) #8
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #8
  %194 = load i32, ptr %13, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %13, align 4, !tbaa !5
  %196 = load i32, ptr %1, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %.preheader, label %._crit_edge113, !llvm.loop !17

198:                                              ; preds = %104, %134, %102
  %.pn.pn.pn = phi { ptr, i32 } [ %103, %102 ], [ %.pn, %134 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 8040, ptr nonnull %19) #8
  br label %199

199:                                              ; preds = %198, %100
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %198 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 2010, ptr nonnull %17) #8
  br label %200

200:                                              ; preds = %199, %98
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %199 ], [ %99, %98 ]
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  br label %201

201:                                              ; preds = %200, %96
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %200 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %214

202:                                              ; preds = %137, %select.unfold
  call void @llvm.lifetime.end.p0(i64 8040, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 2010, ptr nonnull %17) #8
  call void @_ZNSt5queueISt5tupleIJibEESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %206

._crit_edge113:                                   ; preds = %._crit_edge111.1, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %204 unwind label %212

204:                                              ; preds = %._crit_edge113
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %206 unwind label %212

206:                                              ; preds = %202, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %207

207:                                              ; preds = %207, %206
  %208 = phi ptr [ %32, %206 ], [ %209, %207 ]
  %209 = getelementptr inbounds i8, ptr %208, i64 -24
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %209) #8
  %210 = icmp eq ptr %209, %3
  br i1 %210, label %211, label %207

211:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 48240, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

212:                                              ; preds = %204, %._crit_edge113
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %214

214:                                              ; preds = %212, %201, %67
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %67 ], [ %213, %212 ], [ %.pn.pn.pn.pn.pn.pn, %201 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %215

215:                                              ; preds = %215, %214
  %216 = phi ptr [ %32, %214 ], [ %217, %215 ]
  %217 = getelementptr inbounds i8, ptr %216, i64 -24
  call void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %217) #8
  %218 = icmp eq ptr %217, %3
  br i1 %218, label %219, label %215

219:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 48240, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn78.pn
}

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

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 #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_S0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.4") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRibEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.12") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

; 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 #5

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

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

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

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

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

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

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

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

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

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

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

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

; 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 #5

; 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 #4 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)) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiibEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #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: readwrite) }
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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}


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