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

Let the center of a predicate statement be the keyword #6010

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Dec 27, 2024

What was changed?

Let the center of a predicate statement be the keyword ('assert/'assume'/'expect') instead of the center of the condition, so it gets a different position than a precondition failure of the outermost node of the condition. Example:

assert P(x)
        ^ previous center of error "assertion might not hold"
        ^ center of error "function precondition could not be proved" 
^ new center of error "assertion might not hold"

How has this been tested?

Updated existing tests

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@keyboardDrummer keyboardDrummer marked this pull request as ready for review December 27, 2024 17:46
@keyboardDrummer keyboardDrummer enabled auto-merge (squash) December 27, 2024 21:31
@keyboardDrummer keyboardDrummer requested review from fabiomadge and removed request for MikaelMayer December 28, 2024 11:00
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