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

Investigate how to move assumptions out of ensure_... functions #675

Open
adpaco-aws opened this issue Dec 22, 2020 · 0 comments
Open

Investigate how to move assumptions out of ensure_... functions #675

adpaco-aws opened this issue Dec 22, 2020 · 0 comments
Labels
cbmc CBMC proof related work

Comments

@adpaco-aws
Copy link
Collaborator

Some ensure_... functions need to make assumptions about certain sub-structures before doing the regular "ensuring" process. We will investigate ways to move these assumptions somewhere else or remove them completely.

As an example, the function ensure_default_cmm_attempt_allocation from #656 where the following code is executed before allocating cmm:

    /* Assumptions required to init cmm */
    ensure_cryptosdk_keyring_has_allocated_members(keyring, vtable);
    __CPROVER_assume(aws_cryptosdk_keyring_is_valid(keyring));
    __CPROVER_assume(keyring->vtable != NULL);
@adpaco-aws adpaco-aws added the cbmc CBMC proof related work label Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cbmc CBMC proof related work
Projects
None yet
Development

No branches or pull requests

1 participant