swtv-kaist / cs458-spring24

7 stars 0 forks source link

[HW4] Functions from stdio.h #17

Closed frogfrog2 closed 5 months ago

frogfrog2 commented 6 months ago

I wrote down kcov-branch-identify and executed it with example-kcov.c, but the output was very weird. It contained lots of functions from stdio.h header file. In order to get the expected output, is there any fancy way to exclude the functions from stdio.h? Any help would be appreciated.

leejy12 commented 6 months ago

I solved it by getting the filename in which the FunctionDecl is declared, and not print the function name in VisitFunctionDecl, depending on the filename.