Skip to content
Snippets Groups Projects
precond2.c 468 B
Newer Older
/* run.config
   OPT: -warn-special-float none -load-script tests/rte/compute_annot/compute_annot.ml -journal-disable
*/

int global = 15;

typedef struct cell {
  int val;
  struct cell* next;
} cell;


typedef struct other {
  cell c;
} other;


/*@ requires x > 0 ;
    requires (int) (x + y) != 0 ;
*/
int f(int x, int y, float z) {
  return x + y - (int) z;
}


int g(int a, int b) {
  return a / b ;
}

int main() {
  int a=2,b=3;

  return f(b-a,g(a,b),1.0);
}