-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Replace empty check of error, warning and info list with check for errors only #15203
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.
There is also an instance of using errors().empty()
check at
solidity/libsolidity/formal/ModelChecker.cpp
Line 142 in d0190e1
else if (!m_unsupportedErrorReporter.errors().empty()) |
but in this case it is specifically used to collect only warnings in SMTEncoder
, BMC
and CHC
.
This pull request is stale because it has been open for 14 days with no activity. |
This pull request is stale because it has been open for 14 days with no activity. |
19b414c
to
d290eb2
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.
One of the changes is still incorrect. See this thread: #15203 (comment)
2e56620
to
5dbe3b7
Compare
This pull request is stale because it has been open for 14 days with no activity. |
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.
This now looks fine. Just needs a rebase and we can merge.
Since this was sitting for quite a while, before merging I'd recommend a quick check whether a new instance of .errors().empty()
hasn't appeared somewhere.
5dbe3b7
to
dd015d8
Compare
2652c7e
to
efa3728
Compare
efa3728
to
13fe5ba
Compare
This is a minor bug found here by @cameel.
There are some instances where an intended check for errors can incorrectly consider warnings and info as well.