You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CBMC errors out with l2_rename_rvalues case struct not handled #6911
CBMC version: 5.58.1
Operating system: Ubuntu 20.04
Exact command line resulting in the issue: cbmc test.out
What behaviour did you expect: Verification successful
What happened instead:
$ cbmc test.out
CBMC version 5.58.1 (cbmc-5.58.1) 64-bit x86_64 linux
Reading GOTO program from file test.out.for-main
Generating GOTO Program
Adding CPROVER library (x86_64)
Removal of function pointers and virtual functions
Generic Property Instrumentation
Running with 8 object bits, 56 offset bits (default)
Starting Bounded Model Checking
l2_rename_rvalues case `struct' not handled
changed the title [-]CBMC errors out with `l2_rename_rvalues case `struct' not handled`[/-][+]CBMC errors out with `l2_rename_rvalues case struct not handled`[/+]on Jun 7, 2022
I'll take a look. This warning arises when there is a struct constant on the left-hand side of an expression. I'll debug to see whether this is part of the input to CBMC, or wrongly generated by CBMC.
The issue appears to be in the code generated by Kani, which includes the following (printed from the goto binary, but it's also present in the JSON file):
Activity
[-]CBMC errors out with `l2_rename_rvalues case `struct' not handled`[/-][+]CBMC errors out with `l2_rename_rvalues case struct not handled`[/+]tautschnig commentedon Jun 7, 2022
I'll take a look. This warning arises when there is a struct constant on the left-hand side of an expression. I'll debug to see whether this is part of the input to CBMC, or wrongly generated by CBMC.
tautschnig commentedon Jun 8, 2022
The issue appears to be in the code generated by Kani, which includes the following (printed from the goto binary, but it's also present in the JSON file):
Note the struct on the left-hand side of this assignment.
jimgrundy commentedon Aug 23, 2022
We now have a version of this in a C code repository, so, not Kani specific. I'll see if we can get a version of it posted.