Calculate the number of knots in a program. For example if the source filename is filename.f and this option is used the results will be found in filename.met . The output file will be created in the current working directory, replacing any existing file with that name. The name of each program unit will be displayed on the standard output device. Software Science Calculations and Global calculations and results formatting.
Lexical analysis is run for all metrics except knots.
The parse tree analysis is run only for the calculation knots. Due to this no general agreement has yet been reached to establish which tokens are operators and which are operands. As can be seen from the above definition, the declarative section of a program is completely ignored because it is considered not to add to the complexity of the algorithm due to it not being executable. A very basic form of measuring the complexity of the code is to count the number of executable statements in the code. This measure may be used to identify large monolithic program units.