Hi Venkata,
I can actually give a partial answer to your question.
There is a common user perception that if a header file is specified in a source file, the Polyspace analysis should knows its contents. That is somewhat true for standard headers. But even for standard headers, it might be better if you specify the path to your compiler version of the headers by using the -I option (or by just adding the header paths to the Project Include Folders if you are running analysis from the UI). The reason is that eventually you are compiling your code with those headers and you want the Polyspace analysis to emulate your compilation as closely as possible. As an aside, there is a command polyspace-configure that can extract the header paths from a build command or makefile without you having to explicitly dig them up. However, for standard headers, Polyspace does know their contents and you do not necessarily have to specify folder paths to those headers using an analysis option. For instance, a simple file with stdio.h included will compile fine without your having to specify the path to your compiler version of stdio.h. Along the same lines, Rte_Type.h is a standard header too, but only in the AUTOSAR context. So:
- If you run a regular Code Prover analysis, say using polyspace-code-prover, you have to explicitly specify the folder paths to the AUTOSAR headers. Simply including them in source files will not work. If you know the folder paths to the AUTOSAR headers, you can take this approach.
- If you run the polyspace-autosar command, it is AUTOSAR-aware. You then do not have to specify the folder paths to AUTOSAR headers explicitly.
Hope this helps.