Wei Lu and Min-Yen Kan
AIRS 2005 (Jeju Island, Korea)
Code
Metrics Analysis
•Metrics: measurement of program source
code
–Complexity: statistical measurements, e.g. CC,
IFIN
– We proposed our own metrics in addition to published metrics
Example:
a(2);
function a(x){
if(x>1){
z=1:2?(y>1);
}
}
TCC=2+1=3
(total cyclomatic complexity of the code)
IFIN=1+1+2=4
(degree of information
flows)
– Reuse:
code similarity via some form of edit distance
– SED: String-based Edit Distance
– TED: Tree (Abstract Syntax Tree)-based Edit
Distance
– LED: Lexical, token-based Edit Distance