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] Help to write the specification in ACSL


  • Subject: [Frama-c-discuss] Help to write the specification in ACSL
  • From: intissar_mzalouat at yahoo.fr (intissar mzalouat)
  • Date: Mon, 10 Dec 2012 09:09:22 +0000 (GMT)

Hello all,

I am a biginner user of Frama-C.
I need to verify this function using the jessie plug in.

int find_largest(struct *queue, int nr_of_elements) {

? int i, largest;

? largest = 0;
? for (i = 0; i < nr_of_elements; i++) {
??? if (queue[i].p > largest)
????? largest = queue[i].p;
? }
? 
? if ( (largest >= 10) ) {
??? 
??? ? return 0;
? }

? return largest;

}

I got some problems to specify in ACSL this function because of the largest variable.
Could you help me please?

Best regards,
Intissar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121210/55dd5093/attachment.html>