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,ec6f74e58e86b38b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK and testing. Date: Sat, 29 May 2010 01:06:46 +0200 Organization: Ada At Home Message-ID: References: <0466e131-cc80-4db4-b080-eec9aefcb1c7@z17g2000vbd.googlegroups.com> <4bfd2d05$0$27598$ba4acef3@reader.news.orange.fr> <1jo6gjejsy828$.e9dx6txqbazd$.dlg@40tude.net> <4bfd998c$0$2359$4d3efbfe@news.sover.net> <4bfebb3f$0$27571$ba4acef3@reader.news.orange.fr> <4bffaed5$0$2378$4d3efbfe@news.sover.net> <4bffbd56$0$2376$4d3efbfe@news.sover.net> 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:12139 Date: 2010-05-29T01:06:46+02:00 List-Id: Le Fri, 28 May 2010 14:59:38 +0200, Peter C. Chapin = a =E9crit: > I can elaborate on this a little more. In my case the program I'm = > working on > now needs to compute the minimum model of a collection of Datalog rule= s > (Datalog is a simple logic language that has been discussed as a possi= ble > database query language). I don't know how to express such a complex, = = > high > level characteristic as a SPARK '--#post' annotation. > > What I need to say is that the information in an array Model_Area (an = = > array of > tuples) is the minimum model implied by the Datalog rules in a differe= nt > array Storage_Area. It is well beyond my skills with SPARK to say such= a > thing. I'm not saying that it is beyond SPARK's ability to express tha= t > relationship, but for me it is just easier to explore the matter with = a = > test > program. I believe there is indeed some reification capabilities in SPARK. This i= s = not just that easy. I don't believe it would be more easy anyway with = other methods like B or VDM. As long as you can write in SPARK, some pre/post matching an abstract da= ta = type property, you can do the same in SPARK. The matter is, how difficul= t = it is. And when I see things about SPARK, it mostly talks about avoiding= = runtime error, and not so much about proving an ADT has this and that = property. Which does not mean it is not possible. -- = 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.