Skip to content

Add select example for full buffer.#175

Merged
lredlin merged 1 commit intogoose-lang:newfrom
lredlin:ex
Feb 20, 2026
Merged

Add select example for full buffer.#175
lredlin merged 1 commit intogoose-lang:newfrom
lredlin:ex

Conversation

@lredlin
Copy link
Collaborator

@lredlin lredlin commented Feb 17, 2026

Some examples to demonstrate the use of select specs to verify a panic branch isn't taken on a buffered channel

@lredlin lredlin merged commit b593145 into goose-lang:new Feb 20, 2026
1 check passed
lredlin added a commit to mit-pdos/perennial that referenced this pull request Feb 20, 2026
…lang/goose#175 (#545)

Verify an example that properly rules out a panicking branch for a send
on a full buffered channel with a nonblocking select. - Also show the
equivalent with a blocking select(only 1 case so equivalent to send),
which will block indefinitely and verify because it deadlocks.
- Also show where the proof would fall through if the panic branch's
send was on a buffer with space in it

Contains Regoose for goose-lang/goose#175
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.

1 participant