Skip to content

Unexpected scope of cut in a If-Then constructΒ #2739

Open
@hurufu

Description

Given the following test file:

t :- a, (! -> true).

a.
a.

This query seems to cut too many choice points:

?- t.
   true.

I've expected it to succeed 2 times, but it succeeds only once.

On the other hand the query that must be equivalent behaves as expected:

?- a, (! -> true).
   true
;  true.

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