From 0b4747665cc44f2bc5242dbcdc936b20431a9c00 Mon Sep 17 00:00:00 2001 From: AnaGrskovic Date: Mon, 4 Dec 2023 18:18:21 +0100 Subject: [PATCH] Comment out while loop for now --- src/tools.ml | 4 ++-- src/tools.mli | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools.ml b/src/tools.ml index 1ecc663..de61d1f 100644 --- a/src/tools.ml +++ b/src/tools.ml @@ -87,12 +87,12 @@ let find_max_flow_on_path : int graph -> int graph -> int list -> int option = in find_max_flow_on_path path -let rec while_loop condition action x = +(*let rec while_loop condition action x = if condition x then begin action x; (* Execute the action *) while_loop condition action x (* Recursive call for the next iteration *) end else - () + ()*) diff --git a/src/tools.mli b/src/tools.mli index b969085..35a03d4 100644 --- a/src/tools.mli +++ b/src/tools.mli @@ -17,6 +17,6 @@ val check_if_backward_arc_is_in_path : int arc -> int list -> bool val find_max_flow_on_path : int graph -> int graph -> int list -> int option -val while_loop : ('a -> bool) -> ('a -> unit) -> 'a -> unit +(*val while_loop : ('a -> bool) -> ('a -> unit) -> 'a -> unit*)