-
Notifications
You must be signed in to change notification settings - Fork 273
Goto symex state clean-up #3445
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
Goto symex state clean-up #3445
Conversation
6543689
to
9db048d
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 9db048d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/91899118
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.
All useful stuff! I have only one question regarding the use of struct
versus class
.
@@ -267,9 +267,8 @@ class goto_symex_statet final | |||
|
|||
// stack frames -- these are used for function calls and | |||
// for exceptions | |||
class framet | |||
struct framet |
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 didn't know that was the convention. I only found this in the CBMC coding standard:
Prefer use of class instead of struct.
But that seems to be out of date.
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.
In general people use class when there are virtual functions, but I don't think it's explicitly a CBMC convention.
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.
The C++ Core Guidelines has two guidelines which relate to this:
- C.2: Use class if the class has an invariant; use struct if the data members can vary independently
- C.8: Use class rather than struct if any member is non-public
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.
Needs a rebase, otherwise good to go.
As convention we generaly use `class` in presence of virtual functions, which is not the case here.
No function change. As a convention we use class in presence of virtual function, which is not the case here, so struct is prefered.
No functional change
9db048d
to
27b4b03
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 27b4b03).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/92507822
No functional changes.