-
Notifications
You must be signed in to change notification settings - Fork 257
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
predicate subtypes of functions not propagating predicates #5245
Comments
As a workaround until we figure it out, I've found that switching back to first-order logic for definitions often helps. function apply(f: () -> bool): bool { f() }
type F = f:()->bool | apply(f) witness () => true
method test2() { assert forall f:F :: f();} |
@MikaelMayer, could you explain what you are doing there? I only see that you are introducing an indirection ( |
Failing code
Steps to reproduce the issue
Expected behavior
should verify
Actual behavior
assertion fails
The text was updated successfully, but these errors were encountered: