Skip to content

Commit

Permalink
rlimit
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed May 14, 2021
1 parent cf3cd00 commit 8838ecb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/3d/prelude/Actions.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,8 @@ let validate_string
LP.parser_kind_prop_equiv k p;
validate_weaken (validate_list_up_to v r terminator (fun _ _ _ -> ())) _
#restart-solver
inline_for_extraction noextract
let validate_all_bytes2 : validate_with_action_t parse_all_bytes true_inv eloc_none true =
fun #inputLength input startPosition ->
Expand Down
3 changes: 3 additions & 0 deletions src/3d/prelude/EverParse3d.Readable.fst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ let unreadable_split_1
()
#pop-options

#push-options "--z3rlimit 16"
#restart-solver
let unreadable_split_2
(h: HS.mem)
(#t: _) (#b: B.buffer t) (p: perm b)
Expand All @@ -172,6 +174,7 @@ let unreadable_split_2
(ensures (unreadable h p from to))
= Seq.lemma_split (B.as_seq h (B.gsub b from (to `U32.sub` from))) (U32.v mid - U32.v from);
if F.model then Seq.lemma_split (B.as_seq h (B.gsub (p <: perm' b) from (to `U32.sub` from))) (U32.v mid - U32.v from)
#pop-options

let unreadable_split h #t #b p from mid to =
Classical.move_requires (unreadable_split_1 h p from mid) to;
Expand Down

0 comments on commit 8838ecb

Please sign in to comment.