avoid backtracking

This commit is contained in:
Vítor Santos Costa 2014-09-25 09:42:51 +01:00
parent 1783528ea8
commit 7f952c8b74

View File

@ -74,8 +74,8 @@ a postfix operator.
'$check_module_for_op'(V, G, NV),
'$check_top_op'(P, T, NV, G).
'$check_top_op'(_, _, [], _).
'$check_top_op'(P, T, Op.NV, G) :- !,
'$check_top_op'(_, _, [], _) :- !.
'$check_top_op'(P, T, [Op|NV], G) :- !,
'$check_ops'(P, T, Op.NV, G).
'$check_top_op'(P, T, V, G) :-
atom(V), !,