Inconsistent casting results for nested structures #6956
Labels
aws
Bugs or features of importance to AWS CBMC users
aws-high
Kani
Bugs or features of importance to Kani Rust Verifier
pending merge
CBMC version: 5.59.0 (cbmc-5.59.0)
Operating system: Ubuntu 18.04
Exact command line resulting in the issue: cbmc casting.c
What behaviour did you expect: The test should succeed.
What happened instead: The property
fn.assertion.2
fails.For the following test case:
The casting between
AltPtrWrapper
andPtrWrapper
is successful when done explicitly but not due to calling the functionalias
, it seems that CBMC is casting the outer structure members, but not the inner ones. Note that if the inner structures have the same type (by commentingA
and uncommentingB
), the test succeeds.The text was updated successfully, but these errors were encountered: