[kernel] Parsing share/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing tests/spec/returns.i (no preprocessing)
/* Generated by Frama-C */
/*@ ensures \result ≢ \old(c); */
int f(int c)
{
  int __retres;
  /*@ returns \result ≡ 0; */
  if (c) {
    __retres = 0;
    /*@ assert __retres ≡ 0; */ ;
    goto return_label;
  }
  __retres = 42;
  return_label: return __retres;
}

/*@ requires \valid(a);
    ensures *\old(a) > 0; */
int g(int *a)
{
  int __retres;
  int *tmp;
  { /* sequence */
    tmp = a;
    a ++;
    ;
  }
  __sid_13_label: ;
  /*@ behavior neg:
        assumes *a < 0;
        returns \old(*a) ≡ -*a; */
  if (*a < 0) {
    *a = - *a;
    __retres = -1;
    /*@ assert \at(*a < 0,__sid_13_label) ⇒ \at(*a,__sid_13_label) ≡ -*a;
     */
    ;
    goto return_label;
  }
  if (*a != 0) {
    int *tmp_0;
    { /* sequence */
      tmp_0 = a;
      a ++;
      ;
    }
    __retres = 0;
    goto return_label;
  }
  __retres = 1;
  return_label: return __retres;
}


