Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies of Run #234

Merged
merged 12 commits into from
Nov 6, 2023
Merged

Dependencies of Run #234

merged 12 commits into from
Nov 6, 2023

Conversation

jcp19
Copy link
Contributor

@jcp19 jcp19 commented Oct 31, 2023

private/underlay/conn/conn.go Outdated Show resolved Hide resolved
@jcp19 jcp19 mentioned this pull request Oct 31, 2023
@jcp19 jcp19 requested a review from Dspil October 31, 2023 22:56
@jcp19 jcp19 marked this pull request as ready for review October 31, 2023 22:56
@jcp19
Copy link
Contributor Author

jcp19 commented Nov 2, 2023

We are currently hung-up in the following error: viperproject/gobra#702
(Gobra branch: https://github.com/viperproject/gobra/tree/joao-test-stronger-spec-errors)

@jcp19 jcp19 changed the title Another try at dependencies for Run Dependencies of Run Nov 6, 2023
@@ -398,38 +394,35 @@ func (cc *connUDPBase) initConnUDP(network string, laddr, raddr *net.UDPAddr, cf
return nil
}

// @ preserves c.Mem()
// @ preserves acc(c.Mem(), _)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of a nitpick but I would change this to requires (and same for similar cases below). I find it a bit confusing since it is not really preserved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna change this, but decided against. If one expands the definition of _, I would argue that it is preserved:

preserves exists p perm :: 0 < p && p < perm(c.Mem()) && acc(c.Mem(), p)

@jcp19 jcp19 merged commit fee6345 into master Nov 6, 2023
4 checks passed
@jcp19 jcp19 deleted the joao-deps-run-after-recursive-err branch November 6, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants