-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMV: set pretty names for top-level identifiers #452
Conversation
d1674c9
to
5728a30
Compare
Rebase required to resolve conflicts. |
Identifiers in module main now no longer carry the prefix main::var::.
5728a30
to
3ec49b5
Compare
done |
bool type2smv(const typet &type, std::string &code); | ||
|
||
bool expr2smv(const exprt &, std::string &code, const namespacet &); | ||
bool type2smv(const typet &, std::string &code, const namespacet &); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR, but rather asking about potential future work: Is bool
really the appropriate return type? Shouldn't places that return true
really be using UNIMPLEMENTED
instead? Then the return type could instead be std::string
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option would be to send anything that that code doesn't know how to format to format_expr
.
symbol_tablet symbol_table; | ||
namespacet ns(symbol_table); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really not have a symbol table or namespace available when invoking show_parse
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is pre typechecking.
Identifiers in module main now no longer carry the prefix
main::var::
.