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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!d4g2000prg.googlegroups.com!not-for-mail From: "T. Taft" Newsgroups: comp.lang.ada Subject: Re: Test tool not only for Ada Date: Fri, 25 Jan 2008 20:57:46 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <47999e80$1_1@glkas0286.greenlnk.net> <3hudpxu5uku4.coi6mowz6oze$.dlg@40tude.net> NNTP-Posting-Host: 146.115.115.50 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1201323466 15376 127.0.0.1 (26 Jan 2008 04:57:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Jan 2008 04:57:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d4g2000prg.googlegroups.com; posting-host=146.115.115.50; posting-account=PvmV9AoAAAD6m3XXwubwsbGwa7cDXv1N User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19600 Date: 2008-01-25T20:57:46-08:00 List-Id: On Jan 25, 4:31 am, "Dmitry A. Kazakov" wrote: > 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]. The SofCheck Inspector is another static analysis tool that supports Ada. We keep track of the kinds of symbolic relationships you mention (such as X = Y) in addition to pure value range information. Our website is http://www.sofcheck.com You might check wikipedia for "static analysis" or "source code analysis". > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de Sincerely, -Tucker Taft SofCheck, Inc. Burlington, MA USA