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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,103b49cd5a4719fd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!q1g2000yqg.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: SPARK - Bubble Sort on Rosetta Code Date: Fri, 27 Aug 2010 04:03:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7462e56f-3cc3-41af-a52d-de47023287cf@q1g2000yqg.googlegroups.com> References: <5688938b-2047-4fef-9ea2-730abb761d07@g17g2000yqe.googlegroups.com> NNTP-Posting-Host: 20.133.0.13 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1282906993 29203 127.0.0.1 (27 Aug 2010 11:03:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Aug 2010 11:03:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q1g2000yqg.googlegroups.com; posting-host=20.133.0.13; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:13775 Date: 2010-08-27T04:03:13-07:00 List-Id: On Aug 27, 8:57 am, Phil Thornley wrote: > On 26 Aug, 23:32, Simon Wright wrote:> > > What would non-SPARK code do to make it fail? > > Get one of the bounds on the inner loop wrong? Get the termination > condition wrong for the outer loop and increment the pointer past the > end? Sorry for lack of clarity. The page says "guaranteed free of any run- time error when called from any other SPARK code", and I meant, how might *this* code fail when called from other *non-SPARK* code? (T