-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adapt warning message for ensures not found #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having been confused by the original error message I think this is a nice improvement! 🎉
f6c1a6d
to
bfd31ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement, thanks!
I suggest a slight reformulation which might be clearer.
plugins/qcheck-stm/src/reserr.ml
Outdated
pf ppf "Skipping %s:@ model@ %s@ %a" f m text | ||
"is declared as modified by the function but no translatable ensures \ | ||
clause was found" | ||
pf ppf "@[Skipping %s:@ model@ %s@ %a@]@ @[%a@]@ @[%s = f (old %s)@]" f m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest something like:
"Skipping %s:@ model@ %s %a@;%a@ x.%s = ..."
to make sure it’s clear that the t
must appear, not contents
by itself, and that the clause doesn’t need to use old
.
bfd31ee
to
1c56524
Compare
I (force-)pushed a proposed reformulation. |
"translatable" was a bit confusing a word (translation was not really the issue). Add some explanation on what the ensures clause should look like.
1c56524
to
8f2ebf0
Compare
Thanks. I like the error message better now. |
This PR proposes a new warning message when the
next_state
case cannot be computed with the ensures clauses present in the specifications.This is an attempt to answer point 4 in #150