Skip to content

goto-instrument: const quantifier #882

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

Closed
stahlbauer opened this issue Apr 28, 2017 · 0 comments
Closed

goto-instrument: const quantifier #882

stahlbauer opened this issue Apr 28, 2017 · 0 comments

Comments

@stahlbauer
Copy link
Contributor

@tautschnig goto-instrument falsely emits const quantifiers for some typedef:
typedef const unsigned int uint32_t; instead of typedef unsigned int uint32_t;.

The problem might be caused by using the following operator (and none of the .set(ID_C_constant, true); causes it): c_qualifierst &operator+=(const c_qualifierst &b) in c_qualifiers.h

Test case for reproducing the problem: typedef-const.zip

tautschnig added a commit to tautschnig/cbmc that referenced this issue May 3, 2017
Follow-up to 99067de, which made expr2c prefer typedef names over
original type expressions.

Thanks Andreas Stahlbauer for providing the regression tests and help in
debugging.

Fixes: diffblue#882
tautschnig added a commit to tautschnig/cbmc that referenced this issue May 8, 2017
Follow-up to 99067de, which made expr2c prefer typedef names over
original type expressions.

Thanks Andreas Stahlbauer for providing the regression tests and help in
debugging.

Fixes: diffblue#882
tautschnig added a commit to tautschnig/cbmc that referenced this issue Jun 8, 2017
Follow-up to 99067de, which made expr2c prefer typedef names over
original type expressions.

Thanks Andreas Stahlbauer for providing the regression tests and help in
debugging.

Fixes: diffblue#882
Fixes: diffblue#964
Fixes: diffblue#972
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants