-
Notifications
You must be signed in to change notification settings - Fork 274
Multiplication of complex number is modelled incorrectly #8375
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
Labels
pending merge
soundness
Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.
Comments
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 11, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
3 tasks
Thank you for the report and helpful test. #8376 will eventually fix this, but still requires further work as not only the back-end was broken, but also |
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 11, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 11, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 11, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 12, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 12, 2024
Multiplication and division of complex numbers are not just pointwise applications of those operations. Fixes: diffblue#8375
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pending merge
soundness
Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.
CBMC version: 6.0.2
Operating system: Linux x86_64
Exact command line resulting in the issue: cbmc complex.c
What behaviour did you expect: assertion "right" succeeds, assertion "wrong" fails
What happened instead: assertion "right" fails, assertion "wrong" succeeds
Here is the code of complex.c:
CBMC behaves as if complex multiplication was done separately for the real and the imaginary part, like complex addition. I.e.
(a*b).real = a.real * b.real
and(a*b).img = a.img * b.img
. That is not how this works.The text was updated successfully, but these errors were encountered: