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.36.242.65 with SMTP id j62mr4484158ith.7.1510933549830; Fri, 17 Nov 2017 07:45:49 -0800 (PST) X-Received: by 10.157.42.99 with SMTP id t90mr103582ota.5.1510933549690; Fri, 17 Nov 2017 07:45:49 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.kjsl.com!usenet.stanford.edu!i6no1088591itb.0!news-out.google.com!x87ni1616ita.0!nntp.google.com!d140no1212186itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 17 Nov 2017 07:45:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=155.148.6.150; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 155.148.6.150 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <12f75e44-f61b-4b59-ab82-3ae9b151f0be@googlegroups.com> Subject: Re: Tests in a software release From: Shark8 Injection-Date: Fri, 17 Nov 2017 15:45:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: feeder.eternal-september.org comp.lang.ada:48963 Date: 2017-11-17T07:45:49-08:00 List-Id: On Thursday, November 16, 2017 at 2:44:12 PM UTC-7, G.B. wrote: > > On the contrary: you write the contract's clauses of > all parties to your compiler and then, once you > know your code meets the requirements of the contracts, > you drop checking code accordingly ("optimize") and in > good conscience. > > if X /= X or else X /= X then > > -- what, at compile time, > -- for which which kind of X? IEEE754's NaN would yield true in that case, so you can't simply optimize that away, you'd have to do some analysis of the "="/"/=" operator.