Skip to content
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

Support custom sized bitvectors #51

Closed
mikhailramalho opened this issue Feb 9, 2017 · 5 comments
Closed

Support custom sized bitvectors #51

mikhailramalho opened this issue Feb 9, 2017 · 5 comments

Comments

@mikhailramalho
Copy link
Member

Request from the cseq team.

They're using frama-c to do some interval analysis and define custom bitvectors with arbitrary size. In a number of cases, the verification time is much smaller.

CBMC uses this weird semantic:
__CPROVER_bitvector[10] a;

Obviously, the clang frontend will not allow that, even if we define the __CPROVER_bitvector type.

The easiest solution I could come up is to use source annotations, which we already use for infinite sized arrays. I propose something like:

attribute((annotate("bv=10")))
int a;

This is parsed by clang, we can still compile the code and it will require little effort to implement.

The down side: it will only be supported by the new frontend.

@jmorse
Copy link
Contributor

jmorse commented Feb 9, 2017 via email

@thefischsun
Copy link

thefischsun commented Feb 9, 2017 via email

@github-actions
Copy link

github-actions bot commented Dec 2, 2019

Stale issue message

@mikhailramalho mikhailramalho transferred this issue from another repository Dec 19, 2019
@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants