; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x29-总结与练习/192. 立体推箱子2.ll (Z3bfsv)

; 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"

%struct.rec = type { i32, i32, i32 }
%"class.std::unordered_map" = 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<rec, std::allocator<rec>>::_Deque_impl" }
%"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl" = type { %"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl_data" }
%"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@st = external dso_local global %struct.rec, align 4
@ed = external dso_local global %struct.rec, align 4
@_ZL6next_x = external hidden constant [3 x [4 x i32]], align 16
@_ZL6next_y = external hidden constant [3 x [4 x i32]], align 16
@_ZL8next_lie = external hidden constant [3 x [4 x i32]], align 16
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [131 x i8], align 1
@__PRETTY_FUNCTION__._Z3bfsv = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3bfsv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::unordered_map", align 8
  %3 = alloca %"class.std::queue", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.rec, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.rec, align 4
  call void @llvm.lifetime.start.p0(i64 56, ptr %2) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %3) #6
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %10 unwind label %20

10:                                               ; preds = %0
  %11 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) @st)
          to label %12 unwind label %24

12:                                               ; preds = %10
  %13 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (%struct.rec, ptr @st, i32 0, i32 1))
          to label %14 unwind label %24

14:                                               ; preds = %12
  %15 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (%struct.rec, ptr @st, i32 0, i32 2))
          to label %16 unwind label %24

16:                                               ; preds = %14
  store i32 0, ptr %15, align 4, !tbaa !5
  %17 = invoke noundef zeroext i1 @_ZNK3receqERKS_(ptr noundef nonnull align 4 dereferenceable(12) @st, ptr noundef nonnull align 4 dereferenceable(12) @ed)
          to label %18 unwind label %24

18:                                               ; preds = %16
  br i1 %17, label %19, label %28

19:                                               ; preds = %18
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %168

20:                                               ; preds = %0
  %21 = landingpad { ptr, i32 }
          cleanup
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %4, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %5, align 4
  br label %171

24:                                               ; preds = %30, %28, %16, %14, %12, %10
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %4, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %5, align 4
  br label %170

28:                                               ; preds = %18
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(12) @st)
          to label %29 unwind label %24

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %165, %29
  %31 = invoke noundef i64 @_ZNKSt5queueI3recSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %32 unwind label %24

32:                                               ; preds = %30
  %33 = icmp ne i64 %31, 0
  br i1 %33, label %34, label %167

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  %35 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %36 unwind label %42

36:                                               ; preds = %34
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !9
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %37 unwind label %42

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

38:                                               ; preds = %157, %37
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 4
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  store i32 4, ptr %6, align 4
  br label %160

42:                                               ; preds = %36, %34
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %4, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %5, align 4
  br label %166

46:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %47 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 0
  %48 = load i32, ptr %47, align 4, !tbaa !10
  %49 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_x, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [4 x i32], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %48, %56
  %58 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  store i32 %57, ptr %58, align 4, !tbaa !10
  %59 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !13
  %61 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_y, i64 0, i64 %63
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [4 x i32], ptr %64, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = add nsw i32 %60, %68
  %70 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  store i32 %69, ptr %70, align 4, !tbaa !13
  %71 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL8next_lie, i64 0, i64 %73
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [4 x i32], ptr %74, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 2
  store i32 %78, ptr %79, align 4, !tbaa !12
  %80 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !10
  %82 = load i32, ptr @st, align 4, !tbaa !10
  %83 = icmp sgt i32 %81, %82
  br i1 %83, label %84, label %90

84:                                               ; preds = %46
  %85 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !13
  %87 = load i32, ptr getelementptr inbounds (%struct.rec, ptr @st, i32 0, i32 1), align 4, !tbaa !13
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  store i32 6, ptr %6, align 4
  br label %154

90:                                               ; preds = %84, %46
  %91 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  %92 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %93 unwind label %148

93:                                               ; preds = %90
  %94 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  %95 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %92, ptr noundef nonnull align 4 dereferenceable(4) %94)
          to label %96 unwind label %148

