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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1b5e9e496bc760b X-Google-Attributes: gid103376,public From: ltroeger@intermetrics.com Subject: Re: Cyclomatic complexity Date: 1997/11/07 Message-ID: <878921807.2181@dejanews.com>#1/1 X-Deja-AN: 287721875 References: <345D98D0.31AE@sh.bel.alcatel.be> <63kr9u$l31@top.mitre.org> To: jdla@sh.bel.alcatel.be X-Http-User-Agent: Mozilla/4.03 [en] (Win95; I) X-Originating-IP-Addr: 204.68.140.34 (proxy1a.lmco.com) Organization: Deja News Posting Service X-Authenticated-Sender: ltroeger@intermetrics.com X-Article-Creation-Date: Fri Nov 07 16:56:47 1997 GMT Reply-To: ltroeger@intermetrics.com Newsgroups: comp.lang.ada Date: 1997-11-07T00:00:00+00:00 List-Id: I have used cyclomatic complexity in different ways and found it useful. In a study on Space Shuttle code, I found a direct correlation between modules whose cyclomatic complexity exceeded the threshold of 10 and the number and severity of errors discovered in those modules. I am now using the McCabe toolset (which has other metrics and tools to compensate for the weaknesses in cyclomatic complexity itself) to focus independent verification and validation efforts on modules that have high cyclomatic and essential complexity measures in embedded flight software code. I have found, again, that modules whose metrics exceed those thresholds are much more prone to error. I should qualify this by saying that the code is written in C and is structured - I don't know how useful this would be on object-oriented code, and, indeed, McCabe and Assoc. have a new set of metrics and tools for object-oriented code. Also, integration issues such as global data problems, issues with tasking, and re-entrancy are not well addressed by the tool, and certainly not by the cyclomatic complexity measure itself. There is a complete discussion of all this in the NIST publication 500-235 "Structured Testing: A Testing Methodology Using the Cyclomatic Complexity Metric". It can be found on the McCabe website at: http://www.mccabe.com/nist The integration question is addressed in here as well. Lea Anne Troeger Program Area Technical Lead Automated/Robotic Spacecraft IV&V Intermetrics, Inc. ltroeger@intermetrics.com -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet