--- layout: fc_discuss_archives title: Message 89 from Frama-C-discuss on December 2009 ---
Am 08.12.2009 um 14:54 schrieb Claude Marche: >> > add "loop variant n-i;" and you should be done ! I had a look at section "loop variants" (page 37) in http://frama-c.cea.fr/download/acsl-implementation-Beryllium-20090902.pdf . It says Optionally, a loop annotation may include a loop variant of the form ... where m is a term of type integer . The semantics is as follows: for each loop iteration that terminates normally or with continue, the value of m at end of the iteration must be smaller that its value at the beginning of the iteration. Moreover, its value at the beginning must be nonnegative. Note that the value of m at loop exit might be negative. It does not compromise termination of the loop. It would be nice if this section would be more explicit that in general loop variants are necessary for (automatic?) provers because ... Regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20091209/bbc7d539/attachment-0001.htm