replace (:) with 0 in meta-predicate declarations, remove support for (:) in meta-predicate declarations
This commit is contained in:
@@ -303,7 +303,6 @@ pub enum MetaSpec {
|
|||||||
Minus,
|
Minus,
|
||||||
Plus,
|
Plus,
|
||||||
Either,
|
Either,
|
||||||
RequiresExpansion,
|
|
||||||
RequiresExpansionWithArgument(usize),
|
RequiresExpansionWithArgument(usize),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-19
@@ -152,7 +152,7 @@ set_prolog_flag(Flag, _) :-
|
|||||||
fail :- '$fail'.
|
fail :- '$fail'.
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate \+(:).
|
:- meta_predicate \+(0).
|
||||||
|
|
||||||
\+ G :- call(G), !, false.
|
\+ G :- call(G), !, false.
|
||||||
\+ _.
|
\+ _.
|
||||||
@@ -162,7 +162,7 @@ X \= X :- !, false.
|
|||||||
_ \= _.
|
_ \= _.
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate once(:).
|
:- meta_predicate once(0).
|
||||||
|
|
||||||
once(G) :- call(G), !.
|
once(G) :- call(G), !.
|
||||||
|
|
||||||
@@ -172,17 +172,17 @@ repeat :- repeat.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate ','(:, :).
|
:- meta_predicate ','(0, 0).
|
||||||
|
|
||||||
:- meta_predicate ','(:, +, +).
|
:- meta_predicate ','(0, +, +).
|
||||||
|
|
||||||
:- meta_predicate ;(:, :).
|
:- meta_predicate ;(0, 0).
|
||||||
|
|
||||||
:- meta_predicate ;(:, :, +).
|
:- meta_predicate ;(0, 0, +).
|
||||||
|
|
||||||
:- meta_predicate ->(:, :).
|
:- meta_predicate ->(0, 0).
|
||||||
|
|
||||||
:- meta_predicate ->(:, :, +).
|
:- meta_predicate ->(0, 0, +).
|
||||||
|
|
||||||
|
|
||||||
','(G1, G2) :-
|
','(G1, G2) :-
|
||||||
@@ -363,7 +363,7 @@ get_args([Arg|Args], Func, I0, N) :-
|
|||||||
'$call_with_default_policy'(get_args(Args, Func, I1, N)).
|
'$call_with_default_policy'(get_args(Args, Func, I1, N)).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate parse_options_list(?, :, ?, ?, ?).
|
:- meta_predicate parse_options_list(?, 0, ?, ?, ?).
|
||||||
|
|
||||||
parse_options_list(Options, Selector, DefaultPairs, OptionValues, Stub) :-
|
parse_options_list(Options, Selector, DefaultPairs, OptionValues, Stub) :-
|
||||||
'$skip_max_list'(_, -1, Options, Tail),
|
'$skip_max_list'(_, -1, Options, Tail),
|
||||||
@@ -521,14 +521,14 @@ term_variables(Term, Vars) :-
|
|||||||
|
|
||||||
% exceptions.
|
% exceptions.
|
||||||
|
|
||||||
:- meta_predicate catch(:, ?, :).
|
:- meta_predicate catch(0, ?, 0).
|
||||||
|
|
||||||
catch(G,C,R) :-
|
catch(G,C,R) :-
|
||||||
'$get_current_block'(Bb),
|
'$get_current_block'(Bb),
|
||||||
'$call_with_default_policy'(catch(G,C,R,Bb)).
|
'$call_with_default_policy'(catch(G,C,R,Bb)).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate catch(:, ?, :, +).
|
:- meta_predicate catch(0, ?, 0, +).
|
||||||
|
|
||||||
:- non_counted_backtracking catch/4.
|
:- non_counted_backtracking catch/4.
|
||||||
catch(G,C,R,Bb) :-
|
catch(G,C,R,Bb) :-
|
||||||
@@ -549,7 +549,7 @@ end_block(Bb, NBb) :-
|
|||||||
'$reset_block'(NBb),
|
'$reset_block'(NBb),
|
||||||
'$fail'.
|
'$fail'.
|
||||||
|
|
||||||
:- meta_predicate handle_ball(?, ?, :).
|
:- meta_predicate handle_ball(?, ?, 0).
|
||||||
|
|
||||||
:- non_counted_backtracking handle_ball/3.
|
:- non_counted_backtracking handle_ball/3.
|
||||||
handle_ball(C, C, R) :-
|
handle_ball(C, C, R) :-
|
||||||
@@ -562,7 +562,7 @@ handle_ball(_, _, _) :-
|
|||||||
throw(Ball) :- '$set_ball'(Ball), '$unwind_stack'.
|
throw(Ball) :- '$set_ball'(Ball), '$unwind_stack'.
|
||||||
|
|
||||||
|
|
||||||
% :- meta_predicate '$iterate_find_all'(?, :, ?, ?).
|
% :- meta_predicate '$iterate_find_all'(?, 0, ?, ?).
|
||||||
|
|
||||||
:- non_counted_backtracking '$iterate_find_all'/4.
|
:- non_counted_backtracking '$iterate_find_all'/4.
|
||||||
'$iterate_find_all'(Template, Goal, _, LhOffset) :-
|
'$iterate_find_all'(Template, Goal, _, LhOffset) :-
|
||||||
@@ -577,7 +577,7 @@ throw(Ball) :- '$set_ball'(Ball), '$unwind_stack'.
|
|||||||
truncate_lh_to(LhLength) :- '$truncate_lh_to'(LhLength).
|
truncate_lh_to(LhLength) :- '$truncate_lh_to'(LhLength).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate findall(?, :, ?).
|
:- meta_predicate findall(?, 0, ?).
|
||||||
|
|
||||||
findall(Template, Goal, Solutions) :-
|
findall(Template, Goal, Solutions) :-
|
||||||
error:can_be(list, Solutions),
|
error:can_be(list, Solutions),
|
||||||
@@ -589,7 +589,7 @@ findall(Template, Goal, Solutions) :-
|
|||||||
).
|
).
|
||||||
|
|
||||||
|
|
||||||
% :- meta_predicate '$iterate_find_all_diff'(?, :, ?, ?, ?).
|
% :- meta_predicate '$iterate_find_all_diff'(?, 0, ?, ?, ?).
|
||||||
|
|
||||||
:- non_counted_backtracking '$iterate_find_all_diff'/5.
|
:- non_counted_backtracking '$iterate_find_all_diff'/5.
|
||||||
'$iterate_find_all_diff'(Template, Goal, _, _, LhOffset) :-
|
'$iterate_find_all_diff'(Template, Goal, _, _, LhOffset) :-
|
||||||
@@ -601,7 +601,7 @@ findall(Template, Goal, Solutions) :-
|
|||||||
'$get_lh_from_offset_diff'(LhOffset, Solutions0, Solutions1).
|
'$get_lh_from_offset_diff'(LhOffset, Solutions0, Solutions1).
|
||||||
|
|
||||||
|
|
||||||
% :- meta_predicate findall(?, :, ?, ?).
|
% :- meta_predicate findall(?, 0, ?, ?).
|
||||||
|
|
||||||
findall(Template, Goal, Solutions0, Solutions1) :-
|
findall(Template, Goal, Solutions0, Solutions1) :-
|
||||||
error:can_be(list, Solutions0),
|
error:can_be(list, Solutions0),
|
||||||
@@ -649,7 +649,7 @@ rightmost_power(Term, FinalTerm, Xs) :-
|
|||||||
).
|
).
|
||||||
|
|
||||||
|
|
||||||
% :- meta_predicate findall_with_existential(?, :, ?, ?, ?).
|
% :- meta_predicate findall_with_existential(?, 0, ?, ?, ?).
|
||||||
|
|
||||||
findall_with_existential(Template, Goal, PairedSolutions, Witnesses0, Witnesses) :-
|
findall_with_existential(Template, Goal, PairedSolutions, Witnesses0, Witnesses) :-
|
||||||
( nonvar(Goal),
|
( nonvar(Goal),
|
||||||
@@ -665,7 +665,7 @@ findall_with_existential(Template, Goal, PairedSolutions, Witnesses0, Witnesses)
|
|||||||
).
|
).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate bagof(?, :, ?).
|
:- meta_predicate bagof(?, 0, ?).
|
||||||
|
|
||||||
bagof(Template, Goal, Solution) :-
|
bagof(Template, Goal, Solution) :-
|
||||||
error:can_be(list, Solution),
|
error:can_be(list, Solution),
|
||||||
@@ -688,7 +688,7 @@ iterate_variants_and_sort([_|GroupSolutions], Ws, Solution) :-
|
|||||||
iterate_variants_and_sort(GroupSolutions, Ws, Solution).
|
iterate_variants_and_sort(GroupSolutions, Ws, Solution).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate setof(?, :, ?).
|
:- meta_predicate setof(?, 0, ?).
|
||||||
|
|
||||||
setof(Template, Goal, Solution) :-
|
setof(Template, Goal, Solution) :-
|
||||||
error:can_be(list, Solution),
|
error:can_be(list, Solution),
|
||||||
|
|||||||
+3
-3
@@ -46,14 +46,14 @@ bb_get(Key, Value) :- atom(Key), !, '$fetch_global_var'(Key, Value).
|
|||||||
bb_get(Key, _) :- throw(error(type_error(atom, Key), bb_get/2)).
|
bb_get(Key, _) :- throw(error(type_error(atom, Key), bb_get/2)).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate call_cleanup(:, :).
|
:- meta_predicate call_cleanup(0, 0).
|
||||||
|
|
||||||
call_cleanup(G, C) :- setup_call_cleanup(true, G, C).
|
call_cleanup(G, C) :- setup_call_cleanup(true, G, C).
|
||||||
|
|
||||||
|
|
||||||
% setup_call_cleanup.
|
% setup_call_cleanup.
|
||||||
|
|
||||||
:- meta_predicate setup_call_cleanup(:, :, :).
|
:- meta_predicate setup_call_cleanup(0, 0, 0).
|
||||||
|
|
||||||
setup_call_cleanup(S, G, C) :-
|
setup_call_cleanup(S, G, C) :-
|
||||||
'$get_b_value'(B),
|
'$get_b_value'(B),
|
||||||
@@ -122,7 +122,7 @@ handle_ile(B, E, _) :-
|
|||||||
'$remove_call_policy_check'(B),
|
'$remove_call_policy_check'(B),
|
||||||
'$call_with_default_policy'(throw(E)).
|
'$call_with_default_policy'(throw(E)).
|
||||||
|
|
||||||
:- meta_predicate call_with_inference_limit(:, ?, ?).
|
:- meta_predicate call_with_inference_limit(0, ?, ?).
|
||||||
|
|
||||||
call_with_inference_limit(G, L, R) :-
|
call_with_inference_limit(G, L, R) :-
|
||||||
'$get_current_block'(Bb),
|
'$get_current_block'(Bb),
|
||||||
|
|||||||
+1
-1
@@ -128,7 +128,7 @@ maplist(Cont, [E1|E1s], [E2|E2s], [E3|E3s], [E4|E4s], [E5|E5s], [E6|E6s], [E7|E7
|
|||||||
sum_list(Ls, S) :-
|
sum_list(Ls, S) :-
|
||||||
foldl(sum_, Ls, 0, S).
|
foldl(sum_, Ls, 0, S).
|
||||||
|
|
||||||
sum_(L, S0, S) :- is(S, +(S0, L)).
|
sum_(L, S0, S) :- S is S0 + L.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -60,68 +60,68 @@
|
|||||||
:- op(1200, xfx, -->).
|
:- op(1200, xfx, -->).
|
||||||
|
|
||||||
% meta_predicate declarations for call/{0, 64}.
|
% meta_predicate declarations for call/{0, 64}.
|
||||||
:- meta_predicate call(:).
|
:- meta_predicate call(0).
|
||||||
:- meta_predicate call(:, ?).
|
:- meta_predicate call(1, ?).
|
||||||
:- meta_predicate call(:, ?, ?).
|
:- meta_predicate call(2, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?).
|
:- meta_predicate call(3, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?).
|
:- meta_predicate call(4, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?).
|
:- meta_predicate call(5, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(6, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(7, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(8, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(9, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(10, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(11, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(12, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(13, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(14, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(15, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(16, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(17, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(18, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(19, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(20, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(21, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(22, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(23, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(24, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(25, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(26, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(27, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(28, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(29, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(30, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(31, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(32, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(33, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(34, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(35, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(36, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(37, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(38, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(39, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(40, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(41, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(42, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(43, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(44, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(45, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(46, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
:- meta_predicate call(:, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
:- meta_predicate call(63, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?).
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
map_list_to_pairs/3]).
|
map_list_to_pairs/3]).
|
||||||
|
|
||||||
|
|
||||||
:- meta_predicate map_list_to_pairs(:, ?, ?).
|
:- meta_predicate map_list_to_pairs(0, ?, ?).
|
||||||
|
|
||||||
pairs_keys_values([], [], []).
|
pairs_keys_values([], [], []).
|
||||||
pairs_keys_values([A-B|ABs], [A|As], [B|Bs]) :-
|
pairs_keys_values([A-B|ABs], [A|As], [B|Bs]) :-
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ sleep(T) :-
|
|||||||
|
|
||||||
% '$cpu_now' can be replaced by statistics/2 once that is implemented.
|
% '$cpu_now' can be replaced by statistics/2 once that is implemented.
|
||||||
|
|
||||||
:- meta_predicate time(:).
|
:- meta_predicate time(0).
|
||||||
|
|
||||||
time(Goal) :-
|
time(Goal) :-
|
||||||
'$cpu_now'(T0),
|
'$cpu_now'(T0),
|
||||||
|
|||||||
@@ -1498,8 +1498,6 @@ impl Machine {
|
|||||||
|
|
||||||
match self.indices.get_meta_predicate_spec(predicate_name, arity, &compilation_target) {
|
match self.indices.get_meta_predicate_spec(predicate_name, arity, &compilation_target) {
|
||||||
Some(meta_specs) => {
|
Some(meta_specs) => {
|
||||||
let op_spec = fetch_op_spec(clause_name!(":"), 2, &self.indices.op_dir);
|
|
||||||
|
|
||||||
let list_loc = self.machine_st.heap.to_list(
|
let list_loc = self.machine_st.heap.to_list(
|
||||||
meta_specs.iter().map(|meta_spec| {
|
meta_specs.iter().map(|meta_spec| {
|
||||||
match meta_spec {
|
match meta_spec {
|
||||||
@@ -1509,9 +1507,6 @@ impl Machine {
|
|||||||
MetaSpec::RequiresExpansionWithArgument(ref arg_num) => {
|
MetaSpec::RequiresExpansionWithArgument(ref arg_num) => {
|
||||||
HeapCellValue::Addr(Addr::Usize(*arg_num))
|
HeapCellValue::Addr(Addr::Usize(*arg_num))
|
||||||
}
|
}
|
||||||
MetaSpec::RequiresExpansion => {
|
|
||||||
HeapCellValue::Atom(clause_name!(":"), op_spec.clone())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -347,7 +347,6 @@ fn setup_meta_predicate<'a>(
|
|||||||
Term::Constant(_, Constant::Atom(meta_spec, _)) => {
|
Term::Constant(_, Constant::Atom(meta_spec, _)) => {
|
||||||
let meta_spec =
|
let meta_spec =
|
||||||
match meta_spec.as_str() {
|
match meta_spec.as_str() {
|
||||||
":" => MetaSpec::RequiresExpansion,
|
|
||||||
"+" => MetaSpec::Plus,
|
"+" => MetaSpec::Plus,
|
||||||
"-" => MetaSpec::Minus,
|
"-" => MetaSpec::Minus,
|
||||||
"?" => MetaSpec::Either,
|
"?" => MetaSpec::Either,
|
||||||
|
|||||||
Reference in New Issue
Block a user