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: f43e6,a1b5e9e496bc760b,start X-Google-Attributes: gidf43e6,public X-Google-Thread: 1089ad,a1b5e9e496bc760b,start X-Google-Attributes: gid1089ad,public X-Google-Thread: 103376,a1b5e9e496bc760b,start X-Google-Attributes: gid103376,public From: Jos De Laender Subject: Cyclomatic complexity Date: 1997/11/03 Message-ID: <345D98D0.31AE@sh.bel.alcatel.be>#1/1 X-Deja-AN: 286730837 Organization: Alcatel SSD Newsgroups: comp.lang.ada,comp.lang.vhdl,comp.software-eng Date: 1997-11-03T00:00:00+00:00 List-Id: This is a multi-part message in MIME format. --------------69525AF5E24 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Although I'm not sure if it is relevant, I first of all want to mention that I'm active in development using VHDL. This is a programming language with ADA roots, used especially in hardware development. For it being a hardware description language, not too many software principles are usually applied on it. I read some stuff about measuring complexity using 'Mc Cabe's cyclomatic complexity measurement' in software. Although it seems quite nice on the level of one module, I have difficulties to understand how the stuff glues when putting together 'modules' or 'subprograms'. Suppose that I have : A main program 'A' , with complexity 2 and integration complexity 2 A subprogram 'B' , with complexity 2 and integration complexity 2 A subprogram 'C' , with complexity 3 and integration complexity 2 A subprogram 'D' , with complexity 2 and integration complexity 1 'A' calls 'B' at one place and calls 'C' at two places. 'B' and 'C' both call 'D' at one place. How should I calculate the total complexity of the whole program ? Does the number of calls of one particular subprogram by one particular subprogram influence the result ? How ? Does the fact that a subprogram is separately verified or not influence the result (Subprogram in a package or not) ? How ? I would appreciate very much any clarification or pointer to such a clarification. Hereby I put my hope especially on the ADA - guys ;-) Kind regards. --------------69525AF5E24 Content-Type: text/plain; charset=us-ascii; name=".@Signature.Posting" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=".@Signature.Posting" === Expressed opinions are not necessarily those of Alcatel === \\\|/// ir. Jos De Laender ( 0 0 ) Alcatel - SSD (Switching Systems Division) oo0-(_)-0oo ASIC design - VA21 _\ ' ` /_ \ \ALCATEL/ / F. Wellesplein 1, B-2018 Antwerp, Belgium \ \ / / \ \ / / E-mail : mailto:jdla@sh.bel.alcatel.be \ \ / / o0 Y 0o Alcatel Bell : http://www.bel.alcatel.be \|/ Alcatel Telecom : http://www.alcatelecom.be * Phone : (32)(0) 3 240 74 61 Fax : (32)(0) 3 240 99 47 --------------69525AF5E24--