Is there a way that I can call CBMC from Python or is there any wrapper or API for it available?
My Problem is the following. I want to create a C function automatically in Python (this works quite well) and sent them to CBMC from Python for checking and get feedback if the function is OK or not.
Since CBMC can produce a significant amount of output your best bet would be to work out how to call if from the command line.
Once you have done that then you can use the
subprocess.call
library function to call the same with the output redirected to a file, then process the contents of the file.I would suggest using the
--xml-ui
flag to tell CBMC that you would like machine processable output.