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,FROM_NUMERIC_TLD autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93a8020cc980d113 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out04b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!newspeer1.nwr.nac.net!bbc!caladan!news-peer-lilac.gradwell.net!not-for-mail From: "Stuart" Newsgroups: comp.lang.ada References: <1176150704.130880.248080@l77g2000hsb.googlegroups.com> <461B52A6.20102@obry.net> <461BA892.3090002@obry.net> <82dgve.spf.ln@hunter.axlog.fr> <1176226291.589741.257600@q75g2000hsh.googlegroups.com> <4eaive.6p9.ln@hunter.axlog.fr> <1176412709.5632.55.camel@localhost.localdomain> Subject: Re: What is wrong with Ada? Date: Fri, 13 Apr 2007 08:39:58 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-ID: <461f307f$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1176450015 news.gradwell.net 758 dnews/20.133.0.1:59921 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:14973 Date: 2007-04-13T08:39:58+01:00 List-Id: "Georg Bauhaus" wrote in message news:1176412709.5632.55.camel@localhost.localdomain... > On Thu, 2007-04-12 at 14:47 -0400, Robert A Duff wrote: > >> And it is impossible to cover all paths in a program containing >> unbounded loops or recursion, because there are an infinite number of >> them. > > Just out of curiosity: If I have a suitable annotated program, > is there a tool that can give a good estimate on the number of > steps along a selection of paths that indicates the program > is running in circles? (Not that I expect to be still alive when > the test has finished... :-) SPARK does analyze loops for stability (stops doing anything apparently useful) and reports how many iterations it takes (its index). That is a fairly crude description - I expect Peter or Rod might chip in with some more detail. A Google search on "flow analysis" and "loop stability" throws up quite useful references - including an ACM paper on: "Information-Flow and Data-Flow Analysis of while Programs" by Bergeretti and Carre. -- Stuart