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

Feature request: --cover array #265

Closed
martin-cs opened this issue Oct 24, 2016 · 1 comment
Closed

Feature request: --cover array #265

martin-cs opened this issue Oct 24, 2016 · 1 comment

Comments

@martin-cs
Copy link
Collaborator

martin-cs commented Oct 24, 2016

Can we have an additional coverage instrumentation that adds coverage goals for each possible entry of a fixed-size array when an instruction reads from the array:

int lookup [] = {0, 1, 2, 3, 4, 5, 6, 7};

int interpolate (int x) {
    int target = find_address(x);

    __CPROVER_cover(target == 0);
    __CPROVER_cover(target == 1);
    __CPROVER_cover(target == 2);
    __CPROVER_cover(target == 3);
    __CPROVER_cover(target == 4);
    __CPROVER_cover(target == 5);
    __CPROVER_cover(target == 6);
    __CPROVER_cover(target == 7);

    return computeValue(x, lookup[target]);
}

Requested by an industrial partner.

@kroening kroening assigned kroening and theyoucheng and unassigned kroening Oct 26, 2016
chrisr-diffblue added a commit to chrisr-diffblue/cbmc that referenced this issue Aug 24, 2018
…-analysis-vs

Cyclic variable sensitivity dependency analysis
@TGWDB TGWDB mentioned this issue Aug 10, 2021
7 tasks
@TGWDB
Copy link
Contributor

TGWDB commented Sep 1, 2021

Closing due to detail in #6284

@TGWDB TGWDB closed this as completed Sep 1, 2021
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