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!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!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: Fri, 14 May 2010 05:07:53 +0200 Organization: Ada At Home Message-ID: References: NNTP-Posting-Host: mM0xwQlPwUIg+JKBHOmqjw.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:11595 Date: 2010-05-14T05:07:53+02:00 List-Id: The Quick Reference Card #1 talks about =E2=80=9Ctype assertion=E2=80=9D= : > A type assertion allows the user to specify the base type which the > compiler will associate with a signed integer type. The base type > must be supplied to the Examiner in the configuration file. This > assertion allows the Examiner to generate VCs which are much more > readily discharged [RTC 5.2]. > > Example: > type T is range 1 .. 10 > --# assert T=E2=80=99Base is Short_Short_Integer; As the Examiner ignore any representation clauses [SPARK 95 (13.1)], it = = cannot care to any implicit representation clause either. So what's the = = purpose of this kind of assertions ? Does the examiner check something = else which is not only the range ? Does it have something to deal with = type conversions ? -- = pragma Asset ? Is that true ? Waaww... great