-
Notifications
You must be signed in to change notification settings - Fork 38
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
Incorrect semantics for empty slice #53
Comments
Concretely, in Perennial, I think we should be able to (faultily) prove this, whereas in Golang, this assertion fails.
I'm not sure how to complete the proof. I got to |
Here's a way to prove it: perennial/src/program_proof/bad_nil_slice.v Lines 33 to 53 in 322c48d
|
Yeah, our |
#72 (and its corresponding Goose changes) fixes this. Specifically, a |
In Go, empty slices are different from nil slices. See this example.
However, GooseLang models empty slices as nil values.
perennial/src/goose_lang/lib/slice/impl.v
Lines 69 to 74 in 04f9b19
The text was updated successfully, but these errors were encountered: