Skip to content

Anonymous variables cause unsafe errors #11

Description

@jinulee-v

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions