scitools.com

← Metric catalog

Sum Strict Modified Essential Complexity is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Sum Strict Modified Essential Complexity

API IDSumEssentialStrictModified
TargetsArchitectures Files Packages Project Subprograms
LanguagesAda
AggregationSum
CategoriesComplexity
CostQuery
TagsEssential

Sum of strict modified essential complexity of all nested functions or methods.

For example:

package Essential_Demo is
   procedure Simple_Proc (X : in out Integer);
   function Strict_Func (A, B : Boolean; N : Integer) return Integer;
   function Case_Func (Day : Integer) return Integer;
   function Mixed_Func (A, B : Boolean; Day : Integer) return Integer;
end Essential_Demo;

Simple_Proc, Strict_Func, Case_Func, and Mixed_Func have Strict Modified Essential Complexity of 1, 5, 2, and 7. For the Essential_Demo package, the sum is 1 + 5 + 2 + 7 = 15, as it is for the file containing their implementations (essential.adb). A subprogram that nests other subprograms sums their values the same way.

See Max and Average Strict Modified Essential Complexity for the other aggregations.

Targets By Language: