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] requires on arrays and strct


  • Subject: [Frama-c-discuss] requires on arrays and strct
  • From: johcrown at gmail.com (johcrown)
  • Date: Thu, 24 Sep 2009 18:35:10 +0200

hello,

one question about syntax in frama-C.
why it'not possible to write the following requires;

/*@ requires \valid((v.c[0 .. MAXLEN-1])->c[0 .. MAXLEN-1]); */
frama-c  -main f e.c -jessie
Uncaught exception: File "jc/jc_interp.ml", line 939, characters 25-31: 
Assertion failed

/*@ requires \valid((v.c[0 .. MAXLEN-1])->c+(0 .. MAXLEN-1)); */
frama-c  -main f e.c -jessie
Uncaught exception: File "jc/jc_interp.ml", line 939, characters 25-31: 
Assertion failed

/*@ requires \valid((v.c+(0 .. MAXLEN-1))->c+(0 .. MAXLEN-1)); */
frama-c  -main f e.c -jessie
e.c:8:[kernel] user error: Error during annotations analysis: expected a 
struct with field c

something wrong in my predicates or some todos in tools (-> assert false)?

many thnx for any help,
jc