git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1184 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2004-11-22 16:31:33 +00:00
parent 6c7b891ec8
commit 36878b9a2b

View File

@ -615,20 +615,20 @@ incore(G) :- '$execute'(G).
','(X,Y) :-
'$save_current_choice_point'(CP),
'$current_module'(M),
'$call'(X,CP,G0,M),
'$call'(Y,CP,G0,M).
'$call'(X,CP,(X,Y),M),
'$call'(Y,CP,(X,Y),M).
';'(X,Y) :-
'$save_current_choice_point'(CP),
'$current_module'(M),
( '$call'(X,CP,G0,M) ; '$call'(Y,CP,G0,M) ).
( '$call'(X,CP,(X;Y),M) ; '$call'(Y,CP,(X;Y),M) ).
'|'(X,Y) :-
'$save_current_choice_point'(CP),
'$current_module'(M),
( '$call'(X,CP,G0,M) ; '$call'(Y,CP,G0,M) ).
'|'(X,Y) :-
( '$call'(X,CP,(X|Y),M) ; '$call'(Y,CP,(X|Y),M) ).
'->'(X,Y) :-
'$save_current_choice_point'(CP),
'$current_module'(M),
( '$call'(X,CP,G0,M) -> '$call'(Y,CP,G0,M) ).
( '$call'(X,CP,G0,M) -> '$call'(Y,CP,(X->Y),M) ).
\+(G) :- \+ '$execute'(G).
not(G) :- \+ '$execute'(G).