You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leaving this label in place will mark the function being inlined into as hidden,
which messes up, e.g., coverage instrumentation.
Consider hidden.c:
#include <string.h>
int foo() { char *a, *b; return memcmp(a, b, 1); }
int main() { foo(); return 0; }
goto-cc hidden.c
goto-instrument --add-library a.out b.out (add library function with hiding)
goto-analyzer --simplify c.out b.out (goto-analyzer does inlining)
cbmc --cover location c.out (will be missing any coverage targets in foo)
cbmc --cover location b.out (has coverage targets in foo)
With this patch, cbmc --cover location c.out also has coverage targets in foo.
0 commit comments