; LLVM IR from xirc/cp-algorithm :: atcoder/abc020/C/main.ll (Z4passl)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.19" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"struct.std::array" = type { [3 x i64] }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@_Z1MB5cxx11 = external dso_local global %"class.std::vector", align 8
@sX = external dso_local global i32, align 4
@sY = external dso_local global i32, align 4
@gX = external dso_local global i32, align 4
@gY = external dso_local global i32, align 4
@dx = external dso_local global %"class.std::vector.0", align 8
@dy = external dso_local global %"class.std::vector.0", align 8

; 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 zeroext i1 @_Z4passl(i64 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::priority_queue", align 8
  %5 = alloca %"class.std::vector.10", align 8
  %6 = alloca %"class.std::vector.15", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::allocator.19", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::allocator.12", align 1
  %12 = alloca %"struct.std::array", align 8
  %13 = alloca %"struct.std::array", align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::array", align 8
  store i64 %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  %26 = load i32, ptr @H, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  %28 = load i32, ptr @W, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %30 unwind label %70

30:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %27, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %31 unwind label %74

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %32 = getelementptr inbounds %"struct.std::array", ptr %12, i32 0, i32 0
  store i64 0, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i64, ptr %32, i64 1
  %34 = load i32, ptr @sX, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  store i64 %35, ptr %33, align 8, !tbaa !5
  %36 = getelementptr inbounds i64, ptr %32, i64 2
  %37 = load i32, ptr @sY, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  store i64 %38, ptr %36, align 8, !tbaa !5
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %39 unwind label %79

39:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %40

40:                                               ; preds = %225, %223, %39
  %41 = invoke noundef i64 @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %42 unwind label %83

42:                                               ; preds = %40
  %43 = icmp ne i64 %41, 0
  br i1 %43, label %44, label %228

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %45 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %46 unwind label %87

46:                                               ; preds = %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %45, i64 24, i1 false), !tbaa.struct !13
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %47 unwind label %87

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #5
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = sub nsw i64 0, %49
  store i64 %50, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 1) #5
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 2) #5
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %58) #5
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %59, i64 noundef %61)
          to label %63 unwind label %91

63:                                               ; preds = %47
  %64 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %65 = extractvalue { ptr, i64 } %62, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %67 = extractvalue { ptr, i64 } %62, 1
  store i64 %67, ptr %66, align 8
  %68 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br i1 %68, label %69, label %95

69:                                               ; preds = %63
  store i32 2, ptr %18, align 4
  br label %223, !llvm.loop !15

70:                                               ; preds = %1
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %9, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %10, align 4
  br label %78

74:                                               ; preds = %30
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %9, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  br label %232

79:                                               ; preds = %31
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %231

83:                                               ; preds = %40
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  br label %231

87:                                               ; preds = %46, %44
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %9, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %10, align 4
  br label %227

91:                                               ; preds = %47
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %226

95:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %97) #5
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %98, i64 noundef %100)
          to label %102 unwind label %112

102:                                              ; preds = %95
  %103 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %104 = extractvalue { ptr, i64 } %101, 0
  store ptr %104, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %106 = extractvalue { ptr, i64 } %101, 1
  store i64 %106, ptr %105, align 8
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %207, %102
  %109 = load i32, ptr %20, align 4, !tbaa !9
  %110 = icmp slt i32 %109, 4
  br i1 %110, label %116, label %111

111:                                              ; preds = %108
  store i32 4, ptr %18, align 4
  br label %220

112:                                              ; preds = %95
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %226

116:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %20, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dx, i64 noundef %119) #5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = add nsw i32 %117, %121
  store i32 %122, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dy, i64 noundef %125) #5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = add nsw i32 %123, %127
  store i32 %128, ptr %22, align 4, !tbaa !9
  %129 = load i32, ptr %21, align 4, !tbaa !9
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %135, label %131

131:                                              ; preds = %116
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = load i32, ptr @W, align 4, !tbaa !9
  %134 = icmp sge i32 %132, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %131, %116
  store i32 6, ptr %18, align 4
  br label %204

136:                                              ; preds = %131
  %137 = load i32, ptr %22, align 4, !tbaa !9
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %143, label %139

139:                                              ; preds = %136
  %140 = load i32, ptr %22, align 4, !tbaa !9
  %141 = load i32, ptr @H, align 4, !tbaa !9
  %142 = icmp sge i32 %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %139, %136
  store i32 6, ptr %18, align 4
  br label %204

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %146) #5
  %148 = load i32, ptr %21, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %147, i64 noundef %149)
          to label %151 unwind label %158

151:                                              ; preds = %144
  %152 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %153 = extractvalue { ptr, i64 } %150, 0
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %155 = extractvalue { ptr, i64 } %150, 1
  store i64 %155, ptr %154, align 8
  %156 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br i1 %156, label %157, label %162

157:                                              ; preds = %151
  store i32 6, ptr %18, align 4
  br label %204

158:                                              ; preds = %144
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %219

162:                                              ; preds = %151
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = load i32, ptr @gX, align 4, !tbaa !9
  %165 = icmp eq i32 %163, %164
  br i1 %165, label %166, label %176

166:                                              ; preds = %162
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = load i32, ptr @gY, align 4, !tbaa !9
  %169 = icmp eq i32 %167, %168
  br i1 %169, label %170, label %176

170:                                              ; preds = %166
  %171 = load i64, ptr %14, align 8, !tbaa !5
  %172 = add nsw i64 %171, 1
  %173 = load i32, ptr @T, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = icmp sle i64 %172, %174
  store i1 %175, ptr %2, align 1
  store i32 1, ptr %18, align 4
  br label %204

176:                                              ; preds = %166, %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %177 = load i64, ptr %14, align 8, !tbaa !5
  %178 = load i32, ptr %22, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1MB5cxx11, i64 noundef %179) #5
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %180, i64 noundef %182)
          to label %184 unwind label %210

184:                                              ; preds = %176
  %185 = load i8, ptr %183, align 1, !tbaa !14
  %186 = sext i8 %185 to i32
  %187 = icmp eq i32 %186, 46
  br i1 %187, label %188, label %189

188:                                              ; preds = %184
  br label %191

189:                                              ; preds = %184
  %190 = load i64, ptr %3, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %189, %188
  %192 = phi i64 [ 1, %188 ], [ %190, %189 ]
  %193 = add nsw i64 %177, %192
  store i64 %193, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  %194 = getelementptr inbounds %"struct.std::array", ptr %25, i32 0, i32 0
  %195 = load i64, ptr %24, align 8, !tbaa !5
  %196 = sub nsw i64 0, %195
  store i64 %196, ptr %194, align 8, !tbaa !5
  %197 = getelementptr inbounds i64, ptr %194, i64 1
  %198 = load i32, ptr %21, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  store i64 %199, ptr %197, align 8, !tbaa !5
  %200 = getelementptr inbounds i64, ptr %194, i64 2
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  store i64 %202, ptr %200, align 8, !tbaa !5
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %203 unwind label %214

203:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  store i32 0, ptr %18, align 4
  br label %204

204:                                              ; preds = %203, %170, %157, %143, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %205 = load i32, ptr %18, align 4
  switch i32 %205, label %220 [
    i32 0, label %206
    i32 6, label %207
  ]

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206, %204
  %208 = load i32, ptr %20, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %20, align 4, !tbaa !9
  br label %108, !llvm.loop !17

210:                                              ; preds = %176
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %9, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %10, align 4
  br label %218

214:                                              ; preds = %191
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %9, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %218

218:                                              ; preds = %214, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %219

219:                                              ; preds = %218, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %226

220:                                              ; preds = %204, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %221 = load i32, ptr %18, align 4
  switch i32 %221, label %223 [
    i32 4, label %222
  ]

222:                                              ; preds = %220
  store i32 0, ptr %18, align 4
  br label %223

223:                                              ; preds = %222, %220, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  %224 = load i32, ptr %18, align 4
  switch i32 %224, label %229 [
    i32 0, label %225
    i32 2, label %40
  ]

225:                                              ; preds = %223
  br label %40, !llvm.loop !15

226:                                              ; preds = %219, %112, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %227

227:                                              ; preds = %226, %87
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %231

228:                                              ; preds = %42
  store i1 false, ptr %2, align 1
  store i32 1, ptr %18, align 4
  br label %229

229:                                              ; preds = %228, %223
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %230 = load i1, ptr %2, align 1
  ret i1 %230

231:                                              ; preds = %227, %83, %79
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %232

232:                                              ; preds = %231, %78
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %9, align 8
  %235 = load i32, ptr %10, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 24, !14}
!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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<long, 3>, std::allocator<std::array<long, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.19" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"struct.std::array" = type { [3 x i64] }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@H = external dso_local local_unnamed_addr global i32, align 4
@W = external dso_local local_unnamed_addr global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@_Z1MB5cxx11 = external dso_local global %"class.std::vector", align 8
@sX = external dso_local local_unnamed_addr global i32, align 4
@sY = external dso_local local_unnamed_addr global i32, align 4
@gX = external dso_local local_unnamed_addr global i32, align 4
@gY = external dso_local local_unnamed_addr global i32, align 4
@dx = external dso_local global %"class.std::vector.0", align 8
@dy = external dso_local global %"class.std::vector.0", align 8

; 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 zeroext i1 @_Z4passl(i64 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::priority_queue", align 8
  %3 = alloca %"class.std::vector.10", align 8
  %4 = alloca %"class.std::vector.15", align 8
  %5 = alloca i8, align 1
  %6 = alloca %"class.std::allocator.19", align 1
  %7 = alloca %"class.std::allocator.12", align 1
  %8 = alloca %"struct.std::array", align 8
  %9 = alloca %"struct.std::array", align 8
  %10 = alloca %"struct.std::_Bit_reference", align 8
  %11 = alloca %"struct.std::_Bit_reference", align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::array", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %14 = load i32, ptr @H, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  %15 = load i32, ptr @W, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %52

17:                                               ; preds = %1
  %18 = sext i32 %14 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %18, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %19 unwind label %54

19:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  store i64 0, ptr %8, align 8, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %8, i64 8
  %21 = load i32, ptr @sX, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  store i64 %22, ptr %20, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %8, i64 16
  %24 = load i32, ptr @sY, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  store i64 %25, ptr %23, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %26 unwind label %57

26:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %27 = call noundef i64 @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %.not80 = icmp eq i64 %27, 0
  br i1 %.not80, label %.loopexit74, label %.lr.ph

.lr.ph:                                           ; preds = %26
  %28 = getelementptr inbounds i8, ptr %10, i64 8
  %29 = getelementptr inbounds i8, ptr %11, i64 8
  %30 = getelementptr inbounds i8, ptr %12, i64 8
  %31 = getelementptr inbounds i8, ptr %13, i64 8
  %32 = getelementptr inbounds i8, ptr %13, i64 16
  br label %33

33:                                               ; preds = %.lr.ph, %.loopexit
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %34, i64 24, i1 false), !tbaa.struct !13
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %35 unwind label %59

35:                                               ; preds = %33
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1) #5
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = trunc i64 %39 to i32
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIlLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 2) #5
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = trunc i64 %42 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %sext = shl i64 %42, 32
  %44 = ashr exact i64 %sext, 32
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #5
  %sext50 = shl i64 %39, 32
  %46 = ashr exact i64 %sext50, 32
  %47 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %45, i64 noundef %46)
          to label %48 unwind label %61

48:                                               ; preds = %35
  %49 = extractvalue { ptr, i64 } %47, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i64 } %47, 1
  store i64 %50, ptr %28, align 8
  %51 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br i1 %51, label %.loopexit, label %63, !llvm.loop !15

52:                                               ; preds = %1
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %17
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  br label %214

57:                                               ; preds = %19
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %213

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %212

61:                                               ; preds = %35
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %212

63:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #5
  %65 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %64, i64 noundef %46)
          to label %66 unwind label %78

66:                                               ; preds = %63
  %67 = extractvalue { ptr, i64 } %65, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i64 } %65, 1
  store i64 %68, ptr %29, align 8
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dx, i64 noundef 0) #5
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, %40
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dy, i64 noundef 0) #5
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = add nsw i32 %74, %43
  %76 = icmp sgt i32 %72, -1
  %77 = load i32, ptr @W, align 4
  %.not51 = icmp slt i32 %72, %77
  %or.cond = select i1 %76, i1 %.not51, i1 false
  br i1 %or.cond, label %80, label %106

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %212

80:                                               ; preds = %66
  %81 = icmp sgt i32 %75, -1
  %82 = load i32, ptr @H, align 4
  %.not52 = icmp slt i32 %75, %82
  %or.cond59 = select i1 %81, i1 %.not52, i1 false
  br i1 %or.cond59, label %83, label %106

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %84 = zext nneg i32 %75 to i64
  %85 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %84) #5
  %86 = zext nneg i32 %72 to i64
  %87 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %85, i64 noundef %86)
          to label %88 unwind label %92

88:                                               ; preds = %83
  %89 = extractvalue { ptr, i64 } %87, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i64 } %87, 1
  store i64 %90, ptr %30, align 8
  %91 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br i1 %91, label %106, label %94

