Project

General

Profile

rec.c

Martin Blicha, 10/11/2017 13:44

 
1
int a;
2
int count;
3

    
4
int nondet_int();
5

    
6
void rec(){
7
  if (a < count){
8
    a++;
9
    rec();
10
  }
11
}
12

    
13
void main(){
14
  a = 0;
15
  count = 5;//nondet_int();
16
  //__CPROVER_assume(count > 5 && count < 100);
17
  rec();
18
  assert(a == 5);
19
}