fix all_distinct/1 (patch from Markus Triska).
This commit is contained in:
parent
145e66063b
commit
ca12a4b959
@ -127,6 +127,7 @@
|
||||
|
||||
:- expects_dialect(swi).
|
||||
|
||||
:- use_module(library(assoc)).
|
||||
:- use_module(library(apply)).
|
||||
:- use_module(library(error)).
|
||||
:- use_module(library(lists)).
|
||||
@ -4382,7 +4383,7 @@ distinct(Vars) :-
|
||||
LFL =< LFR,
|
||||
maplist(put_free, FreeRight0),
|
||||
maximum_matching(FreeLeft),
|
||||
sublist(free_node, FreeRight0, FreeRight),
|
||||
include(free_node, FreeRight0, FreeRight),
|
||||
maplist(g_g0, FreeLeft),
|
||||
phrase(scc(FreeLeft), [s(0,[],g0_successors)], _),
|
||||
maplist(dfs_used, FreeRight),
|
||||
|
Reference in New Issue
Block a user