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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Fri, 11 May 2018 18:04:36 -0700 Organization: A noiseless patient Spider Message-ID: <87po21hefv.fsf@nightsong.com> References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87efiuope8.fsf@nightsong.com> <87lgd1heva.fsf@nightsong.com> <87zi1gz3kl.fsf@nightsong.com> <878t8x7k1j.fsf@nightsong.com> <87fu342q1o.fsf@nightsong.com> <87mux9645j.fsf@nightsong.com> <8736yz18e4.fsf@nightsong.com> <87mux62it0.fsf@nightsong.com> <87k1sat1ie.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="9dec120c4fa556eefd384bbc0bb3fc36"; logging-data="10097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YtuFt7lQ7qOHytn6Dgf+J" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:80amHj7yttJrm/wv25/zlTRuHss= sha1:H0sWfeg15LKXV8cuIadBU5dPi6o= Xref: reader02.eternal-september.org comp.lang.ada:52305 Date: 2018-05-11T18:04:36-07:00 List-Id: Niklas Holsti writes: > As I understand CodePeer, it is basically a weakest-precondition > generator. You point it at a subprogram and it will give you the > weakest precondition on parameters and globals that ensures that there > will be no run-time error in the subprogram. Aha, I guess that tells you what contracts to write, so then maybe you can then back up a level to the callers and do something similar to ensure the contracts are fulfilled, etc. It sounds pretty cool, but apparently it's a proprietary product, not something I can try out myself. Thanks though.