bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-cflow] Occurrence of a single function


From: Louis Bertrand
Subject: Re: [bug-cflow] Occurrence of a single function
Date: Sat, 5 Dec 2015 08:53:00 -0500

> 
> Message: 1
> Date: Thu, 3 Dec 2015 14:20:18 +0530
> From: Debajyoti Majumdar <address@hidden>
> To: address@hidden
> Subject: [bug-cflow] Occurrence of a single function
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello..
> suppose in my c code if the same function is called again and again, the
> output of cflow has only one occurrence of that particular code.
> Why is it so?
> 
> Eg: my test code is:
>  1 #include<stdio.h>
>  2 int main(){
>  3         printf("hello ");
>  4         printf("world");
>  5
>  6
>  7
>  8 return 0;
>  9 }
> ~
> output is:
> 
> main() <int main () at /home/deb/test.c:2>:
>    printf()
> 
> 
> Shouldn't the ouput have 2 occurrences of printf()?
> -------------- next part ———————

cflow shows the caller-callee dependencies (see the documentation).
What if your call to printf() was in a loop in which the number of iterations
was determined at runtime?
Regards
 —Louis

Louis Bertrand
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]