0
int main() {
    
    for (int i = 1; i < 10 ; i++) {
      test1();
    } 
    for (int i = 1; i < 10 ; i++)
      test2();

    return 0;
}

So for the code above, cflow can see test2() but not test1(). See output below:

$cflow tmp.c
main() <int main () at tmp.c:1>:
    test2()
$ cflow --version
cflow (GNU cflow) 1.7
Copyright (C) 2005-2021 Sergey Poznyakoff

Is this a bug or something very stupid I have done?

Thanks for you input!

1 Answers1

0

If you remove int i from the loops and define i = 0 outside the for loop, it shows both calls.