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

Infinite Ghost Loops #796

Closed
gottschali opened this issue Nov 18, 2024 · 0 comments · Fixed by #800
Closed

Infinite Ghost Loops #796

gottschali opened this issue Nov 18, 2024 · 0 comments · Fixed by #800

Comments

@gottschali
Copy link

The following program verifies on 97f0988

func fun2() int {
	//@ ghost for {}
	return 0
}
func main() {
	fun2()
}

By the ghost erasure property, it should not verify since with ghost code it loops infinitely but without terminates.

@jcp19 mentioned this could be fixed by adding a syntactical check that requires a termination measure for ghost loops.

@jcp19 jcp19 linked a pull request Nov 27, 2024 that will close this issue
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 a pull request may close this issue.

1 participant