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 X-Google-Thread: 103376,77b4bef87595d604 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Test tool not only for Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <47999e80$1_1@glkas0286.greenlnk.net> Date: Fri, 25 Jan 2008 10:31:04 +0100 Message-ID: <3hudpxu5uku4.coi6mowz6oze$.dlg@40tude.net> NNTP-Posting-Date: 25 Jan 2008 10:31:05 CET NNTP-Posting-Host: 036a7d5e.newsspool1.arcor-online.net X-Trace: DXC=I0X3ZG0;g9FFJ3]dH>I?oEic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YBG;nTk=U:jFIDNcfSJ;bb[EFCTGGVUmh?DLK[5LiR>kgB[7Xe030NhLD X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19591 Date: 2008-01-25T10:31:05+01:00 List-Id: On Fri, 25 Jan 2008 08:48:35 -0000, Stuart wrote: > The interesting challenge for 'Abstract Interpretation' tools is deciding > how much detail to preserve at each stage. From the example should the tool > note that 'y' might have the values 2..40 or the set of values {2, 4, 6, > ..., 40}. > > This can become important, for instance if you had the statement: > z := 1000 / (y - 9); > > Could a divide by zero occur? If you had a lax model of 'y' [2..40] you > would be concerned, but a more accurate model would dispel the concern. There is another difficult aspect of the problem of uncertain computations. It is dependency analysis. For example: y := x; z := x * y; When x is in [-1, 2] then without knowing that y equals x, i.e. assuming that x and y are independent, the best possible estimation of z is [-2, 4]. With this knowledge it is [0, 4]. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de