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

statistics/2: choice needed #229

Open
UWN opened this issue Jul 1, 2023 · 0 comments
Open

statistics/2: choice needed #229

UWN opened this issue Jul 1, 2023 · 0 comments

Comments

@UWN
Copy link

UWN commented Jul 1, 2023

The value of choices in statistics would be very helpful, if available via statistics/2. After a certain point, it seems that choice points are no longer removed.

Also, it would be nice to clarify the precise meaning of choices. Consider:

?- (X=1;X=2),statistics.
Goals 2, Matches 0, Max frames 0, choices 0 ... % why 0 choices, there is one alternative!
   X = 1
; Goals 4, Matches 0, Max frames 0, choices 0 ... % here, 0 makes sense
 X = 2.
?- (X=1;X=2),(true;true),statistics.
Goals 2, Matches 0, Max frames 0, choices 1 ... % finally a choice(point), but why not more...
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