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: a07f3367d7,b49755ab898bcffd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK again : for-loop vs single loop - a strange case Date: Sat, 29 May 2010 00:46:21 +0200 Organization: Ada At Home Message-ID: References: <2b6ae662-77e2-4d1a-a2b2-3df54f8ab98e@v37g2000vbv.googlegroups.com> <22bd64db-4c71-4856-a60f-f9b2411ab23b@v18g2000vbc.googlegroups.com> NNTP-Posting-Host: MBnfDkYuJKoIyXbkYutszA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12137 Date: 2010-05-29T00:46:21+02:00 List-Id: Le Fri, 28 May 2010 17:13:57 +0200, Phil Thornley = a =E9crit: > As I understand the documentation the default assertion should include= > hypotheses that I is in-type, but when simplified there are two > conclusions left for the A(I) :=3D 0; assignment: > C1: i >=3D 1 . > C2: i <=3D 10 . That's it. > So either my understanding of how the Examiner generates hypotheses is= > wrong or the Examiner is wrong. I would say the examiner is wrong, as 4.2 states it should really do as = = yourself expected. -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.