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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.160.5 with SMTP id x5mr5888238ywg.22.1463055218021; Thu, 12 May 2016 05:13:38 -0700 (PDT) X-Received: by 10.157.14.45 with SMTP id c42mr105553otc.12.1463055217856; Thu, 12 May 2016 05:13:37 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!88no4000902qga.1!news-out.google.com!k10ni353igv.0!nntp.google.com!sq19no5535547igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 12 May 2016 05:13:37 -0700 (PDT) In-Reply-To: <5147eaaf-ca03-4288-8036-4f52c3364950@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.203.9; posting-account=l8k8IwoAAADeDydswOzwNzmn10qOk9gt NNTP-Posting-Host: 136.163.203.9 References: <5147eaaf-ca03-4288-8036-4f52c3364950@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Proof of array initialization in SPARK 2014 From: ake.ragnar.dahlgren@gmail.com Injection-Date: Thu, 12 May 2016 12:13:37 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:30388 Date: 2016-05-12T05:13:37-07:00 List-Id: SPARK has problems with arrays. I would say it's a well known issue. Maybe this will change in SPARK GPL 2016? However, I suggest you do not introduce a third state but use Boolean as originally intended and initialize A : My_Array(1..8) := (others => False); Put a post condition on the Initialize function of what the expected values of the Array should be.