92:                                               ; preds = %184, %151, %118, %83
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %212

94:                                               ; preds = %88
  %95 = load i32, ptr @gX, align 4, !tbaa !5
  %96 = icmp eq i32 %72, %95
  %97 = load i32, ptr @gY, align 4
  %98 = icmp eq i32 %75, %97
  %or.cond61 = select i1 %96, i1 %98, i1 false
  br i1 %or.cond61, label %.thread71, label %99

99:                                               ; preds = %94
  %100 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1MB5cxx11, i64 noundef %84) #5
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %100, i64 noundef %86)
  %102 = load i8, ptr %101, align 1, !tbaa !14
  %103 = icmp eq i8 %102, 46
  %104 = select i1 %103, i64 1, i64 %0
  %.neg = sub i64 %37, %104
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  store i64 %.neg, ptr %13, align 8, !tbaa !11
  store i64 %86, ptr %31, align 8, !tbaa !11
  store i64 %84, ptr %32, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %105 unwind label %205

105:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %106

106:                                              ; preds = %105, %66, %80, %88
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dx, i64 noundef 1) #5
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %108, %40
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dy, i64 noundef 1) #5
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %111, %43
  %113 = icmp sgt i32 %109, -1
  %114 = load i32, ptr @W, align 4
  %.not51.1 = icmp slt i32 %109, %114
  %or.cond.1 = select i1 %113, i1 %.not51.1, i1 false
  br i1 %or.cond.1, label %115, label %139

115:                                              ; preds = %106
  %116 = icmp sgt i32 %112, -1
  %117 = load i32, ptr @H, align 4
  %.not52.1 = icmp slt i32 %112, %117
  %or.cond59.1 = select i1 %116, i1 %.not52.1, i1 false
  br i1 %or.cond59.1, label %118, label %139

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %119 = zext nneg i32 %112 to i64
  %120 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %119) #5
  %121 = zext nneg i32 %109 to i64
  %122 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %120, i64 noundef %121)
          to label %123 unwind label %92

123:                                              ; preds = %118
  %124 = extractvalue { ptr, i64 } %122, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i64 } %122, 1
  store i64 %125, ptr %30, align 8
  %126 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br i1 %126, label %139, label %127

127:                                              ; preds = %123
  %128 = load i32, ptr @gX, align 4, !tbaa !5
  %129 = icmp eq i32 %109, %128
  %130 = load i32, ptr @gY, align 4
  %131 = icmp eq i32 %112, %130
  %or.cond61.1 = select i1 %129, i1 %131, i1 false
  br i1 %or.cond61.1, label %.thread71, label %132

132:                                              ; preds = %127
  %133 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1MB5cxx11, i64 noundef %119) #5
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %133, i64 noundef %121)
  %135 = load i8, ptr %134, align 1, !tbaa !14
  %136 = icmp eq i8 %135, 46
  %137 = select i1 %136, i64 1, i64 %0
  %.neg.1 = sub i64 %37, %137
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  store i64 %.neg.1, ptr %13, align 8, !tbaa !11
  store i64 %121, ptr %31, align 8, !tbaa !11
  store i64 %119, ptr %32, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %138 unwind label %205

138:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %139

139:                                              ; preds = %138, %123, %115, %106
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dx, i64 noundef 2) #5
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = add nsw i32 %141, %40
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dy, i64 noundef 2) #5
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = add nsw i32 %144, %43
  %146 = icmp sgt i32 %142, -1
  %147 = load i32, ptr @W, align 4
  %.not51.2 = icmp slt i32 %142, %147
  %or.cond.2 = select i1 %146, i1 %.not51.2, i1 false
  br i1 %or.cond.2, label %148, label %172

148:                                              ; preds = %139
  %149 = icmp sgt i32 %145, -1
  %150 = load i32, ptr @H, align 4
  %.not52.2 = icmp slt i32 %145, %150
  %or.cond59.2 = select i1 %149, i1 %.not52.2, i1 false
  br i1 %or.cond59.2, label %151, label %172

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %152 = zext nneg i32 %145 to i64
  %153 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %152) #5
  %154 = zext nneg i32 %142 to i64
  %155 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %153, i64 noundef %154)
          to label %156 unwind label %92

156:                                              ; preds = %151
  %157 = extractvalue { ptr, i64 } %155, 0
  store ptr %157, ptr %12, align 8
  %158 = extractvalue { ptr, i64 } %155, 1
  store i64 %158, ptr %30, align 8
  %159 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br i1 %159, label %172, label %160

160:                                              ; preds = %156
  %161 = load i32, ptr @gX, align 4, !tbaa !5
  %162 = icmp eq i32 %142, %161
  %163 = load i32, ptr @gY, align 4
  %164 = icmp eq i32 %145, %163
  %or.cond61.2 = select i1 %162, i1 %164, i1 false
  br i1 %or.cond61.2, label %.thread71, label %165

165:                                              ; preds = %160
  %166 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1MB5cxx11, i64 noundef %152) #5
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %166, i64 noundef %154)
  %168 = load i8, ptr %167, align 1, !tbaa !14
  %169 = icmp eq i8 %168, 46
  %170 = select i1 %169, i64 1, i64 %0
  %.neg.2 = sub i64 %37, %170
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  store i64 %.neg.2, ptr %13, align 8, !tbaa !11
  store i64 %154, ptr %31, align 8, !tbaa !11
  store i64 %152, ptr %32, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %171 unwind label %205

171:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %172

172:                                              ; preds = %171, %156, %148, %139
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dx, i64 noundef 3) #5
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = add nsw i32 %174, %40
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dy, i64 noundef 3) #5
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = add nsw i32 %177, %43
  %179 = icmp sgt i32 %175, -1
  %180 = load i32, ptr @W, align 4
  %.not51.3 = icmp slt i32 %175, %180
  %or.cond.3 = select i1 %179, i1 %.not51.3, i1 false
  br i1 %or.cond.3, label %181, label %.loopexit

181:                                              ; preds = %172
  %182 = icmp sgt i32 %178, -1
  %183 = load i32, ptr @H, align 4
  %.not52.3 = icmp slt i32 %178, %183
  %or.cond59.3 = select i1 %182, i1 %.not52.3, i1 false
  br i1 %or.cond59.3, label %184, label %.loopexit

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %185 = zext nneg i32 %178 to i64
  %186 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %185) #5
  %187 = zext nneg i32 %175 to i64
  %188 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %186, i64 noundef %187)
          to label %189 unwind label %92

189:                                              ; preds = %184
  %190 = extractvalue { ptr, i64 } %188, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i64 } %188, 1
  store i64 %191, ptr %30, align 8
  %192 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br i1 %192, label %.loopexit, label %193

193:                                              ; preds = %189
  %194 = load i32, ptr @gX, align 4, !tbaa !5
  %195 = icmp eq i32 %175, %194
  %196 = load i32, ptr @gY, align 4
  %197 = icmp eq i32 %178, %196
  %or.cond61.3 = select i1 %195, i1 %197, i1 false
  br i1 %or.cond61.3, label %.thread71, label %198

198:                                              ; preds = %193
  %199 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1MB5cxx11, i64 noundef %185) #5
  %200 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %199, i64 noundef %187)
  %201 = load i8, ptr %200, align 1, !tbaa !14
  %202 = icmp eq i8 %201, 46
  %203 = select i1 %202, i64 1, i64 %0
  %.neg.3 = sub i64 %37, %203
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  store i64 %.neg.3, ptr %13, align 8, !tbaa !11
  store i64 %187, ptr %31, align 8, !tbaa !11
  store i64 %185, ptr %32, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %204 unwind label %205

204:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %.loopexit

205:                                              ; preds = %198, %165, %132, %99
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %212

.thread71:                                        ; preds = %193, %160, %127, %94
  %207 = sub i64 1, %37
  %208 = load i32, ptr @T, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = icmp sle i64 %207, %209
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %.loopexit74

.loopexit:                                        ; preds = %172, %181, %189, %204, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  %211 = call noundef i64 @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %.not = icmp eq i64 %211, 0
  br i1 %.not, label %.loopexit74, label %33

212:                                              ; preds = %61, %78, %205, %92, %59
  %.pn53.pn.pn = phi { ptr, i32 } [ %60, %59 ], [ %79, %78 ], [ %62, %61 ], [ %206, %205 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %213

.loopexit74:                                      ; preds = %.loopexit, %26, %.thread71
  %.5 = phi i1 [ %210, %.thread71 ], [ false, %26 ], [ false, %.loopexit ]
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %.5

213:                                              ; preds = %212, %57
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %212 ], [ %58, %57 ]
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %214

214:                                              ; preds = %213, %56
  %.pn53.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn.pn, %213 ], [ %.pn, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn53.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) 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 uwtable
declare dso_local void @_ZNSt14priority_queueISt5arrayIlLm3EESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { nounwind }

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

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


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