; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ/1180.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.node = type { i32, i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<node, std::allocator<node>>::_Deque_impl" }
%"struct.std::_Deque_base<node, std::allocator<node>>::_Deque_impl" = type { %"struct.std::_Deque_base<node, std::allocator<node>>::_Deque_impl_data" }
%"struct.std::_Deque_base<node, std::allocator<node>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@dx = external dso_local global [4 x i32], align 16
@dy = external dso_local global [4 x i32], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@flag = external dso_local global i32, align 4
@Count = external dso_local global i32, align 4
@map = external dso_local global [200 x [200 x i8]], align 16
@mark = external dso_local global [200 x [200 x i32]], align 16
@st = external dso_local global %struct.node, align 4
@ed = external dso_local global %struct.node, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3bfsv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.node, align 4
  %5 = alloca %struct.node, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr %1) #6
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  invoke void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) @st)
          to label %9 unwind label %41

9:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 100000000, ptr %6, align 4, !tbaa !5
  %10 = load i32, ptr @st, align 4, !tbaa !9
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %11
  %13 = load i32, ptr getelementptr inbounds (%struct.node, ptr @st, i32 0, i32 1), align 4, !tbaa !11
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [200 x i32], ptr %12, i64 0, i64 %14
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %329, %9
  %17 = invoke noundef zeroext i1 @_ZNKSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %18 unwind label %45

18:                                               ; preds = %16
  %19 = xor i1 %17, true
  br i1 %19, label %20, label %330

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %22 unwind label %45

22:                                               ; preds = %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !12
  invoke void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %23 unwind label %45

23:                                               ; preds = %22
  %24 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 0
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = load i32, ptr @ed, align 4, !tbaa !9
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %50

28:                                               ; preds = %23
  %29 = load i32, ptr getelementptr inbounds (%struct.node, ptr @ed, i32 0, i32 1), align 4, !tbaa !11
  %30 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = icmp eq i32 %29, %31
  br i1 %32, label %33, label %50

33:                                               ; preds = %28
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %37 = icmp sgt i32 %34, %36
  br i1 %37, label %38, label %49

38:                                               ; preds = %33
  %39 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !13
  store i32 %40, ptr %6, align 4, !tbaa !5
  br label %49

41:                                               ; preds = %0
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %2, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %3, align 4
  br label %335

45:                                               ; preds = %330, %22, %20, %16
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %2, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %3, align 4
  br label %334

49:                                               ; preds = %38, %33
  br label %50

50:                                               ; preds = %49, %28, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %322, %50
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 4
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %329

55:                                               ; preds = %51
  store i32 0, ptr @flag, align 4, !tbaa !5
  store i32 0, ptr @Count, align 4, !tbaa !5
  %56 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %57, %61
  %63 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  store i32 %62, ptr %63, align 4, !tbaa !9
  %64 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add nsw i32 %65, %69
  %71 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  store i32 %70, ptr %71, align 4, !tbaa !11
  %72 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !13
  %74 = add nsw i32 %73, 1
  %75 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  store i32 %74, ptr %75, align 4, !tbaa !13
  %76 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %78
  %80 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200 x i8], ptr %79, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !14
  %85 = sext i8 %84 to i32
  %86 = icmp eq i32 %85, 124
  br i1 %86, label %99, label %87

87:                                               ; preds = %55
  %88 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [200 x i8], ptr %91, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !14
  %97 = sext i8 %96 to i32
  %98 = icmp eq i32 %97, 45
  br i1 %98, label %99, label %201

99:                                               ; preds = %87, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = getelementptr inbounds %struct.node, ptr %5, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !13
  %103 = srem i32 %102, 2
  %104 = add nsw i32 %100, %103
  store i32 %104, ptr %8, align 4, !tbaa !5
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = icmp eq i32 %105, 4
  br i1 %106, label %107, label %108

107:                                              ; preds = %99
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %107, %99
  store i32 1, ptr @flag, align 4, !tbaa !5
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %114, label %111

111:                                              ; preds = %108
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = icmp eq i32 %112, 3
  br i1 %113, label %114, label %143

114:                                              ; preds = %111, %108
  %115 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %117
  %119 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [200 x i8], ptr %118, i64 0, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !14
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %124, 45
  br i1 %125, label %126, label %143

126:                                              ; preds = %114
  %127 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %128, %132
  %134 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  store i32 %133, ptr %134, align 4, !tbaa !9
  %135 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = add nsw i32 %136, %140
  %142 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  store i32 %141, ptr %142, align 4, !tbaa !11
  br label %200

143:                                              ; preds = %114, %111
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %149, label %146

146:                                              ; preds = %143
  %147 = load i32, ptr %8, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 2
  br i1 %148, label %149, label %178

149:                                              ; preds = %146, %143
  %150 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [200 x i8], ptr %153, i64 0, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !14
  %159 = sext i8 %158 to i32
  %160 = icmp eq i32 %159, 124
  br i1 %160, label %161, label %178

161:                                              ; preds = %149
  %162 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %163, %167
  %169 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  store i32 %168, ptr %169, align 4, !tbaa !9
  %170 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !11
  %172 = load i32, ptr %7, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = add nsw i32 %171, %175
  %177 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  store i32 %176, ptr %177, align 4, !tbaa !11
  br label %199

178:                                              ; preds = %149, %146
  store i32 1, ptr @Count, align 4, !tbaa !5
  %179 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = add nsw i32 %180, %184
  %186 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  store i32 %185, ptr %186, align 4, !tbaa !9
  %187 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %188 = load i32, ptr %187, align 4, !tbaa !11
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = add nsw i32 %188, %192
  %194 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  store i32 %193, ptr %194, align 4, !tbaa !11
  %195 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  %196 = load i32, ptr %195, align 4, !tbaa !13
  %197 = add nsw i32 %196, 1
  %198 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  store i32 %197, ptr %198, align 4, !tbaa !13
  br label %199

199:                                              ; preds = %178, %161
  br label %200

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

201:                                              ; preds = %200, %87
  %202 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = icmp slt i32 %203, 0
  br i1 %204, label %219, label %205

205:                                              ; preds = %201
  %206 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !11
  %208 = icmp slt i32 %207, 0
  br i1 %208, label %219, label %209

209:                                              ; preds = %205
  %210 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %211 = load i32, ptr %210, align 4, !tbaa !9
  %212 = load i32, ptr @n, align 4, !tbaa !5
  %213 = icmp sge i32 %211, %212
  br i1 %213, label %219, label %214

214:                                              ; preds = %209
  %215 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %216 = load i32, ptr %215, align 4, !tbaa !11
  %217 = load i32, ptr @m, align 4, !tbaa !5
  %218 = icmp sge i32 %216, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %214, %209, %205, %201
  br label %322

220:                                              ; preds = %214
  %221 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %223
  %225 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !11
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [200 x i8], ptr %224, i64 0, i64 %227
  %229 = load i8, ptr %228, align 1, !tbaa !14
  %230 = sext i8 %229 to i32
  %231 = icmp eq i32 %230, 42
  br i1 %231, label %232, label %233

232:                                              ; preds = %220
  br label %322

233:                                              ; preds = %220
  %234 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %236
  %238 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %239 = load i32, ptr %238, align 4, !tbaa !11
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [200 x i32], ptr %237, i64 0, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  %244 = load i32, ptr %243, align 4, !tbaa !13
  %245 = icmp sle i32 %242, %244
  br i1 %245, label %246, label %247

246:                                              ; preds = %233
  br label %322

247:                                              ; preds = %233
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr @flag, align 4, !tbaa !5
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %279

252:                                              ; preds = %249
  %253 = load i32, ptr @Count, align 4, !tbaa !5
  %254 = icmp eq i32 %253, 0
  br i1 %254, label %255, label %279

255:                                              ; preds = %252
  %256 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  %257 = load i32, ptr %256, align 4, !tbaa !13
  %258 = sub nsw i32 %257, 1
  %259 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = load i32, ptr %7, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = mul nsw i32 2, %264
  %266 = sub nsw i32 %260, %265
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %267
  %269 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %270 = load i32, ptr %269, align 4, !tbaa !11
  %271 = load i32, ptr %7, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = mul nsw i32 2, %274
  %276 = sub nsw i32 %270, %275
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [200 x i32], ptr %268, i64 0, i64 %277
  store i32 %258, ptr %278, align 4, !tbaa !5
  br label %310

279:                                              ; preds = %252, %249
  %280 = load i32, ptr @flag, align 4, !tbaa !5
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %309

282:                                              ; preds = %279
  %283 = load i32, ptr @Count, align 4, !tbaa !5
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %309

285:                                              ; preds = %282
  %286 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  %287 = load i32, ptr %286, align 4, !tbaa !13
  %288 = sub nsw i32 %287, 2
  %289 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = load i32, ptr %7, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %292
  %294 = load i32, ptr %293, align 4, !tbaa !5
  %295 = mul nsw i32 2, %294
  %296 = sub nsw i32 %290, %295
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %297
  %299 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %300 = load i32, ptr %299, align 4, !tbaa !11
  %301 = load i32, ptr %7, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %302
  %304 = load i32, ptr %303, align 4, !tbaa !5
  %305 = mul nsw i32 2, %304
  %306 = sub nsw i32 %300, %305
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [200 x i32], ptr %298, i64 0, i64 %307
  store i32 %288, ptr %308, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %285, %282, %279
  br label %310

310:                                              ; preds = %309, %255
  %311 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 2
  %312 = load i32, ptr %311, align 4, !tbaa !13
  %313 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 0
  %314 = load i32, ptr %313, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %315
  %317 = getelementptr inbounds %struct.node, ptr %4, i32 0, i32 1
  %318 = load i32, ptr %317, align 4, !tbaa !11
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [200 x i32], ptr %316, i64 0, i64 %319
  store i32 %312, ptr %320, align 4, !tbaa !5
  invoke void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %321 unwind label %325

321:                                              ; preds = %310
  br label %322

322:                                              ; preds = %321, %246, %232, %219
  %323 = load i32, ptr %7, align 4, !tbaa !5
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %7, align 4, !tbaa !5
  br label %51, !llvm.loop !15

325:                                              ; preds = %310
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %2, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %334

329:                                              ; preds = %54
  br label %16, !llvm.loop !17

330:                                              ; preds = %18
  %331 = load i32, ptr %6, align 4, !tbaa !5
  %332 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %331)
          to label %333 unwind label %45

333:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %1) #6
  ret void

334:                                              ; preds = %325, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  br label %335

335:                                              ; preds = %334, %41
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %1) #6
  br label %336

336:                                              ; preds = %335
  %337 = load ptr, ptr %2, align 8
  %338 = load i32, ptr %3, align 4
  %339 = insertvalue { ptr, i32 } poison, ptr %337, 0
  %340 = insertvalue { ptr, i32 } %339, i32 %338, 1
  resume { ptr, i32 } %340
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5emptyEv(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 @_ZNSt5queueI4nodeSt5dequeIS0_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 @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

declare i32 @printf(ptr noundef, ...) #4

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

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

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

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


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

@dx = external dso_local local_unnamed_addr global [4 x i32], align 16
@dy = external dso_local local_unnamed_addr global [4 x i32], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@flag = external dso_local local_unnamed_addr global i32, align 4
@Count = external dso_local local_unnamed_addr global i32, align 4
@map = external dso_local local_unnamed_addr global [200 x [200 x i8]], align 16
@mark = external dso_local local_unnamed_addr global [200 x [200 x i32]], align 16
@st = external dso_local global %struct.node, align 4
@ed = external dso_local local_unnamed_addr global %struct.node, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3bfsv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca %struct.node, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #6
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  invoke void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) @st)
          to label %3 unwind label %24

3:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  %4 = load i32, ptr @st, align 4, !tbaa !5
  %5 = sext i32 %4 to i64
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @st, i64 4), align 4, !tbaa !10
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %5, i64 %7
  store i32 1, ptr %8, align 4, !tbaa !11
  %9 = call noundef zeroext i1 @_ZNKSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %9, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %10 = getelementptr inbounds i8, ptr %2, i64 4
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  br label %13

.loopexit:                                        ; preds = %86
  %12 = call noundef zeroext i1 @_ZNKSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %12, label %._crit_edge, label %13, !llvm.loop !12

13:                                               ; preds = %.lr.ph, %.loopexit
  %.03859 = phi i32 [ 100000000, %.lr.ph ], [ %.1, %.loopexit ]
  %14 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %.sroa.0.0.copyload = load i32, ptr %14, align 4, !tbaa !11
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 4
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !11
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.8.0.copyload = load i32, ptr %.sroa.8.0..sroa_idx, align 4, !tbaa !11
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %15 = load i32, ptr @ed, align 4, !tbaa !5
  %16 = icmp eq i32 %.sroa.0.0.copyload, %15
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @ed, i64 4), align 4
  %18 = icmp eq i32 %17, %.sroa.6.0.copyload
  %or.cond49 = select i1 %16, i1 %18, i1 false
  %19 = call i32 @llvm.smin.i32(i32 %.03859, i32 %.sroa.8.0.copyload)
  %.1 = select i1 %or.cond49, i32 %19, i32 %.03859
  %20 = add nsw i32 %.sroa.8.0.copyload, 1
  %21 = srem i32 %.sroa.8.0.copyload, 2
  %22 = add nsw i32 %.sroa.8.0.copyload, 2
  %23 = sext i32 %21 to i64
  br label %26

24:                                               ; preds = %0
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %90

26:                                               ; preds = %13, %86
  %indvars.iv = phi i64 [ 0, %13 ], [ %indvars.iv.next, %86 ]
  store i32 0, ptr @flag, align 4, !tbaa !11
  store i32 0, ptr @Count, align 4, !tbaa !11
  %27 = getelementptr inbounds [4 x i32], ptr @dx, i64 0, i64 %indvars.iv
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = add nsw i32 %28, %.sroa.0.0.copyload
  store i32 %29, ptr %2, align 4, !tbaa !5
  %30 = getelementptr inbounds [4 x i32], ptr @dy, i64 0, i64 %indvars.iv
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = add nsw i32 %31, %.sroa.6.0.copyload
  store i32 %32, ptr %10, align 4, !tbaa !10
  store i32 %20, ptr %11, align 4, !tbaa !14
  %33 = sext i32 %29 to i64
  %34 = sext i32 %32 to i64
  %35 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %33, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !15
  switch i8 %36, label %55 [
    i8 124, label %37
    i8 45, label %37
  ]

37:                                               ; preds = %26, %26
  %38 = add nsw i64 %indvars.iv, %23
  %39 = icmp eq i64 %38, 4
  %40 = trunc nsw i64 %38 to i32
  %41 = and i32 %40, -3
  store i32 1, ptr @flag, align 4, !tbaa !11
  %42 = select i1 %39, i32 0, i32 %41
  switch i32 %42, label %.thread [
    i32 1, label %43
    i32 0, label %48
  ]

43:                                               ; preds = %37
  %44 = icmp eq i8 %36, 45
  br i1 %44, label %45, label %.thread

45:                                               ; preds = %43
  %46 = add nsw i32 %29, %28
  store i32 %46, ptr %2, align 4, !tbaa !5
  %47 = add nsw i32 %32, %31
  store i32 %47, ptr %10, align 4, !tbaa !10
  br label %55

48:                                               ; preds = %37
  %49 = icmp eq i8 %36, 124
  br i1 %49, label %50, label %.thread

50:                                               ; preds = %48
  %51 = add nsw i32 %29, %28
  store i32 %51, ptr %2, align 4, !tbaa !5
  %52 = add nsw i32 %32, %31
  store i32 %52, ptr %10, align 4, !tbaa !10
  br label %55

.thread:                                          ; preds = %37, %43, %48
  store i32 1, ptr @Count, align 4, !tbaa !11
  %53 = add nsw i32 %29, %28
  store i32 %53, ptr %2, align 4, !tbaa !5
  %54 = add nsw i32 %32, %31
  store i32 %54, ptr %10, align 4, !tbaa !10
  store i32 %22, ptr %11, align 4, !tbaa !14
  br label %55

55:                                               ; preds = %45, %.thread, %50, %26
  %56 = phi i1 [ true, %45 ], [ false, %.thread ], [ true, %50 ], [ true, %26 ]
  %57 = phi i1 [ false, %45 ], [ true, %.thread ], [ false, %50 ], [ false, %26 ]
  %58 = phi i1 [ true, %45 ], [ true, %.thread ], [ true, %50 ], [ false, %26 ]
  %59 = phi i32 [ %20, %45 ], [ %22, %.thread ], [ %20, %50 ], [ %20, %26 ]
  %60 = phi i32 [ %47, %45 ], [ %54, %.thread ], [ %52, %50 ], [ %32, %26 ]
  %61 = phi i32 [ %46, %45 ], [ %53, %.thread ], [ %51, %50 ], [ %29, %26 ]
  %62 = icmp sgt i32 %61, -1
  %63 = icmp sgt i32 %60, -1
  %or.cond6.not56 = select i1 %62, i1 %63, i1 false
  %64 = load i32, ptr @n, align 4
  %.not = icmp slt i32 %61, %64
  %or.cond51 = select i1 %or.cond6.not56, i1 %.not, i1 false
  %65 = load i32, ptr @m, align 4
  %.not45 = icmp slt i32 %60, %65
  %or.cond52 = select i1 %or.cond51, i1 %.not45, i1 false
  br i1 %or.cond52, label %66, label %86

66:                                               ; preds = %55
  %67 = zext nneg i32 %61 to i64
  %68 = zext nneg i32 %60 to i64
  %69 = getelementptr inbounds [200 x [200 x i8]], ptr @map, i64 0, i64 %67, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !15
  %71 = icmp eq i8 %70, 42
  br i1 %71, label %86, label %72

72:                                               ; preds = %66
  %73 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %67, i64 %68
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %.not46 = icmp sgt i32 %74, %59
  br i1 %.not46, label %75, label %86

75:                                               ; preds = %72
  %or.cond8 = and i1 %58, %56
  br i1 %or.cond8, label %.sink.split, label %76

76:                                               ; preds = %75
  %or.cond10 = and i1 %58, %57
  br i1 %or.cond10, label %.sink.split, label %85

.sink.split:                                      ; preds = %76, %75
  %.sink70 = phi i32 [ -1, %75 ], [ -2, %76 ]
  %77 = add nsw i32 %59, %.sink70
  %78 = shl nsw i32 %28, 1
  %79 = sub nsw i32 %61, %78
  %80 = sext i32 %79 to i64
  %81 = shl nsw i32 %31, 1
  %82 = sub nsw i32 %60, %81
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200 x [200 x i32]], ptr @mark, i64 0, i64 %80, i64 %83
  store i32 %77, ptr %84, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %.sink.split, %76
  store i32 %59, ptr %73, align 4, !tbaa !11
  invoke void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
          to label %86 unwind label %87

86:                                               ; preds = %85, %72, %66, %55
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %.loopexit, label %26, !llvm.loop !16

87:                                               ; preds = %85
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  br label %90

._crit_edge:                                      ; preds = %.loopexit, %3
  %.038.lcssa = phi i32 [ 100000000, %3 ], [ %.1, %.loopexit ]
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.038.lcssa)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #6
  ret void

90:                                               ; preds = %87, %24
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %25, %24 ]
  call void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueI4nodeSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) 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) #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

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


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