Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Assigns broken for arrays?


  • Subject: [Frama-c-discuss] Assigns broken for arrays?
  • From: Boris.Hollas at de.bosch.com (Hollas Boris (CR/AEY1))
  • Date: Wed, 1 Apr 2009 15:53:40 +0200

Hello,

Jessie is unable to prove assigns a[..] in this code:


/*@ requires \valid(a+ (0..aLength-1));
    assigns a[..];
*/
void foo(int a[], int aLength) {
  int j;

  //@ loop invariant 0 <= j;
  for(j=0; j<aLength; j++) {
    a[j] = 0;
  }
}


I suppose that "assigns" is broken for arrays.

- Boris