Skip to content

CBMC accepts -<hex> constants at the irep level, but does the wrong thing with them #6759

Closed

Description

@danielsn

CBMC should either error, or accept.

Activity

  1. added
    aws
    on Mar 24, 2022
  2. adpaco commented on Mar 24, 2022

    @adpaco
    Contributor

    Attached negative-hex-symtab.zip which includes a symbol table that reproduces the issue.

  3. adpaco commented on Mar 24, 2022

    @adpaco
    Contributor

    Also, is this something that could have been detected by validating the generated GotoC code?

  4. self-assigned this
    on Apr 5, 2022
  5. removed
    aws
    on Apr 5, 2022
  6. tautschnig commented on Apr 5, 2022

    @tautschnig
    Collaborator

    This has been fixed in Kani, but I still need to get to the bottom of why this was accepted in the first place.

  7. added a commit that references this issue on Apr 6, 2022
    3e80156
  8. tautschnig commented on Apr 6, 2022

    @tautschnig
    Collaborator

    #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.

  9. removed their assignment
    on Apr 6, 2022
  10. added 3 commits that reference this issue on Apr 6, 2022
    567e0e7
    0f5d334
    9624d5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions