; LLVM IR from tommasocerruti/algolab-2024 :: src/week03/first_steps_with_BGL/solution.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::basic_istream" = type { ptr, i64, %"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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.boost::adjacency_list" = type { %"class.boost::vec_adj_list_impl", %"class.boost::scoped_ptr" }
%"class.boost::vec_adj_list_impl" = type { %"class.std::__cxx11::list", %"class.std::vector" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::scoped_ptr" = type { ptr }
%"struct.boost::no_property" = type { i8 }
%"struct.boost::adj_list_edge_property_map" = type { i32 }
%"class.boost::detail::edge_desc_impl" = type { %"struct.boost::detail::edge_base", ptr }
%"struct.boost::detail::edge_base" = type { i64, i64 }
%"struct.std::pair" = type <{ %"class.boost::detail::edge_desc_impl", i8, [7 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.10" = type { i8 }
%"struct.boost::bgl_named_params" = type { %"class.boost::iterator_property_map", [8 x i8] }
%"class.boost::iterator_property_map" = type <{ %"class.__gnu_cxx::__normal_iterator.14", [8 x i8] }>
%"class.__gnu_cxx::__normal_iterator.14" = type { ptr }
%"struct.boost::vec_adj_list_vertex_id_map" = type { i8 }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.boost::adjacency_list", align 8
  %4 = alloca %"struct.boost::no_property", align 1
  %5 = alloca %"struct.boost::adj_list_edge_property_map", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %15 = alloca %"class.std::vector.3", align 8
  %16 = alloca %"class.std::back_insert_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %22 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %23 = alloca %"class.std::vector.8", align 8
  %24 = alloca %"class.std::allocator.10", align 1
  %25 = alloca %"struct.boost::bgl_named_params", align 8
  %26 = alloca %"class.boost::iterator_property_map", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.14", align 8
  %28 = alloca %"struct.boost::vec_adj_list_vertex_id_map", align 1
  %29 = alloca %"struct.boost::vec_adj_list_vertex_id_map", align 1
  %30 = alloca i32, align 4
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.14", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.14", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.14", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #7
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %38 = invoke i32 @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EES8_EENS_12property_mapINT_10graph_typeET1_vE4typeESJ_RNS_15adj_list_helperISH_T0_EE(i32 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %39 unwind label %47

39:                                               ; preds = %0
  %40 = getelementptr inbounds %"struct.boost::adj_list_edge_property_map", ptr %5, i32 0, i32 0
  store i32 %38, ptr %40, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  invoke void @_ZN5boost6detail14edge_desc_implINS_14undirected_tagEmEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %41 unwind label %51

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

42:                                               ; preds = %71, %41
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %55, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %83

47:                                               ; preds = %0
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  br label %176

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

55:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %57 unwind label %74

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %59 unwind label %74

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %61 unwind label %74

61:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  invoke void @_ZN5boost8add_edgeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_6detail12adj_list_genIS9_S2_S2_S3_S4_S7_S4_S8_E6configENS_23undirected_graph_helperISD_EEEESt4pairINT0_15edge_descriptorEbENSH_17vertex_descriptorESK_RNS_17vec_adj_list_implIT_SH_T1_EE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %13, i64 noundef %63, i64 noundef %65, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %66 unwind label %78

66:                                               ; preds = %61
  %67 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %67, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  %68 = load i32, ptr %12, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %8, i64 24, i1 false)
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef byval(%"class.boost::detail::edge_desc_impl") align 8 %14)
          to label %70 unwind label %74

70:                                               ; preds = %66
  store i32 %68, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !5
  br label %42, !llvm.loop !9

74:                                               ; preds = %66, %59, %57, %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  br label %82

78:                                               ; preds = %61
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %175

83:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %84 = invoke ptr @_ZSt13back_inserterISt6vectorIN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESaIS5_EEESt20back_insert_iteratorIT_ERS9_(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %85 unwind label %99

85:                                               ; preds = %83
  %86 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %16, i32 0, i32 0
  store ptr %84, ptr %86, align 8
  %87 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %16, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  invoke void @_ZN5boost29kruskal_minimum_spanning_treeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEESt20back_insert_iteratorISt6vectorINS_6detail14edge_desc_implINS_14undirected_tagEmEESaISF_EEEEEvRKT_T0_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr %88)
          to label %89 unwind label %99

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store ptr %15, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %90 = load ptr, ptr %18, align 8, !tbaa !11
  %91 = call ptr @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #7
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %93 = load ptr, ptr %18, align 8, !tbaa !11
  %94 = call ptr @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #7
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  br label %96

96:                                               ; preds = %110, %89
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %97, label %103, label %98

98:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %116

99:                                               ; preds = %85, %83
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  br label %174

103:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %104, i64 24, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %21, i64 24, i1 false)
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef byval(%"class.boost::detail::edge_desc_impl") align 8 %22)
          to label %106 unwind label %112

106:                                              ; preds = %103
  %107 = load i32, ptr %105, align 4, !tbaa !5
  %108 = load i32, ptr %17, align 4, !tbaa !5
  %109 = add nsw i32 %108, %107
  store i32 %109, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %110

110:                                              ; preds = %106
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %96

112:                                              ; preds = %103
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %6, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %173

116:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %118, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %119 unwind label %154

119:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %120 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %27, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  invoke void @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EENS_14vertex_index_tEEENS_12property_mapINT_10graph_typeET1_vE4typeESK_RNS_15adj_list_helperISI_T0_EE(i32 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %122 unwind label %158

122:                                              ; preds = %119
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %27, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = invoke ptr @_ZN5boost26make_iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEEENS_21iterator_property_mapIT_T0_NSt15iterator_traitsISC_E10value_typeENSF_9referenceEEESC_SD_(ptr %124)
          to label %126 unwind label %158

126:                                              ; preds = %122
  %127 = getelementptr inbounds %"class.boost::iterator_property_map", ptr %26, i32 0, i32 0
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %127, i32 0, i32 0
  store ptr %125, ptr %128, align 8
  invoke void @_ZN5boost12distance_mapINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEiRiEEEENS_16bgl_named_paramsIT_NS_17vertex_distance_tESA_EERKSF_(ptr dead_on_unwind writable sret(%"struct.boost::bgl_named_params") align 8 %25, ptr noundef nonnull align 8 dereferenceable(9) %26)
          to label %129 unwind label %158

129:                                              ; preds = %126
  invoke void @_ZN5boost23dijkstra_shortest_pathsINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapIS4_mEEiRiEENS_17vertex_distance_tES4_EEvRKT_NS_12graph_traitsISN_E17vertex_descriptorERKNS_16bgl_named_paramsIT0_T1_T2_EE(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(17) %25)
          to label %130 unwind label %158

130:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %131 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %32, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  %133 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %33, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %32, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %33, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  %139 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %136, ptr %138)
          to label %140 unwind label %162

140:                                              ; preds = %130
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.14", ptr %31, i32 0, i32 0
  store ptr %139, ptr %141, align 8
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  %143 = load i32, ptr %142, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  store i32 %143, ptr %30, align 4, !tbaa !5
  %144 = load i32, ptr %17, align 4, !tbaa !5
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %144)
          to label %146 unwind label %166

146:                                              ; preds = %140
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %145, i8 noundef signext 32)
          to label %148 unwind label %166

148:                                              ; preds = %146
  %149 = load i32, ptr %30, align 4, !tbaa !5
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %147, i32 noundef %149)
          to label %151 unwind label %166

151:                                              ; preds = %148
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %150, i8 noundef signext 10)
          to label %153 unwind label %166

153:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  ret void

154:                                              ; preds = %116
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %6, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %172

158:                                              ; preds = %129, %126, %122, %119
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %6, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  br label %171

162:                                              ; preds = %130
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %6, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %170

166:                                              ; preds = %151, %148, %146, %140
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %6, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %7, align 4
  br label %170

170:                                              ; preds = %166, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %171

171:                                              ; preds = %170, %158
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  br label %172

172:                                              ; preds = %171, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %173

173:                                              ; preds = %172, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %174

174:                                              ; preds = %173, %99
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  br label %175

175:                                              ; preds = %174, %82, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  br label %176

176:                                              ; preds = %175, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %6, align 8
  %179 = load i32, ptr %7, align 4
  %180 = insertvalue { ptr, i32 } poison, ptr %178, 0
  %181 = insertvalue { ptr, i32 } %180, i32 %179, 1
  resume { ptr, i32 } %181
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, 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: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EES8_EENS_12property_mapINT_10graph_typeET1_vE4typeESJ_RNS_15adj_list_helperISH_T0_EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost8add_edgeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_6detail12adj_list_genIS9_S2_S2_S3_S4_S7_S4_S8_E6configENS_23undirected_graph_helperISD_EEEESt4pairINT0_15edge_descriptorEbENSH_17vertex_descriptorESK_RNS_17vec_adj_list_implIT_SH_T1_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef byval(%"class.boost::detail::edge_desc_impl") align 8) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost29kruskal_minimum_spanning_treeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEESt20back_insert_iteratorISt6vectorINS_6detail14edge_desc_implINS_14undirected_tagEmEESaISF_EEEEEvRKT_T0_(ptr noundef nonnull align 8 dereferenceable(56), ptr) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESaIS5_EEESt20back_insert_iteratorIT_ERS9_(ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost23dijkstra_shortest_pathsINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapIS4_mEEiRiEENS_17vertex_distance_tES4_EEvRKT_NS_12graph_traitsISN_E17vertex_descriptorERKNS_16bgl_named_paramsIT0_T1_T2_EE(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 8 dereferenceable(17)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost12distance_mapINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEiRiEEEENS_16bgl_named_paramsIT_NS_17vertex_distance_tESA_EERKSF_(ptr dead_on_unwind noalias writable sret(%"struct.boost::bgl_named_params") align 8, ptr noundef nonnull align 8 dereferenceable(9)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost26make_iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEEENS_21iterator_property_mapIT_T0_NSt15iterator_traitsISC_E10value_typeENSF_9referenceEEESC_SD_(ptr) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EENS_14vertex_index_tEEENS_12property_mapINT_10graph_typeET1_vE4typeESK_RNS_15adj_list_helperISI_T0_EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3

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

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

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

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

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

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


; 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_istream" = type { ptr, i64, %"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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.boost::adjacency_list" = type { %"class.boost::vec_adj_list_impl", %"class.boost::scoped_ptr" }
%"class.boost::vec_adj_list_impl" = type { %"class.std::__cxx11::list", %"class.std::vector" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_weight_t, int>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>>, boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::property<boost::edge_weight_t, int>, boost::no_property, boost::listS>::config::stored_vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::scoped_ptr" = type { ptr }
%"struct.boost::no_property" = type { i8 }
%"struct.boost::adj_list_edge_property_map" = type { i32 }
%"class.boost::detail::edge_desc_impl" = type { %"struct.boost::detail::edge_base", ptr }
%"struct.boost::detail::edge_base" = type { i64, i64 }
%"struct.std::pair" = type <{ %"class.boost::detail::edge_desc_impl", i8, [7 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>, std::allocator<boost::detail::edge_desc_impl<boost::undirected_tag, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.10" = type { i8 }
%"struct.boost::bgl_named_params" = type { %"class.boost::iterator_property_map", [8 x i8] }
%"class.boost::iterator_property_map" = type <{ %"class.__gnu_cxx::__normal_iterator.14", [8 x i8] }>
%"class.__gnu_cxx::__normal_iterator.14" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.boost::adjacency_list", align 8
  %4 = alloca %"struct.boost::no_property", align 1
  %5 = alloca %"struct.boost::adj_list_edge_property_map", align 4
  %6 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"class.std::vector.3", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.boost::detail::edge_desc_impl", align 8
  %15 = alloca %"class.std::vector.8", align 8
  %16 = alloca %"class.std::allocator.10", align 1
  %17 = alloca %"struct.boost::bgl_named_params", align 8
  %18 = alloca %"class.boost::iterator_property_map", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.14", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #8
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef %23, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %24 = invoke i32 @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EES8_EENS_12property_mapINT_10graph_typeET1_vE4typeESJ_RNS_15adj_list_helperISH_T0_EE(i32 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %25 unwind label %29

25:                                               ; preds = %0
  store i32 %24, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  invoke void @_ZN5boost6detail14edge_desc_implINS_14undirected_tagEmEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %.preheader unwind label %31

.preheader:                                       ; preds = %25
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %46, %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %28 = invoke ptr @_ZSt13back_inserterISt6vectorIN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESaIS5_EEESt20back_insert_iteratorIT_ERS9_(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %55 unwind label %62

29:                                               ; preds = %0
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %106

31:                                               ; preds = %25
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %105

.lr.ph:                                           ; preds = %.preheader, %46
  %.01932 = phi i32 [ %47, %46 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %34 unwind label %50

34:                                               ; preds = %.lr.ph
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %36 unwind label %50

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %38 unwind label %50

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  invoke void @_ZN5boost8add_edgeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_6detail12adj_list_genIS9_S2_S2_S3_S4_S7_S4_S8_E6configENS_23undirected_graph_helperISD_EEEESt4pairINT0_15edge_descriptorEbENSH_17vertex_descriptorESK_RNS_17vec_adj_list_implIT_SH_T1_EE(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %10, i64 noundef %40, i64 noundef %42, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %43 unwind label %52

43:                                               ; preds = %38
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull byval(%"class.boost::detail::edge_desc_impl") align 8 %6)
          to label %46 unwind label %50

46:                                               ; preds = %43
  store i32 %44, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %47 = add nuw nsw i32 %.01932, 1
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !9

50:                                               ; preds = %43, %36, %34, %.lr.ph
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %38
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %54

54:                                               ; preds = %52, %50
  %.pn27 = phi { ptr, i32 } [ %51, %50 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %105

55:                                               ; preds = %._crit_edge
  invoke void @_ZN5boost29kruskal_minimum_spanning_treeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEESt20back_insert_iteratorISt6vectorINS_6detail14edge_desc_implINS_14undirected_tagEmEESaISF_EEEEEvRKT_T0_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr %28)
          to label %56 unwind label %62

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %57 = call ptr @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  store ptr %57, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %58 = call ptr @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  store ptr %58, ptr %13, align 8
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %59, label %.lr.ph35, label %._crit_edge36

._crit_edge36:                                    ; preds = %66, %56
  %.020.lcssa = phi i32 [ 0, %56 ], [ %68, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %61, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %73 unwind label %94

62:                                               ; preds = %55, %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %104

.lr.ph35:                                         ; preds = %56, %66
  %.02033 = phi i32 [ %68, %66 ], [ 0, %56 ]
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %64, i64 24, i1 false)
  %65 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull byval(%"class.boost::detail::edge_desc_impl") align 8 %14)
          to label %66 unwind label %71

66:                                               ; preds = %.lr.ph35
  %67 = load i32, ptr %65, align 4, !tbaa !5
  %68 = add nsw i32 %67, %.02033
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %70, label %.lr.ph35, label %._crit_edge36

71:                                               ; preds = %.lr.ph35
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %104

73:                                               ; preds = %._crit_edge36
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %74 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  invoke void @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EENS_14vertex_index_tEEENS_12property_mapINT_10graph_typeET1_vE4typeESK_RNS_15adj_list_helperISI_T0_EE(i32 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %75 unwind label %96

75:                                               ; preds = %73
  %76 = invoke ptr @_ZN5boost26make_iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEEENS_21iterator_property_mapIT_T0_NSt15iterator_traitsISC_E10value_typeENSF_9referenceEEESC_SD_(ptr %74)
          to label %77 unwind label %96

77:                                               ; preds = %75
  store ptr %76, ptr %18, align 8
  invoke void @_ZN5boost12distance_mapINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEiRiEEEENS_16bgl_named_paramsIT_NS_17vertex_distance_tESA_EERKSF_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::bgl_named_params") align 8 %17, ptr noundef nonnull align 8 dereferenceable(9) %18)
          to label %78 unwind label %96

78:                                               ; preds = %77
  invoke void @_ZN5boost23dijkstra_shortest_pathsINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapIS4_mEEiRiEENS_17vertex_distance_tES4_EEvRKT_NS_12graph_traitsISN_E17vertex_descriptorERKNS_16bgl_named_paramsIT0_T1_T2_EE(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(17) %17)
          to label %79 unwind label %96

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %80 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %81 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %82 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %80, ptr %81)
          to label %83 unwind label %98

83:                                               ; preds = %79
  store ptr %82, ptr %19, align 8
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %85 = load i32, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.020.lcssa)
          to label %87 unwind label %100

87:                                               ; preds = %83
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %86, i8 noundef signext 32)
          to label %89 unwind label %100

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 noundef %85)
          to label %91 unwind label %100

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %90, i8 noundef signext 10)
          to label %93 unwind label %100

93:                                               ; preds = %91
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret void

94:                                               ; preds = %._crit_edge36
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  br label %103

96:                                               ; preds = %78, %77, %75, %73
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %102

98:                                               ; preds = %79
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %102

100:                                              ; preds = %91, %89, %87, %83
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %102

102:                                              ; preds = %98, %100, %96
  %.pn.pn = phi { ptr, i32 } [ %97, %96 ], [ %101, %100 ], [ %99, %98 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %103

103:                                              ; preds = %102, %94
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %102 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  br label %104

104:                                              ; preds = %71, %103, %62
  %.pn24.pn = phi { ptr, i32 } [ %63, %62 ], [ %72, %71 ], [ %.pn.pn.pn, %103 ]
  call void @_ZNSt6vectorIN5boost6detail14edge_desc_implINS0_14undirected_tagEmEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %105

105:                                              ; preds = %104, %54, %31
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %54 ], [ %.pn24.pn, %104 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %106

106:                                              ; preds = %105, %29
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %105 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn27.pn.pn
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost14adjacency_listINS_4vecSES1_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS3_EES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, 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: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EES8_EENS_12property_mapINT_10graph_typeET1_vE4typeESJ_RNS_15adj_list_helperISH_T0_EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost8add_edgeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_6detail12adj_list_genIS9_S2_S2_S3_S4_S7_S4_S8_E6configENS_23undirected_graph_helperISD_EEEESt4pairINT0_15edge_descriptorEbENSH_17vertex_descriptorESK_RNS_17vec_adj_list_implIT_SH_T1_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost26adj_list_edge_property_mapINS_14undirected_tagEiRimNS_8propertyINS_13edge_weight_tEiNS_11no_propertyEEES4_EixENS_6detail14edge_desc_implIS1_mEE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef byval(%"class.boost::detail::edge_desc_impl") align 8) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost29kruskal_minimum_spanning_treeINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEESt20back_insert_iteratorISt6vectorINS_6detail14edge_desc_implINS_14undirected_tagEmEESaISF_EEEEEvRKT_T0_(ptr noundef nonnull align 8 dereferenceable(56), ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESaIS5_EEESt20back_insert_iteratorIT_ERS9_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN5boost6detail14edge_desc_implINS1_14undirected_tagEmEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost23dijkstra_shortest_pathsINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS4_EES4_NS_5listSEEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapIS4_mEEiRiEENS_17vertex_distance_tES4_EEvRKT_NS_12graph_traitsISN_E17vertex_descriptorERKNS_16bgl_named_paramsIT0_T1_T2_EE(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost12distance_mapINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEiRiEEEENS_16bgl_named_paramsIT_NS_17vertex_distance_tESA_EERKSF_(ptr dead_on_unwind noalias writable sret(%"struct.boost::bgl_named_params") align 8, ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost26make_iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEENS_26vec_adj_list_vertex_id_mapINS_11no_propertyEmEEEENS_21iterator_property_mapIT_T0_NSt15iterator_traitsISC_E10value_typeENSF_9referenceEEESC_SD_(ptr) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost3getINS_6detail12adj_list_genINS_14adjacency_listINS_4vecSES4_NS_11undirectedSENS_11no_propertyENS_8propertyINS_13edge_weight_tEiS6_EES6_NS_5listSEEES4_S4_S5_S6_S9_S6_SA_E6configENS_23undirected_graph_helperISD_EENS_14vertex_index_tEEENS_12property_mapINT_10graph_typeET1_vE4typeESK_RNS_15adj_list_helperISI_T0_EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3

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

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

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

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

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

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

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


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