Open master-q opened 11 months ago
Thanks for the report and the patches! This will run clang twice on every file that infer analyses, which could be expensive. Would it be ok to gate this behind an option like --also-run-original-compilation-command
?
Yes. It's a good idea!
Infer used
-O0
option to build AST and foo.o file. But on Linux kernel, the source code is written to be used-O2
optimizer level. We had failure on verifing Linux kernel code with Infer as following:Infer can verify Linux kernel code with this patch and some patches for kernel as following:
https://gist.github.com/master-q/4b3e09e664a15187290f0f22d1bcb3c6