Skip to content

Feature request: Saturating arithmatic #5841

Closed

Description

@danielsn

It would be really useful to have saturating arithmetic primitives in CBMC

Activity

  1. added
    aws
    on Feb 19, 2021
  2. martin-cs commented on Feb 19, 2021

    @martin-cs
    Collaborator

    This should be reasonably do-able but it would be good to know a bit more about what you want. Are you using the internal back-end or an SMT solver? Do you want signed or unsigned? Do you have a particular implementation / system in mind? What about the edge cases involving the limit value(s); what is LIMIT * 0, what is LIMIT / 0 or 0 / LIMIT?

  3. peterschrammel commented on Feb 19, 2021

    @peterschrammel
    Member

    @danielsn, can you give a code example of a use case?

  4. martin-cs commented on Feb 21, 2021

    @martin-cs
    Collaborator

    Note that #5405 would give a relatively simple and probably pretty good route to implementing them.

  5. added a commit that references this issue on Feb 9, 2022
    56a7a49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

awsfeature requestpending merge

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions