-
Notifications
You must be signed in to change notification settings - Fork 271
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-cc doesn't handle BUILD_BUG_ON_ZERO macro in Linux #7927
Labels
Comments
The problem would appear to be that |
Interestingly, defining
doesn't generate the error by |
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Oct 13, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
3 tasks
I recalled that I had looked into this before. Patch from 2021 now PRed as #7959. |
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Oct 13, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Oct 19, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Oct 27, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 16, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Dec 13, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Dec 13, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Dec 14, 2023
Neither GCC nor Clang simplify expressions involving symbols even when the result would always be 0, which our simplifier figure out. Fixes: diffblue#7927
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CBMC version:
Exact command line resulting in the issue:
What behaviour did you expect:
Both gcc and clang compile this code without errors:
The macro
BUILD_BUG_ON_ZERO
is used in Linux kernel, thus, fixing this issue would help with enabling cbmc for Linux.The text was updated successfully, but these errors were encountered: