Skip to content

Commit

Permalink
use builtins:variant/2
Browse files Browse the repository at this point in the history
  • Loading branch information
triska committed Dec 18, 2023
1 parent 061cce9 commit e676571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/diadem.pl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
limes(\X^callf(\+X), query_generalized, Query0,Query1),
( Query1 = Query
; limes(\X^callf(\+X), goal_difgeneralisation, Query1, Query2),
( \+ variant(Query1, Query2),
( \+ builtins:variant(Query1, Query2),
Query2 = Query
; false,
limes(\X^callf(\+X), goal_equalitygeneralisation, Query2, Query)
Expand Down Expand Up @@ -237,7 +237,7 @@

query_generalized(Query, QueryG) :-
goal_generalized(Query, QueryG),
\+ variant(Query, QueryG).
\+ builtins:variant(Query, QueryG).

goal_generalized(Goal, _) :-
var(Goal),
Expand Down

0 comments on commit e676571

Please sign in to comment.