; LLVM IR from tommasocerruti/algolab-2024 :: src/week06/knights/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.anon = type { ptr }
%class.anon.0 = type { ptr, ptr, ptr }
%"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>>>>>, 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>>>>>>>::_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>>>>>, 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>>>>>>>::_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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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

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 %class.anon, align 8
  %6 = alloca %class.anon.0, align 8
  %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 i64, align 8
  %13 = alloca i64, align 8
  %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
  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
  %22 = 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)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %26 = getelementptr inbounds %class.anon, ptr %5, i32 0, i32 0
  store ptr %1, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %27 = getelementptr inbounds %class.anon.0, ptr %6, i32 0, i32 0
  store ptr %5, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.anon.0, ptr %6, i32 0, i32 1
  store ptr %1, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.anon.0, ptr %6, i32 0, i32 2
  store ptr %2, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #6
  %30 = load i32, ptr %1, align 4, !tbaa !9
  %31 = mul nsw i32 2, %30
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = mul nsw i32 %31, %32
  %34 = sext i32 %33 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_tagEmEES3_EEEEEES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %34, 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_tagEmEES4_EEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %35 unwind label %45

35:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %37 unwind label %49

37:                                               ; preds = %35
  store i64 %36, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %38 = 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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %39 unwind label %53

39:                                               ; preds = %37
  store i64 %38, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %173, %39
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = load i32, ptr %2, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %57, label %44

44:                                               ; preds = %40
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %176

45:                                               ; preds = %0
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  br label %218

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  br label %217

53:                                               ; preds = %37
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  br label %216

57:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %168, %57
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = load i32, ptr %1, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %172

63:                                               ; preds = %58
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %64, i32 noundef %65)
          to label %67 unwind label %80

67:                                               ; preds = %63
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %68, i32 noundef %69)
          to label %71 unwind label %80

71:                                               ; preds = %67
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %66, i32 noundef %70, i64 noundef %73)
          to label %74 unwind label %80

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %84

77:                                               ; preds = %74
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %17, align 4, !tbaa !9
  br label %99

80:                                               ; preds = %71, %67, %63
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %10, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %11, align 4
  br label %171

84:                                               ; preds = %74
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %85, i32 noundef %86)
          to label %88 unwind label %95

88:                                               ; preds = %84
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %90, i32 noundef %91)
          to label %93 unwind label %95

93:                                               ; preds = %88
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %87, i32 noundef %92, i64 noundef 1)
          to label %94 unwind label %95

94:                                               ; preds = %93
  br label %99

95:                                               ; preds = %161, %157, %152, %147, %143, %133, %128, %124, %116, %111, %107, %93, %88, %84
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %171

99:                                               ; preds = %94, %77
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %2, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 1
  %103 = icmp eq i32 %100, %102
  br i1 %103, label %104, label %107

104:                                              ; preds = %99
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %17, align 4, !tbaa !9
  br label %118

107:                                              ; preds = %99
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %108, i32 noundef %109)
          to label %111 unwind label %95

111:                                              ; preds = %107
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %113, i32 noundef %114)
          to label %116 unwind label %95

116:                                              ; preds = %111
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %110, i32 noundef %115, i64 noundef 1)
          to label %117 unwind label %95

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117, %104
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %17, align 4, !tbaa !9
  br label %135

124:                                              ; preds = %118
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %125, i32 noundef %126)
          to label %128 unwind label %95

128:                                              ; preds = %124
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = sub nsw i32 %130, 1
  %132 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %129, i32 noundef %131)
          to label %133 unwind label %95

133:                                              ; preds = %128
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %127, i32 noundef %132, i64 noundef 1)
          to label %134 unwind label %95

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134, %121
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %1, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  %139 = icmp eq i32 %136, %138
  br i1 %139, label %140, label %143

140:                                              ; preds = %135
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %17, align 4, !tbaa !9
  br label %154

143:                                              ; preds = %135
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %144, i32 noundef %145)
          to label %147 unwind label %95

147:                                              ; preds = %143
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %16, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  %151 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %148, i32 noundef %150)
          to label %152 unwind label %95

152:                                              ; preds = %147
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %146, i32 noundef %151, i64 noundef 1)
          to label %153 unwind label %95

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153, %140
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %157, label %167

157:                                              ; preds = %154
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  %160 = invoke noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %158, i32 noundef %159)
          to label %161 unwind label %95

161:                                              ; preds = %157
  %162 = load i64, ptr %13, align 8, !tbaa !11
  %163 = trunc i64 %162 to i32
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %160, i32 noundef %163, i64 noundef %165)
          to label %166 unwind label %95

166:                                              ; preds = %161
  br label %167

167:                                              ; preds = %166, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %16, align 4, !tbaa !9
  br label %58, !llvm.loop !13

