Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dnezam committed Feb 27, 2024
1 parent b2d3539 commit 81d515e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gomap/gomap.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ pure func AreDisjoint(m1, m2 map[int]int) (result bool) {
// True iff a map is injective.
ghost
requires acc(m, _)
// QUES This postcondition (and many of the following) don't verify either. Since
// Agree also does not verify even though it is not opaque, I would guess
// it has something to do with forall/triggers (even though IsSubset verifies just fine)
ensures result == dicts.IsInjective(ToDict(m))
opaque
decreases
Expand Down Expand Up @@ -157,6 +154,7 @@ pure func IsMonotonicFromTo(m map[int]int, start, end int) (result bool) {
ghost
requires acc(m1, _)
requires acc(m2, _)
// QUES Does not verify
ensures result == dicts.IsEqualInRange(ToDict(m1), ToDict(m2), start, end)
opaque
decreases
Expand All @@ -170,6 +168,7 @@ pure func IsEqualInRange(m1, m2 map[int]int, start, end int) (result bool) {
ghost
requires acc(m1, _)
requires acc(m2, _)
// QUES Does not verify
ensures result == dicts.Agree(ToDict(m1), ToDict(m2))
decreases
pure func Agree(m1, m2 map[int]int) (result bool) {
Expand Down

0 comments on commit 81d515e

Please sign in to comment.