28:- system_module( '$_control', [
at_halt/1,
46 garbage_collect_atoms/0,
58 prolog_current_frame/1,
60 setup_call_catcher_cleanup/4,
64 '$set_toplevel_hook'/1]).
66:-
'$call'/4
'$disable_debugging'/0
'$do_live'/0
'$enable_debugging'/0
'$system_catch'/4
'$version'/0
use_system_module(
'$_boot', [,
73:-
'$init_debugger'/0
use_system_module(
'$_debug', []).
75:-
'$do_error'/2
use_system_module(
'$_errors', []).
77:-
'$getval_exception'/3
use_system_module(
'$_utils', []).
79:-
freeze_goal/2
use_system_module(
'$coroutining', []).
125forall(
Cond,
Action)
:- \+((
Cond,
\+(
Action))).
141ignore(
Goal)
:- (
Goal->true
;true).
144 strip_module(
G,
M,
G1),
146 '$debug_stop'(
State ),
147 '$call'(
G1,
CP,
G,
M),
149 (
CP == CP2 -> !
; '$debug_state'(
NState ), ( true
; '$debug_restart'(
NState),
'$debug_restart' ) ),
150 '$debug_restart'(
State )
152 '$debug_restart'(
State ),
201 CP0 is '$last_choice_pt',
203 CP1 is '$last_choice_pt',
204 '$call'(
X,
CP1,if(
X,
Y,
Z),
M),
206 '$clean_ifcp'(
CP0,
CP1),
207 '$call'(
Y,
CP0,if(
X,
Y,
Z),
M)
209 '$call'(
Z,
CP0,if(
X,
Y,
Z),
M)
229'$gated_call'( false ,
Goal,
_Catcher,
Cleanup) .
231call_cleanup(
Goal,
Catcher,
Cleanup)
:-
232'$gated_call'( false ,
Goal,
Catcher,
Cleanup) .
250 setup_call_catcher_cleanup(
Setup,
Goal,
_Catcher,
Cleanup).
252setup_call_catcher_cleanup(
Setup,
Goal,
Catcher,
Cleanup)
:-
253 '$setup_call_catcher_cleanup'(
Setup),
254 call_cleanup(
Goal,
Catcher,
Cleanup).
326'$force_environment_for_gc'.
328'$good_list_of_character_codes'(
V)
:- var(
V),
var.
329'$good_list_of_character_codes'([]).
330'$good_list_of_character_codes'([
X|L])
:-
331 '$good_character_code'(
X),
332 '$good_list_of_character_codes'(
L).
334'$good_character_code'(
X)
:- var(
X),
var.
335'$good_character_code'(
X)
:- integer(
X),
X > -2,
X < 256.
346 '$do_error'(instantiation_error,
initialization(
G)).
350 '$do_error'(type_error(callable,
T),
initialization(
T)).
352'$assert_init'(
T)
:- recordz(
'$startup_goal',
T,
_),
recordz.
362 '$version_specs'(
Specs),
375 '$do_error'(instantiation_error,version(
V)).
378 '$do_error'(type_error(atom,
T),version(
T)).
380'$assert_version'(
T)
:- recordz(
'$version',
T,
_),
recordz.
383'$set_toplevel_hook'(
_)
:-
387'$set_toplevel_hook'(
H)
:-
388 recorda(
'$toplevel_hooks',
H,
_),
390'$set_toplevel_hook'(
_).
419 '__NB_getval__'(
GlobalVariable,
Val,
Error),
424 '$getval_exception'(
GlobalVariable,
Val, nb_getval(
GlobalVariable,
Val))
->
427 '$do_error'(existence_error(variable,
GlobalVariable),nb_getval(
GlobalVariable,
Val))
458 '__NB_getval__'(
GlobalVariable,
Val,
Error),
463 '$getval_exception'(
GlobalVariable,
Val, b_getval(
GlobalVariable,
Val))
->
466 '$do_error'(existence_error(variable,
GlobalVariable),b_getval(
GlobalVariable,
Val))
480'$debug_state'(state(
Creep,
SPYTarget,
SpyOn,
Trace,
Debugging,
Debug,
SPY_GN,
GList,
GDList))
:-
482 '$get_debugger_state'(
Creep,
SPYTarget,
SpyOn,
Trace,
Debugging),
490 '$set_debugger_state'(trace,off),
492 b_setval(
'$spy_gn',
0),
493 b_setval(
'$spy_glist',[]),
494 b_setval(
'$spy_gdlist',[]),
495 '$disable_debugging'.
497 '$debug_restart'(state(
Creep,
SPYTarget,
SpyOn,
Trace,
Debugging,
Debug,
SPY_GN,
GList,
GDList))
:-
498 b_setval(
'$spy_glist',
GList),
499 b_setval(
'$spy_gdlist',
GDList),
500 b_setval(
'$spy_gn',
SPY_GN),
501 '$set_debugger_state'(
Creep,
SPYTarget,
SpyOn,
Trace,
Debugging),
522 '$debug_state'(
DState),
528 format(user_error,
'% Break (level ~w)~n', [
NBL]),
532 '$debug_restart'(
DState),
563 catch(once(
G),
Error, user
:'$Error'(
Error)),
566 '$sync_mmapped_arrays',
570prolog_current_frame(
Env)
:-
573'$run_atom_goal'(
GA)
:-
574 '$current_module'(
Module),
575 atom_to_term(
GA,
G,
_),
576 catch(once(
Module:G),
Error,user
:'$Error'(
Error)).
587 '$module_boundary'(call,
M0,
M),
590 '$module_boundary'(
Event,
M0,
M)
595'$module_boundary'(call,
M0,
M)
:-
596 current_source_module(
M0,
M).
597'$module_boundary'(answer,
M0,
_)
:-
598 current_source_module(
_M,
M0).
599'$module_boundary'(exit,
M0,
_)
:-
600 current_source_module(
_M,
M0).
601'$module_boundary'(redo,
M0,
_M)
:-
602 current_source_module(
_,
M0).
603'$module_boundary'(fail,
M0,
_M)
:-
604 current_source_module(
_,
M0).
605'$module_boundary'(!,
_,
_).
606'$module_boundary'(external_exception(
_),
_,
_).
607'$module_boundary'(exception(
_),
M0,
_M)
:-
608 current_source_module(
_,
M0).
613catch( : Goal,+ Exception,+ Action)
must_be_callable( ?_Goal_ )
yap_flag( ?Param, ?Value)
b_getval(+ Name, - Value)
call(+ Closure,...,? Ai,...)
call_cleanup(: Goal, : CleanUpGoal)
nb_getval(+ Name, - Value)
prolog_initialization( G)
setup_call_cleanup(: Setup,: Goal, : CleanUpGoal)
current_prolog_flag(? Flag,- Value)
set_prolog_flag(+ Flag,+ Value)
print_message(+ Severity, +Term)
current_choice_point( -CP )