We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Produces a UnifyError
To reproduce:
query(numbervars(a(X))).
The text was updated successfully, but these errors were encountered:
I get the following error on your example:
UnknownClause: No clauses found for 'numbervars/1' at 1:7.
, which seems expected to me.
You probably mean to use numbervars/2 or numbervars/3 (libraries).
Sorry, something went wrong.
Sorry, the example that breaks it is
query(numbervars(a(X),0)).
Ah yes.
Normal usage: query(numbervars(a(X),Y)). Output: numbervars(a(X1),a($Var(0)))
query(numbervars(a(X),Y)).
numbervars(a(X1),a($Var(0)))
What happens is engine_builtin.py::_built_in_numbervars() fails when calling unify_value. Because engine_unify.py::unify_value() raises the UnifyError. I am not familiar with numbervars so I'm not sure what the desired behavior is. Might need a try-catch there.
No branches or pull requests
Produces a UnifyError
To reproduce:
The text was updated successfully, but these errors were encountered: