sqc 0.4.13

Software Code Quality - CERT C compliance checker
1
2
3
4
5
6
7
8
// MSC04-C pass: no recursion — each function calls a different one
int helper(int x) {
    return x * 2;
}

int compute(int n) {
    return helper(n) + 1;
}