Skip to content

Conversation

pavpanchekha
Copy link
Contributor

@pavpanchekha pavpanchekha commented Jun 18, 2025

This PR adds a new kind of operator within the egraph: (safe-F x y ... default). The real semantics is that it returns (F x y ...), unless that would crash, in which case it instead returns default. This should be more permissive for rewriting that the current unsound-F approach and should ultimately allow us to solve, say, the quadratic examples again.

https://chatgpt.com/codex/tasks/task_e_68521fa019ec833185e3129d9eeb730e

@pavpanchekha
Copy link
Contributor Author

Quite odd that this is worse, I had high hopes for this. I looked into some diffs and honestly I have no idea what's going on, besides the basic idea that this PR creates more rewritable expressions so the node limit is exhausted faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant