diff options
author | Son Ho | 2022-01-06 14:43:35 +0100 |
---|---|---|
committer | Son Ho | 2022-01-06 14:43:35 +0100 |
commit | f2fb0dc39cfa9aef2b16963d3f8a270ec45bae5e (patch) | |
tree | 652fbd0e923a1cae5d6516f4ce9cadd9177c56db /src/Utilities.ml | |
parent | 3cadf01e5b67af4ec91f2de3c32e119cd90c678c (diff) |
Make good progress on implementing utilities to test symbolic execution
Diffstat (limited to 'src/Utilities.ml')
-rw-r--r-- | src/Utilities.ml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/Utilities.ml b/src/Utilities.ml deleted file mode 100644 index 6452d56f..00000000 --- a/src/Utilities.ml +++ /dev/null @@ -1,16 +0,0 @@ -(* Split a list at a given index [i] (the first list contains all the elements - up to element of index [i], not included, the second one contains the remaining - elements. Note that the first returned list has length [i]. - *) -let rec list_split_at (ls : 'a list) (i : int) = - if i < 0 then raise (Invalid_argument "list_split_at take positive integers") - else if i = 0 then ([], ls) - else - match ls with - | [] -> - raise - (Failure - "The int given to list_split_at should be <= the list's length") - | x :: ls' -> - let ls1, ls2 = list_split_at ls' (i - 1) in - (x :: ls1, ls2) |