Skip to content

How to create constant non-deterministic array? #6362

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
hflsmax opened this issue Sep 23, 2021 · 2 comments
Closed

How to create constant non-deterministic array? #6362

hflsmax opened this issue Sep 23, 2021 · 2 comments
Assignees

Comments

@hflsmax
Copy link

hflsmax commented Sep 23, 2021

Sorry if this is not the right place to ask questions.

I need to create an array with non-deterministic value. I understand that I can use an uninitialized local variable. But I also want to make the array constant(meaning array.id()==ID_constant inside cbmc) so I can benefit from the performance gain during bit-blasting.

How I can make an array with non-deterministic value while being of type ID_constant?

@NlightNFotis NlightNFotis added aws-high aws Bugs or features of importance to AWS CBMC users labels Sep 30, 2021
@jimgrundy jimgrundy removed aws Bugs or features of importance to AWS CBMC users aws-high labels Oct 20, 2021
@tautschnig
Copy link
Collaborator

With apologies for the very late response. We do not currently have a concept of symbolic constants, hence constant propagation would not be performed on this. If #3619 were to be merged, this situation would change.

That said, would you have an example to share where you'd expect benefit from constant-propagating symbolic constants?

@tautschnig
Copy link
Collaborator

@hflsmax We'd need more input to progress this issue. Please feel free to re-open when you have additional information.

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

4 participants