comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: loop variant in SPARK ADA
Date: Mon, 19 Sep 2005 18:03:19 +0200
Date: 2005-09-19T18:02:41+02:00	[thread overview]
Message-ID: <432ee121$0$2102$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <AZAXe.4$QR.3@dfw-service2.ext.ray.com>

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




  reply	other threads:[~2005-09-19 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19  9:25 loop variant in SPARK ADA Constantin Porphyrogenete
2005-09-19 13:23 ` Jacob Sparre Andersen
2005-09-19 15:40 ` Jeffrey Carter
2005-09-19 16:03   ` Georg Bauhaus [this message]
2005-09-19 22:22     ` Jeffrey Carter
2005-09-20  8:17       ` Georg Bauhaus
2005-09-20 17:15 ` Rod Chapman
2005-09-21  2:49   ` Constantin Porphyrogenete
2005-09-21 17:31     ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox