-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix and simplify handling of overloaded symbols #116
Conversation
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.
This looks good. There seems to be one typo though!
Also: code formatting :P
src/kind.cpp
Outdated
@@ -162,6 +162,7 @@ std::string kindToTerm(Kind k) | |||
case Kind::EVAL_INT_MOD: ss << "zmod";break; | |||
case Kind::EVAL_RAT_DIV: ss << "qdiv";break; | |||
case Kind::EVAL_IS_NEG: ss << "is_neg";break; | |||
case Kind::EVAL_GT: return "gt";break; |
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.
Huh this seems wrong.
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.
ah style was off :)
The previous solution was overly complicated and could lead to subtle issues with garbage collection.
Fixes #115.
Also makes a minor fix to the printer and removes a spurious assertion encountered while debugging this issue.