--- layout: fc_discuss_archives title: Message 127 from Frama-C-discuss on September 2013 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Assigns clause



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>