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] \result in assigns


  • Subject: [Frama-c-discuss] \result in assigns
  • From: Christoph.Weber at first.fraunhofer.de (Christoph Weber)
  • Date: Fri, 12 Dec 2008 09:58:45 +0100

Hello again,

I need to use \result in an assigns - clause.

The algorithm 
int remove_copy_array (int* a, int length, int* dest, int value );

copies elements that are not equal to value from the range a[0, length) to a range beginning at dest. The return value is the length of the resulting range. This operation is stable, meaning that the relative order of the elements that are copied is the same as in the range a[0, length).

To proof that only dest[0..\result] has been altered, i need \result

Unfortunately i get the message:

File "remove_copy_array.jc", line 333, characters 22-29: typing error: \result not allowed here

Cheers



Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20081212/5d612f98/attachment.htm