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

Dependent property assumptions conflict with k-induction assumptions #102

Open
peterschrammel opened this issue Dec 30, 2017 · 0 comments
Open

Comments

@peterschrammel
Copy link
Member

Assuming an assertion to prevent detecting assertion violations that violate 'previous' assertions on the same path (aka dependent properties) has subtle interactions with the assumptions added to perform k-induction proofs.

Example:

extern void __VERIFIER_error() __attribute__ ((__noreturn__));
void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } }
#define SIZE 2
int main ( ) {
  int a[SIZE];
  int i = 0;
  while ( i < SIZE ) {
    a[i] = 42;
    i = i + 1;
  }
  int x;
  for ( x = 0 ; x < SIZE ; x++ ) {
    __VERIFIER_assert(a[x] == 43);
  }
  return 0;
}
@peterschrammel peterschrammel changed the title Making successive assertions dependent conflicts with k-induction assumptions Dependent property assumptions conflict with k-induction assumptions Dec 30, 2017
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

1 participant