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

Losing array length information of field in outline #760

Open
Dspil opened this issue Apr 10, 2024 · 0 comments
Open

Losing array length information of field in outline #760

Dspil opened this issue Apr 10, 2024 · 0 comments

Comments

@Dspil
Copy link
Contributor

Dspil commented Apr 10, 2024

The assertion in the following code snippet fails although it should be obvious from the type of x.m.

package pkg

type A struct {
	m [6]int
}

requires acc(&x.m)
func f(x *A) {
	preserves acc(&x.m)
	outline (
		assert len(x.m) == 6 // this assertion fails
	)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant