; LLVM IR from xtaci/algorithms :: src (relabel_to_front_demo)

; 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.alg::EdmondsKarp" = type { ptr, %"class.alg::Array2D", %"class.alg::HashTable", ptr, %"class.alg::HashTable", %"class.alg::HashTable" }
%"class.alg::Array2D" = type { i32, i32, ptr }
%"class.alg::HashTable" = type { i32, ptr, ptr }
%"class.alg::RelabelToFront" = type { ptr, ptr, %"class.alg::Array2D", %"class.alg::HashTable.0", %"class.alg::HashTable.0", %"class.alg::HashTable.1", %"class.alg::HashTable.1" }
%"class.alg::HashTable.0" = type { i32, ptr, ptr }
%"class.alg::HashTable.1" = type { i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.alg::EdmondsKarp", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.alg::RelabelToFront", align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %16 = call i64 @time(ptr noundef null) #6
  %17 = trunc i64 %16 to i32
  call void @srand(i32 noundef %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 300, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = call noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef %18)
  store ptr %19, ptr %7, align 8, !tbaa !9
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
  %23 = load ptr, ptr %7, align 8, !tbaa !9
  %24 = call noundef i32 @_ZNK3alg5Graph10edge_countEv(ptr noundef nonnull align 8 dereferenceable(36) %23)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %24)
  %26 = call i64 @clock() #6
  store i64 %26, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 104, ptr %8) #6
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_ZN3alg11EdmondsKarpC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(104) %8, ptr noundef nonnull align 8 dereferenceable(36) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  %30 = invoke noundef i32 @_ZN3alg11EdmondsKarp3runEii(ptr noundef nonnull align 8 dereferenceable(104) %8, i32 noundef 0, i32 noundef %29)
          to label %31 unwind label %67

31:                                               ; preds = %0
  store i32 %30, ptr %9, align 4, !tbaa !5
  %32 = call i64 @clock() #6
  store i64 %32, ptr %4, align 8, !tbaa !11
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
          to label %35 unwind label %67

35:                                               ; preds = %31
  %36 = call i64 @clock() #6
  store i64 %36, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #6
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  invoke void @_ZN3alg14RelabelToFrontC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 8 dereferenceable(36) %37)
          to label %38 unwind label %71

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = invoke noundef i32 @_ZN3alg14RelabelToFront3runEjj(ptr noundef nonnull align 8 dereferenceable(128) %12, i32 noundef 0, i32 noundef %40)
          to label %42 unwind label %75

42:                                               ; preds = %38
  store i32 %41, ptr %13, align 4, !tbaa !5
  %43 = call i64 @clock() #6
  store i64 %43, ptr %6, align 8, !tbaa !11
  %44 = load i32, ptr %13, align 4, !tbaa !5
  %45 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %44)
          to label %46 unwind label %75

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %47 = load i64, ptr %4, align 8, !tbaa !11
  %48 = load i64, ptr %3, align 8, !tbaa !11
  %49 = sub nsw i64 %47, %48
  store i64 %49, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %50 = load i64, ptr %6, align 8, !tbaa !11
  %51 = load i64, ptr %5, align 8, !tbaa !11
  %52 = sub nsw i64 %50, %51
  store i64 %52, ptr %15, align 8, !tbaa !11
  %53 = load i64, ptr %14, align 8, !tbaa !11
  %54 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %53)
          to label %55 unwind label %79

55:                                               ; preds = %46
  %56 = load i64, ptr %15, align 8, !tbaa !11
  %57 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %56)
          to label %58 unwind label %79

58:                                               ; preds = %55
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = icmp eq ptr %59, null
  br i1 %60, label %65, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %59, align 8, !tbaa !13
  %63 = getelementptr inbounds ptr, ptr %62, i64 1
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(36) %59) #6
  br label %65

65:                                               ; preds = %61, %58
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN3alg14RelabelToFrontD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZN3alg11EdmondsKarpD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %66 = load i32, ptr %1, align 4
  ret i32 %66

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

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

75:                                               ; preds = %42, %38
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %10, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %11, align 4
  br label %83

79:                                               ; preds = %55, %46
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %10, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %83

83:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN3alg14RelabelToFrontD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #6
  br label %84

84:                                               ; preds = %83, %71
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #6
  br label %85

85:                                               ; preds = %84, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZN3alg11EdmondsKarpD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %10, align 8
  %88 = load i32, ptr %11, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef) #3 align 2

declare i32 @printf(ptr noundef, ...) #4

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

; Function Attrs: nounwind
declare i64 @clock() #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg11EdmondsKarpC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg14RelabelToFrontC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

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

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

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

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


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

%"class.alg::EdmondsKarp" = type { ptr, %"class.alg::Array2D", %"class.alg::HashTable", ptr, %"class.alg::HashTable", %"class.alg::HashTable" }
%"class.alg::Array2D" = type { i32, i32, ptr }
%"class.alg::HashTable" = type { i32, ptr, ptr }
%"class.alg::RelabelToFront" = type { ptr, ptr, %"class.alg::Array2D", %"class.alg::HashTable.0", %"class.alg::HashTable.0", %"class.alg::HashTable.1", %"class.alg::HashTable.1" }
%"class.alg::HashTable.0" = type { i32, ptr, ptr }
%"class.alg::HashTable.1" = type { i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.alg::EdmondsKarp", align 8
  %2 = alloca %"class.alg::RelabelToFront", align 8
  %3 = tail call i64 @time(ptr noundef null) #6
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #6
  %5 = tail call noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef 300)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 299)
  %7 = tail call noundef i32 @_ZNK3alg5Graph10edge_countEv(ptr noundef nonnull align 8 dereferenceable(36) %5)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %7)
  %9 = tail call i64 @clock() #6
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #6
  call void @_ZN3alg11EdmondsKarpC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(36) %5)
  %10 = invoke noundef i32 @_ZN3alg11EdmondsKarp3runEii(ptr noundef nonnull align 8 dereferenceable(104) %1, i32 noundef 0, i32 noundef 299)
          to label %11 unwind label %27

11:                                               ; preds = %0
  %12 = call i64 @clock() #6
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %10)
  %14 = call i64 @clock() #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #6
  invoke void @_ZN3alg14RelabelToFrontC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %15 unwind label %29

15:                                               ; preds = %11
  %16 = invoke noundef i32 @_ZN3alg14RelabelToFront3runEjj(ptr noundef nonnull align 8 dereferenceable(128) %2, i32 noundef 0, i32 noundef 299)
          to label %17 unwind label %31

17:                                               ; preds = %15
  %18 = call i64 @clock() #6
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %16)
  %20 = sub nsw i64 %12, %9
  %21 = sub nsw i64 %18, %14
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %20)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %21)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load ptr, ptr %25, align 8
  call void %26(ptr noundef nonnull align 8 dereferenceable(36) %5) #6
  call void @_ZN3alg14RelabelToFrontD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %2) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #6
  call void @_ZN3alg11EdmondsKarpD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %1) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #6
  ret i32 0

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %34

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

31:                                               ; preds = %15
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3alg14RelabelToFrontD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %2) #6
  br label %33

33:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #6
  br label %34

34:                                               ; preds = %33, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %33 ], [ %28, %27 ]
  call void @_ZN3alg11EdmondsKarpD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %1) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg11EdmondsKarpC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg14RelabelToFrontC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass