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

Anonymous variables cause unsafe errors #11

Open
jinulee-v opened this issue Aug 29, 2023 · 0 comments
Open

Anonymous variables cause unsafe errors #11

jinulee-v opened this issue Aug 29, 2023 · 0 comments

Comments

@jinulee-v
Copy link

Hi there,

There is a bug regarding anonymous variables.
Considering the program

a(X) :- b(X, _).
b(x, y).
b(z, w).

This internally translates to

_xclingo_sup(1,a(X),(b(X,_),)):-[#inc_base];_xclingo_model(b(X,_)).

which is then annotated by clingo as

_xclingo_sup(1,a(X),(b(X,#Anon0),)):-[#inc_base];_xclingo_model(b(X,#Anon1)).

, making #Anon0 unsafe.
However, naming this variable (e.g. a(X) :- b(X, Y).) does not raise this error.

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

No branches or pull requests

1 participant