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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Assertions in SPARK (Was: If not Ada, what else...) Date: Mon, 27 Jul 2015 12:56:10 +0200 Organization: A noiseless patient Spider Message-ID: References: <14592326-5070-4663-a864-5684298f3748@googlegroups.com> <004361da-53c4-4ea9-8cc6-38944aa6c7ad@googlegroups.com> <29dd5458-f9ce-4db8-9128-8ab35a9ce5f8@googlegroups.com> <64bc671c-72e5-4924-b703-3b907c69949c@googlegroups.com> <877fq9uj6g.fsf@theworld.com> <65061686-5c8f-433b-9b11-9e228298158e@googlegroups.com> <87k2u96jms.fsf@jester.gateway.sonic.net> <06f8a6f9-d219-4d40-b9ac-8518e93839bd@googlegroups.com> <87y4io63jy.fsf@jester.gateway.sonic.net> <7a29d3e9-d1bd-4f4a-b1a6-14d3e1a83a4d@googlegroups.com> <87mvz36fen.fsf@jester.gateway.sonic.net> <87vbd67yr1.fsf_-_@adaheads.sparre-andersen.dk> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 27 Jul 2015 10:54:37 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="32220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FrMFGXiQmb8Pi4zZFW19QyKW06AXCdPg=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <87vbd67yr1.fsf_-_@adaheads.sparre-andersen.dk> Cancel-Lock: sha1:bjLySfqjN8RimYuYipVm1Aa6lPU= Xref: number.nntp.giganews.com comp.lang.ada:194334 Date: 2015-07-27T12:56:10+02:00 List-Id: On 27.07.15 11:09, Jacob Sparre Andersen wrote: > Paul Rubin wrote: > >> I remember being disappointed that (unless I missed something) there >> doesn't seem to be a way to put assertions in the middle of a function >> body and have Spark check them statically. Am I mistaken about that? > > You are. I don't have a SPARK book right here, but IIRC it is simply: > > --# assert Also worth considering is --# check which is different from assert in that is doesn't change SPARK's mind about where the interesting points in the paths are.