Re: [Valgrind-users] Dynamic analysis with given input

2013-10-29 Thread Josef Weidendorfer
Am 29.10.2013 03:27, schrieb Loi Luu: > supports many useful tools. I'm thinking to use *Callgrind *to solve my > problem, but I'm not sure whether its a right choice. Callgrind does observe branch behavior, and counts how often instructions from various branches are executed. The source annotati

[Valgrind-users] Dynamic analysis with given input

2013-10-28 Thread Loi Luu
Hi, I have a C program and I want to track all branch conditions which belong to an execution path corresponding to a concrete input. For example, consider a simple program: #include #include int test(char* a) { if (strcmp(a, "123") == 0) return 0; if (strcmp(a, "123") < 0)