Closed u201111476 closed 1 month ago
Infer detects dead store, but not general dead code as above. In addition, the liveness checker does simple data flow analysis, so does not try to understand the boolean condition that is always evaluated to true or false. https://fbinfer.com/docs/next/all-issue-types#dead_store
Does Infer plan to release a next version to support dead code check?
I have a file named main.c,whose content is as following:
then I use
infer capture -- clang -c main.c
andinfer analyze
,there is no dead code in the result though the printf will never execute. What should I do to let Infer report this dead code?