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,35bd0e7237228bcd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.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 and the Ada numerics annex Date: Tue, 10 Aug 2010 13:40:18 +0200 Organization: Ada At Home Message-ID: References: <064d3276-769c-46f7-9590-77a90af589cb@t20g2000yqa.googlegroups.com> <16833c47-5ba5-4a1d-b92f-6375e9275322@h32g2000yqm.googlegroups.com> NNTP-Posting-Host: anOtUalzMUZHasssFqT+2w.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.60 (Win32) Xref: g2news1.google.com comp.lang.ada:13050 Date: 2010-08-10T13:40:18+02:00 List-Id: Le Tue, 10 Aug 2010 12:53:01 +0200, Ada novice a= = =E9crit: >> You can create a "shadow" specification of the various Numerics >> packages to get at their facilities. See section 13.1 of the book >> on Shadows. >> - Rod, SPARK Team > > Thanks for this information. I don't have the book yet and I have been= > looking only at the first chapter which is freely available. I'll > study this section when I get the book. You can already get an idea right know (although the Barnes is still a = must have recommended reading), if you have a look at this AdaGem : http://www.adacore.com/2010/02/25/gem-80/ Basically, this is re-interfacing things so that SPARK does not get angr= y = with what it sees. By the way, this is a natural strategy, ... sure you would have though = about it yourself. I've discovered this is named "shadow specification" = = just at the moment, reading Rod. I did not knew before this had this nam= e. -- = 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.