-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The following program should not generate any unit clauses:
#ground f[1],f[2],f[3].
f[X] :: var(X).
Bule grounds this to:
Warning. Undeclared variables: var(1) var(2) var(3)
var(1).
var(2).
var(3).
It's good that it notifies that clauses are generated of which no variables are introduced.
In my opinion it should not generate the clauses at all.
For example:
#ground f[1],f[2].
f[X] :: #exists[0] foo(X).
f[X] :: bar(X) | foo(X).
In my opinion it should not generate the clauses.
Alternative option: it generates the clauses with the atoms that have been introduced.
Metadata
Metadata
Assignees
Labels
No labels