; LLVM IR from tommasocerruti/algolab-2024 :: src/week14/ludo_bagman/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_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>>>::_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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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 }
%class.edge_adder = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1

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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.boost::adjacency_list", align 8
  %8 = alloca %"struct.boost::no_property", align 1
  %9 = alloca %class.edge_adder, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %31 = 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)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %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) %5)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #6
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = add nsw i32 %37, %38
  %40 = mul nsw i32 2, %39
  %41 = sext i32 %40 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN10edge_adderC2ERN5boost14adjacency_listINS0_4vecSES2_NS0_9directedSENS0_11no_propertyENS0_8propertyINS0_15edge_capacity_tElNS5_INS0_24edge_residual_capacity_tElNS5_INS0_14edge_reverse_tENS0_6detail14edge_desc_implINS0_12directed_tagEmEENS5_INS0_13edge_weight_tElS4_EEEEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %42 unwind label %66

42:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %43 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %44 unwind label %70

44:                                               ; preds = %42
  %45 = trunc i64 %43 to i32
  store i32 %45, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %46 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %47 unwind label %74

47:                                               ; preds = %44
  %48 = trunc i64 %46 to i32
  store i32 %48, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %49 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %50 unwind label %78

50:                                               ; preds = %47
  %51 = trunc i64 %49 to i32
  store i32 %51, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %52 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %53 unwind label %82

53:                                               ; preds = %50
  %54 = trunc i64 %52 to i32
  store i32 %54, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %55 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %56 unwind label %86

56:                                               ; preds = %53
  %57 = trunc i64 %55 to i32
  store i32 %57, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %58 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %59 unwind label %90

59:                                               ; preds = %56
  %60 = trunc i64 %58 to i32
  store i32 %60, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %110, %59
  %62 = load i32, ptr %18, align 4, !tbaa !5
  %63 = load i32, ptr %1, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %94, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %117

66:                                               ; preds = %0
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %302

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

74:                                               ; preds = %44
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %300

78:                                               ; preds = %47
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  br label %299

82:                                               ; preds = %50
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %10, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %11, align 4
  br label %298

86:                                               ; preds = %53
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %10, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %11, align 4
  br label %297

90:                                               ; preds = %246, %239, %230, %223, %220, %212, %56
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %10, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %11, align 4
  br label %296

94:                                               ; preds = %61
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = load i32, ptr %18, align 4, !tbaa !5
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %95, i32 noundef %96, i64 noundef %98, i64 noundef 0)
          to label %99 unwind label %113

99:                                               ; preds = %94
  %100 = load i32, ptr %14, align 4, !tbaa !5
  %101 = load i32, ptr %18, align 4, !tbaa !5
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %100, i32 noundef %101, i64 noundef 2147483647, i64 noundef 0)
          to label %102 unwind label %113

102:                                              ; preds = %99
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = load i32, ptr %18, align 4, !tbaa !5
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = add nsw i32 %104, %105
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = add nsw i32 %106, %107
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %103, i32 noundef %108, i64 noundef 2147483647, i64 noundef 0)
          to label %109 unwind label %113

109:                                              ; preds = %102
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %18, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %18, align 4, !tbaa !5
  br label %61, !llvm.loop !9

113:                                              ; preds = %102, %99, %94
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %296

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

118:                                              ; preds = %144, %117
  %119 = load i32, ptr %19, align 4, !tbaa !5
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %151

123:                                              ; preds = %118
  %124 = load i32, ptr %19, align 4, !tbaa !5
  %125 = load i32, ptr %1, align 4, !tbaa !5
  %126 = add nsw i32 %124, %125
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %126, i32 noundef %127, i64 noundef %129, i64 noundef 0)
          to label %130 unwind label %147

130:                                              ; preds = %123
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = load i32, ptr %1, align 4, !tbaa !5
  %133 = add nsw i32 %131, %132
  %134 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %133, i32 noundef %134, i64 noundef 2147483647, i64 noundef 0)
          to label %135 unwind label %147

135:                                              ; preds = %130
  %136 = load i32, ptr %19, align 4, !tbaa !5
  %137 = load i32, ptr %1, align 4, !tbaa !5
  %138 = mul nsw i32 2, %137
  %139 = add nsw i32 %136, %138
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = add nsw i32 %139, %140
  %142 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %141, i32 noundef %142, i64 noundef 2147483647, i64 noundef 0)
          to label %143 unwind label %147

143:                                              ; preds = %135
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %19, align 4, !tbaa !5
  br label %118, !llvm.loop !11

147:                                              ; preds = %135, %130, %123
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %296

151:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %171, %151
  %153 = load i32, ptr %20, align 4, !tbaa !5
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %178

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %159 unwind label %174

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %158, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %161 unwind label %174

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %163 unwind label %174

163:                                              ; preds = %161
  %164 = load i32, ptr %21, align 4, !tbaa !5
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = load i32, ptr %22, align 4, !tbaa !5
  %167 = add nsw i32 %165, %166
  %168 = load i32, ptr %23, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %164, i32 noundef %167, i64 noundef 1, i64 noundef %169)
          to label %170 unwind label %174

170:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %20, align 4, !tbaa !5
  br label %152, !llvm.loop !12

174:                                              ; preds = %163, %161, %159, %157
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %10, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %296

178:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %205, %178
  %180 = load i32, ptr %24, align 4, !tbaa !5
  %181 = load i32, ptr %4, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %212

184:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %185 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %186 unwind label %208

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %185, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %188 unwind label %208

188:                                              ; preds = %186
  %189 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %187, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %190 unwind label %208

190:                                              ; preds = %188
  %191 = load i32, ptr %25, align 4, !tbaa !5
  %192 = load i32, ptr %1, align 4, !tbaa !5
  %193 = add nsw i32 %191, %192
  %194 = load i32, ptr %2, align 4, !tbaa !5
  %195 = add nsw i32 %193, %194
  %196 = load i32, ptr %1, align 4, !tbaa !5
  %197 = mul nsw i32 2, %196
  %198 = load i32, ptr %2, align 4, !tbaa !5
  %199 = add nsw i32 %197, %198
  %200 = load i32, ptr %26, align 4, !tbaa !5
  %201 = add nsw i32 %199, %200
  %202 = load i32, ptr %27, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %195, i32 noundef %201, i64 noundef 1, i64 noundef %203)
          to label %204 unwind label %208

204:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %24, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %24, align 4, !tbaa !5
  br label %179, !llvm.loop !13

208:                                              ; preds = %190, %188, %186, %184
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %10, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %296

212:                                              ; preds = %183
  %213 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %214 unwind label %90

214:                                              ; preds = %212
  %215 = load i32, ptr %213, align 4, !tbaa !5
  %216 = load i32, ptr %6, align 4, !tbaa !5
  %217 = mul nsw i32 %215, %216
  %218 = load i32, ptr %5, align 4, !tbaa !5
  %219 = icmp sgt i32 %217, %218
  br i1 %219, label %220, label %223

220:                                              ; preds = %214
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %222 unwind label %90

222:                                              ; preds = %220
  store i32 1, ptr %28, align 4
  br label %288

223:                                              ; preds = %214
  %224 = load i32, ptr %12, align 4, !tbaa !5
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = load i32, ptr %6, align 4, !tbaa !5
  %227 = load i32, ptr %1, align 4, !tbaa !5
  %228 = mul nsw i32 %226, %227
  %229 = sext i32 %228 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %224, i32 noundef %225, i64 noundef %229, i64 noundef 0)
          to label %230 unwind label %90

230:                                              ; preds = %223
  %231 = load i32, ptr %12, align 4, !tbaa !5
  %232 = load i32, ptr %14, align 4, !tbaa !5
  %233 = load i32, ptr %5, align 4, !tbaa !5
  %234 = load i32, ptr %6, align 4, !tbaa !5
  %235 = load i32, ptr %1, align 4, !tbaa !5
  %236 = mul nsw i32 %234, %235
  %237 = sub nsw i32 %233, %236
  %238 = sext i32 %237 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %231, i32 noundef %232, i64 noundef %238, i64 noundef 0)
          to label %239 unwind label %90

239:                                              ; preds = %230
  %240 = load i32, ptr %16, align 4, !tbaa !5
  %241 = load i32, ptr %15, align 4, !tbaa !5
  %242 = load i32, ptr %6, align 4, !tbaa !5
  %243 = load i32, ptr %2, align 4, !tbaa !5
  %244 = mul nsw i32 %242, %243
  %245 = sext i32 %244 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %240, i32 noundef %241, i64 noundef %245, i64 noundef 0)
          to label %246 unwind label %90

246:                                              ; preds = %239
  %247 = load i32, ptr %17, align 4, !tbaa !5
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = load i32, ptr %5, align 4, !tbaa !5
  %250 = load i32, ptr %6, align 4, !tbaa !5
  %251 = load i32, ptr %2, align 4, !tbaa !5
  %252 = mul nsw i32 %250, %251
  %253 = sub nsw i32 %249, %252
  %254 = sext i32 %253 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %247, i32 noundef %248, i64 noundef %254, i64 noundef 0)
          to label %255 unwind label %90

255:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %256 = load i32, ptr %12, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = invoke noundef i64 @_ZN5boost21push_relabel_max_flowINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSM_NS_12graph_traitsISM_E17vertex_descriptorESU_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %257, i64 noundef %259)
          to label %261 unwind label %269

261:                                              ; preds = %255
  %262 = trunc i64 %260 to i32
  store i32 %262, ptr %29, align 4, !tbaa !5
  %263 = load i32, ptr %29, align 4, !tbaa !5
  %264 = load i32, ptr %5, align 4, !tbaa !5
  %265 = icmp ne i32 %263, %264
  br i1 %265, label %266, label %273

266:                                              ; preds = %261
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %268 unwind label %269

268:                                              ; preds = %266
  store i32 1, ptr %28, align 4
  br label %287

269:                                              ; preds = %273, %266, %255
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %10, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %11, align 4
  br label %295

273:                                              ; preds = %261
  %274 = load i32, ptr %12, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = load i32, ptr %15, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  invoke void @_ZN5boost44successive_shortest_path_nonnegative_weightsINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEEvRT_NS_12graph_traitsISK_E17vertex_descriptorESO_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %275, i64 noundef %277)
          to label %278 unwind label %269

278:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %279 = invoke noundef i64 @_ZN5boost14find_flow_costINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE4typeEE10value_typeERKSM_(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %280 unwind label %291

280:                                              ; preds = %278
  %281 = trunc i64 %279 to i32
  store i32 %281, ptr %30, align 4, !tbaa !5
  %282 = load i32, ptr %30, align 4, !tbaa !5
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %282)
          to label %284 unwind label %291

284:                                              ; preds = %280
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %283, i8 noundef signext 10)
          to label %286 unwind label %291

286:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  store i32 0, ptr %28, align 4
  br label %287

287:                                              ; preds = %286, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %288

288:                                              ; preds = %287, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  %289 = load i32, ptr %28, align 4
  switch i32 %289, label %308 [
    i32 0, label %290
    i32 1, label %290
  ]

290:                                              ; preds = %288, %288
  ret void

291:                                              ; preds = %284, %280, %278
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %10, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %295

295:                                              ; preds = %291, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %296

296:                                              ; preds = %295, %208, %174, %147, %113, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %297

297:                                              ; preds = %296, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %298

298:                                              ; preds = %297, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %299

299:                                              ; preds = %298, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %300

300:                                              ; preds = %299, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %301

301:                                              ; preds = %300, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %302

302:                                              ; preds = %301, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %10, align 8
  %305 = load i32, ptr %11, align 4
  %306 = insertvalue { ptr, i32 } poison, ptr %304, 0
  %307 = insertvalue { ptr, i32 } %306, i32 %305, 1
  resume { ptr, i32 } %307

308:                                              ; preds = %288
  unreachable
}

; 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_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_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: mustprogress nounwind uwtable
declare dso_local void @_ZN10edge_adderC2ERN5boost14adjacency_listINS0_4vecSES2_NS0_9directedSENS0_11no_propertyENS0_8propertyINS0_15edge_capacity_tElNS5_INS0_24edge_residual_capacity_tElNS5_INS0_14edge_reverse_tENS0_6detail14edge_desc_implINS0_12directed_tagEmEENS5_INS0_13edge_weight_tElS4_EEEEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i64 noundef, i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost21push_relabel_max_flowINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSM_NS_12graph_traitsISM_E17vertex_descriptorESU_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost44successive_shortest_path_nonnegative_weightsINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEEvRT_NS_12graph_traitsISK_E17vertex_descriptorESO_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost14find_flow_costINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE4typeEE10value_typeERKSM_(ptr noundef nonnull align 8 dereferenceable(56)) #0

; 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) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) 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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


; 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_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, std::allocator<boost::list_edge<unsigned long, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>>>::_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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, boost::no_property, boost::listS>::config::stored_vertex, std::allocator<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>>, boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_capacity_t, long, boost::property<boost::edge_residual_capacity_t, long, boost::property<boost::edge_reverse_t, boost::detail::edge_desc_impl<boost::directed_tag, unsigned long>, boost::property<boost::edge_weight_t, long>>>>, 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 }
%class.edge_adder = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1

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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.boost::adjacency_list", align 8
  %8 = alloca %"struct.boost::no_property", align 1
  %9 = alloca %class.edge_adder, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %16 = 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)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %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) %6)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #6
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = add nsw i32 %23, %22
  %25 = shl nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %26, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN10edge_adderC2ERN5boost14adjacency_listINS0_4vecSES2_NS0_9directedSENS0_11no_propertyENS0_8propertyINS0_15edge_capacity_tElNS5_INS0_24edge_residual_capacity_tElNS5_INS0_14edge_reverse_tENS0_6detail14edge_desc_implINS0_12directed_tagEmEENS5_INS0_13edge_weight_tElS4_EEEEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(56) %7)
  %27 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %28 unwind label %49

28:                                               ; preds = %0
  %29 = trunc i64 %27 to i32
  %30 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %31 unwind label %51

31:                                               ; preds = %28
  %32 = trunc i64 %30 to i32
  %33 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %34 unwind label %53

34:                                               ; preds = %31
  %35 = trunc i64 %33 to i32
  %36 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %37 unwind label %55

37:                                               ; preds = %34
  %38 = trunc i64 %36 to i32
  %39 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %40 unwind label %57

40:                                               ; preds = %37
  %41 = trunc i64 %39 to i32
  %42 = invoke noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %43 unwind label %59

43:                                               ; preds = %40
  %44 = trunc i64 %42 to i32
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph, label %.preheader56

.preheader56:                                     ; preds = %69, %43
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph59, label %.preheader55

49:                                               ; preds = %0
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %192

51:                                               ; preds = %28
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %192

53:                                               ; preds = %31
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %192

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

57:                                               ; preds = %37
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %192

59:                                               ; preds = %163, %158, %151, %147, %145, %40
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %192

.lr.ph:                                           ; preds = %43, %69
  %.04557 = phi i32 [ %70, %69 ], [ 0, %43 ]
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %32, i32 noundef %.04557, i64 noundef %62, i64 noundef 0)
          to label %63 unwind label %73

63:                                               ; preds = %.lr.ph
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %35, i32 noundef %.04557, i64 noundef 2147483647, i64 noundef 0)
          to label %64 unwind label %73

64:                                               ; preds = %63
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = add nsw i32 %65, %.04557
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = add nsw i32 %66, %67
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %35, i32 noundef %68, i64 noundef 2147483647, i64 noundef 0)
          to label %69 unwind label %73

69:                                               ; preds = %64
  %70 = add nuw nsw i32 %.04557, 1
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %.lr.ph, label %.preheader56, !llvm.loop !9

73:                                               ; preds = %64, %63, %.lr.ph
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %192

.preheader55:                                     ; preds = %90, %.preheader56
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph61, label %.preheader

.lr.ph59:                                         ; preds = %.preheader56, %90
  %.04458 = phi i32 [ %91, %90 ], [ 0, %.preheader56 ]
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = add nsw i32 %77, %.04458
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %78, i32 noundef %41, i64 noundef %80, i64 noundef 0)
          to label %81 unwind label %94

81:                                               ; preds = %.lr.ph59
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = add nsw i32 %82, %.04458
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %83, i32 noundef %44, i64 noundef 2147483647, i64 noundef 0)
          to label %84 unwind label %94

84:                                               ; preds = %81
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = shl nsw i32 %85, 1
  %87 = add nsw i32 %86, %.04458
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = add nsw i32 %87, %88
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %89, i32 noundef %44, i64 noundef 2147483647, i64 noundef 0)
          to label %90 unwind label %94

90:                                               ; preds = %84
  %91 = add nuw nsw i32 %.04458, 1
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph59, label %.preheader55, !llvm.loop !11

94:                                               ; preds = %84, %81, %.lr.ph59
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %192

.preheader:                                       ; preds = %110, %.preheader55
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph63, label %._crit_edge

.lr.ph61:                                         ; preds = %.preheader55, %110
  %.04360 = phi i32 [ %111, %110 ], [ 0, %.preheader55 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %98 = 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 %99 unwind label %114

99:                                               ; preds = %.lr.ph61
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %101 unwind label %114

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %103 unwind label %114

103:                                              ; preds = %101
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = add nsw i32 %106, %105
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %104, i32 noundef %107, i64 noundef 1, i64 noundef %109)
          to label %110 unwind label %114

110:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %111 = add nuw nsw i32 %.04360, 1
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %.lr.ph61, label %.preheader, !llvm.loop !12

114:                                              ; preds = %103, %101, %99, %.lr.ph61
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %192

._crit_edge:                                      ; preds = %139, %.preheader
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = mul nsw i32 %118, %117
  %120 = load i32, ptr %5, align 4, !tbaa !5
  %121 = icmp sgt i32 %119, %120
  br i1 %121, label %145, label %147

.lr.ph63:                                         ; preds = %.preheader, %139
  %.04262 = phi i32 [ %140, %139 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %122 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %123 unwind label %143

123:                                              ; preds = %.lr.ph63
  %124 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %122, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %125 unwind label %143

125:                                              ; preds = %123
  %126 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %124, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %127 unwind label %143

127:                                              ; preds = %125
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = load i32, ptr %1, align 4, !tbaa !5
  %130 = add nsw i32 %129, %128
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = add nsw i32 %130, %131
  %133 = shl nsw i32 %129, 1
  %134 = add nsw i32 %133, %131
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = add nsw i32 %134, %135
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %132, i32 noundef %136, i64 noundef 1, i64 noundef %138)
          to label %139 unwind label %143

139:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  %140 = add nuw nsw i32 %.04262, 1
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %.lr.ph63, label %._crit_edge, !llvm.loop !13

143:                                              ; preds = %127, %125, %123, %.lr.ph63
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %192

145:                                              ; preds = %._crit_edge
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %189 unwind label %59

147:                                              ; preds = %._crit_edge
  %148 = load i32, ptr %1, align 4, !tbaa !5
  %149 = mul nsw i32 %148, %118
  %150 = sext i32 %149 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %29, i32 noundef %32, i64 noundef %150, i64 noundef 0)
          to label %151 unwind label %59

151:                                              ; preds = %147
  %152 = load i32, ptr %5, align 4, !tbaa !5
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = load i32, ptr %1, align 4, !tbaa !5
  %155 = mul nsw i32 %154, %153
  %156 = sub nsw i32 %152, %155
  %157 = sext i32 %156 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %29, i32 noundef %35, i64 noundef %157, i64 noundef 0)
          to label %158 unwind label %59

158:                                              ; preds = %151
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = load i32, ptr %2, align 4, !tbaa !5
  %161 = mul nsw i32 %160, %159
  %162 = sext i32 %161 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %41, i32 noundef %38, i64 noundef %162, i64 noundef 0)
          to label %163 unwind label %59

163:                                              ; preds = %158
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = load i32, ptr %2, align 4, !tbaa !5
  %167 = mul nsw i32 %166, %165
  %168 = sub nsw i32 %164, %167
  %169 = sext i32 %168 to i64
  invoke void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %44, i32 noundef %38, i64 noundef %169, i64 noundef 0)
          to label %170 unwind label %59

170:                                              ; preds = %163
  %sext = shl i64 %27, 32
  %171 = ashr exact i64 %sext, 32
  %sext46 = shl i64 %36, 32
  %172 = ashr exact i64 %sext46, 32
  %173 = invoke noundef i64 @_ZN5boost21push_relabel_max_flowINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSM_NS_12graph_traitsISM_E17vertex_descriptorESU_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %171, i64 noundef %172)
          to label %174 unwind label %179

174:                                              ; preds = %170
  %175 = trunc i64 %173 to i32
  %176 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %176, %175
  br i1 %.not, label %181, label %177

177:                                              ; preds = %174
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %189 unwind label %179

179:                                              ; preds = %181, %177, %170
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %192

181:                                              ; preds = %174
  invoke void @_ZN5boost44successive_shortest_path_nonnegative_weightsINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEEvRT_NS_12graph_traitsISK_E17vertex_descriptorESO_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %171, i64 noundef %172)
          to label %182 unwind label %179

182:                                              ; preds = %181
  %183 = invoke noundef i64 @_ZN5boost14find_flow_costINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE4typeEE10value_typeERKSM_(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %184 unwind label %190

184:                                              ; preds = %182
  %185 = trunc i64 %183 to i32
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %185)
          to label %187 unwind label %190

187:                                              ; preds = %184
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %186, i8 noundef signext 10)
          to label %189 unwind label %190

189:                                              ; preds = %177, %187, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void

190:                                              ; preds = %187, %184, %182
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %192

192:                                              ; preds = %51, %55, %59, %73, %94, %114, %143, %190, %179, %57, %53, %49
  %.pn48.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %50, %49 ], [ %52, %51 ], [ %54, %53 ], [ %56, %55 ], [ %58, %57 ], [ %74, %73 ], [ %95, %94 ], [ %115, %114 ], [ %144, %143 ], [ %60, %59 ], [ %180, %179 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn48.pn.pn.pn.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_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_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: mustprogress nounwind uwtable
declare dso_local void @_ZN10edge_adderC2ERN5boost14adjacency_listINS0_4vecSES2_NS0_9directedSENS0_11no_propertyENS0_8propertyINS0_15edge_capacity_tElNS5_INS0_24edge_residual_capacity_tElNS5_INS0_14edge_reverse_tENS0_6detail14edge_desc_implINS0_12directed_tagEmEENS5_INS0_13edge_weight_tElS4_EEEEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost10add_vertexINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEENS9_12adj_list_genISJ_S2_S2_S3_S4_SH_S4_SI_E6configENS_21directed_graph_helperISM_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SP_T1_EE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10edge_adder8add_edgeEiill(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost21push_relabel_max_flowINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSM_NS_12graph_traitsISM_E17vertex_descriptorESU_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost44successive_shortest_path_nonnegative_weightsINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEEvRT_NS_12graph_traitsISK_E17vertex_descriptorESO_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost14find_flow_costINS_14adjacency_listINS_4vecSES2_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS5_INS_24edge_residual_capacity_tElNS5_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS5_INS_13edge_weight_tElS4_EEEEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE4typeEE10value_typeERKSM_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0

; 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 #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost14adjacency_listINS_4vecSES1_NS_9directedSENS_11no_propertyENS_8propertyINS_15edge_capacity_tElNS4_INS_24edge_residual_capacity_tElNS4_INS_14edge_reverse_tENS_6detail14edge_desc_implINS_12directed_tagEmEENS4_INS_13edge_weight_tElS3_EEEEEEEES3_NS_5listSEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) 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 = { 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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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