summaryrefslogtreecommitdiff
path: root/tests/fstar/arrays
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fstar/arrays')
-rw-r--r--tests/fstar/arrays/Arrays.Clauses.Template.fst10
-rw-r--r--tests/fstar/arrays/Arrays.Funs.fst10
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/fstar/arrays/Arrays.Clauses.Template.fst b/tests/fstar/arrays/Arrays.Clauses.Template.fst
index 914ef44e..b5818ab6 100644
--- a/tests/fstar/arrays/Arrays.Clauses.Template.fst
+++ b/tests/fstar/arrays/Arrays.Clauses.Template.fst
@@ -7,31 +7,31 @@ open Arrays.Types
#set-options "--z3rlimit 50 --fuel 1 --ifuel 1"
(** [arrays::sum]: decreases clause
- Source: 'tests/src/arrays.rs', lines 245:0-253:1 *)
+ Source: 'tests/src/arrays.rs', lines 247:4-253:1 *)
unfold
let sum_loop_decreases (s : slice u32) (sum1 : u32) (i : usize) : nat =
admit ()
(** [arrays::sum2]: decreases clause
- Source: 'tests/src/arrays.rs', lines 255:0-264:1 *)
+ Source: 'tests/src/arrays.rs', lines 258:4-264:1 *)
unfold
let sum2_loop_decreases (s : slice u32) (s2 : slice u32) (sum1 : u32)
(i : usize) : nat =
admit ()
(** [arrays::zero_slice]: decreases clause
- Source: 'tests/src/arrays.rs', lines 306:0-313:1 *)
+ Source: 'tests/src/arrays.rs', lines 308:4-313:1 *)
unfold
let zero_slice_loop_decreases (a : slice u8) (i : usize) (len : usize) : nat =
admit ()
(** [arrays::iter_mut_slice]: decreases clause
- Source: 'tests/src/arrays.rs', lines 315:0-321:1 *)
+ Source: 'tests/src/arrays.rs', lines 317:4-321:1 *)
unfold
let iter_mut_slice_loop_decreases (len : usize) (i : usize) : nat = admit ()
(** [arrays::sum_mut_slice]: decreases clause
- Source: 'tests/src/arrays.rs', lines 323:0-331:1 *)
+ Source: 'tests/src/arrays.rs', lines 325:4-331:1 *)
unfold
let sum_mut_slice_loop_decreases (a : slice u32) (i : usize) (s : u32) : nat =
admit ()
diff --git a/tests/fstar/arrays/Arrays.Funs.fst b/tests/fstar/arrays/Arrays.Funs.fst
index a4f2e19f..5aad99e0 100644
--- a/tests/fstar/arrays/Arrays.Funs.fst
+++ b/tests/fstar/arrays/Arrays.Funs.fst
@@ -307,7 +307,7 @@ let non_copyable_array : result unit =
take_array_t (mk_array aB_t 2 [ AB_A; AB_B ])
(** [arrays::sum]: loop 0:
- Source: 'tests/src/arrays.rs', lines 245:0-253:1 *)
+ Source: 'tests/src/arrays.rs', lines 247:4-253:1 *)
let rec sum_loop
(s : slice u32) (sum1 : u32) (i : usize) :
Tot (result u32) (decreases (sum_loop_decreases s sum1 i))
@@ -327,7 +327,7 @@ let sum (s : slice u32) : result u32 =
sum_loop s 0 0
(** [arrays::sum2]: loop 0:
- Source: 'tests/src/arrays.rs', lines 255:0-264:1 *)
+ Source: 'tests/src/arrays.rs', lines 258:4-264:1 *)
let rec sum2_loop
(s : slice u32) (s2 : slice u32) (sum1 : u32) (i : usize) :
Tot (result u32) (decreases (sum2_loop_decreases s s2 sum1 i))
@@ -415,7 +415,7 @@ let ite : result unit =
Ok ()
(** [arrays::zero_slice]: loop 0:
- Source: 'tests/src/arrays.rs', lines 306:0-313:1 *)
+ Source: 'tests/src/arrays.rs', lines 308:4-313:1 *)
let rec zero_slice_loop
(a : slice u8) (i : usize) (len : usize) :
Tot (result (slice u8)) (decreases (zero_slice_loop_decreases a i len))
@@ -434,7 +434,7 @@ let zero_slice (a : slice u8) : result (slice u8) =
let len = slice_len u8 a in zero_slice_loop a 0 len
(** [arrays::iter_mut_slice]: loop 0:
- Source: 'tests/src/arrays.rs', lines 315:0-321:1 *)
+ Source: 'tests/src/arrays.rs', lines 317:4-321:1 *)
let rec iter_mut_slice_loop
(len : usize) (i : usize) :
Tot (result unit) (decreases (iter_mut_slice_loop_decreases len i))
@@ -449,7 +449,7 @@ let iter_mut_slice (a : slice u8) : result (slice u8) =
let len = slice_len u8 a in let* _ = iter_mut_slice_loop len 0 in Ok a
(** [arrays::sum_mut_slice]: loop 0:
- Source: 'tests/src/arrays.rs', lines 323:0-331:1 *)
+ Source: 'tests/src/arrays.rs', lines 325:4-331:1 *)
let rec sum_mut_slice_loop
(a : slice u32) (i : usize) (s : u32) :
Tot (result u32) (decreases (sum_mut_slice_loop_decreases a i s))