96:                                               ; preds = %93
  %97 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 2
  %98 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %95, ptr noundef nonnull align 4 dereferenceable(4) %97)
          to label %99 unwind label %148

99:                                               ; preds = %96
  %100 = icmp ne i64 %98, 0
  br i1 %100, label %153, label %101

101:                                              ; preds = %99
  %102 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 0
  %103 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %102)
          to label %104 unwind label %148

104:                                              ; preds = %101
  %105 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 1
  %106 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %103, ptr noundef nonnull align 4 dereferenceable(4) %105)
          to label %107 unwind label %148

107:                                              ; preds = %104
  %108 = getelementptr inbounds %struct.rec, ptr %7, i32 0, i32 2
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %106, ptr noundef nonnull align 4 dereferenceable(4) %108)
          to label %110 unwind label %148

110:                                              ; preds = %107
  %111 = load i32, ptr %109, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  %114 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %113)
          to label %115 unwind label %148

115:                                              ; preds = %110
  %116 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  %117 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %114, ptr noundef nonnull align 4 dereferenceable(4) %116)
          to label %118 unwind label %148

118:                                              ; preds = %115
  %119 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 2
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %117, ptr noundef nonnull align 4 dereferenceable(4) %119)
          to label %121 unwind label %148

121:                                              ; preds = %118
  store i32 %112, ptr %120, align 4, !tbaa !5
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %122 unwind label %148

122:                                              ; preds = %121
  %123 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !10
  %125 = load i32, ptr @ed, align 4, !tbaa !10
  %126 = icmp eq i32 %124, %125
  br i1 %126, label %127, label %152

127:                                              ; preds = %122
  %128 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !13
  %130 = load i32, ptr getelementptr inbounds (%struct.rec, ptr @ed, i32 0, i32 1), align 4, !tbaa !13
  %131 = icmp eq i32 %129, %130
  br i1 %131, label %132, label %152

132:                                              ; preds = %127
  %133 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 2
  %134 = load i32, ptr %133, align 4, !tbaa !12
  %135 = load i32, ptr getelementptr inbounds (%struct.rec, ptr @ed, i32 0, i32 2), align 4, !tbaa !12
  %136 = icmp eq i32 %134, %135
  br i1 %136, label %137, label %152

137:                                              ; preds = %132
  %138 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 0
  %139 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %138)
          to label %140 unwind label %148

140:                                              ; preds = %137
  %141 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 1
  %142 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %139, ptr noundef nonnull align 4 dereferenceable(4) %141)
          to label %143 unwind label %148

143:                                              ; preds = %140
  %144 = getelementptr inbounds %struct.rec, ptr %9, i32 0, i32 2
  %145 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %142, ptr noundef nonnull align 4 dereferenceable(4) %144)
          to label %146 unwind label %148

146:                                              ; preds = %143
  %147 = load i32, ptr %145, align 4, !tbaa !5
  store i32 %147, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %154

148:                                              ; preds = %143, %140, %137, %121, %118, %115, %110, %107, %104, %101, %96, %93, %90
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %4, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %166

152:                                              ; preds = %132, %127, %122
  br label %153

153:                                              ; preds = %152, %99
  store i32 0, ptr %6, align 4
  br label %154

154:                                              ; preds = %153, %146, %89
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  %155 = load i32, ptr %6, align 4
  switch i32 %155, label %160 [
    i32 0, label %156
    i32 6, label %157
  ]

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156, %154
  %158 = load i32, ptr %8, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %8, align 4, !tbaa !5
  br label %38, !llvm.loop !14

160:                                              ; preds = %154, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %161 = load i32, ptr %6, align 4
  switch i32 %161, label %163 [
    i32 4, label %162
  ]

162:                                              ; preds = %160
  store i32 0, ptr %6, align 4
  br label %163

163:                                              ; preds = %162, %160
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  %164 = load i32, ptr %6, align 4
  switch i32 %164, label %168 [
    i32 0, label %165
  ]

165:                                              ; preds = %163
  br label %30, !llvm.loop !16

166:                                              ; preds = %148, %42
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  br label %170

167:                                              ; preds = %32
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 88, ptr noundef @__PRETTY_FUNCTION__._Z3bfsv) #7
  unreachable

168:                                              ; preds = %163, %19
  call void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %2) #6
  %169 = load i32, ptr %1, align 4
  ret i32 %169

170:                                              ; preds = %166, %24
  call void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  br label %171

171:                                              ; preds = %170, %20
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %2) #6
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %4, align 8
  %174 = load i32, ptr %5, align 4
  %175 = insertvalue { ptr, i32 } poison, ptr %173, 0
  %176 = insertvalue { ptr, i32 } %175, i32 %174, 1
  resume { ptr, i32 } %176
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3receqERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

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


; 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"

%struct.rec = type { i32, i32, i32 }
%"class.std::unordered_map" = 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<rec, std::allocator<rec>>::_Deque_impl" }
%"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl" = type { %"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl_data" }
%"struct.std::_Deque_base<rec, std::allocator<rec>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@st = external dso_local global %struct.rec, align 4
@ed = external dso_local global %struct.rec, align 4
@_ZL6next_x = external hidden local_unnamed_addr constant [3 x [4 x i32]], align 16
@_ZL6next_y = external hidden local_unnamed_addr constant [3 x [4 x i32]], align 16
@_ZL8next_lie = external hidden local_unnamed_addr constant [3 x [4 x i32]], align 16
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [131 x i8], align 1
@__PRETTY_FUNCTION__._Z3bfsv = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3bfsv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::unordered_map", align 8
  %2 = alloca %"class.std::queue", align 8
  %3 = alloca %struct.rec, align 4
  %4 = alloca %struct.rec, align 4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %1) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %1) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #6
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
          to label %5 unwind label %13

5:                                                ; preds = %0
  %6 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) @st)
          to label %7 unwind label %15

7:                                                ; preds = %5
  %8 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @st, i64 4))
          to label %9 unwind label %15

9:                                                ; preds = %7
  %10 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @st, i64 8))
          to label %11 unwind label %15

11:                                               ; preds = %9
  store i32 0, ptr %10, align 4, !tbaa !5
  %12 = call noundef zeroext i1 @_ZNK3receqERKS_(ptr noundef nonnull align 4 dereferenceable(12) @st, ptr noundef nonnull align 4 dereferenceable(12) @ed)
  br i1 %12, label %238, label %17

13:                                               ; preds = %0
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %240

15:                                               ; preds = %17, %9, %7, %5
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %239

17:                                               ; preds = %11
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(12) @st)
          to label %.preheader unwind label %15

.preheader:                                       ; preds = %17
  %18 = call noundef i64 @_ZNKSt5queueI3recSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %.not34 = icmp eq i64 %18, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %19 = getelementptr inbounds i8, ptr %3, i64 8
  %20 = getelementptr inbounds i8, ptr %3, i64 4
  %21 = getelementptr inbounds i8, ptr %4, i64 4
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  br label %23

23:                                               ; preds = %.lr.ph, %236
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  %24 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %24, i64 12, i1 false), !tbaa.struct !9
  call void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %25 = load i32, ptr %3, align 4, !tbaa !10
  %26 = load i32, ptr %19, align 4, !tbaa !12
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_x, i64 0, i64 %27, i64 0
  %29 = load i32, ptr %28, align 16, !tbaa !5
  %30 = add nsw i32 %29, %25
  store i32 %30, ptr %4, align 4, !tbaa !10
  %31 = load i32, ptr %20, align 4, !tbaa !13
  %32 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_y, i64 0, i64 %27, i64 0
  %33 = load i32, ptr %32, align 16, !tbaa !5
  %34 = add nsw i32 %33, %31
  store i32 %34, ptr %21, align 4, !tbaa !13
  %35 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL8next_lie, i64 0, i64 %27, i64 0
  %36 = load i32, ptr %35, align 16, !tbaa !5
  store i32 %36, ptr %22, align 4, !tbaa !12
  %37 = load i32, ptr @st, align 4, !tbaa !10
  %38 = icmp sgt i32 %30, %37
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @st, i64 4), align 4
  %40 = icmp slt i32 %34, %39
  %or.cond = select i1 %38, i1 %40, i1 false
  br i1 %or.cond, label %83, label %41

41:                                               ; preds = %23
  %42 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %43 unwind label %.loopexit

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %42, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %45 unwind label %.loopexit

45:                                               ; preds = %43
  %46 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %44, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %47 unwind label %.loopexit

47:                                               ; preds = %45
  %.not18 = icmp eq i64 %46, 0
  br i1 %.not18, label %48, label %83

48:                                               ; preds = %47
  %49 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %50 unwind label %.loopexit

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %51, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %54 unwind label %.loopexit

54:                                               ; preds = %52
  %55 = load i32, ptr %53, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  %57 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %58 unwind label %.loopexit

58:                                               ; preds = %54
  %59 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %60 unwind label %.loopexit

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %59, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %62 unwind label %.loopexit

62:                                               ; preds = %60
  store i32 %56, ptr %61, align 4, !tbaa !5
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %63 unwind label %.loopexit

63:                                               ; preds = %62
  %64 = load i32, ptr %4, align 4, !tbaa !10
  %65 = load i32, ptr @ed, align 4, !tbaa !10
  %66 = icmp eq i32 %64, %65
  br i1 %66, label %67, label %83

67:                                               ; preds = %63
  %68 = load i32, ptr %21, align 4, !tbaa !13
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 4), align 4, !tbaa !13
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %71, label %83

71:                                               ; preds = %67
  %72 = load i32, ptr %22, align 4, !tbaa !12
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 8), align 4, !tbaa !12
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %83

75:                                               ; preds = %232, %181, %130, %71
  %76 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %77 unwind label %.loopexit.split-lp

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %76, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %79 unwind label %.loopexit.split-lp

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %78, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %.thread25 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %223, %221, %219, %215, %213, %211, %209, %206, %204, %202, %172, %170, %168, %164, %162, %160, %158, %155, %153, %151, %121, %119, %117, %113, %111, %109, %107, %104, %102, %100, %41, %43, %45, %48, %50, %52, %54, %58, %60, %62
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %81

.loopexit.split-lp:                               ; preds = %75, %77, %79
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %81

81:                                               ; 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 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  br label %239

.thread25:                                        ; preds = %79
  %82 = load i32, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  br label %238

83:                                               ; preds = %23, %63, %67, %71, %47
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %84 = load i32, ptr %3, align 4, !tbaa !10
  %85 = load i32, ptr %19, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_x, i64 0, i64 %86, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, %84
  store i32 %89, ptr %4, align 4, !tbaa !10
  %90 = load i32, ptr %20, align 4, !tbaa !13
  %91 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_y, i64 0, i64 %86, i64 1
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = add nsw i32 %92, %90
  store i32 %93, ptr %21, align 4, !tbaa !13
  %94 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL8next_lie, i64 0, i64 %86, i64 1
  %95 = load i32, ptr %94, align 4, !tbaa !5
  store i32 %95, ptr %22, align 4, !tbaa !12
  %96 = load i32, ptr @st, align 4, !tbaa !10
  %97 = icmp sgt i32 %89, %96
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @st, i64 4), align 4
  %99 = icmp slt i32 %93, %98
  %or.cond.1 = select i1 %97, i1 %99, i1 false
  br i1 %or.cond.1, label %134, label %100

100:                                              ; preds = %83
  %101 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %102 unwind label %.loopexit

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %101, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %104 unwind label %.loopexit

104:                                              ; preds = %102
  %105 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %103, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %106 unwind label %.loopexit

106:                                              ; preds = %104
  %.not18.1 = icmp eq i64 %105, 0
  br i1 %.not18.1, label %107, label %134

107:                                              ; preds = %106
  %108 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %109 unwind label %.loopexit

109:                                              ; preds = %107
  %110 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %108, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %111 unwind label %.loopexit

111:                                              ; preds = %109
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %110, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %113 unwind label %.loopexit

113:                                              ; preds = %111
  %114 = load i32, ptr %112, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  %116 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %117 unwind label %.loopexit

117:                                              ; preds = %113
  %118 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %116, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %119 unwind label %.loopexit

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %118, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %121 unwind label %.loopexit

121:                                              ; preds = %119
  store i32 %115, ptr %120, align 4, !tbaa !5
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %122 unwind label %.loopexit

122:                                              ; preds = %121
  %123 = load i32, ptr %4, align 4, !tbaa !10
  %124 = load i32, ptr @ed, align 4, !tbaa !10
  %125 = icmp eq i32 %123, %124
  br i1 %125, label %126, label %134

126:                                              ; preds = %122
  %127 = load i32, ptr %21, align 4, !tbaa !13
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 4), align 4, !tbaa !13
  %129 = icmp eq i32 %127, %128
  br i1 %129, label %130, label %134

130:                                              ; preds = %126
  %131 = load i32, ptr %22, align 4, !tbaa !12
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 8), align 4, !tbaa !12
  %133 = icmp eq i32 %131, %132
  br i1 %133, label %75, label %134

134:                                              ; preds = %130, %126, %122, %106, %83
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %135 = load i32, ptr %3, align 4, !tbaa !10
  %136 = load i32, ptr %19, align 4, !tbaa !12
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_x, i64 0, i64 %137, i64 2
  %139 = load i32, ptr %138, align 8, !tbaa !5
  %140 = add nsw i32 %139, %135
  store i32 %140, ptr %4, align 4, !tbaa !10
  %141 = load i32, ptr %20, align 4, !tbaa !13
  %142 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_y, i64 0, i64 %137, i64 2
  %143 = load i32, ptr %142, align 8, !tbaa !5
  %144 = add nsw i32 %143, %141
  store i32 %144, ptr %21, align 4, !tbaa !13
  %145 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL8next_lie, i64 0, i64 %137, i64 2
  %146 = load i32, ptr %145, align 8, !tbaa !5
  store i32 %146, ptr %22, align 4, !tbaa !12
  %147 = load i32, ptr @st, align 4, !tbaa !10
  %148 = icmp sgt i32 %140, %147
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @st, i64 4), align 4
  %150 = icmp slt i32 %144, %149
  %or.cond.2 = select i1 %148, i1 %150, i1 false
  br i1 %or.cond.2, label %185, label %151

151:                                              ; preds = %134
  %152 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %153 unwind label %.loopexit

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %152, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %155 unwind label %.loopexit

155:                                              ; preds = %153
  %156 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %154, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %157 unwind label %.loopexit

157:                                              ; preds = %155
  %.not18.2 = icmp eq i64 %156, 0
  br i1 %.not18.2, label %158, label %185

158:                                              ; preds = %157
  %159 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %160 unwind label %.loopexit

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %162 unwind label %.loopexit

162:                                              ; preds = %160
  %163 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %161, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %164 unwind label %.loopexit

164:                                              ; preds = %162
  %165 = load i32, ptr %163, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  %167 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %168 unwind label %.loopexit

168:                                              ; preds = %164
  %169 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %167, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %170 unwind label %.loopexit

170:                                              ; preds = %168
  %171 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %169, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %172 unwind label %.loopexit

172:                                              ; preds = %170
  store i32 %166, ptr %171, align 4, !tbaa !5
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %173 unwind label %.loopexit

173:                                              ; preds = %172
  %174 = load i32, ptr %4, align 4, !tbaa !10
  %175 = load i32, ptr @ed, align 4, !tbaa !10
  %176 = icmp eq i32 %174, %175
  br i1 %176, label %177, label %185

177:                                              ; preds = %173
  %178 = load i32, ptr %21, align 4, !tbaa !13
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 4), align 4, !tbaa !13
  %180 = icmp eq i32 %178, %179
  br i1 %180, label %181, label %185

181:                                              ; preds = %177
  %182 = load i32, ptr %22, align 4, !tbaa !12
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 8), align 4, !tbaa !12
  %184 = icmp eq i32 %182, %183
  br i1 %184, label %75, label %185

185:                                              ; preds = %181, %177, %173, %157, %134
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %186 = load i32, ptr %3, align 4, !tbaa !10
  %187 = load i32, ptr %19, align 4, !tbaa !12
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_x, i64 0, i64 %188, i64 3
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = add nsw i32 %190, %186
  store i32 %191, ptr %4, align 4, !tbaa !10
  %192 = load i32, ptr %20, align 4, !tbaa !13
  %193 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL6next_y, i64 0, i64 %188, i64 3
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = add nsw i32 %194, %192
  store i32 %195, ptr %21, align 4, !tbaa !13
  %196 = getelementptr inbounds [3 x [4 x i32]], ptr @_ZL8next_lie, i64 0, i64 %188, i64 3
  %197 = load i32, ptr %196, align 4, !tbaa !5
  store i32 %197, ptr %22, align 4, !tbaa !12
  %198 = load i32, ptr @st, align 4, !tbaa !10
  %199 = icmp sgt i32 %191, %198
  %200 = load i32, ptr getelementptr inbounds (i8, ptr @st, i64 4), align 4
  %201 = icmp slt i32 %195, %200
  %or.cond.3 = select i1 %199, i1 %201, i1 false
  br i1 %or.cond.3, label %236, label %202

202:                                              ; preds = %185
  %203 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %204 unwind label %.loopexit

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %203, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %206 unwind label %.loopexit

206:                                              ; preds = %204
  %207 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %205, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %208 unwind label %.loopexit

208:                                              ; preds = %206
  %.not18.3 = icmp eq i64 %207, 0
  br i1 %.not18.3, label %209, label %236

209:                                              ; preds = %208
  %210 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %211 unwind label %.loopexit

211:                                              ; preds = %209
  %212 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %210, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %213 unwind label %.loopexit

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %212, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %215 unwind label %.loopexit

215:                                              ; preds = %213
  %216 = load i32, ptr %214, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  %218 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %219 unwind label %.loopexit

219:                                              ; preds = %215
  %220 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %218, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %221 unwind label %.loopexit

221:                                              ; preds = %219
  %222 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %220, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %223 unwind label %.loopexit

223:                                              ; preds = %221
  store i32 %217, ptr %222, align 4, !tbaa !5
  invoke void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %224 unwind label %.loopexit

224:                                              ; preds = %223
  %225 = load i32, ptr %4, align 4, !tbaa !10
  %226 = load i32, ptr @ed, align 4, !tbaa !10
  %227 = icmp eq i32 %225, %226
  br i1 %227, label %228, label %236

228:                                              ; preds = %224
  %229 = load i32, ptr %21, align 4, !tbaa !13
  %230 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 4), align 4, !tbaa !13
  %231 = icmp eq i32 %229, %230
  br i1 %231, label %232, label %236

232:                                              ; preds = %228
  %233 = load i32, ptr %22, align 4, !tbaa !12
  %234 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 8), align 4, !tbaa !12
  %235 = icmp eq i32 %233, %234
  br i1 %235, label %75, label %236

236:                                              ; preds = %232, %228, %224, %208, %185
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  %237 = call noundef i64 @_ZNKSt5queueI3recSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %.not = icmp eq i64 %237, 0
  br i1 %.not, label %._crit_edge, label %23

._crit_edge:                                      ; preds = %236, %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__._Z3bfsv) #7
  unreachable

238:                                              ; preds = %.thread25, %11
  %.4 = phi i32 [ 0, %11 ], [ %82, %.thread25 ]
  call void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %1) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %1) #6
  ret i32 %.4

239:                                              ; preds = %81, %15
  %.pn = phi { ptr, i32 } [ %lpad.phi, %81 ], [ %16, %15 ]
  call void @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #6
  br label %240

240:                                              ; preds = %239, %13
  %.pn.pn = phi { ptr, i32 } [ %.pn, %239 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #6
  call void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %1) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3receqERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueI3recSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 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) #3

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIiS_IiS_IiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn nounwind "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTS3rec", !6, i64 0, !6, i64 4, !6, i64 8}
!12 = !{!11, !6, i64 8}
!13 = !{!11, !6, i64 4}


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