-
Notifications
You must be signed in to change notification settings - Fork 6.3k
SMTChecker: Fix error that reports invalid number of verified checks #15191
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
SMTChecker: Fix error that reports invalid number of verified checks #15191
Conversation
dc8fbc3 to
af02228
Compare
| friend bool operator<(BMCVerificationTarget const& _a, BMCVerificationTarget const& _b) | ||
| { | ||
| return _a.expression->id() < _b.expression->id(); | ||
| if (_a.expression->id() == _b.expression->id()) |
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.
Here was the problem. We didn't accumulate more than 1 proved BMC target for a given expression.
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.
Right, good catch!
blishko
left a comment
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.
Let's not make unnecessary copies.
Otherwise, this is good!
| friend bool operator<(BMCVerificationTarget const& _a, BMCVerificationTarget const& _b) | ||
| { | ||
| return _a.expression->id() < _b.expression->id(); | ||
| if (_a.expression->id() == _b.expression->id()) |
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.
Right, good catch!
… for BMC and CHC engines
1eb00eb to
48f97a3
Compare
blishko
left a comment
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.
LGTM!
Solves #15188 for BMC egine.