; LLVM IR from JanaSabuj/cppdump :: Old/Graphs/Kruskal MST (min_cost_kruskal)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.MinCost = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::initializer_list" = type { ptr, i64 }
%"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::initializer_list.5" = type { ptr, i64 }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%class.MinCost2 = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

47:                                               ; preds = %0
  %48 = getelementptr inbounds %"class.std::vector.0", ptr %6, i64 1
  store ptr %48, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i32 4, ptr %14, align 4, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %14, i64 1
  store i32 5, ptr %49, align 4, !tbaa !5
  %50 = getelementptr inbounds %"class.std::initializer_list.5", ptr %13, i32 0, i32 0
  store ptr %14, ptr %50, align 8, !tbaa !9
  %51 = getelementptr inbounds %"class.std::initializer_list.5", ptr %13, i32 0, i32 1
  store i64 2, ptr %51, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %52 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %55 = load i64, ptr %54, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr %53, i64 %55, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %56 unwind label %152

56:                                               ; preds = %47
  %57 = getelementptr inbounds %"class.std::vector.0", ptr %6, i64 2
  store ptr %57, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i32 2, ptr %17, align 4, !tbaa !5
  %58 = getelementptr inbounds i32, ptr %17, i64 1
  store i32 3, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds %"class.std::initializer_list.5", ptr %16, i32 0, i32 0
  store ptr %17, ptr %59, align 8, !tbaa !9
  %60 = getelementptr inbounds %"class.std::initializer_list.5", ptr %16, i32 0, i32 1
  store i64 2, ptr %60, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  %61 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %64 = load i64, ptr %63, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr %62, i64 %64, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %65 unwind label %156

65:                                               ; preds = %56
  store i1 false, ptr %19, align 1
  %66 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 0
  store ptr %6, ptr %66, align 8, !tbaa !14
  %67 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1
  store i64 3, ptr %67, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  %68 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8
  %70 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %71 = load i64, ptr %70, align 8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %69, i64 %71, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %72 unwind label %160

72:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  %73 = getelementptr inbounds [3 x %"class.std::vector.0"], ptr %6, i32 0, i32 0
  %74 = getelementptr inbounds %"class.std::vector.0", ptr %73, i64 3
  br label %75

75:                                               ; preds = %75, %72
  %76 = phi ptr [ %74, %72 ], [ %77, %75 ]
  %77 = getelementptr inbounds %"class.std::vector.0", ptr %76, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #6
  %78 = icmp eq ptr %77, %73
  br i1 %78, label %79, label %75

79:                                               ; preds = %75
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %23) #6
  store i1 true, ptr %37, align 1
  store ptr %23, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #6
  store i32 1, ptr %26, align 4, !tbaa !5
  %80 = getelementptr inbounds i32, ptr %26, i64 1
  store i32 2, ptr %80, align 4, !tbaa !5
  %81 = getelementptr inbounds i32, ptr %26, i64 2
  store i32 5, ptr %81, align 4, !tbaa !5
  %82 = getelementptr inbounds %"class.std::initializer_list.5", ptr %25, i32 0, i32 0
  store ptr %26, ptr %82, align 8, !tbaa !9
  %83 = getelementptr inbounds %"class.std::initializer_list.5", ptr %25, i32 0, i32 1
  store i64 3, ptr %83, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  %84 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %85, i64 %87, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %88 unwind label %184

88:                                               ; preds = %79
  %89 = getelementptr inbounds %"class.std::vector.0", ptr %23, i64 1
  store ptr %89, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  store i32 1, ptr %29, align 4, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %29, i64 1
  store i32 3, ptr %90, align 4, !tbaa !5
  %91 = getelementptr inbounds i32, ptr %29, i64 2
  store i32 10, ptr %91, align 4, !tbaa !5
  %92 = getelementptr inbounds %"class.std::initializer_list.5", ptr %28, i32 0, i32 0
  store ptr %29, ptr %92, align 8, !tbaa !9
  %93 = getelementptr inbounds %"class.std::initializer_list.5", ptr %28, i32 0, i32 1
  store i64 3, ptr %93, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  %94 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %97 = load i64, ptr %96, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr %95, i64 %97, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %98 unwind label %188

98:                                               ; preds = %88
  %99 = getelementptr inbounds %"class.std::vector.0", ptr %23, i64 2
  store ptr %99, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #6
  store i32 1, ptr %32, align 4, !tbaa !5
  %100 = getelementptr inbounds i32, ptr %32, i64 1
  store i32 6, ptr %100, align 4, !tbaa !5
  %101 = getelementptr inbounds i32, ptr %32, i64 2
  store i32 2, ptr %101, align 4, !tbaa !5
  %102 = getelementptr inbounds %"class.std::initializer_list.5", ptr %31, i32 0, i32 0
  store ptr %32, ptr %102, align 8, !tbaa !9
  %103 = getelementptr inbounds %"class.std::initializer_list.5", ptr %31, i32 0, i32 1
  store i64 3, ptr %103, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  %104 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %107 = load i64, ptr %106, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr %105, i64 %107, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %108 unwind label %192

108:                                              ; preds = %98
  %109 = getelementptr inbounds %"class.std::vector.0", ptr %23, i64 3
  store ptr %109, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #6
  store i32 5, ptr %35, align 4, !tbaa !5
  %110 = getelementptr inbounds i32, ptr %35, i64 1
  store i32 6, ptr %110, align 4, !tbaa !5
  %111 = getelementptr inbounds i32, ptr %35, i64 2
  store i32 5, ptr %111, align 4, !tbaa !5
  %112 = getelementptr inbounds %"class.std::initializer_list.5", ptr %34, i32 0, i32 0
  store ptr %35, ptr %112, align 8, !tbaa !9
  %113 = getelementptr inbounds %"class.std::initializer_list.5", ptr %34, i32 0, i32 1
  store i64 3, ptr %113, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  %114 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %117 = load i64, ptr %116, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr %115, i64 %117, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %118 unwind label %196

118:                                              ; preds = %108
  store i1 false, ptr %37, align 1
  %119 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 0
  store ptr %23, ptr %119, align 8, !tbaa !14
  %120 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 1
  store i64 4, ptr %120, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  %121 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %124 = load i64, ptr %123, align 8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %122, i64 %124, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %125 unwind label %200

125:                                              ; preds = %118
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  %126 = getelementptr inbounds [4 x %"class.std::vector.0"], ptr %23, i32 0, i32 0
  %127 = getelementptr inbounds %"class.std::vector.0", ptr %126, i64 4
  br label %128

128:                                              ; preds = %128, %125
  %129 = phi ptr [ %127, %125 ], [ %130, %128 ]
  %130 = getelementptr inbounds %"class.std::vector.0", ptr %129, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %130) #6
  %131 = icmp eq ptr %130, %126
  br i1 %131, label %132, label %128

132:                                              ; preds = %128
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %23) #6
  %133 = load i32, ptr %3, align 4, !tbaa !5
  %134 = invoke noundef i32 @_ZN7MinCost13find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %133, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %135 unwind label %225

135:                                              ; preds = %132
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %134)
          to label %137 unwind label %225

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %139 unwind label %225

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  %140 = load i32, ptr %3, align 4, !tbaa !5
  %141 = invoke noundef i32 @_ZN8MinCost213find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1) %39, i32 noundef %140, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %142 unwind label %229

142:                                              ; preds = %139
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %141)
          to label %144 unwind label %229

144:                                              ; preds = %142
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %146 unwind label %229

146:                                              ; preds = %144
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #6
  %147 = load i32, ptr %1, align 4
  ret i32 %147

148:                                              ; preds = %0
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  br label %173

152:                                              ; preds = %47
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %11, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %12, align 4
  br label %172

156:                                              ; preds = %56
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %11, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %12, align 4
  br label %171

160:                                              ; preds = %65
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %11, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  %164 = getelementptr inbounds [3 x %"class.std::vector.0"], ptr %6, i32 0, i32 0
  %165 = getelementptr inbounds %"class.std::vector.0", ptr %164, i64 3
  br label %166

166:                                              ; preds = %166, %160
  %167 = phi ptr [ %165, %160 ], [ %168, %166 ]
  %168 = getelementptr inbounds %"class.std::vector.0", ptr %167, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %169 = icmp eq ptr %168, %164
  br i1 %169, label %170, label %166

170:                                              ; preds = %166
  br label %171

171:                                              ; preds = %170, %156
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %172

172:                                              ; preds = %171, %152
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %173

173:                                              ; preds = %172, %148
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %174 = load i1, ptr %19, align 1
  br i1 %174, label %175, label %183

175:                                              ; preds = %173
  %176 = load ptr, ptr %7, align 8
  %177 = icmp eq ptr %6, %176
  br i1 %177, label %182, label %178

178:                                              ; preds = %178, %175
  %179 = phi ptr [ %176, %175 ], [ %180, %178 ]
  %180 = getelementptr inbounds %"class.std::vector.0", ptr %179, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #6
  %181 = icmp eq ptr %180, %6
  br i1 %181, label %182, label %178

182:                                              ; preds = %178, %175
  br label %183

183:                                              ; preds = %182, %173
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #6
  br label %235

184:                                              ; preds = %79
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %11, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %12, align 4
  br label %214

188:                                              ; preds = %88
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %11, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %12, align 4
  br label %213

192:                                              ; preds = %98
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %11, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %12, align 4
  br label %212

196:                                              ; preds = %108
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %11, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %12, align 4
  br label %211

200:                                              ; preds = %118
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %11, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  %204 = getelementptr inbounds [4 x %"class.std::vector.0"], ptr %23, i32 0, i32 0
  %205 = getelementptr inbounds %"class.std::vector.0", ptr %204, i64 4
  br label %206

206:                                              ; preds = %206, %200
  %207 = phi ptr [ %205, %200 ], [ %208, %206 ]
  %208 = getelementptr inbounds %"class.std::vector.0", ptr %207, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %208) #6
  %209 = icmp eq ptr %208, %204
  br i1 %209, label %210, label %206

210:                                              ; preds = %206
  br label %211

211:                                              ; preds = %210, %196
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #6
  br label %212

212:                                              ; preds = %211, %192
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  br label %213

213:                                              ; preds = %212, %188
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  br label %214

214:                                              ; preds = %213, %184
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #6
  %215 = load i1, ptr %37, align 1
  br i1 %215, label %216, label %224

216:                                              ; preds = %214
  %217 = load ptr, ptr %24, align 8
  %218 = icmp eq ptr %23, %217
  br i1 %218, label %223, label %219

219:                                              ; preds = %219, %216
  %220 = phi ptr [ %217, %216 ], [ %221, %219 ]
  %221 = getelementptr inbounds %"class.std::vector.0", ptr %220, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %221) #6
  %222 = icmp eq ptr %221, %23
  br i1 %222, label %223, label %219

223:                                              ; preds = %219, %216
  br label %224

224:                                              ; preds = %223, %214
  call void @llvm.lifetime.end.p0(i64 96, ptr %23) #6
  br label %234

225:                                              ; preds = %137, %135, %132
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %11, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %12, align 4
  br label %233

229:                                              ; preds = %144, %142, %139
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %11, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  br label %233

233:                                              ; preds = %229, %225
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %234

234:                                              ; preds = %233, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %235

235:                                              ; preds = %234, %183
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #6
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %11, align 8
  %238 = load i32, ptr %12, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

; 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 @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7MinCost13find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8MinCost213find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 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_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.MinCost = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.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::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%class.MinCost2 = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

24:                                               ; preds = %0
  %25 = getelementptr inbounds i8, ptr %3, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i32 4, ptr %6, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 5, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr nonnull %6, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %27 unwind label %66

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %3, i64 48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i32 2, ptr %8, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 3, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr nonnull %8, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %30 unwind label %68

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr nonnull %3, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %31 unwind label %.loopexit78.loopexit

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  %32 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %33 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  store i32 1, ptr %13, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 2, ptr %34, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 5, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr nonnull %13, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %36 unwind label %.thread69

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %12, i64 24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  store i32 1, ptr %15, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 3, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 10, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr nonnull %15, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %40 unwind label %79

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %12, i64 48
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #6
  store i32 1, ptr %17, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %17, i64 4
  store i32 6, ptr %42, align 4, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %17, i64 8
  store i32 2, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr nonnull %17, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %44 unwind label %81

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %12, i64 72
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #6
  store i32 5, ptr %19, align 4, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 6, ptr %46, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %19, i64 8
  store i32 5, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr nonnull %19, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %48 unwind label %83

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nonnull %12, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %49 unwind label %.loopexit75.loopexit

49:                                               ; preds = %48
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  %50 = getelementptr inbounds i8, ptr %12, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %51 = getelementptr inbounds i8, ptr %12, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %52 = getelementptr inbounds i8, ptr %12, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #6
  %53 = invoke noundef i32 @_ZN7MinCost13find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1) %1, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %54 unwind label %95

54:                                               ; preds = %49
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %53)
          to label %56 unwind label %95

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %58 unwind label %95

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #6
  %59 = invoke noundef i32 @_ZN8MinCost213find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1) %22, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %60 unwind label %97

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %59)
          to label %62 unwind label %97

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %64 unwind label %97

64:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #6
  ret i32 0

.thread:                                          ; preds = %0
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %.loopexit77

66:                                               ; preds = %24
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %74

68:                                               ; preds = %27
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit78

.loopexit78.loopexit:                             ; preds = %30
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  %71 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #6
  %72 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %72) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %.loopexit78

.loopexit78:                                      ; preds = %.loopexit78.loopexit, %68
  %73 = phi i1 [ false, %68 ], [ true, %.loopexit78.loopexit ]
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %70, %.loopexit78.loopexit ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %74

74:                                               ; preds = %66, %.loopexit78
  %.145 = phi i1 [ %73, %.loopexit78 ], [ false, %66 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit78 ], [ %67, %66 ]
  %.028 = phi ptr [ %28, %.loopexit78 ], [ %25, %66 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %.145, label %.loopexit77, label %.preheader76

.preheader76:                                     ; preds = %74, %.preheader76
  %75 = phi ptr [ %76, %.preheader76 ], [ %.028, %74 ]
  %76 = getelementptr inbounds i8, ptr %75, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
  %77 = icmp eq ptr %76, %3
  br i1 %77, label %.loopexit77, label %.preheader76

.loopexit77:                                      ; preds = %.preheader76, %.thread, %74
  %.pn.pn.pn68 = phi { ptr, i32 } [ %65, %.thread ], [ %.pn.pn, %74 ], [ %.pn.pn, %.preheader76 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  br label %101

.thread69:                                        ; preds = %31
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  br label %.loopexit

79:                                               ; preds = %36
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %91

81:                                               ; preds = %40
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %90

83:                                               ; preds = %44
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit75

.loopexit75.loopexit:                             ; preds = %48
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  %86 = getelementptr inbounds i8, ptr %12, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %86) #6
  %87 = getelementptr inbounds i8, ptr %12, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  %88 = getelementptr inbounds i8, ptr %12, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %88) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %.loopexit75

.loopexit75:                                      ; preds = %.loopexit75.loopexit, %83
  %.pn55 = phi { ptr, i32 } [ %84, %83 ], [ %85, %.loopexit75.loopexit ]
  %89 = phi i1 [ false, %83 ], [ true, %.loopexit75.loopexit ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  br label %90

90:                                               ; preds = %.loopexit75, %81
  %.047 = phi ptr [ %45, %.loopexit75 ], [ %41, %81 ]
  %.pn55.pn = phi { ptr, i32 } [ %.pn55, %.loopexit75 ], [ %82, %81 ]
  %.1 = phi i1 [ %89, %.loopexit75 ], [ false, %81 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  br label %91

91:                                               ; preds = %79, %90
  %.148 = phi ptr [ %.047, %90 ], [ %37, %79 ]
  %.pn55.pn.pn = phi { ptr, i32 } [ %.pn55.pn, %90 ], [ %80, %79 ]
  %.2 = phi i1 [ %.1, %90 ], [ false, %79 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  br i1 %.2, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %91, %.preheader
  %92 = phi ptr [ %93, %.preheader ], [ %.148, %91 ]
  %93 = getelementptr inbounds i8, ptr %92, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %93) #6
  %94 = icmp eq ptr %93, %12
  br i1 %94, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread69, %91
  %.pn55.pn.pn.pn74 = phi { ptr, i32 } [ %78, %.thread69 ], [ %.pn55.pn.pn, %91 ], [ %.pn55.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #6
  br label %100

95:                                               ; preds = %56, %54, %49
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %62, %60, %58
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  br label %99

99:                                               ; preds = %97, %95
  %.pn60 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %100

100:                                              ; preds = %99, %.loopexit
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %99 ], [ %.pn55.pn.pn.pn74, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %101

101:                                              ; preds = %100, %.loopexit77
  %.pn60.pn.pn = phi { ptr, i32 } [ %.pn60.pn, %100 ], [ %.pn.pn.pn68, %.loopexit77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn60.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 @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7MinCost13find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8MinCost213find_min_costEiRSt6vectorIS0_IiSaIiEESaIS2_EES5_(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass