Project

General

Profile

Bug #13577 ยป ex21-upg2.c

Sepideh Asadi, 07/10/2019 00:12

 

unsigned int nondetUInt();

int plus2(int a){
return a +2; //a=2..12
}

int minus2(int b , int a){
a = add(a,b);
return b - 2;
}

int add(int a, int b){
return a + b;
}

void main(){
int a = nondetUInt;
int b = nondetUInt;
__CPROVER_assume(a>0);
__CPROVER_assume(a<10);

b = plus2(a);
b = minus2(b , b);
assert(a > b);
}

    (1-1/1)