Skip to content
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

Merged
merged 10 commits into from
Feb 18, 2025
Merged

Conversation

ajreynol
Copy link
Member

@ajreynol ajreynol commented Feb 12, 2025

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.

@ajreynol ajreynol changed the title Simplify handling of overloaded symbols Fix and simplify handling of overloaded symbols Feb 12, 2025
Copy link
Contributor

@hansjoergschurr hansjoergschurr left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh this seems wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah style was off :)

@ajreynol ajreynol merged commit d5bdce8 into main Feb 18, 2025
20 checks passed
@ajreynol ajreynol deleted the ethosFix-0208 branch February 18, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ethos gets stuck and consumes huge amounts of ram when checking a rule with a complex conclusion clause
2 participants