necpp
necpp copied to clipboard
Unreachable code found.
Very small enhancement:
In matrix_algebra.cpp, void solves, line 791:
Snip*
for (int64_t k = 0; k < nop; k++ ) {
if ( k != 0 ) {
int64_t ia = np-1;
for (int64_t i = 0; i < np; i++ ) {
ia++;
j++;
b[ia+column_offset]= scm[j];
}
if ( k == nop)
continue;
} /* if ( k != 0 ) */
This part:
if ( k == nop)
continue;
k can never reach the value nop since the loop defines k < nop
Imre Biacsics