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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,14da4c08f1736a33 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!t13g2000yqm.googlegroups.com!not-for-mail From: Phil Thornley Newsgroups: comp.lang.ada Subject: Re: Array initialization in SPARK Date: Thu, 28 Oct 2010 09:38:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <03b3b80e-9313-45b8-939a-7dde7780288c@y23g2000yqd.googlegroups.com> <3c36d3ba-6748-4aa9-9304-a219b11415bb@30g2000yql.googlegroups.com> <20101028182601.058336d9@senier-offen> NNTP-Posting-Host: 80.177.171.182 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1288283920 27072 127.0.0.1 (28 Oct 2010 16:38:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 28 Oct 2010 16:38:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t13g2000yqm.googlegroups.com; posting-host=80.177.171.182; posting-account=Fz1-yAoAAACc1SDCr-Py2qBj8xQ-qC2q User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14899 Date: 2010-10-28T09:38:40-07:00 List-Id: On 28 Oct, 17:26, Alexander Senier wrote: [...] > It may be benificial to restrict the initialization to simple patterns > that could be verified (semi-)automatically in the future. [...] That's excellent advice. But if you can't do that, and it really is important to ensure complete initialization, and you are completing run-time check proofs, then you could force a check on the array: --# check for all I in Natural range Out_Matrix'Range(1) => --# (for J in Natural range Out_Matrix'Range(2) => --# (Out_Matrix(I, J) in Types.Float8)); but, for a complex initialization, completing the proof of this check will be correspondingly complex :-( Cheers, Phil