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 accepts -<hex> constants at the irep level, but does the wrong thing with them #6759
#6786 now does what Adrian proposed: --validate-goto-model will catch this issue. (The commit message in there also explains what was going with the example attached to this issue.) Kani has an open feature request in model-checking/kani#957 to enable these checks.
Activity
adpaco commentedon Mar 24, 2022
Attached negative-hex-symtab.zip which includes a symbol table that reproduces the issue.
adpaco commentedon Mar 24, 2022
Also, is this something that could have been detected by validating the generated GotoC code?
tautschnig commentedon Apr 5, 2022
This has been fixed in Kani, but I still need to get to the bottom of why this was accepted in the first place.
goto-model validation: Validate constant_exprt
tautschnig commentedon Apr 6, 2022
#6786 now does what Adrian proposed:
--validate-goto-modelwill catch this issue. (The commit message in there also explains what was going with the example attached to this issue.) Kani has an open feature request in model-checking/kani#957 to enable these checks.goto-model validation: Validate constant_exprt
goto-model validation: Validate constant_exprt
goto-model validation: Validate constant_exprt