summaryrefslogtreecommitdiff
path: root/tests/fstar
diff options
context:
space:
mode:
authorSon Ho2022-11-13 23:00:38 +0100
committerSon HO2022-11-14 14:21:04 +0100
commitfc21cf96f80ccb7e6455c057987bb0ff4597c0bb (patch)
treec06b0110bd123fb1e4959b774a5757e884d63df8 /tests/fstar
parent6db835db88c4bcf0e00ce1a7a6bc396382b393c3 (diff)
Make good progress on the Coq backend
Diffstat (limited to 'tests/fstar')
-rw-r--r--tests/fstar/misc/NoNestedBorrows.fst53
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/fstar/misc/NoNestedBorrows.fst b/tests/fstar/misc/NoNestedBorrows.fst
index 8161e7cd..36dea95b 100644
--- a/tests/fstar/misc/NoNestedBorrows.fst
+++ b/tests/fstar/misc/NoNestedBorrows.fst
@@ -228,59 +228,6 @@ and tree_t (t : Type0) =
| TreeLeaf : t -> tree_t t
| TreeNode : t -> node_elem_t t -> tree_t t -> tree_t t
-(** [no_nested_borrows::odd] *)
-let rec odd_fwd (x : u32) : result bool =
- if x = 0
- then Return false
- else
- begin match u32_sub x 1 with
- | Fail -> Fail
- | Return i ->
- begin match even_fwd i with | Fail -> Fail | Return b -> Return b end
- end
-
-(** [no_nested_borrows::even] *)
-and even_fwd (x : u32) : result bool =
- if x = 0
- then Return true
- else
- begin match u32_sub x 1 with
- | Fail -> Fail
- | Return i ->
- begin match odd_fwd i with | Fail -> Fail | Return b -> Return b end
- end
-
-(** [no_nested_borrows::test_even_odd] *)
-let test_even_odd_fwd : result unit =
- begin match even_fwd 0 with
- | Fail -> Fail
- | Return b ->
- if not b
- then Fail
- else
- begin match even_fwd 4 with
- | Fail -> Fail
- | Return b0 ->
- if not b0
- then Fail
- else
- begin match odd_fwd 1 with
- | Fail -> Fail
- | Return b1 ->
- if not b1
- then Fail
- else
- begin match odd_fwd 5 with
- | Fail -> Fail
- | Return b2 -> if not b2 then Fail else Return ()
- end
- end
- end
- end
-
-(** Unit test for [no_nested_borrows::test_even_odd] *)
-let _ = assert_norm (test_even_odd_fwd = Return ())
-
(** [no_nested_borrows::list_length] *)
let rec list_length_fwd (t : Type0) (l : list_t t) : result u32 =
begin match l with