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

; 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<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::priority_queue" = type <{ %"class.std::vector.0", [8 x i8] }>
%"class.std::initializer_list" = type { ptr, i64 }

@R = external dso_local global i32, align 4
@C = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.std::vector.5", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::allocator.7", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca %"class.std::priority_queue", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [3 x i32], align 4
  %15 = alloca %"class.std::allocator.7", align 1
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::initializer_list", align 8
  %18 = alloca [4 x i32], align 4
  %19 = alloca %"class.std::allocator.7", align 1
  %20 = alloca %"class.std::vector.5", align 8
  %21 = alloca %"class.std::initializer_list", align 8
  %22 = alloca [4 x i32], align 4
  %23 = alloca %"class.std::allocator.7", align 1
  %24 = alloca %"class.std::vector.5", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::vector.5", align 8
  %33 = alloca %"class.std::initializer_list", align 8
  %34 = alloca [3 x i32], align 4
  %35 = alloca %"class.std::allocator.7", align 1
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #5
  %39 = load i32, ptr @R, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #5
  %41 = load i32, ptr @C, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %43 unwind label %51

43:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %44 unwind label %55

44:                                               ; preds = %43
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %45 unwind label %60

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

46:                                               ; preds = %114, %45
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = load i32, ptr @R, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %64, label %50

50:                                               ; preds = %46
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %117

51:                                               ; preds = %0
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %5, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %6, align 4
  br label %59

55:                                               ; preds = %43
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  br label %59

59:                                               ; preds = %55, %51
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  br label %330

60:                                               ; preds = %44
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %329

64:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %109, %64
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = load i32, ptr @C, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %113

70:                                               ; preds = %65
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %72) #5
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %73, i64 noundef %75)
          to label %77 unwind label %95

77:                                               ; preds = %70
  %78 = load i8, ptr %76, align 1, !tbaa !9
  %79 = sext i8 %78 to i32
  %80 = icmp eq i32 %79, 120
  br i1 %80, label %81, label %108

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %82 = load i32, ptr @K, align 4, !tbaa !5
  store i32 %82, ptr %14, align 4, !tbaa !5
  %83 = getelementptr inbounds i32, ptr %14, i64 1
  %84 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %84, ptr %83, align 4, !tbaa !5
  %85 = getelementptr inbounds i32, ptr %14, i64 2
  %86 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %86, ptr %85, align 4, !tbaa !5
  %87 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %87, align 8, !tbaa !10
  %88 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 3, ptr %88, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  %89 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %92 = load i64, ptr %91, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %90, i64 %92, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %93 unwind label %99

93:                                               ; preds = %81
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %94 unwind label %103

94:                                               ; preds = %93
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %108

95:                                               ; preds = %70
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %5, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %6, align 4
  br label %112

99:                                               ; preds = %81
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %5, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %6, align 4
  br label %107

103:                                              ; preds = %93
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %5, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %6, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %107

107:                                              ; preds = %103, %99
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %112

108:                                              ; preds = %94, %77
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %11, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %11, align 4, !tbaa !5
  br label %65, !llvm.loop !15

112:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %328

113:                                              ; preds = %69
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %9, align 4, !tbaa !5
  br label %46, !llvm.loop !17

117:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  %118 = getelementptr inbounds i32, ptr %18, i64 1
  store i32 -1, ptr %118, align 4, !tbaa !5
  %119 = getelementptr inbounds i32, ptr %18, i64 2
  store i32 0, ptr %119, align 4, !tbaa !5
  %120 = getelementptr inbounds i32, ptr %18, i64 3
  store i32 0, ptr %120, align 4, !tbaa !5
  %121 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %121, align 8, !tbaa !10
  %122 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 4, ptr %122, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %123 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %126 = load i64, ptr %125, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr %124, i64 %126, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %127 unwind label %157

127:                                              ; preds = %117
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  %128 = getelementptr inbounds i32, ptr %22, i64 1
  store i32 0, ptr %128, align 4, !tbaa !5
  %129 = getelementptr inbounds i32, ptr %22, i64 2
  store i32 1, ptr %129, align 4, !tbaa !5
  %130 = getelementptr inbounds i32, ptr %22, i64 3
  store i32 -1, ptr %130, align 4, !tbaa !5
  %131 = getelementptr inbounds %"class.std::initializer_list", ptr %21, i32 0, i32 0
  store ptr %22, ptr %131, align 8, !tbaa !10
  %132 = getelementptr inbounds %"class.std::initializer_list", ptr %21, i32 0, i32 1
  store i64 4, ptr %132, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %133 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %136 = load i64, ptr %135, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr %134, i64 %136, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %137 unwind label %161

137:                                              ; preds = %127
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %138

138:                                              ; preds = %278, %276, %137
  %139 = invoke noundef i64 @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %140 unwind label %165

140:                                              ; preds = %138
  %141 = icmp ne i64 %139, 0
  br i1 %141, label %142, label %281

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  %143 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %144 unwind label %169

144:                                              ; preds = %142
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %143)
          to label %145 unwind label %169

145:                                              ; preds = %144
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %146 unwind label %173

146:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #5
  %148 = load i32, ptr %147, align 4, !tbaa !5
  store i32 %148, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 1) #5
  %150 = load i32, ptr %149, align 4, !tbaa !5
  store i32 %150, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 2) #5
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %27, align 4, !tbaa !5
  %153 = load i32, ptr %25, align 4, !tbaa !5
  %154 = icmp sge i32 %153, 1
  br i1 %154, label %155, label %156

155:                                              ; preds = %146
  br label %178

156:                                              ; preds = %146
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.2, i32 noundef 26, ptr noundef @__PRETTY_FUNCTION__._Z5solvev) #6
  unreachable

157:                                              ; preds = %117
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %5, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %327

161:                                              ; preds = %127
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %326

165:                                              ; preds = %138
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  br label %325

169:                                              ; preds = %144, %142
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %5, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %6, align 4
  br label %280

173:                                              ; preds = %145
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %5, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %6, align 4
  br label %279

177:                                              ; No predecessors!
  br label %178

178:                                              ; preds = %177, %155
  %179 = load i32, ptr %27, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %180) #5
  %182 = load i32, ptr %26, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %183) #5
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = load i32, ptr %25, align 4, !tbaa !5
  %187 = icmp sge i32 %185, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %178
  store i32 8, ptr %10, align 4
  br label %276, !llvm.loop !18

189:                                              ; preds = %178
  %190 = load i32, ptr %25, align 4, !tbaa !5
  %191 = load i32, ptr %27, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %192) #5
  %194 = load i32, ptr %26, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %195) #5
  store i32 %190, ptr %196, align 4, !tbaa !5
  %197 = load i32, ptr %25, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 1
  br i1 %198, label %199, label %200

199:                                              ; preds = %189
  store i32 8, ptr %10, align 4
  br label %276, !llvm.loop !18

200:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %263, %200
  %202 = load i32, ptr %28, align 4, !tbaa !5
  %203 = icmp slt i32 %202, 4
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %275

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %206 = load i32, ptr %26, align 4, !tbaa !5
  %207 = load i32, ptr %28, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %208) #5
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = add nsw i32 %206, %210
  store i32 %211, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %212 = load i32, ptr %27, align 4, !tbaa !5
  %213 = load i32, ptr %28, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %214) #5
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = add nsw i32 %212, %216
  store i32 %217, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %218 = load i32, ptr %25, align 4, !tbaa !5
  %219 = sub nsw i32 %218, 1
  store i32 %219, ptr %31, align 4, !tbaa !5
  %220 = load i32, ptr %29, align 4, !tbaa !5
  %221 = icmp slt i32 %220, 0
  br i1 %221, label %226, label %222

222:                                              ; preds = %205
  %223 = load i32, ptr %29, align 4, !tbaa !5
  %224 = load i32, ptr @C, align 4, !tbaa !5
  %225 = icmp sge i32 %223, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %222, %205
  store i32 12, ptr %10, align 4
  br label %260

227:                                              ; preds = %222
  %228 = load i32, ptr %30, align 4, !tbaa !5
  %229 = icmp slt i32 %228, 0
  br i1 %229, label %234, label %230

230:                                              ; preds = %227
  %231 = load i32, ptr %30, align 4, !tbaa !5
  %232 = load i32, ptr @R, align 4, !tbaa !5
  %233 = icmp sge i32 %231, %232
  br i1 %233, label %234, label %235

234:                                              ; preds = %230, %227
  store i32 12, ptr %10, align 4
  br label %260

235:                                              ; preds = %230
  %236 = load i32, ptr %30, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %237) #5
  %239 = load i32, ptr %29, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %238, i64 noundef %240) #5
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = load i32, ptr %31, align 4, !tbaa !5
  %244 = icmp sge i32 %242, %243
  br i1 %244, label %245, label %246

245:                                              ; preds = %235
  store i32 12, ptr %10, align 4
  br label %260

246:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #5
  %247 = load i32, ptr %31, align 4, !tbaa !5
  store i32 %247, ptr %34, align 4, !tbaa !5
  %248 = getelementptr inbounds i32, ptr %34, i64 1
  %249 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %249, ptr %248, align 4, !tbaa !5
  %250 = getelementptr inbounds i32, ptr %34, i64 2
  %251 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %251, ptr %250, align 4, !tbaa !5
  %252 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 0
  store ptr %34, ptr %252, align 8, !tbaa !10
  %253 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 1
  store i64 3, ptr %253, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #5
  %254 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  %256 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %257 = load i64, ptr %256, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr %255, i64 %257, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %258 unwind label %266

258:                                              ; preds = %246
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %8, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %259 unwind label %270

259:                                              ; preds = %258
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  store i32 0, ptr %10, align 4
  br label %260

260:                                              ; preds = %259, %245, %234, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  %261 = load i32, ptr %10, align 4
  switch i32 %261, label %336 [
    i32 0, label %262
    i32 12, label %263
  ]

262:                                              ; preds = %260
  br label %263

263:                                              ; preds = %262, %260
  %264 = load i32, ptr %28, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %28, align 4, !tbaa !5
  br label %201, !llvm.loop !19

266:                                              ; preds = %246
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %5, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %6, align 4
  br label %274

270:                                              ; preds = %258
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %5, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %6, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  br label %274

274:                                              ; preds = %270, %266
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %279

275:                                              ; preds = %204
  store i32 0, ptr %10, align 4
  br label %276

276:                                              ; preds = %275, %199, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  %277 = load i32, ptr %10, align 4
  switch i32 %277, label %336 [
    i32 0, label %278
    i32 8, label %138
  ]

278:                                              ; preds = %276
  br label %138, !llvm.loop !18

279:                                              ; preds = %274, %173
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  br label %280

280:                                              ; preds = %279, %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  br label %325

281:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %282 = load i32, ptr @K, align 4, !tbaa !5
  %283 = sub nsw i32 %282, 1
  store i32 %283, ptr %37, align 4, !tbaa !5
  br label %284

284:                                              ; preds = %320, %281
  %285 = load i32, ptr %37, align 4, !tbaa !5
  %286 = load i32, ptr @R, align 4, !tbaa !5
  %287 = load i32, ptr @K, align 4, !tbaa !5
  %288 = sub nsw i32 %286, %287
  %289 = add nsw i32 %288, 1
  %290 = icmp slt i32 %285, %289
  br i1 %290, label %292, label %291

291:                                              ; preds = %284
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %323

292:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %293 = load i32, ptr @K, align 4, !tbaa !5
  %294 = sub nsw i32 %293, 1
  store i32 %294, ptr %38, align 4, !tbaa !5
  br label %295

295:                                              ; preds = %316, %292
  %296 = load i32, ptr %38, align 4, !tbaa !5
  %297 = load i32, ptr @C, align 4, !tbaa !5
  %298 = load i32, ptr @K, align 4, !tbaa !5
  %299 = sub nsw i32 %297, %298
  %300 = add nsw i32 %299, 1
  %301 = icmp slt i32 %296, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %295
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  br label %319

303:                                              ; preds = %295
  %304 = load i32, ptr %37, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %305) #5
  %307 = load i32, ptr %38, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %306, i64 noundef %308) #5
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = icmp eq i32 %310, 0
  br i1 %311, label %312, label %315

312:                                              ; preds = %303
  %313 = load i32, ptr %36, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %36, align 4, !tbaa !5
  br label %315

315:                                              ; preds = %312, %303
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %38, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %38, align 4, !tbaa !5
  br label %295, !llvm.loop !20

319:                                              ; preds = %302
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %37, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %37, align 4, !tbaa !5
  br label %284, !llvm.loop !21

323:                                              ; preds = %291
  %324 = load i32, ptr %36, align 4, !tbaa !5
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #5
  ret i32 %324

325:                                              ; preds = %280, %165
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %326

326:                                              ; preds = %325, %161
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  br label %327

327:                                              ; preds = %326, %157
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %328

328:                                              ; preds = %327, %112
  call void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %8) #5
  br label %329

329:                                              ; preds = %328, %60
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br label %330

330:                                              ; preds = %329, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #5
  br label %331

331:                                              ; preds = %330
  %332 = load ptr, ptr %5, align 8
  %333 = load i32, ptr %6, align 4
  %334 = insertvalue { ptr, i32 } poison, ptr %332, 0
  %335 = insertvalue { ptr, i32 } %334, i32 %333, 1
  resume { ptr, i32 } %335

336:                                              ; preds = %276, %260
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_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_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #0 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSSt16initializer_listIiE", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !13, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !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<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::priority_queue" = type <{ %"class.std::vector.0", [8 x i8] }>

@R = external dso_local local_unnamed_addr global i32, align 4
@C = external dso_local local_unnamed_addr global i32, align 4
@K = external dso_local local_unnamed_addr global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.std::vector.5", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::allocator.7", align 1
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::priority_queue", align 8
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca [3 x i32], align 4
  %9 = alloca %"class.std::allocator.7", align 1
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca [4 x i32], align 16
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca %"class.std::vector.5", align 8
  %14 = alloca [4 x i32], align 16
  %15 = alloca %"class.std::allocator.7", align 1
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::vector.5", align 8
  %18 = alloca [3 x i32], align 4
  %19 = alloca %"class.std::allocator.7", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  %20 = load i32, ptr @R, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  %21 = load i32, ptr @C, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %23 unwind label %36

23:                                               ; preds = %0
  %24 = sext i32 %20 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %24, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %25 unwind label %38

25:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %26 = load i32, ptr @R, align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.preheader87.lr.ph, label %._crit_edge90

.preheader87.lr.ph:                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %8, i64 4
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = load i32, ptr @C, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.preheader87, label %._crit_edge90

.preheader87:                                     ; preds = %.preheader87.lr.ph, %._crit_edge
  %32 = phi i32 [ %41, %._crit_edge ], [ %26, %.preheader87.lr.ph ]
  %33 = phi i32 [ %42, %._crit_edge ], [ %30, %.preheader87.lr.ph ]
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %._crit_edge ], [ 0, %.preheader87.lr.ph ]
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader87
  %35 = trunc nuw nsw i64 %indvars.iv111 to i32
  br label %45

._crit_edge90:                                    ; preds = %._crit_edge, %.preheader87.lr.ph, %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  store <4 x i32> <i32 1, i32 -1, i32 0, i32 0>, ptr %11, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %64 unwind label %81

36:                                               ; preds = %0
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %23
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  br label %40

40:                                               ; preds = %38, %36
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %222

._crit_edge.loopexit:                             ; preds = %60
  %.pre = load i32, ptr @R, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader87
  %41 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %32, %.preheader87 ]
  %42 = phi i32 [ %61, %._crit_edge.loopexit ], [ %33, %.preheader87 ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %43 = sext i32 %41 to i64
  %44 = icmp slt i64 %indvars.iv.next112, %43
  br i1 %44, label %.preheader87, label %._crit_edge90, !llvm.loop !9

45:                                               ; preds = %.lr.ph, %60
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %60 ]
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv111) #5
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %46, i64 noundef %indvars.iv)
  %48 = load i8, ptr %47, align 1, !tbaa !12
  %49 = icmp eq i8 %48, 120
  br i1 %49, label %50, label %60

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  %51 = load i32, ptr @K, align 4, !tbaa !5
  store i32 %51, ptr %8, align 4, !tbaa !5
  %52 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %52, ptr %28, align 4, !tbaa !5
  store i32 %35, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %53 unwind label %55

53:                                               ; preds = %50
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %54 unwind label %57

54:                                               ; preds = %53
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %60

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %59

59:                                               ; preds = %57, %55
  %.pn82 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %221

60:                                               ; preds = %45, %54
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr @C, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next, %62
  br i1 %63, label %45, label %._crit_edge.loopexit, !llvm.loop !13

64:                                               ; preds = %._crit_edge90
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  store <4 x i32> <i32 0, i32 0, i32 1, i32 -1>, ptr %14, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr nonnull %14, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %65 unwind label %83

65:                                               ; preds = %64
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  %66 = call noundef i64 @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %.not92 = icmp eq i64 %66, 0
  br i1 %.not92, label %._crit_edge95, label %.lr.ph94

.lr.ph94:                                         ; preds = %65
  %67 = getelementptr inbounds i8, ptr %18, i64 4
  %68 = getelementptr inbounds i8, ptr %18, i64 8
  br label %69

69:                                               ; preds = %.lr.ph94, %.loopexit
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %70)
          to label %71 unwind label %85

71:                                               ; preds = %69
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %72 unwind label %87

72:                                               ; preds = %71
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #5
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 1) #5
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 2) #5
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = icmp sgt i32 %74, 0
  br i1 %79, label %89, label %80

80:                                               ; preds = %72
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, i32 noundef 26, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5solvev) #6
  unreachable

81:                                               ; preds = %._crit_edge90
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %220

83:                                               ; preds = %64
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %219

85:                                               ; preds = %69
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %190

87:                                               ; preds = %71
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %189

89:                                               ; preds = %72
  %90 = sext i32 %78 to i64
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %90) #5
  %92 = sext i32 %76 to i64
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %92) #5
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %.not72 = icmp slt i32 %94, %74
  br i1 %.not72, label %95, label %.loopexit, !llvm.loop !14

95:                                               ; preds = %89
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %90) #5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %92) #5
  store i32 %74, ptr %97, align 4, !tbaa !5
  %98 = icmp eq i32 %74, 1
  br i1 %98, label %.loopexit, label %.preheader, !llvm.loop !14

.preheader:                                       ; preds = %95
  %99 = add nsw i32 %74, -1
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #5
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = add nsw i32 %101, %76
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #5
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = add nsw i32 %104, %78
  %106 = icmp sgt i32 %102, -1
  %107 = load i32, ptr @C, align 4
  %.not73 = icmp slt i32 %102, %107
  %or.cond = select i1 %106, i1 %.not73, i1 false
  br i1 %or.cond, label %108, label %120

108:                                              ; preds = %.preheader
  %109 = icmp sgt i32 %105, -1
  %110 = load i32, ptr @R, align 4
  %.not74 = icmp slt i32 %105, %110
  %or.cond86 = select i1 %109, i1 %.not74, i1 false
  br i1 %or.cond86, label %111, label %120

111:                                              ; preds = %108
  %112 = zext nneg i32 %105 to i64
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %112) #5
  %114 = zext nneg i32 %102 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %114) #5
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %.not75 = icmp slt i32 %116, %99
  br i1 %.not75, label %117, label %120

117:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  store i32 %99, ptr %18, align 4, !tbaa !5
  store i32 %102, ptr %67, align 4, !tbaa !5
  store i32 %105, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %118 unwind label %183

118:                                              ; preds = %117
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %119 unwind label %185

119:                                              ; preds = %118
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %120

120:                                              ; preds = %111, %108, %.preheader, %119
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 1) #5
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = add nsw i32 %122, %76
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 1) #5
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, %78
  %127 = icmp sgt i32 %123, -1
  %128 = load i32, ptr @C, align 4
  %.not73.1 = icmp slt i32 %123, %128
  %or.cond.1 = select i1 %127, i1 %.not73.1, i1 false
  br i1 %or.cond.1, label %129, label %141

129:                                              ; preds = %120
  %130 = icmp sgt i32 %126, -1
  %131 = load i32, ptr @R, align 4
  %.not74.1 = icmp slt i32 %126, %131
  %or.cond86.1 = select i1 %130, i1 %.not74.1, i1 false
  br i1 %or.cond86.1, label %132, label %141

132:                                              ; preds = %129
  %133 = zext nneg i32 %126 to i64
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %133) #5
  %135 = zext nneg i32 %123 to i64
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %135) #5
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %.not75.1 = icmp slt i32 %137, %99
  br i1 %.not75.1, label %138, label %141

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  store i32 %99, ptr %18, align 4, !tbaa !5
  store i32 %123, ptr %67, align 4, !tbaa !5
  store i32 %126, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %139 unwind label %183

139:                                              ; preds = %138
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %140 unwind label %185

140:                                              ; preds = %139
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %141

141:                                              ; preds = %140, %132, %129, %120
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 2) #5
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = add nsw i32 %143, %76
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 2) #5
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, %78
  %148 = icmp sgt i32 %144, -1
  %149 = load i32, ptr @C, align 4
  %.not73.2 = icmp slt i32 %144, %149
  %or.cond.2 = select i1 %148, i1 %.not73.2, i1 false
  br i1 %or.cond.2, label %150, label %162

150:                                              ; preds = %141
  %151 = icmp sgt i32 %147, -1
  %152 = load i32, ptr @R, align 4
  %.not74.2 = icmp slt i32 %147, %152
  %or.cond86.2 = select i1 %151, i1 %.not74.2, i1 false
  br i1 %or.cond86.2, label %153, label %162

153:                                              ; preds = %150
  %154 = zext nneg i32 %147 to i64
  %155 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154) #5
  %156 = zext nneg i32 %144 to i64
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %156) #5
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %.not75.2 = icmp slt i32 %158, %99
  br i1 %.not75.2, label %159, label %162

159:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  store i32 %99, ptr %18, align 4, !tbaa !5
  store i32 %144, ptr %67, align 4, !tbaa !5
  store i32 %147, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %160 unwind label %183

160:                                              ; preds = %159
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %161 unwind label %185

161:                                              ; preds = %160
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %162

162:                                              ; preds = %161, %153, %150, %141
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 3) #5
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = add nsw i32 %164, %76
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 3) #5
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %167, %78
  %169 = icmp sgt i32 %165, -1
  %170 = load i32, ptr @C, align 4
  %.not73.3 = icmp slt i32 %165, %170
  %or.cond.3 = select i1 %169, i1 %.not73.3, i1 false
  br i1 %or.cond.3, label %171, label %.loopexit

171:                                              ; preds = %162
  %172 = icmp sgt i32 %168, -1
  %173 = load i32, ptr @R, align 4
  %.not74.3 = icmp slt i32 %168, %173
  %or.cond86.3 = select i1 %172, i1 %.not74.3, i1 false
  br i1 %or.cond86.3, label %174, label %.loopexit

174:                                              ; preds = %171
  %175 = zext nneg i32 %168 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %175) #5
  %177 = zext nneg i32 %165 to i64
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %177) #5
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %.not75.3 = icmp slt i32 %179, %99
  br i1 %.not75.3, label %180, label %.loopexit

180:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  store i32 %99, ptr %18, align 4, !tbaa !5
  store i32 %165, ptr %67, align 4, !tbaa !5
  store i32 %168, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %181 unwind label %183

181:                                              ; preds = %180
  invoke void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %182 unwind label %185

182:                                              ; preds = %181
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %.loopexit

183:                                              ; preds = %180, %159, %138, %117
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %187

185:                                              ; preds = %181, %160, %139, %118
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %187

187:                                              ; preds = %185, %183
  %.pn76 = phi { ptr, i32 } [ %186, %185 ], [ %184, %183 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %189

.loopexit:                                        ; preds = %162, %171, %174, %182, %95, %89
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  %188 = call noundef i64 @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %.not = icmp eq i64 %188, 0
  br i1 %.not, label %._crit_edge95, label %69

189:                                              ; preds = %187, %87
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %187 ], [ %88, %87 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  br label %190

190:                                              ; preds = %189, %85
  %.pn76.pn.pn = phi { ptr, i32 } [ %.pn76.pn, %189 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %219

._crit_edge95:                                    ; preds = %.loopexit, %65
  %191 = load i32, ptr @K, align 4, !tbaa !5
  %192 = add nsw i32 %191, -1
  %193 = load i32, ptr @R, align 4, !tbaa !5
  %194 = sub nsw i32 %193, %191
  %.not70102 = icmp sgt i32 %192, %194
  br i1 %.not70102, label %._crit_edge107, label %.lr.ph106.preheader

.lr.ph106.preheader:                              ; preds = %._crit_edge95
  %195 = sext i32 %191 to i64
  %196 = add nsw i64 %195, -1
  %.pre123 = load i32, ptr @C, align 4, !tbaa !5
  br label %.lr.ph106

._crit_edge107:                                   ; preds = %._crit_edge101, %._crit_edge95
  %.049.lcssa = phi i32 [ 0, %._crit_edge95 ], [ %.1.lcssa, %._crit_edge101 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret i32 %.049.lcssa

.lr.ph106:                                        ; preds = %.lr.ph106.preheader, %._crit_edge101
  %197 = phi i32 [ %191, %.lr.ph106.preheader ], [ %204, %._crit_edge101 ]
  %198 = phi i32 [ %193, %.lr.ph106.preheader ], [ %205, %._crit_edge101 ]
  %199 = phi i32 [ %.pre123, %.lr.ph106.preheader ], [ %206, %._crit_edge101 ]
  %indvars.iv120 = phi i64 [ %196, %.lr.ph106.preheader ], [ %indvars.iv.next121, %._crit_edge101 ]
  %.049103 = phi i32 [ 0, %.lr.ph106.preheader ], [ %.1.lcssa, %._crit_edge101 ]
  %200 = add nsw i32 %197, -1
  %201 = sub nsw i32 %199, %197
  %.not7196 = icmp sgt i32 %200, %201
  br i1 %.not7196, label %._crit_edge101, label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph106
  %202 = sext i32 %197 to i64
  %203 = add nsw i64 %202, -1
  br label %209

._crit_edge101.loopexit:                          ; preds = %209
  %.pre124 = load i32, ptr @R, align 4, !tbaa !5
  br label %._crit_edge101

._crit_edge101:                                   ; preds = %._crit_edge101.loopexit, %.lr.ph106
  %204 = phi i32 [ %197, %.lr.ph106 ], [ %216, %._crit_edge101.loopexit ]
  %205 = phi i32 [ %198, %.lr.ph106 ], [ %.pre124, %._crit_edge101.loopexit ]
  %206 = phi i32 [ %199, %.lr.ph106 ], [ %215, %._crit_edge101.loopexit ]
  %.1.lcssa = phi i32 [ %.049103, %.lr.ph106 ], [ %spec.select, %._crit_edge101.loopexit ]
  %indvars.iv.next121 = add nsw i64 %indvars.iv120, 1
  %207 = sub nsw i32 %205, %204
  %208 = sext i32 %207 to i64
  %.not70.not = icmp slt i64 %indvars.iv120, %208
  br i1 %.not70.not, label %.lr.ph106, label %._crit_edge107, !llvm.loop !15

209:                                              ; preds = %.lr.ph100, %209
  %indvars.iv117 = phi i64 [ %203, %.lr.ph100 ], [ %indvars.iv.next118, %209 ]
  %.197 = phi i32 [ %.049103, %.lr.ph100 ], [ %spec.select, %209 ]
  %210 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv120) #5
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %indvars.iv117) #5
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = icmp eq i32 %212, 0
  %214 = zext i1 %213 to i32
  %spec.select = add nsw i32 %.197, %214
  %indvars.iv.next118 = add nsw i64 %indvars.iv117, 1
  %215 = load i32, ptr @C, align 4, !tbaa !5
  %216 = load i32, ptr @K, align 4, !tbaa !5
  %217 = sub nsw i32 %215, %216
  %218 = sext i32 %217 to i64
  %.not71.not = icmp slt i64 %indvars.iv117, %218
  br i1 %.not71.not, label %209, label %._crit_edge101.loopexit, !llvm.loop !16

219:                                              ; preds = %190, %83
  %.pn76.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn, %190 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %220

220:                                              ; preds = %219, %81
  %.pn76.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn.pn, %219 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %221

221:                                              ; preds = %220, %59
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %59 ], [ %.pn76.pn.pn.pn.pn, %220 ]
  call void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br label %222

222:                                              ; preds = %221, %40
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %221 ], [ %.pn, %40 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn82.pn.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 nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_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_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt6vectorIiSaIiEES0_IS2_SaIS2_EESt4lessIS2_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }
attributes #6 = { noreturn nounwind }

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

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


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