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 clause


  • Subject: [Frama-c-discuss] Assigns clause
  • From: rovedy at ig.com.br (Rovedy Aparecida Busquim e Silva)
  • Date: Tue, 24 Sep 2013 16:54:00 -0300

Hi,

We have a doubt related to assigns clause.

All VCs of the attached function were proved.

We wrote an assigns clause to the Interp array taking in account three
elements:
 assigns Interp[0..2];

However, we would like to write a more precise assigns clause for the
Interp array that has two or three elements according to Itab value.

In the requires and ensures clauses the Itab value was considered, for
example:
requires Itab != 1 ==> \valid_range (Interp,0,2);

requires Itab == 1 ==> \valid_range (Interp,0,1);

How to write the assigns clause for the Interp array taking in account the
Itab value?

Best regards,
Nanci, Rovedy e Luciana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20130924/8c5ea886/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: site8d_16.c
Type: text/x-csrc
Size: 1257 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20130924/8c5ea886/attachment.c>