SE547: CBMC: CBMC Algorithm [7/19] Previous pageContentsNext page

1) Start with a C program with assert(...) and assume(...) statements.

void test (int x, int y) {
  int i; int z=0;
  assume (x < y);
  for (i=x; i<y; i++) { z++; }
  assert (z > 0);
}

file:assume-assert.c Is this program OK?

Previous pageContentsNext page