Add printer that prints CILs internal AST representation#15
Add printer that prints CILs internal AST representation#15michael-schwarz wants to merge 10 commits intogoblint:developfrom
Conversation
| end (* class defaultCilPrinterClass *) | ||
|
|
||
| let defaultCilPrinter = new defaultCilPrinterClass | ||
| let defaultCilPrinter = new cilAstDumpClass |
There was a problem hiding this comment.
Let's not change the default one to this, we should leave it as it as.
There was a problem hiding this comment.
Just wanted to ask.
What's the difference to defaultCilPrinterClass? Does it just pretty print as valid C?
There was a problem hiding this comment.
Yes, it is e.g. the one we use for --enable justcil in Goblint.
|
Hello. Please note that this AST printer is not yet complete. For example, at the moment, it fails for any expression that is not a int main(void) {
int n = 4;
typedef int vla[n];
n++;
vla a;
int i = sizeof(a);
} |
|
Do we want to merge this so people can use it if they want to understand details about the representation? Or should we just close it? |
|
There's
I think we can just close it for now. There hasn't been need to have something more than the plain printers much. |
This can be helpful for understanding how
Ccode is represented byCil.