Replies: 1 comment 6 replies
-
So, this is kind of a dangerous thing to do, because an eclass contains many equivalent terms. What if one of the equivalent terms does contain the unit and the other doesn't? You'll need to be able to answer this question. Once you've done that, though, the first thing that comes to mind is an eclass analysis. It should store a boolean as the analysis value, return true for the unit eclass and for any enode that has it as an argument, and either do an and or an or on join. If you want to do queries for various containments (as in, if |
Beta Was this translation helpful? Give feedback.
-
Pretty much what the title says, I'm writing a condition that looks like
if contains_clause("?clause", "?unit")
where I want to check if?clause
contains?unit
anywhere (transitively), how would I go about doing that?Beta Was this translation helpful? Give feedback.
All reactions