; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint April/Problem C (C)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }
%"struct.std::pair" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"struct.std::pair.8" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@n = external dso_local global i32, align 4
@vis = external dso_local global %"class.std::unordered_set", align 8
@fin = external dso_local global i32, align 4
@q = external dso_local global %"class.std::queue", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::allocator.5", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [4 x i32], align 16
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca %"struct.std::pair.8", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca %"struct.std::pair.8", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %29 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %30 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %32
  %34 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %33, ptr noundef null)
  %35 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %37
  %39 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %38, ptr noundef null)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %41 unwind label %47

41:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %42

42:                                               ; preds = %63, %41
  %43 = load i32, ptr %7, align 4, !tbaa !8
  %44 = load i32, ptr @n, align 4, !tbaa !8
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %70

47:                                               ; preds = %0
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %365

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %53 unwind label %66

53:                                               ; preds = %51
  %54 = load i32, ptr %8, align 4, !tbaa !8
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %8, align 4, !tbaa !8
  %56 = load i32, ptr %7, align 4, !tbaa !8
  %57 = shl i32 1, %56
  %58 = load i32, ptr %8, align 4, !tbaa !8
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %59) #7
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = or i32 %61, %57
  store i32 %62, ptr %60, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %63

63:                                               ; preds = %53
  %64 = load i32, ptr %7, align 4, !tbaa !8
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %7, align 4, !tbaa !8
  br label %42, !llvm.loop !11

66:                                               ; preds = %51
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %5, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %364

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

71:                                               ; preds = %81, %70
  %72 = load i32, ptr %9, align 4, !tbaa !8
  %73 = load i32, ptr @n, align 4, !tbaa !8
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

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

76:                                               ; preds = %71
  %77 = load i32, ptr %9, align 4, !tbaa !8
  %78 = shl i32 1, %77
  %79 = load i32, ptr @fin, align 4, !tbaa !8
  %80 = or i32 %79, %78
  store i32 %80, ptr @fin, align 4, !tbaa !8
  br label %81

81:                                               ; preds = %76
  %82 = load i32, ptr %9, align 4, !tbaa !8
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !8
  br label %71, !llvm.loop !13

84:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %85 unwind label %112

85:                                               ; preds = %84
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %11)
          to label %86 unwind label %116

86:                                               ; preds = %85
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  br label %87

87:                                               ; preds = %358, %86
  %88 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
          to label %89 unwind label %121

89:                                               ; preds = %87
  %90 = xor i1 %88, true
  br i1 %90, label %91, label %359

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
          to label %93 unwind label %121

93:                                               ; preds = %91
  %94 = getelementptr inbounds %"struct.std::pair", ptr %92, i32 0, i32 0
  %95 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %94)
          to label %96 unwind label %121

96:                                               ; preds = %93
  %97 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
          to label %98 unwind label %121

98:                                               ; preds = %96
  %99 = getelementptr inbounds %"struct.std::pair", ptr %97, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !14
  store i32 %100, ptr %13, align 4, !tbaa !8
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
          to label %101 unwind label %121

101:                                              ; preds = %98
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #7
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = load i32, ptr @fin, align 4, !tbaa !8
  %105 = icmp eq i32 %103, %104
  br i1 %105, label %106, label %125

106:                                              ; preds = %101
  %107 = load i32, ptr %13, align 4, !tbaa !8
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %107)
          to label %109 unwind label %121

109:                                              ; preds = %106
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %111 unwind label %121

111:                                              ; preds = %109
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %360

112:                                              ; preds = %84
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  br label %120

116:                                              ; preds = %85
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #7
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %363

121:                                              ; preds = %109, %106, %98, %96, %93, %91, %87
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %5, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %6, align 4
  br label %362

125:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %126

126:                                              ; preds = %156, %125
  %127 = load i32, ptr %15, align 4, !tbaa !8
  %128 = icmp slt i32 %127, 4
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  store i32 10, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %159

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %131

131:                                              ; preds = %151, %130
  %132 = load i32, ptr %16, align 4, !tbaa !8
  %133 = load i32, ptr @n, align 4, !tbaa !8
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 13, ptr %14, align 4
  br label %154

136:                                              ; preds = %131
  %137 = load i32, ptr %15, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %138) #7
  %140 = load i32, ptr %139, align 4, !tbaa !8
  %141 = load i32, ptr %16, align 4, !tbaa !8
  %142 = shl i32 1, %141
  %143 = and i32 %140, %142
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %150

145:                                              ; preds = %136
  %146 = load i32, ptr %16, align 4, !tbaa !8
  %147 = load i32, ptr %15, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %148
  store i32 %146, ptr %149, align 4, !tbaa !8
  store i32 13, ptr %14, align 4
  br label %154

150:                                              ; preds = %136
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %16, align 4, !tbaa !8
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %16, align 4, !tbaa !8
  br label %131, !llvm.loop !21

154:                                              ; preds = %145, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %15, align 4, !tbaa !8
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %15, align 4, !tbaa !8
  br label %126, !llvm.loop !22

159:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %160

160:                                              ; preds = %355, %159
  %161 = load i32, ptr %19, align 4, !tbaa !8
  %162 = icmp slt i32 %161, 4
  br i1 %162, label %164, label %163

163:                                              ; preds = %160
  store i32 16, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %358

164:                                              ; preds = %160
  %165 = load i32, ptr %19, align 4, !tbaa !8
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %166) #7
  %168 = load i32, ptr %167, align 4, !tbaa !8
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %171, label %170

170:                                              ; preds = %164
  br label %355

171:                                              ; preds = %164
  %172 = load i32, ptr %19, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !8
  store i32 %175, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %340, %171
  %177 = load i32, ptr %20, align 4, !tbaa !8
  %178 = icmp slt i32 %177, 4
  br i1 %178, label %180, label %179

179:                                              ; preds = %176
  store i32 19, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %354

180:                                              ; preds = %176
  %181 = load i32, ptr %20, align 4, !tbaa !8
  %182 = load i32, ptr %19, align 4, !tbaa !8
  %183 = icmp eq i32 %181, %182
  br i1 %183, label %184, label %185

184:                                              ; preds = %180
  br label %340

185:                                              ; preds = %180
  %186 = load i32, ptr %20, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %187) #7
  %189 = load i32, ptr %188, align 4, !tbaa !8
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %265, label %191

191:                                              ; preds = %185
  %192 = load i32, ptr %17, align 4, !tbaa !8
  %193 = shl i32 1, %192
  %194 = load i32, ptr %19, align 4, !tbaa !8
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %195) #7
  %197 = load i32, ptr %196, align 4, !tbaa !8
  %198 = xor i32 %197, %193
  store i32 %198, ptr %196, align 4, !tbaa !8
  %199 = load i32, ptr %17, align 4, !tbaa !8
  %200 = shl i32 1, %199
  %201 = load i32, ptr %20, align 4, !tbaa !8
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %202) #7
  %204 = load i32, ptr %203, align 4, !tbaa !8
  %205 = xor i32 %204, %200
  store i32 %205, ptr %203, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %206 = call noundef i64 @_Z5hashhRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %2)
  store i64 %206, ptr %21, align 8, !tbaa !23
  %207 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %208 unwind label %225

208:                                              ; preds = %191
  %209 = icmp ne i64 %207, 0
  br i1 %209, label %210, label %229

210:                                              ; preds = %208
  %211 = load i32, ptr %17, align 4, !tbaa !8
  %212 = shl i32 1, %211
  %213 = load i32, ptr %19, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %214) #7
  %216 = load i32, ptr %215, align 4, !tbaa !8
  %217 = xor i32 %216, %212
  store i32 %217, ptr %215, align 4, !tbaa !8
  %218 = load i32, ptr %17, align 4, !tbaa !8
  %219 = shl i32 1, %218
  %220 = load i32, ptr %20, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %221) #7
  %223 = load i32, ptr %222, align 4, !tbaa !8
  %224 = xor i32 %223, %219
  store i32 %224, ptr %222, align 4, !tbaa !8
  store i32 21, ptr %14, align 4
  br label %263

225:                                              ; preds = %229, %191
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %5, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %6, align 4
  br label %264

229:                                              ; preds = %208
  %230 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %231 unwind label %225

231:                                              ; preds = %229
  %232 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %233 = extractvalue { ptr, i8 } %230, 0
  store ptr %233, ptr %232, align 8
  %234 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %235 = extractvalue { ptr, i8 } %230, 1
  store i8 %235, ptr %234, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %236 = load i32, ptr %13, align 4, !tbaa !8
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %24, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %238 unwind label %254

238:                                              ; preds = %231
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %23)
          to label %239 unwind label %258

239:                                              ; preds = %238
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  %240 = load i32, ptr %17, align 4, !tbaa !8
  %241 = shl i32 1, %240
  %242 = load i32, ptr %19, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %243) #7
  %245 = load i32, ptr %244, align 4, !tbaa !8
  %246 = xor i32 %245, %241
  store i32 %246, ptr %244, align 4, !tbaa !8
  %247 = load i32, ptr %17, align 4, !tbaa !8
  %248 = shl i32 1, %247
  %249 = load i32, ptr %20, align 4, !tbaa !8
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %250) #7
  %252 = load i32, ptr %251, align 4, !tbaa !8
  %253 = xor i32 %252, %248
  store i32 %253, ptr %251, align 4, !tbaa !8
  store i32 21, ptr %14, align 4
  br label %263

254:                                              ; preds = %231
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %5, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %6, align 4
  br label %262

258:                                              ; preds = %238
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %5, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %6, align 4
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #7
  br label %262

262:                                              ; preds = %258, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  br label %264

263:                                              ; preds = %239, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %340

264:                                              ; preds = %262, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %353

265:                                              ; preds = %185
  %266 = load i32, ptr %20, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !8
  store i32 %269, ptr %18, align 4, !tbaa !8
  %270 = load i32, ptr %18, align 4, !tbaa !8
  %271 = load i32, ptr %17, align 4, !tbaa !8
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %273, label %274

273:                                              ; preds = %265
  br label %340

274:                                              ; preds = %265
  %275 = load i32, ptr %17, align 4, !tbaa !8
  %276 = shl i32 1, %275
  %277 = load i32, ptr %19, align 4, !tbaa !8
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %278) #7
  %280 = load i32, ptr %279, align 4, !tbaa !8
  %281 = xor i32 %280, %276
  store i32 %281, ptr %279, align 4, !tbaa !8
  %282 = load i32, ptr %17, align 4, !tbaa !8
  %283 = shl i32 1, %282
  %284 = load i32, ptr %20, align 4, !tbaa !8
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %285) #7
  %287 = load i32, ptr %286, align 4, !tbaa !8
  %288 = xor i32 %287, %283
  store i32 %288, ptr %286, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %289 = call noundef i64 @_Z5hashhRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %2)
  store i64 %289, ptr %25, align 8, !tbaa !23
  %290 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %291 unwind label %308

291:                                              ; preds = %274
  %292 = icmp ne i64 %290, 0
  br i1 %292, label %293, label %312

293:                                              ; preds = %291
  %294 = load i32, ptr %17, align 4, !tbaa !8
  %295 = shl i32 1, %294
  %296 = load i32, ptr %19, align 4, !tbaa !8
  %297 = sext i32 %296 to i64
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %297) #7
  %299 = load i32, ptr %298, align 4, !tbaa !8
  %300 = xor i32 %299, %295
  store i32 %300, ptr %298, align 4, !tbaa !8
  %301 = load i32, ptr %17, align 4, !tbaa !8
  %302 = shl i32 1, %301
  %303 = load i32, ptr %20, align 4, !tbaa !8
  %304 = sext i32 %303 to i64
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %304) #7
  %306 = load i32, ptr %305, align 4, !tbaa !8
  %307 = xor i32 %306, %302
  store i32 %307, ptr %305, align 4, !tbaa !8
  store i32 21, ptr %14, align 4
  br label %337

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

312:                                              ; preds = %291
  %313 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %314 unwind label %308

314:                                              ; preds = %312
  %315 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %316 = extractvalue { ptr, i8 } %313, 0
  store ptr %316, ptr %315, align 8
  %317 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %318 = extractvalue { ptr, i8 } %313, 1
  store i8 %318, ptr %317, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %319 = load i32, ptr %13, align 4, !tbaa !8
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %28, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %321 unwind label %343

321:                                              ; preds = %314
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %27)
          to label %322 unwind label %347

322:                                              ; preds = %321
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  %323 = load i32, ptr %17, align 4, !tbaa !8
  %324 = shl i32 1, %323
  %325 = load i32, ptr %19, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %326) #7
  %328 = load i32, ptr %327, align 4, !tbaa !8
  %329 = xor i32 %328, %324
  store i32 %329, ptr %327, align 4, !tbaa !8
  %330 = load i32, ptr %17, align 4, !tbaa !8
  %331 = shl i32 1, %330
  %332 = load i32, ptr %20, align 4, !tbaa !8
  %333 = sext i32 %332 to i64
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %333) #7
  %335 = load i32, ptr %334, align 4, !tbaa !8
  %336 = xor i32 %335, %331
  store i32 %336, ptr %334, align 4, !tbaa !8
  store i32 0, ptr %14, align 4
  br label %337

337:                                              ; preds = %322, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %338 = load i32, ptr %14, align 4
  switch i32 %338, label %371 [
    i32 0, label %339
    i32 21, label %340
  ]

339:                                              ; preds = %337
  br label %340

340:                                              ; preds = %339, %337, %273, %263, %184
  %341 = load i32, ptr %20, align 4, !tbaa !8
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %20, align 4, !tbaa !8
  br label %176, !llvm.loop !25

343:                                              ; preds = %314
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %5, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %6, align 4
  br label %351

347:                                              ; preds = %321
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %5, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %6, align 4
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %27) #7
  br label %351

351:                                              ; preds = %347, %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %352

352:                                              ; preds = %351, %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %353

353:                                              ; preds = %352, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %362

354:                                              ; preds = %179
  br label %355

355:                                              ; preds = %354, %170
  %356 = load i32, ptr %19, align 4, !tbaa !8
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %19, align 4, !tbaa !8
  br label %160, !llvm.loop !26

358:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %87, !llvm.loop !27

359:                                              ; preds = %89
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %360

360:                                              ; preds = %359, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  %361 = load i32, ptr %1, align 4
  ret i32 %361

362:                                              ; preds = %353, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %363

363:                                              ; preds = %362, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %364

364:                                              ; preds = %363, %66
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  br label %365

365:                                              ; preds = %364, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %366

366:                                              ; preds = %365
  %367 = load ptr, ptr %5, align 8
  %368 = load i32, ptr %6, align 4
  %369 = insertvalue { ptr, i32 } poison, ptr %367, 0
  %370 = insertvalue { ptr, i32 } %369, i32 %368, 1
  resume { ptr, i32 } %370

371:                                              ; preds = %337
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::vector<int>, int>, std::allocator<std::pair<std::vector<int>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }
%"struct.std::pair" = type <{ %"class.std::vector", i32, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@n = external dso_local global i32, align 4
@vis = external dso_local global %"class.std::unordered_set", align 8
@fin = external dso_local local_unnamed_addr global i32, align 4
@q = external dso_local global %"class.std::queue", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; 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 #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::allocator.5", align 1
  %4 = alloca i32, align 4
  %5 = alloca [4 x i32], align 16
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %22
  %24 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %26 unwind label %31

26:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %27 = load i32, ptr @n, align 4, !tbaa !8
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %.preheader98.thread

.preheader98:                                     ; preds = %34
  %29 = icmp sgt i32 %43, 0
  br i1 %29, label %.lr.ph111.preheader, label %.preheader98.thread

.lr.ph111.preheader:                              ; preds = %.preheader98
  %fin.promoted = load i32, ptr @fin, align 4, !tbaa !8
  %xtraiter = and i32 %43, 7
  %30 = icmp ult i32 %43, 8
  br i1 %30, label %._crit_edge.unr-lcssa, label %.lr.ph111.preheader.new

.lr.ph111.preheader.new:                          ; preds = %.lr.ph111.preheader
  %unroll_iter = and i32 %43, 2147483640
  br label %.lr.ph111

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %219

.lr.ph:                                           ; preds = %26, %34
  %.068109 = phi i32 [ %42, %34 ], [ 0, %26 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %33 = 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 %34 unwind label %45

34:                                               ; preds = %.lr.ph
  %35 = load i32, ptr %4, align 4, !tbaa !8
  %36 = add nsw i32 %35, -1
  store i32 %36, ptr %4, align 4, !tbaa !8
  %37 = shl nuw i32 1, %.068109
  %38 = sext i32 %36 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %38) #7
  %40 = load i32, ptr %39, align 4, !tbaa !8
  %41 = or i32 %40, %37
  store i32 %41, ptr %39, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %42 = add nuw nsw i32 %.068109, 1
  %43 = load i32, ptr @n, align 4, !tbaa !8
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph, label %.preheader98, !llvm.loop !11

45:                                               ; preds = %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %218

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph111, %.lr.ph111.preheader
  %.lcssa197.ph = phi i32 [ poison, %.lr.ph111.preheader ], [ %67, %.lr.ph111 ]
  %.071110.unr = phi i32 [ 0, %.lr.ph111.preheader ], [ %68, %.lr.ph111 ]
  %.unr = phi i32 [ %fin.promoted, %.lr.ph111.preheader ], [ %67, %.lr.ph111 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph111.epil

.lr.ph111.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph111.epil
  %.071110.epil = phi i32 [ %50, %.lr.ph111.epil ], [ %.071110.unr, %._crit_edge.unr-lcssa ]
  %47 = phi i32 [ %49, %.lr.ph111.epil ], [ %.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph111.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %48 = shl nuw i32 1, %.071110.epil
  %49 = or i32 %47, %48
  %50 = add nuw nsw i32 %.071110.epil, 1
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph111.epil, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph111.epil, %._crit_edge.unr-lcssa
  %.lcssa197 = phi i32 [ %.lcssa197.ph, %._crit_edge.unr-lcssa ], [ %49, %.lr.ph111.epil ]
  store i32 %.lcssa197, ptr @fin, align 4, !tbaa !8
  br label %.preheader98.thread

.preheader98.thread:                              ; preds = %26, %._crit_edge, %.preheader98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %69 unwind label %92

.lr.ph111:                                        ; preds = %.lr.ph111, %.lr.ph111.preheader.new
  %.071110 = phi i32 [ 0, %.lr.ph111.preheader.new ], [ %68, %.lr.ph111 ]
  %51 = phi i32 [ %fin.promoted, %.lr.ph111.preheader.new ], [ %67, %.lr.ph111 ]
  %niter = phi i32 [ 0, %.lr.ph111.preheader.new ], [ %niter.next.7, %.lr.ph111 ]
  %52 = shl nuw i32 1, %.071110
  %53 = or i32 %51, %52
  %54 = shl nuw i32 2, %.071110
  %55 = or i32 %53, %54
  %56 = shl nuw i32 4, %.071110
  %57 = or i32 %55, %56
  %58 = shl nuw i32 8, %.071110
  %59 = or i32 %57, %58
  %60 = shl nuw i32 16, %.071110
  %61 = or i32 %59, %60
  %62 = shl nuw i32 32, %.071110
  %63 = or i32 %61, %62
  %64 = shl nuw i32 64, %.071110
  %65 = or i32 %63, %64
  %66 = shl nuw i32 128, %.071110
  %67 = or i32 %65, %66
  %68 = add nuw nsw i32 %.071110, 8
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.unr-lcssa, label %.lr.ph111, !llvm.loop !15

69:                                               ; preds = %.preheader98.thread
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %70 unwind label %94

70:                                               ; preds = %69
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %71 = call noundef zeroext i1 @_ZNKSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
  br i1 %71, label %.loopexit96, label %.lr.ph120.preheader

.lr.ph120.preheader:                              ; preds = %70
  %72 = getelementptr inbounds i8, ptr %5, i64 4
  %73 = getelementptr inbounds i8, ptr %5, i64 8
  %74 = getelementptr inbounds i8, ptr %5, i64 12
  br label %.lr.ph120

.loopexit94:                                      ; preds = %.loopexit
  %75 = call noundef zeroext i1 @_ZNKSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
  br i1 %75, label %.loopexit96, label %.lr.ph120, !llvm.loop !16

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %.loopexit94
  %76 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
  %77 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %78 unwind label %.loopexit97

78:                                               ; preds = %.lr.ph120
  %79 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
  %80 = getelementptr inbounds i8, ptr %79, i64 24
  %81 = load i32, ptr %80, align 8, !tbaa !17
  call void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @q)
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #7
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %84 = load i32, ptr @fin, align 4, !tbaa !8
  %85 = icmp eq i32 %83, %84
  br i1 %85, label %88, label %.preheader95

.preheader95:                                     ; preds = %78
  %86 = load i32, ptr @n, align 4, !tbaa !8
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph114, label %.preheader93

88:                                               ; preds = %78
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %81)
          to label %90 unwind label %.loopexit.split-lp

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit96 unwind label %.loopexit.split-lp

92:                                               ; preds = %.preheader98.thread
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %69
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #7
  br label %96

96:                                               ; preds = %94, %92
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %217

.loopexit97:                                      ; preds = %.lr.ph120
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %217

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

.preheader93:                                     ; preds = %136, %.loopexit92, %.loopexit92.1, %.loopexit92.2, %135, %.preheader95
  %97 = add nsw i32 %81, 1
  br label %140

.lr.ph114:                                        ; preds = %.preheader95, %103
  %.072113 = phi i32 [ %104, %103 ], [ 0, %.preheader95 ]
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #7
  %99 = load i32, ptr %98, align 4, !tbaa !8
  %100 = shl nuw i32 1, %.072113
  %101 = and i32 %99, %100
  %.not85 = icmp eq i32 %101, 0
  br i1 %.not85, label %103, label %102

102:                                              ; preds = %.lr.ph114
  store i32 %.072113, ptr %5, align 16, !tbaa !8
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %.loopexit92

103:                                              ; preds = %.lr.ph114
  %104 = add nuw nsw i32 %.072113, 1
  %105 = load i32, ptr @n, align 4, !tbaa !8
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %.lr.ph114, label %.loopexit92, !llvm.loop !24

.loopexit92:                                      ; preds = %103, %102
  %107 = phi i32 [ %.pre, %102 ], [ %105, %103 ]
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph114.1, label %.preheader93

.lr.ph114.1:                                      ; preds = %.loopexit92, %114
  %.072113.1 = phi i32 [ %115, %114 ], [ 0, %.loopexit92 ]
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #7
  %110 = load i32, ptr %109, align 4, !tbaa !8
  %111 = shl nuw i32 1, %.072113.1
  %112 = and i32 %110, %111
  %.not85.1 = icmp eq i32 %112, 0
  br i1 %.not85.1, label %114, label %113

113:                                              ; preds = %.lr.ph114.1
  store i32 %.072113.1, ptr %72, align 4, !tbaa !8
  %.pre140 = load i32, ptr @n, align 4, !tbaa !8
  br label %.loopexit92.1

114:                                              ; preds = %.lr.ph114.1
  %115 = add nuw nsw i32 %.072113.1, 1
  %116 = load i32, ptr @n, align 4, !tbaa !8
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %.lr.ph114.1, label %.loopexit92.1, !llvm.loop !24

.loopexit92.1:                                    ; preds = %114, %113
  %118 = phi i32 [ %.pre140, %113 ], [ %116, %114 ]
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph114.2, label %.preheader93

.lr.ph114.2:                                      ; preds = %.loopexit92.1, %125
  %.072113.2 = phi i32 [ %126, %125 ], [ 0, %.loopexit92.1 ]
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2) #7
  %121 = load i32, ptr %120, align 4, !tbaa !8
  %122 = shl nuw i32 1, %.072113.2
  %123 = and i32 %121, %122
  %.not85.2 = icmp eq i32 %123, 0
  br i1 %.not85.2, label %125, label %124

124:                                              ; preds = %.lr.ph114.2
  store i32 %.072113.2, ptr %73, align 8, !tbaa !8
  %.pre141 = load i32, ptr @n, align 4, !tbaa !8
  br label %.loopexit92.2

125:                                              ; preds = %.lr.ph114.2
  %126 = add nuw nsw i32 %.072113.2, 1
  %127 = load i32, ptr @n, align 4, !tbaa !8
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %.lr.ph114.2, label %.loopexit92.2, !llvm.loop !24

.loopexit92.2:                                    ; preds = %125, %124
  %129 = phi i32 [ %.pre141, %124 ], [ %127, %125 ]
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %.lr.ph114.3, label %.preheader93

.lr.ph114.3:                                      ; preds = %.loopexit92.2, %136
  %.072113.3 = phi i32 [ %137, %136 ], [ 0, %.loopexit92.2 ]
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3) #7
  %132 = load i32, ptr %131, align 4, !tbaa !8
  %133 = shl nuw i32 1, %.072113.3
  %134 = and i32 %132, %133
  %.not85.3 = icmp eq i32 %134, 0
  br i1 %.not85.3, label %136, label %135

135:                                              ; preds = %.lr.ph114.3
  store i32 %.072113.3, ptr %74, align 4, !tbaa !8
  br label %.preheader93

136:                                              ; preds = %.lr.ph114.3
  %137 = add nuw nsw i32 %.072113.3, 1
  %138 = load i32, ptr @n, align 4, !tbaa !8
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %.lr.ph114.3, label %.preheader93, !llvm.loop !24

140:                                              ; preds = %.preheader93, %.loopexit
  %indvars.iv136 = phi i64 [ 0, %.preheader93 ], [ %indvars.iv.next137, %.loopexit ]
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv136) #7
  %142 = load i32, ptr %141, align 4, !tbaa !8
  %.not = icmp eq i32 %142, 0
  br i1 %.not, label %.loopexit, label %143

143:                                              ; preds = %140
  %144 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %indvars.iv136
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %146 = shl nuw i32 1, %145
  br label %147

147:                                              ; preds = %143, %210
  %indvars.iv = phi i64 [ 0, %143 ], [ %indvars.iv.next, %210 ]
  %148 = icmp eq i64 %indvars.iv, %indvars.iv136
  br i1 %148, label %210, label %149

149:                                              ; preds = %147
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %151 = load i32, ptr %150, align 4, !tbaa !8
  %.not75 = icmp eq i32 %151, 0
  br i1 %.not75, label %152, label %182

152:                                              ; preds = %149
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv136) #7
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = xor i32 %154, %146
  store i32 %155, ptr %153, align 4, !tbaa !8
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %157 = load i32, ptr %156, align 4, !tbaa !8
  %158 = xor i32 %157, %146
  store i32 %158, ptr %156, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %159 = call noundef i64 @_Z5hashhRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i64 %159, ptr %8, align 8, !tbaa !25
  %160 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %161 unwind label %162

161:                                              ; preds = %152
  %.not76 = icmp eq i64 %160, 0
  br i1 %.not76, label %164, label %174

162:                                              ; preds = %164, %152
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %181

164:                                              ; preds = %161
  %165 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %166 unwind label %162

166:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 %97, ptr %10, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %167 unwind label %169

167:                                              ; preds = %166
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %9)
          to label %168 unwind label %171

168:                                              ; preds = %167
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %174

169:                                              ; preds = %166
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %173

171:                                              ; preds = %167
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #7
  br label %173

173:                                              ; preds = %171, %169
  %.pn77 = phi { ptr, i32 } [ %172, %171 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %181

174:                                              ; preds = %161, %168
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv136) #7
  %176 = load i32, ptr %175, align 4, !tbaa !8
  %177 = xor i32 %176, %146
  store i32 %177, ptr %175, align 4, !tbaa !8
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %179 = load i32, ptr %178, align 4, !tbaa !8
  %180 = xor i32 %179, %146
  store i32 %180, ptr %178, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %210

181:                                              ; preds = %173, %162
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %173 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %217

182:                                              ; preds = %149
  %183 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %indvars.iv
  %184 = load i32, ptr %183, align 4, !tbaa !8
  %185 = icmp slt i32 %184, %145
  br i1 %185, label %210, label %186

186:                                              ; preds = %182
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv136) #7
  %188 = load i32, ptr %187, align 4, !tbaa !8
  %189 = xor i32 %188, %146
  store i32 %189, ptr %187, align 4, !tbaa !8
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %191 = load i32, ptr %190, align 4, !tbaa !8
  %192 = xor i32 %191, %146
  store i32 %192, ptr %190, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %193 = call noundef i64 @_Z5hashhRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i64 %193, ptr %11, align 8, !tbaa !25
  %194 = invoke noundef i64 @_ZNKSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %195 unwind label %196

195:                                              ; preds = %186
  %.not80 = icmp eq i64 %194, 0
  br i1 %.not80, label %198, label %203

196:                                              ; preds = %198, %186
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %216

198:                                              ; preds = %195
  %199 = invoke { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56) @vis, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %200 unwind label %196

200:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 %97, ptr %13, align 4, !tbaa !8
  invoke void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %201 unwind label %211

201:                                              ; preds = %200
  invoke void @_ZNSt5queueISt4pairISt6vectorIiSaIiEEiESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) @q, ptr noundef nonnull align 8 dereferenceable(28) %12)
          to label %202 unwind label %213

202:                                              ; preds = %201
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %203

203:                                              ; preds = %195, %202
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv136) #7
  %205 = load i32, ptr %204, align 4, !tbaa !8
  %206 = xor i32 %205, %146
  store i32 %206, ptr %204, align 4, !tbaa !8
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %208 = load i32, ptr %207, align 4, !tbaa !8
  %209 = xor i32 %208, %146
  store i32 %209, ptr %207, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %210

210:                                              ; preds = %203, %182, %147, %174
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond135.not, label %.loopexit, label %147, !llvm.loop !27

211:                                              ; preds = %200
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %215

213:                                              ; preds = %201
  %214 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIiSaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #7
  br label %215

215:                                              ; preds = %213, %211
  %.pn81 = phi { ptr, i32 } [ %214, %213 ], [ %212, %211 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %216

216:                                              ; preds = %215, %196
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %215 ], [ %197, %196 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %217

.loopexit:                                        ; preds = %210, %140
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next137, 4
  br i1 %exitcond139.not, label %.loopexit94, label %140, !llvm.loop !28

.loopexit96:                                      ; preds = %.loopexit94, %70, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  ret i32 0

217:                                              ; preds = %.loopexit97, %.loopexit.split-lp, %216, %181, %96
  %.pn86.pn = phi { ptr, i32 } [ %.pn, %96 ], [ %.pn81.pn, %216 ], [ %.pn77.pn, %181 ], [ %lpad.loopexit, %.loopexit97 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %218

218:                                              ; preds = %217, %45
  %.pn89 = phi { ptr, i32 } [ %46, %45 ], [ %.pn86.pn, %217 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br label %219

219:                                              ; preds = %218, %31
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %218 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn89.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #5

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRSt6vectorIiSaIiEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIxSt4hashIxESt8equal_toIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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


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