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,48e1a3c594fb62e8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK Date: Mon, 17 May 2010 02:59:32 +0200 Organization: Ada At Home Message-ID: References: <4bf034bd$0$2417$4d3efbfe@news.sover.net> NNTP-Posting-Host: 6sUBlpWRomDanJhrZTDH7A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; 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:11670 Date: 2010-05-17T02:59:32+02:00 List-Id: Le Sun, 16 May 2010 20:13:27 +0200, Peter C. Chapin = a =C3=A9crit: > My understanding is that assert prevents the simplifier from using = > previous > material as hypotheses in following verification conditions---as you = > noticed > in your experiments. John Barnes talks about this in his book a little= . > Mostly I think assert is intended for use in loops. Without it, SPARK = = > needs > to consider each loop iteration as a spearate path Here is the word, as you said, this cut the path. That's what I've learn= ed = later too. This starts a new path, with a new hypotheses set, and indeed= , = forget about all previous. Now we know why it is so. > [...] > So to summarize perhaps a good rule might be to use assert to express = = > loop > invariants and check for everything else. I welcome other comments on = = > this. It seems all is there. > I'm learning as well. Great! Cheers -- = There is even better than a pragma Assert: a SPARK --# check. Wanted: if you know about some though in the area of comparisons between= = SPARK and VDM, please, let me know. Will enjoy to talk with you about it= .