cut after compound check in (;)/2 only after semicolon_compound_selector succeeds

This commit is contained in:
Mark Thom
2020-05-01 21:40:36 -06:00
parent aa8659d5c7
commit 81f9666e82
2 changed files with 4 additions and 2 deletions

View File

@@ -234,8 +234,8 @@ semicolon_compound_selector(';'(G2, G3), G4, B) :-
:- non_counted_backtracking (;)/3.
;(G1, G4, B) :-
compound(G1),
!,
semicolon_compound_selector(G1, G4, B).
semicolon_compound_selector(G1, G4, B),
!.
;(G1, G2, B) :-
G1 == !, !, '$set_cp'(B), call(G2).
;(G1, G2, B) :-