As someone who's never worked with the Windows kernel, I'm curious about the tools you mention. How do I get them?
[1]: http://research.microsoft.com/en-us/news/features/prefast.as... [2]: https://msdn.microsoft.com/en-us/library/windows/hardware/ff...
https://msdn.microsoft.com/en-us/library/windows/hardware/ff...
Basically, there's an additional step after compilation, called code analysis, which runs this static verification. I think it's implemented on top of the Z3 theorem prover.
https://msdn.microsoft.com/en-us/library/windows/hardware/ff...