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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b78c363353551702 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.68.223.73 with SMTP id qs9mr16159228pbc.7.1341664262314; Sat, 07 Jul 2012 05:31:02 -0700 (PDT) Path: l9ni11068pbj.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 07 Jul 2012 14:06:46 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: about the new Ada 2012 pre/post conditions References: <1i1mp8xs3vtl2.1oc4m66qtfgzq.dlg@40tude.net> <33crfw5vkxoh$.kz5mq75s36ee.dlg@40tude.net> <43e4637c-3337-4d99-be45-20e054e5a203@googlegroups.com> <6ua1uo9zmkjn$.1tmqyzmetx71u$.dlg@40tude.net> <4ff6969e$0$9514$9b4e6d93@newsspool1.arcor-online.net> <1xkiqefb6watw.10fvt344m3c4g$.dlg@40tude.net> <4ff6a20a$0$9525$9b4e6d93@newsspool1.arcor-online.net> <1l7pg7ihwb9vn$.kq6k3ypjwl07.dlg@40tude.net> <4ff6d51a$0$9514$9b4e6d93@newsspool1.arcor-online.net> <7xnkuta2d94n$.1815f9iev4s7r$.dlg@40tude.net> <79brat0uiqr5.s237scuc0h68$.dlg@40tude.net> In-Reply-To: <79brat0uiqr5.s237scuc0h68$.dlg@40tude.net> Message-ID: <4ff82656$0$9521$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 07 Jul 2012 14:06:46 CEST NNTP-Posting-Host: 96b9d6ab.newsspool1.arcor-online.net X-Trace: DXC=]`6>>Y:k49XI?44J>Z[:RQic==]BZ:af^4Fo<]lROoRQnkgeX?EC@@PW`=H1dd=2]QPCY\c7>ejVXfT71]<6`cN[o:17cB]9Sh\ X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-07-07T14:06:46+02:00 List-Id: On 07.07.12 11:14, Dmitry A. Kazakov wrote: > That the same function's behavior might be both defined and undefined. The function's behavior is not affected by assertion checking: A DbC function computes as if it its pre condition were true. Whatever the caller is going to pass to sqrt, the function sqrt corresponds to a sequence of instructions that compute a value from a float argument that is taken to be >= 0.0. Reason: it was stated in the contract. "shocking at first to many, it is among the method's main contributions to software reliability and deserves emphasis." (OOSC2, � 11.6)