You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
The text was updated successfully, but these errors were encountered:
peterschrammel
changed the title
Making successive assertions dependent conflicts with k-induction assumptions
Dependent property assumptions conflict with k-induction assumptions
Dec 30, 2017
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:
The text was updated successfully, but these errors were encountered: