Closed aditink closed 1 year ago
Nevermind, I realize now that the problem was in my rule, which was missing an and
, and should have been
rewrite!("cell-collapse"; "(or (and ?a ?b) (and ?c ?d))" => "(and (or ?a ?c) ?b)"
if cell_collapse_guard("?b", "?c", "?d"))
Thanks!
I am trying to write a conditional rule where the condition requires multiple arguments. The rule (for a smtlib-like language) is
where
cell_collapse_guard
returns true if (?b and ?c) -> (?d).However, I get the error
'main' panicked at 'called
Result::unwrap()on an
Errvalue: BadOp(UnexpectedVar("?c"))'
. What is the correct way to pass multiple arguments tocell_collapse_guard
? Sorry if I missed this in the documentation!