--- layout: fc_discuss_archives title: Message 19 from Frama-C-discuss on December 2008 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] \result in assigns



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