Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-aws committed Jul 12, 2023
1 parent fead347 commit 47e38d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/JSON/Utils/Cursors.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ module {:options "-functionSyntax:4"} JSON.Utils.Cursors {
: (pr: CursorResult<R>)
requires Valid?
decreases SuffixLength()
ensures pr.Success? ==> (pr.value.AdvancedFrom?(this))
ensures pr.Success? ==> pr.value.AdvancedFrom?(this)
{
match step(st, Peek())
case Accept => Success(this)
Expand Down
6 changes: 2 additions & 4 deletions src/JSON/ZeroCopy/Deserializer.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ module {:options "-functionSyntax:4"} JSON.ZeroCopy.Deserializer {

function {:opaque} WS(cs: FreshCursor): (sp: Split<jblanks>)
ensures sp.SplitFrom?(cs, SpecView)
ensures sp.cs.beg >= cs.beg
ensures sp.cs.end == cs.end
ensures sp.cs.s == cs.s
ensures sp.cs.SuffixOf?(cs)
{
cs.SkipWhile(Blank?).Split()
} by method {
Expand Down Expand Up @@ -426,7 +424,7 @@ module {:options "-functionSyntax:4"} JSON.ZeroCopy.Deserializer {

import ConcreteSyntax.SpecProperties

function {:rlimit 1000} {:vcs_split_on_every_assert} {:opaque} Value(cs: FreshCursor) : (pr: ParseResult<Value>)
function {:opaque} Value(cs: FreshCursor) : (pr: ParseResult<Value>)
decreases cs.Length(), 1
ensures pr.Success? ==> pr.value.StrictlySplitFrom?(cs, Spec.Value)
{
Expand Down

0 comments on commit 47e38d6

Please sign in to comment.