/* TAGS: c todo */ /* VERIFY_OPTS: --sequential -o nofail:malloc */ extern void __VERIFIER_error() __attribute__ ((__noreturn__)); void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } #define SIZE 100000 /* Invited talk at ETAPS 2014 */ int main( ) { int password[ SIZE ]; int guess[ SIZE ]; int i; int result = 1; for ( i = 0 ; i < SIZE ; i++ ) { if ( password[ i ] != guess[ i ] ) { result = 0; } } if ( result ) { int x; for ( x = 0 ; x < SIZE ; x++ ) { __VERIFIER_assert( password[ x ] == guess[ x ] ); } } return 0; }