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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ed872c72866dab2b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: expression function bug or think? Date: Fri, 17 Jun 2011 05:56:34 +0200 Organization: Ada @ Home Message-ID: References: <678085105329914667.504682rmhost.bauhaus-maps.arcor.de@news.arcor.de> NNTP-Posting-Host: b7NxRzGgpBNKFlvVWk2OfA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.11 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:20874 Date: 2011-06-17T05:56:34+02:00 List-Id: Le Thu, 16 Jun 2011 17:56:32 +0200, Adam Beneschan a = =C3=A9crit: > However, this is the kind > of thing that's easy to screw up in a compiler. You have a tree > representing the conditional expression, and then you try to rearrange= > the nodes in the tree in order make the code run faster and avoid > redundant computations, and if you don't do it right then something > that was supposed to be evaluated conditionally gets moved so that > it's evaluated before the condition is checked, and then your code > blows up. There is no formal proofs the applied transformations are valid ? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] Java: Write once, Never revisit