Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Nov 5, 2023
1 parent daf35d0 commit 860af86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verification/dependencies/errors/errors_spec.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package errors
requires err.ErrorMem()
ensures res.ErrorMem()
ensures res.ErrorMem() --* err.ErrorMem()
decreases err.Size()
decreases err.ErrorMem()
func Unwrap(err error) (res error)

// Is reports whether any error in err's chain matches target.
Expand All @@ -27,7 +27,7 @@ func Unwrap(err error) (res error)
// it implements a method Is(error) bool such that Is(target) returns true.
preserves err != nil ==> err.ErrorMem()
preserves target != nil ==> target.ErrorMem()
decreases err.Size()
decreases err.ErrorMem()
func Is(err, target error) (res bool)

// As finds the first error in err's chain that matches target, and if one is found, sets
Expand All @@ -54,7 +54,7 @@ ensures res ==> (
target.CanSet(nestedErr) &&
(nestedErr.ErrorMem() --* err.ErrorMem()))
ensures !res ==> err.ErrorMem()
decreases err.Size()
decreases err.ErrorMem()
func As(err error, target ErrorCell) (res bool)

// Cell where one can store an error. This is used in the function
Expand Down

0 comments on commit 860af86

Please sign in to comment.