From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1d295367cf0b8c48 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Mon, 19 Sep 2005 18:03:19 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: loop variant in SPARK ADA References: <1127121942.777976.45330@f14g2000cwb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <432ee121$0$2102$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 19 Sep 2005 18:02:41 MEST NNTP-Posting-Host: 84b9656f.newsread2.arcor-online.net X-Trace: DXC=dm5[aNR@Uhhl_USDNiOQ5U85hF6f;DjW\KbG]kaMHQ>n?D9BSA]LIcZEZ5TEUQNljUVjRQ60?BVmnOeiOY3@Ng[50F7T5IOB X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:4910 Date: 2005-09-19T18:02:41+02:00 List-Id: Jeffrey Carter wrote: >> Read the book. It seems there is no >> way to assert a loop variant to >> help prove termination (I am thinking >> of the Eiffel loop variant). > > > Presumably you mean a loop invariant? Eiffel does have both an invariant and a variant in its loop, from ... invariant invariant_name: cond variant variant_name: int_var -- expr >= 0, decreasing until cond loop ... end loop