Skip to content

Commit

Permalink
Revert "Explain non_counted_backtracking a little bit more"
Browse files Browse the repository at this point in the history
This reverts commit 2b73107.
  • Loading branch information
hurufu committed Sep 7, 2024
1 parent d307198 commit 3af24a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/lib/iso_ext.pl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@
%% call_with_inference_limit(Goal, Limit, Result).
%
% Similar to `call(Goal)` but it limits the number of inferences for each solution of Goal.
% Calls to it may be nested, but only the last limit will be in power.
call_with_inference_limit(G, L, R) :-
( integer(L) ->
( L < 0 ->
Expand Down
10 changes: 3 additions & 7 deletions src/lib/ops_and_meta_predicates.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@

:- op(1199, fx, meta_predicate).

% Declarative operator used to implement `call_with_inference_limit/3` and
% `setup_call_cleanup/3`. Compiler switches to the default trust_me, retry_me_else
% and some other instructions for all predicates the marked with it. Indexing
% choice instructions are unchanged.
%
% Default instructins are not subject to inference counting, so their execution
% will not be considered if they happen to be called by `call_with_inference_limit/3`.
/* this is an implementation specific declarative operator used to implement call_with_inference_limit/3
and setup_call_cleanup/3. switches to the default trust_me and retry_me_else. Indexing choice
instructions are unchanged. */
:- op(700, fx, non_counted_backtracking).

% arithmetic operators.
Expand Down

0 comments on commit 3af24a8

Please sign in to comment.