171:                                              ; preds = %95, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %216

172:                                              ; preds = %62
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %14, align 4, !tbaa !9
  br label %40, !llvm.loop !15

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

177:                                              ; preds = %194, %176
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = load i32, ptr %3, align 4, !tbaa !9
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %201

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %183 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %184 unwind label %197

184:                                              ; preds = %182
  %185 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %183, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %186 unwind label %197

186:                                              ; preds = %184
  %187 = load i64, ptr %12, align 8, !tbaa !11
  %188 = trunc i64 %187 to i32
  %189 = load i32, ptr %19, align 4, !tbaa !9
  %190 = load i32, ptr %20, align 4, !tbaa !9
  %191 = invoke noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %189, i32 noundef %190)
          to label %192 unwind label %197

192:                                              ; preds = %186
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %188, i32 noundef %191, i64 noundef 1)
          to label %193 unwind label %197

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %18, align 4, !tbaa !9
  br label %177, !llvm.loop !16

197:                                              ; preds = %192, %186, %184, %182
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %10, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %216

201:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %202 = load i64, ptr %12, align 8, !tbaa !11
  %203 = load i64, ptr %13, align 8, !tbaa !11
  %204 = 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_tagEmEES4_EEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSK_NS_12graph_traitsISK_E17vertex_descriptorESS_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %202, i64 noundef %203)
          to label %205 unwind label %212

205:                                              ; preds = %201
  %206 = trunc i64 %204 to i32
  store i32 %206, ptr %21, align 4, !tbaa !9
  %207 = load i32, ptr %21, align 4, !tbaa !9
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %207)
          to label %209 unwind label %212

209:                                              ; preds = %205
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %208, i8 noundef signext 10)
          to label %211 unwind label %212

211:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, 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_tagEmEES3_EEEEEES3_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 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void

212:                                              ; preds = %209, %205, %201
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %10, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %216

216:                                              ; preds = %212, %197, %171, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %217

217:                                              ; preds = %216, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %218

218:                                              ; preds = %217, %45
  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_tagEmEES3_EEEEEES3_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 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %10, align 8
  %221 = load i32, ptr %11, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

; 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_tagEmEES3_EEEEEES3_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_tagEmEES4_EEEEEES4_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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #5 align 2

; 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_tagEmEES4_EEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSK_NS_12graph_traitsISK_E17vertex_descriptorESS_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #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_tagEmEES3_EEEEEES3_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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.anon = type { ptr }
%class.anon.0 = type { ptr, ptr, ptr }
%"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>>>>>, 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>>>>>>>::_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>>>>>, 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>>>>>>>::_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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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

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 %class.anon, align 8
  %6 = alloca %class.anon.0, align 8
  %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
  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
  %12 = 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)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  store ptr %5, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %1, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %2, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #6
  %18 = load i32, ptr %1, align 4, !tbaa !9
  %19 = shl nsw i32 %18, 1
  %20 = load i32, ptr %2, align 4, !tbaa !9
  %21 = mul nsw i32 %19, %20
  %22 = sext i32 %21 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_tagEmEES3_EEEEEES3_NS_5listSEEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %22, 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_tagEmEES4_EEEEEES4_NS0_5listSEEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(56) %7)
  %23 = 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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %24 unwind label %70

24:                                               ; preds = %0
  %25 = 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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %.preheader59 unwind label %72

.preheader59:                                     ; preds = %24
  %26 = load i32, ptr %2, align 4, !tbaa !9
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.preheader58.lr.ph, label %.preheader

.preheader58.lr.ph:                               ; preds = %.preheader59
  %28 = trunc i64 %25 to i32
  %29 = load i32, ptr %1, align 4, !tbaa !9
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.preheader58, label %.preheader

.preheader58:                                     ; preds = %.preheader58.lr.ph, %._crit_edge
  %31 = phi i32 [ %75, %._crit_edge ], [ %26, %.preheader58.lr.ph ]
  %32 = phi i32 [ %76, %._crit_edge ], [ %29, %.preheader58.lr.ph ]
  %.04961 = phi i32 [ %.pre-phi77, %._crit_edge ], [ 0, %.preheader58.lr.ph ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %.preheader58.._crit_edge_crit_edge

.preheader58.._crit_edge_crit_edge:               ; preds = %.preheader58
  %.pre76 = add nuw nsw i32 %.04961, 1
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader58
  %34 = icmp eq i32 %.04961, 0
  %35 = add nsw i32 %.04961, -1
  %36 = add nuw nsw i32 %.04961, 1
  %37 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.04961, i32 noundef 0)
  %38 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef 0)
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %37, i32 noundef %38, i64 noundef %40)
          to label %41 unwind label %.loopexit.split-lp

41:                                               ; preds = %.lr.ph
  br i1 %34, label %45, label %42

42:                                               ; preds = %41
  %43 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef 0)
  %44 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %35, i32 noundef 0)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %43, i32 noundef %44, i64 noundef 1)
          to label %45 unwind label %.loopexit.split-lp68

45:                                               ; preds = %42, %41
  %.045.peel = phi i32 [ 0, %42 ], [ 1, %41 ]
  %46 = load i32, ptr %2, align 4, !tbaa !9
  %47 = add nsw i32 %46, -1
  %48 = icmp eq i32 %.04961, %47
  br i1 %48, label %52, label %49

49:                                               ; preds = %45
  %50 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef 0)
  %51 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %36, i32 noundef 0)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %50, i32 noundef %51, i64 noundef 1)
          to label %54 unwind label %.loopexit.split-lp68

52:                                               ; preds = %45
  %53 = add nuw nsw i32 %.045.peel, 1
  br label %54

54:                                               ; preds = %52, %49
  %.146.peel = phi i32 [ %53, %52 ], [ %.045.peel, %49 ]
  %.pre = load i32, ptr %1, align 4, !tbaa !9
  %55 = icmp eq i32 %.pre, 1
  br i1 %55, label %.thread.peel, label %56

56:                                               ; preds = %54
  %57 = add nuw nsw i32 %.146.peel, 1
  %58 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef 0)
  %59 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.04961, i32 noundef 1)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %58, i32 noundef %59, i64 noundef 1)
          to label %61 unwind label %.loopexit.split-lp68

.thread.peel:                                     ; preds = %54
  %60 = add nuw nsw i32 %.146.peel, 2
  br label %61

61:                                               ; preds = %56, %.thread.peel
  %.357.peel = phi i32 [ %60, %.thread.peel ], [ %57, %56 ]
  %62 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef 0)
  %63 = zext nneg i32 %.357.peel to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %62, i32 noundef %28, i64 noundef %63)
          to label %64 unwind label %.loopexit.split-lp68

64:                                               ; preds = %61
  %65 = load i32, ptr %1, align 4, !tbaa !9
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %.peel.next, label %._crit_edge.loopexit

.preheader:                                       ; preds = %._crit_edge, %.preheader58.lr.ph, %.preheader59
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %.preheader
  %69 = trunc i64 %23 to i32
  br label %116

70:                                               ; preds = %0
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %138

72:                                               ; preds = %24
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %138

._crit_edge.loopexit:                             ; preds = %112, %64
  %74 = phi i32 [ %65, %64 ], [ %113, %112 ]
  %.pre73 = load i32, ptr %2, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader58.._crit_edge_crit_edge, %._crit_edge.loopexit
  %.pre-phi77 = phi i32 [ %.pre76, %.preheader58.._crit_edge_crit_edge ], [ %36, %._crit_edge.loopexit ]
  %75 = phi i32 [ %31, %.preheader58.._crit_edge_crit_edge ], [ %.pre73, %._crit_edge.loopexit ]
  %76 = phi i32 [ %32, %.preheader58.._crit_edge_crit_edge ], [ %74, %._crit_edge.loopexit ]
  %77 = icmp slt i32 %.pre-phi77, %75
  br i1 %77, label %.preheader58, label %.preheader, !llvm.loop !11

.peel.next:                                       ; preds = %64, %112
  %.04860 = phi i32 [ %.pre-phi, %112 ], [ 1, %64 ]
  %78 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.04961, i32 noundef %.04860)
  %79 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %80 = load i32, ptr %4, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %78, i32 noundef %79, i64 noundef %81)
          to label %82 unwind label %.loopexit

82:                                               ; preds = %.peel.next
  br i1 %34, label %86, label %83

.loopexit:                                        ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit.split-lp:                               ; preds = %.lr.ph
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %138

83:                                               ; preds = %82
  %84 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %85 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %35, i32 noundef %.04860)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %84, i32 noundef %85, i64 noundef 1)
          to label %86 unwind label %.loopexit67

.loopexit67:                                      ; preds = %83, %92, %95, %104, %109
  %lpad.loopexit69 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit.split-lp68:                             ; preds = %42, %49, %56, %61
  %lpad.loopexit.split-lp70 = landingpad { ptr, i32 }
          cleanup
  br label %138

86:                                               ; preds = %82, %83
  %.045 = phi i32 [ 0, %83 ], [ 1, %82 ]
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %88 = add nsw i32 %87, -1
  %89 = icmp eq i32 %.04961, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = add nuw nsw i32 %.045, 1
  br label %95

92:                                               ; preds = %86
  %93 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %94 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %36, i32 noundef %.04860)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %93, i32 noundef %94, i64 noundef 1)
          to label %95 unwind label %.loopexit67

95:                                               ; preds = %90, %92
  %.146 = phi i32 [ %91, %90 ], [ %.045, %92 ]
  %96 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %97 = add nsw i32 %.04860, -1
  %98 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.04961, i32 noundef %97)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %96, i32 noundef %98, i64 noundef 1)
          to label %99 unwind label %.loopexit67

99:                                               ; preds = %95
  %100 = load i32, ptr %1, align 4, !tbaa !9
  %101 = add nsw i32 %100, -1
  %102 = icmp eq i32 %.04860, %101
  br i1 %102, label %.thread, label %104

.thread:                                          ; preds = %99
  %103 = add nuw nsw i32 %.146, 1
  br label %109

104:                                              ; preds = %99
  %105 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %106 = add nuw nsw i32 %.04860, 1
  %107 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.04961, i32 noundef %106)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %105, i32 noundef %107, i64 noundef 1)
          to label %108 unwind label %.loopexit67

108:                                              ; preds = %104
  %.not = icmp eq i32 %.146, 0
  br i1 %.not, label %112, label %109

109:                                              ; preds = %.thread, %108
  %.357 = phi i32 [ %103, %.thread ], [ %.146, %108 ]
  %110 = call noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04961, i32 noundef %.04860)
  %111 = zext nneg i32 %.357 to i64
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %110, i32 noundef %28, i64 noundef %111)
          to label %._crit_edge74 unwind label %.loopexit67

._crit_edge74:                                    ; preds = %109
  %.pre75 = add nuw nsw i32 %.04860, 1
  br label %112

112:                                              ; preds = %._crit_edge74, %108
  %.pre-phi = phi i32 [ %.pre75, %._crit_edge74 ], [ %106, %108 ]
  %113 = load i32, ptr %1, align 4, !tbaa !9
  %114 = icmp slt i32 %.pre-phi, %113
  br i1 %114, label %.peel.next, label %._crit_edge.loopexit, !llvm.loop !14

._crit_edge64:                                    ; preds = %124, %.preheader
  %115 = 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_tagEmEES4_EEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSK_NS_12graph_traitsISK_E17vertex_descriptorESS_(ptr noundef nonnull align 8 dereferenceable(56) %7, i64 noundef %23, i64 noundef %25)
          to label %130 unwind label %136

116:                                              ; preds = %.lr.ph63, %124
  %.04462 = phi i32 [ 0, %.lr.ph63 ], [ %125, %124 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %117 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %118 unwind label %128

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %117, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %120 unwind label %128

120:                                              ; preds = %118
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = call noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %121, i32 noundef %122)
  invoke void @_ZN10edge_adder8add_edgeEiil(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %69, i32 noundef %123, i64 noundef 1)
          to label %124 unwind label %128

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %125 = add nuw nsw i32 %.04462, 1
  %126 = load i32, ptr %3, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %116, label %._crit_edge64, !llvm.loop !16

128:                                              ; preds = %120, %118, %116
  %129 = landingpad { ptr, i32 }
          cleanup
  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 %138

130:                                              ; preds = %._crit_edge64
  %131 = trunc i64 %115 to i32
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %131)
          to label %133 unwind label %136

133:                                              ; preds = %130
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %132, i8 noundef signext 10)
          to label %135 unwind label %136

135:                                              ; preds = %133
  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_tagEmEES3_EEEEEES3_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 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, 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

136:                                              ; preds = %133, %130, %._crit_edge64
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %138

138:                                              ; preds = %.loopexit67, %.loopexit.split-lp68, %.loopexit, %.loopexit.split-lp, %72, %128, %136, %70
  %.pn.pn.pn = phi { ptr, i32 } [ %71, %70 ], [ %129, %128 ], [ %137, %136 ], [ %73, %72 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit69, %.loopexit67 ], [ %lpad.loopexit.split-lp70, %.loopexit.split-lp68 ]
  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_tagEmEES3_EEEEEES3_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 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 } %.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_tagEmEES3_EEEEEES3_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_tagEmEES4_EEEEEES4_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_tagEmEES4_EEEEEES4_NS_5listSEEENS9_12adj_list_genISH_S2_S2_S3_S4_SF_S4_SG_E6configENS_21directed_graph_helperISK_EEEENT0_17vertex_descriptorERNS_17vec_adj_list_implIT_SN_T1_EE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ5solvevENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; 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_tagEmEES4_EEEEEES4_NS_5listSEEEEENS_15property_traitsINS_12property_mapIT_S6_vE10const_typeEE10value_typeERSK_NS_12graph_traitsISK_E17vertex_descriptorESS_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) 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_tagEmEES3_EEEEEES3_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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !12}


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