Skip to content

Feature request: Saturating arithmatic #5841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danielsn opened this issue Feb 19, 2021 · 4 comments
Closed

Feature request: Saturating arithmatic #5841

danielsn opened this issue Feb 19, 2021 · 4 comments
Assignees
Labels
aws Bugs or features of importance to AWS CBMC users feature request pending merge

Comments

@danielsn
Copy link
Contributor

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

@danielsn danielsn added the aws Bugs or features of importance to AWS CBMC users label Feb 19, 2021
@martin-cs
Copy link
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?

@peterschrammel
Copy link
Member

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

@martin-cs
Copy link
Collaborator

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

@danielsn
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users feature request pending merge
Projects
None yet
Development

No branches or pull requests

5 participants