0mm
BinProlog Professional Edition
Predicate Cross-Reference Guide
Written by BinProlog Itself
Paul Tarau
under the kind regards of:
BinNet Corp.
WWW: http://www.binnetcorp.com
$hx/3
# /3
(#*)/3
(#+)/3
(#-)/3
(#:)/3
(#<)/3
(#=)/3
(#>)/3
(#?)/3
$process_catch/3
* /3
** /3
(+)/2
(++)/3
(,)/2
(-)/2
(->)/2
(.)/3
/ /3
// /3
/\ /3
(::-)/2
(;)/2
<< /3
>> /3
@ /3
(@<)/2
(@=<)/2
(@>)/2
(@>=)/2
\ /2
(\+)/1
\/ /3
(\=)/2
^ /2
abolish/1
abs/2
abstime/1
acos/2
all/2
all/3
all_answers/3
all_but_at_least/4
all_for/2
and/2
answer_of/2
appendN/2
append_conj/3
append_disj/3
argn/3
asin/2
asm/0
asm/1
assert_from_chars/1
asserta/1
asserted/1
atan/2
atan2/3
atom_chars/2
bagof/3
bb/0
bb_gc0/0
bb_get/3
bbgc/0
bp_only/1
bp_val/3
call/1
call/3
call/5
call/6
call/7
call_external/3
call_jinni/1
catch/3
cd/0
cd/1
ceiling/2
char_of/2
check_password/1
cin/1
clause_of/2
clean_up_dead_engines/0
clean_up_engines/0
clone_term/3
close/1
close_socket/1
cmake/0
co/0
compare/3
compile/1
compound/1
compute/4
cos/2
count_terms/2
cout/1
cpopq/3
create_new_engine/1
current_engine/1
current_output/1
current_predicate/1
current_thread/1
cwrite/1
db_assert/2
db_asserted/2
db_clean/0
db_is_dynamic/2
db_listing/1
db_listing/2
dcg_call/5
dcg_connect/1
dcg_def/1
dcg_tell/1
dcg_telling/1
dcg_val/1
dconsult/1
default_login/1
default_this_host/1
delete_all_terms/1
destroy_array/1
det_call/1
detect_ip_addr/1
detect_user/1
dir/0
dir2dirs/2
dir2files/2
(discontiguous)/1
display/1
dyn2stat/1
(dynamic)/1
dynbbgc/0
ed/0
edit/0
edit/2
element_of/2
emacs/0
end_module/1
end_of_file/0
eq/2
exit/0
exp/2
expand_term/2
false/0
fcall/3
fcompile/1
file2chars/2
file2sock/2
file_size/2
find_while/4
findall/3
float/2
floor/2
flush_output/0
flush_output/1
foldr/4
for_all/2
forall/1
forall/2
foreach/1
free_term/1
free_thread_guard/1
from_engine/1
garbage_collect/0
gc/0
gc_call/1
gc_status/1
generic_write/1
get/1
get/2
get_all_terms/2
get_char/2
get_critical/2
get_deep_cut/2
get_load_method/1
get_neck_cut/1
get_next_term/2
get_password/1
get_term/2
global_get/3
global_rm/2
global_set/3
handle_service/2
has_terms/1
hash_clear/1
hash_clear/2
hash_compile/0
hash_find_unique/3
hash_gc/0
hash_load/1
hash_push/2
hash_put/2
hash_rm/2
hash_rm_one/2
hash_save/1
hash_trace/2
help/0
help/1
hkey/2
host2ip/2
hostname/1
hypot/3
if_any/3
in/1
info/0
instance_of/2
interactive/1
is_an/1
is_discontiguous/1
is_engine/1
is_maj/1
is_min/1
is_num/1
is_public/1
is_spec/1
is_terminator/1
list_engines/0
listify/2
listing/0
listing/1
load/1
local_when/1
log/2
log/3
ls/0
ls2list/2
lval/3
make_array/2
make_compileable/2
make_spaced_cmd/2
map/2
map/3
map_gc/1
map_new/1
map_show/1
maps_clean/0
maps_gc/0
maps_iterate/1
maps_show/0
match_before/4
max/3
memberchk/2
min/3
mmap_new/1
mmap_put/3
mmap_rm_all/2
mmap_rm_one/3
mmap_show/1
mmaps_clean/0
mmaps_gc/0
mmaps_iterate/1
mmaps_show/0
mod/3
(mode)/1
(module)/2
modules/1
msort/2
new_builtin/3
new_engine/3
new_key_iterator/1
new_name/2
new_term/2
new_thread_guard/1
nobbgc/0
nogc/0
(not)/1
notepad/0
notify_about/1
notrace/0
nth_answer/2
nth_member/3
number_chars/2
oconsult/1
older_file/2
one/4
op/3
open/3
otherwise/0
otime/1
out/1
override/3
peer_addr/2
peer_port/2
phrase/2
pico/0
plus/4
pow/3
pp_term/1
print/1
process_term/3
prod/2
profile/0
prolog_flag/2
prolog_init/1
prolog_load/1
prolog_run/1
push_term/2
put_char/2
put_critical/2
put_term/2
pwd/0
pwd/1
qcompile/1
qfindall/4
qmake/1
quietmes/1
quit/0
random/1
random_seed/1
rd/1
read_line/1
read_term/2
read_term_from_chars/2
read_terms_from_chars/2
read_words/1
reboot/0
remote_run/1
remove_current_term/1
restart/0
retract/1
retract1/1
return/1
reverse/2
round/2
rpc_server/0
rpc_test/0
run_server/0
scompile/1
sconsult/1
see_at/1
seeing_at/1
sentence_of/2
service_loop/2
set_c_threshold/1
set_hash_max/1
set_host/1
set_load_method/1
set_login/1
set_output/1
set_password/1
set_port/1
set_prolog_flag/2
set_this_host/1
set_this_port/1
set_timeout/1
setarg/3
setof/3
shell/1
show_defaults/0
show_engine/0
show_info/2
sign/2
sin/2
sock2file/2
sock_read/2
sock_readln/2
sock_write/2
sock_writeln/2
solutions/2
spawn/1
spying/1
sqrt/2
stat/0
stat2dyn/1
static_prolog_flag/2
stop/0
stop/1
stop_service/0
sum/2
swrite/2
swrite/3
tab/1
tan/2
tell_at/1
tell_at_end/1
telling_at/1
term_hash/2
textedit/0
the/1
this_db/1
thread_cancel/1
thread_exit/0
thread_join/1
thread_notify/1
thread_notify_all/1
thread_wait/1
throw/1
timed_call/4
to_engine/2
to_string/2
to_tokens/2
tokens_of/2
toplevel/0
trace/0
trace/1
trim_term/4
truncate/2
try_unlock_thread_guard/1
tstest/3
tsync_op/3
unix/1
update_current_term/2
variant_of/2
vars_of/2
vget/2
vi/0
wait_for/2
write_term_to_chars/2
write_words/1
writeq/1
x_gc/0
x_profile/0
x_trace/1
x_trace/2
xload/1
xsave/1
~ /1
# /3
INFO: bitwise XOR
EXAMPLE(S):
?-#(1,2,_A).
_A = 3;
no
(##)/1
INFO: executes arg 1 at compile time - make sure the executed code terminates
Calls:
Is called from:
hash_clear/1
hash_put/2
hash_rm/2
hash_rm_one/2
numbervars/3
x_asserta/1
x_assertz/1
x_retractall/1
(#*)/3
INFO: (X): adds intuitionisic assumption *(X) to be used indefinitely by #- operation
(#+)/3
INFO: (X): adds linear assumption +(X) to be consumed at most once, by a #- operation
(#-)/3
INFO: (X): consumes +(X) linear assumption or matches *(X) intuitionistic assumption
(#:)/3
INFO: (X): matches X against current dcg token
(#<)/3
INFO: (Xs): sets the dcg token list to be Xs
(#=)/3
INFO: (X): unifies X with any matching existing or future +(X) linear assumptions
(#>)/3
INFO: (Xs): unifies current dcg token list with Xs
(#?)/3
INFO: (X): matches +(X) or *(X) assumptions without any binding
$process_catch/3
INFO: processes data sent by catch for throw
Calls:
copy_term/2
untrail_to/1
* /3
INFO: multiply
EXAMPLE(S):
?-*(10,3,_A).
_A = 30;
no
** /3
INFO: returns arg 1 at power arg 2, a float
EXAMPLE(S):
?-**(2,3,_A).
_A = 8;
no
(+)/2
INFO: returns 0 + arg 1
Calls:
(+)/3
(+)/3
INFO: add
EXAMPLE(S):
?-+(10,3,_A).
_A = 13;
no
Is called from:
(+)/2
(++)/3
INFO: concatenates N lists, usable in is/2
(,)/2
INFO: A,B succeeds if A suceeds and B, called after A, succeeds
(-)/2
INFO: returns 0 - arg 1
Calls:
(-)/3
(-)/3
INFO: subtract
EXAMPLE(S):
?--(10,3,_A).
_A = 7;
no
Is called from:
(-)/2
(->)/2
INFO: Cond->Then executes Cond once; if it succeeds it also executes Then
(.)/3
INFO: (Head,Tail,List) builds List=[Head|Tail]
/ /3
INFO: division
EXAMPLE(S):
?-/(10,3,_A).
_A = 3.33333333;
no
// /3
INFO: integer division
EXAMPLE(S):
?-//(10,3,_A).
_A = 3;
no
/\ /3
INFO: bitwise AND
EXAMPLE(S):
?-/\(1,2,_A).
_A = 0;
no
(::-)/2
INFO: variant of :- for hand transformed binary clauses - use with care
(;)/2
INFO: A;B succeeds if A succeeds or B, called after A, succeeds
(<)/2
INFO: numeric comparison
Calls:
less/2
<< /3
INFO: left shifts arg 1 by arg 2 bits
EXAMPLE(S):
?-<<(1,5,_A).
_A = 32;
no
(=)/2
INFO: (X,Y) true if (possibly cyclic) terms X and Y unify - cyclic terms can result from =/2, as occur check is not performed
EXAMPLE(S):
?-f(_A,s(a)) = f(_B,_B).
_A = s(a);
_B = s(a);
no
Is called from:
abs/2
apropos/2
ask/5
atom_codes/2
bagof/3
call_jinni/1
call_jinni/3
char_of/2
clean_up_dead_engines/0
clean_up_engines/1
current_module/1
db_retract1/2
det_call/1
dir2list/3
drop_at_least/2
dynco/1
file_size/2
from_engine/1
gensym_no/2
get/1
get/2
get_char/2
get_engine_id/2
get_engine_thread/2
has_terms/1
hash_trace/2
if_any/3
info/1
interactive/1
(is)/2
is_prolog/1
line_of/2
list_engines/0
make_compileable/2
maps_iterate/1
max/3
memberchk/2
min/3
mmaps_iterate/1
new_thread_guard/1
nth_answer/2
numbervars/3
phrase/3
popen/3
rpc_test/1
sentence_of/2
show_info/2
sign/2
synchronize_on/3
take_at_most/2
term_of/2
the/3
timed_call/4
to_lower_char/2
to_tokens/2
to_upper_char/2
to_word_codes/2
trim_term/4
x_trace/2
x_traced_call/1
(=..)/2
INFO: called univ -this is bidirectional- it converts between a term and its view as a alist of components
EXAMPLE(S):
?-f(a,b) =.. _A.
_A = [f,a,b];
no
?-_A =.. [f,a,b].
_A = f(a,b);
no
Calls:
var/1
(=:=)/2
INFO: numeric comparison
Calls:
arith_eq/2
(=<)/2
INFO: numeric comparison
Calls:
less_eq/2
free_thread_guard/1
min/3
quietmes/2
to_lower_char/2
to_upper_char/2
(==)/2
INFO: true if args are identical terms
Is called from:
(=\=)/2
INFO: numeric comparison
Calls:
arith_dif/2
clean_up_engines/1
(>)/2
INFO: numeric comparison
Calls:
greater/2
default_this_port/1
get/1
has_threads/0
max/3
sign/2
timed_call/4
(>=)/2
INFO: numeric comparison
Calls:
greater_eq/2
abs/2
float/1
free_thread_guard/1
to_lower_char/2
to_upper_char/2
>> /3
INFO: right shifts arg 1 by arg 2 bits
EXAMPLE(S):
?->>(16,2,_A).
_A = 4;
no
@ /3
INFO: alternative form for C/3 DCG connect relation
Calls:
C/3
(@<)/2
INFO: instance of compare/3 with arg 1: <
(@=<)/2
INFO: instance of compare/3 with arg 1: = or <
(@>)/2
INFO: instance of compare/3 with arg 1: >
(@>=)/2
INFO: instance of compare/3 with arg 1: > or =
C/3
INFO: DCG connect predicate
Is called from:
\ /2
INFO: complement
Calls:
\ /3
\ /3
INFO: bitwise or of first arg with bitwise complement of second
EXAMPLE(S):
?-\(0,2,_A).
_A = -3;
no
Is called from:
\ /2
(\+)/1
INFO: succeeds if its argument is executed and fails
Calls:
fail/0
\/ /3
INFO: bitwise OR
EXAMPLE(S):
?-\/(1,2,_A).
_A = 3;
no
(\=)/2
INFO: true if args fail to unify
Calls:
fail/0
(\==)/2
INFO: true if arg 1 is not identical to arg 2
Is called from:
^ /2
INFO: calls arg 2 and binds arg 1
EXAMPLE(S):
?-_A^eq(_A,1).
_A = 1;
no
abolish/1
INFO: abolish(F/N) deletes predicate F/N
Calls:
abort/0
INFO: returns to toplevel
Is called from:
abs/2
INFO: int function
Calls:
abstime/1
INFO: gets time in secs since arbitrary origin
EXAMPLE(S):
?-abstime(_A).
_A = 372179908;
no
Calls:
acos/2
INFO: float function
addq/3
INFO: adds to end of persistent queeue
EXAMPLE(S):
?-addq(key1,key2,33).
yes
Calls:
(==)/2
(\==)/2
bb_gc/0
clear_bp_error/0
fatal_error/2
get_bp_error/4
all/2
INFO: gets the list of terms matching arg 1 from Linda blackboard
Calls:
local_all/2
all/3
INFO: gets a selection arg 1 of terms matching arg 2 from Linda blackboard
Calls:
local_all/3
all_answers/3
INFO: (X,G,Xs): like findall/3, but such that if V is not common to X and G then V cannot be bound by execution of G
EXAMPLE(S):
?-all_answers(_A,member(s(_A),[_B,_C,_C,_D]),_E).
_A = _x149315;
_B = s(_x150414);
_C = s(_x150441);
_D = s(_x150495);
_E = [_x150414,_x150441,_x150441,_x150495];
no
all_but_at_least/4
INFO: (N,X,G,Xs) findall variant, computing all but the first N answers X of G
Calls:
drop_at_least/2
all_for/2
INFO: all_for(X,Xs) collects all constrained terms X on the blackboard to list Xs
and/2
INFO: conjunction, like comma
answer_of/2
INFO: (X,G): X is an answer for G, after finding all, sorting and removing duplicates
Calls:
answer_one_query/2
INFO: handles a Jinni service S with password P
Is called from:
service_loop/2
append/3
INFO: concatenates/decomposes lists
EXAMPLE(S):
?-append([1,2],[3,4],_A).
_A = [1,2,3,4];
no
?-append(_A,_B,[1,2]).
_A = [];
_B = [1,2];
_A = [1];
_B = [2];
_A = [1,2];
_B = [];
no
Calls:
append/3
appendN/2
INFO: concatenates N lists
EXAMPLE(S):
?-appendN([[a,b],[],[c]],_A).
_A = [a,b,c];
no
append_conj/3
INFO: concatenates 2 conjunctions
append_disj/3
INFO: concatenates 2 disjunctions
apropos/1
INFO: prints names of predicates defined in the system
EXAMPLE(S):
?-apropos(garbage).
use info/1 to get a description of a predicate
garbage_collect/0-[built_in,performs heap gc now]
yes
Calls:
Is called from:
help/1
apropos/2
INFO: returns names of predicates defined in the system
EXAMPLE(S):
?-apropos(retract,_A).
_A = retract/1-[built_in,backtracks over deleting matching clauses];
_A = retract1/1-[built_in,deletes first matching clause in the current database];
_A = retractall/1-[built_in,deletes all matching clauses];
_A = x_retract/1-[built_in,db hook, backtracks over deleting matching clauses];
_A = x_retractall/1-[built_in,db hook, deletes all matching clauses];
_A = db_retract/2-[built_in,does retract/1 arg 2 from database given as arg 1];
_A = db_retract/3-[built_in,db_retract(Db,H,B) retracts clause with head H and body B from database Db];
_A = db_retract1/2-[built_in,deletes from database given as arg 1 a matching clause];
_A = db_retractall/2-[built_in,removes from database given as arg 1, all matching clauses];
_A = db_retractall/3-[built_in,removes from database given as arg 1, all matching clauses seen as head + body];
_A = prolog:x_retract_each/1-[compiled];
_A = prolog:db_retractall0/3-[compiled];
_A = prolog:x_retract/2-[compiled];
_A = prolog:x_retract_args/5-[compiled];
no
Calls:
(=)/2
(\==)/2
bp_info/2
functor/3
name/2
near_match/2
predicate_property/2
apropos/1
arg/3
INFO: arg(I,T,X) extracts arg I of term T to be unified with X
EXAMPLE(S):
?-arg(2,f(a,b),_A).
_A = b;
no
Is called from:
(##)/1
argn/3
db_retractall/3
float/1
hash_load/1
hash_save/2
if_any/3
term_of/2
argn/3
INFO: generates all n args of term
EXAMPLE(S):
?-argn(_A,f(a,b),_B).
_A = 1;
_B = a;
_A = 2;
_B = b;
no
Calls:
arith_dif/2
INFO: arithemetic comparison
Is called from:
(=\=)/2
arith_eq/2
INFO: arithemetic comparison
Is called from:
(=:=)/2
array_get/3
INFO: gets and dereferences array element
Is called from:
array_get0/3
INFO: gets array element
Is called from:
vget0/2
array_set/3
INFO: sets array element
Is called from:
vset/2
asin/2
INFO: float function
ask/5
INFO: ask(ClientSocket,X,G,W,R): calls rpc server on on ClientSocket with query X goal G password W and gets result R back - supports socket reuse
Calls:
(=)/2
rpc/3
ask_engine/2
INFO: ask_engine(E,X) retrieves from engine E (a copy of) answer X
Is called from:
get/2
ask_thread/2
INFO: (E,R): asks an answer of engine E on a new thread R
Is called from:
bg/7
asm/0
INFO: shows transformations and readable BinWAM assembler for Prolog code entered at terminal
asm/1
INFO: generates readable binarized form and BinWAM assembler to a file
assert/1
INFO: adds a clause
Calls:
assertz/1
set_default/1
assert_from_chars/1
INFO: asserts a program from clauses in list of chars
Calls:
assert_from_chars/2
INFO: (Db,Cs) asserts to database Db, a set of clauses parsed from list of char codes Cs
Calls:
foreach/2
assert_from_chars/1
asserta/1
INFO: adds a clause to be first in a predicate definition
Calls:
asserted/1
INFO: runs a predicated if asserted
Calls:
assertz/1
INFO: adds a clause to be last in a predicate definition
Calls:
Is called from:
assert/1
atan/2
INFO: float function
atan2/3
INFO: float function
atom/1
INFO: true if symbol (functor of arity 0)
EXAMPLE(S):
?-atom(a).
yes
Calls:
Is called from:
atom_chars/2
INFO: (Atom,CharAtoms): converts between an atom and its list of char atoms representation
EXAMPLE(S):
?-atom_chars(hello,_A).
_A = [h,e,l,l,o];
no
?-atom_chars(_A,[104,101,108,108,111]).
no
Calls:
atom_codes/2
INFO: (Atom,CharCodes): converts between an atom and its list of char code representation
EXAMPLE(S):
?-atom_codes(hello,_A).
_A = [104,101,108,108,111];
no
?-atom_codes(_A,[104,101,108,108,111]).
_A = hello;
no
Calls:
Is called from:
atomic/1
INFO: true if an integer or symbolic constant
Is called from:
atom/1
close/1
compound/1
make_compileable/2
numbervars/3
system/2
trim_term/4
bagof/3
INFO: all solutions predicate generating unsorted bags of possibly dupplicated answers
EXAMPLE(S):
?-bagof(_A,member(_A,[3,2,2,1]),_B).
_A = _x149050;
_B = [3,2,2,1];
no
Calls:
bb/0
INFO: lists (long!) content of the blackboard
bb_def/3
INFO: bb_def(K1,K2,T) associates to K1 and K2 (a copy of) T on the blackboard
Is called from:
bb_gc/0
INFO: performs blackboard gc now, if enabled
Calls:
Is called from:
bb_gc0/0
INFO: performs blackboard gc now, in this engine
Calls:
bb_reset/1
copy_term/2
debugmes/1
fail/0
(is)/2
statistics/2
bb_get/3
INFO: bb_get(K1,K2,T) consumes the term T associated with K1 and K2
Calls:
bb_let/3
INFO: bb_let(K1,K2,T) updates or defines the term associated with K1 and K2 to be T
Calls:
Is called from:
bb_reset/1
INFO: cleans up and resizes to at least arg 1 bytes compound term area of the blackboard
Is called from:
bb_gc0/0
bb_rm/2
INFO: removes the term associated with K1 and K2 from the blackboard
Is called from:
bb_set/3
INFO: bb_set(K1,K2,T) updates the term associated with K1 and K2 to be a copy of T
Is called from:
bb_val/3
INFO: bb_val(K1,K2,T) T is (a copy of) the term associated with keys K1 and K2
Calls:
copy_term/2
bb_get/3
current_module/1
from_engine/1
is_module/1
is_prolog/1
map_get/3
show_default/1
bbgc/0
INFO: enables blackboard gc
bbgc_status/1
INFO: shows if blackboard gc is enabled or not
Calls:
vget0/2
bb_gc/0
begin_critical/0
INFO: begin serialized execution - enters critical region
Calls:
lock_thread_guard/1
sdebug/1
bg/1
INFO: runs Goal in background thread - you can set engine size like in heap(500)=>bg(...)
Calls:
bg/2
rpc_test/0
bg/2
INFO: runs Goal in new background thread, which is returned in second arg
Calls:
bg/3
bg/1
bg/3
INFO: bg(Goal,Thread,EngineAddr): runs goal in background if threads are available
Calls:
bg/4
bg/4
INFO: bg(Goal,Thread,EngineAddr,EngineID): runs goal in background on new engine - with unique EngineID
Calls:
bg/7
bg/3
bg/7
INFO: bg(Goal,H,S,T,-Thread,-EngineAddr,-EngineID): runs goal in background on engine with given heap,stack,trail
Calls:
ask_thread/2
debugmes/1
get_engine_id/2
has_threads/0
load_engine/3
topcall/1
boot/0
INFO: regenerates file wam.bp in BinProlog src directory
Is called from:
reboot/0
bp_info/2
INFO: keeps basic help info on BinProlog builtins
Calls:
Is called from:
apropos/2
bp_only/1
INFO: runs goal only if is_prolog(binprolog) is true
Calls:
bp_only/2
bp_only/2
INFO: (Goal,Alternative): runs goal only if is_prolog(binprolog) is true otherwise runs Alternative
Calls:
is_prolog/1
bp_only/1
bp_val/3
INFO: unifies with 2 key indexed global logical variable
call/1
INFO: executes (atomic!) arg 1
call/2
INFO: efficient call/N variant
Calls:
term_append/3
include/1
call/3
INFO: efficient call/N variant
Calls:
term_append/3
call/4
INFO: efficient call/N variant
Calls:
term_append/3
compute/4
call/5
INFO: efficient call/N variant
Calls:
term_append/3
call/6
INFO: efficient call/N variant
Calls:
term_append/3
call/7
INFO: efficient call/N variant
Calls:
term_append/3
call_external/3
INFO: args: StringToStringFunctionAddress,InputChars,OuputChars - calls a C function
call_ifdef/2
INFO: calls if predicate head is defined, calls arg 2 if not
Calls:
Is called from:
call_jinni/1
INFO: call_jinni(G) calls Jinni in Twin Prolog with first answer binding G and fails if no answers are found
Calls:
call_jinni/2
INFO: call_jinni(G,R) calls Jinni in Twin Prolog with first answer R=the(G) or R=no, without binding G
Calls:
call_jinni/3
call_jinni/1
call_jinni/3
INFO: call_jinni(X,G,R) calls Jinni in Twin Prolog with first answer R=the(X) or R=no, without binding G
Calls:
(=)/2
callable/1
INFO: checks if predicate head is defined (callable)
Calls:
Is called from:
default/2
catch/3
INFO: ISO Prolog exception operator: executes arg 1 and if it catches arg 2, it executes arg 3
Calls:
fail/0
cd/0
INFO: changes local dir to HOME directory or / if no such env var
cd/1
INFO: changes local dir to arg 1
Calls:
unix_cd/1
cdelq/4
INFO: deletes first matching element from a queue
EXAMPLE(S):
?-cdelq(key1,key2,_A,_B).
_A = _x148849;
_B = 33;
no
Calls:
array_get/3
cdelq_any/3
INFO: deletes any matching element from a queue
EXAMPLE(S):
?-cdelq_any(key1,key2,_A).
no
Calls:
array_get/3
mmap_rm/3
ceiling/2
INFO: float to int function
EXAMPLE(S):
?-ceiling(1.3,_A).
_A = 2;
no
Calls:
change_arg/3
INFO: destructive: change_arg(I,T,X) replaces arg I of T with X
EXAMPLE(S):
?-change_arg(2,f(a,b),c).
yes
Is called from:
if_any/3
char_of/2
INFO: reads a Prolog file to a set of ascii codes - on backtracking
Calls:
(=)/2
(=:=)/2
fail/0
fclose/1
fgetc/2
find_file/2
fopen/3
repeat/0
check_password/1
INFO: checks that password matches default password
Calls:
cin/1
INFO: tries to get and remove a term from Linda blackboard
Calls:
local_cin/1
clause/2
INFO: clause(H,B) generates a clause with head matching H and body B
Calls:
Is called from:
asserted/1
clause_of/2
INFO: reads a Prolog file to a set of clauses - on backtracking
Calls:
term_of/2
clean_up_dead_engines/0
INFO: frees resources used by dead engines
Calls:
clean_up_engines/0
INFO: frees resources used by all engines except main
Calls:
clean_up_engines/1
clean_up_engines/1
INFO: internal predicate
Calls:
(=)/2
(=\=)/2
debugmes/1
destroy_engine/1
fail/0
get_engine_prop/3
list_engines/1
member/2
clear_bp_error/0
INFO: clears errors set by various conditions
Calls:
set_bp_error/4
clone_term/3
INFO: clone_term(Vs,T,CT) does copy_term(T,C) while keeping unchanged variables Vs - useful if doing things like setarg/3 on the new copy
EXAMPLE(S):
?-clone_term([_A,_C],f(_A,_B,_B,_C),_D).
_A = _x149826;
_B = _x149196;
_C = _x149829;
_D = f(_x149826,_x149827,_x149827,_x149829);
no
Calls:
copy_term/2
close/1
INFO: closes a stream opened by open/3
Calls:
atomic/1
close_iterator/1
INFO: (Iterator) closes an iterator
Calls:
term_store_op/4
get_all_terms/2
close_socket/1
INFO: closes a server, service or client
close_stream/2
INFO: (Type,StreamID) closes various streams
Is called from:
fclose/1
cmake/0
INFO: compiles BinProlog's Prolog components to compact C code - for packaging as standalone executable
Calls:
cmake/1
cmake/1
INFO: compiles a Project to compact C code - for packaging as standalone executable
Calls:
cmake/2
cmake/0
cmake/2
INFO: (Project,Module): compiles to C a project with all clauses belonging to Module
Is called from:
cmembq/3
INFO: generates (copies of) members of a queue
EXAMPLE(S):
?-cmembq(key1,key2,_A).
no
Calls:
array_get/3
cnl/0
INFO: writes a new line
Is called from:
nl/0
co/0
INFO: reconsults/recompiles last file
Calls:
include/1
co/1
INFO: reconsults using fast reader
Calls:
reconsult/1
~ /1
codes_words/2
INFO: converts a list of character codes to a list of words and back
Calls:
to_words/2
var/1
words_code/2
compare/3
INFO: returns <,=,> in arg 1 after comparing arg 2 with arg 3
EXAMPLE(S):
?-compare(_A,1,2).
_A = (<);
no
?-compare(_A,f(b),f(a)).
_A = (>);
no
?-compare(_A,s(_B),s(_B)).
_A = (=);
_B = _x149196;
no
compile/1
INFO: applies current compilation method to the file arg 1
compound/1
INFO: true if it has arity > 0
EXAMPLE(S):
?-compound(f(a)).
yes
Calls:
compute/4
INFO: applies Op to arg 2 and arg 3 giving a result
Calls:
call/4
consult/1
INFO: consults with possible duplication of clauses, allows later dynamic recompilation depending on db_ratio/1
Calls:
Is called from:
xload/1
consult/2
INFO: consult(File,DB) consults File into DB)
Calls:
db_consult/2
consult/1
copy_term/2
INFO: returns a copy of arg 1 with fresh variables
EXAMPLE(S):
?-copy_term(f(_A,_A,_B,_B),_C).
_A = _x149028;
_B = _x149030;
_C = f(_x149464,_x149464,_x149466,_x149466);
no
Is called from:
cos/2
INFO: float function
count_terms/2
INFO: returns the number of terms attached to a key
Calls:
term_store_op/4
cout/1
INFO: adds a term to the blackboard, unless already a matching one is there
Calls:
local_cout/1
cpopq/3
INFO: pops (copy of) first element of persistent queue
EXAMPLE(S):
?-cpopq(key1,key2,_A).
no
Calls:
create_engine/1
INFO: makes a new engine or reuses a dead one
Is called from:
open_engine/3
create_engine/4
INFO: create_engine(Heap,Stack,Trail,IntHandle) creates an engine IntHandle
Is called from:
create_new_engine/1
create_new_engine/1
INFO: creates an engine as big as the current one
Calls:
create_engine/4
ctime/1
INFO: gets elapsed cpu time in ms
EXAMPLE(S):
?-ctime(_A).
_A = 7046;
no
Calls:
statistics/2
current_db/1
INFO: gets the name of currently active database
Calls:
vget0/2
abolish/1
assert_from_chars/1
asserta/1
assertz/1
clause/2
consult/1
db_clean/0
db_save/1
dyn2stat/1
is_asserted/1
make_compileable/2
oconsult/1
retract/1
retract1/1
retractall/1
stat2dyn/1
this_db/1
current_engine/1
INFO: gets the unique id of the current engine
Calls:
current_engine_id/1
current_engine_addr/1
INFO: returns current engine handle
Is called from:
current_engine_id/1
INFO: returns a unique id associated to an engine at creation time
Calls:
Is called from:
current_engine/1
current_engine_thread/1
INFO: gets from the current Engine the thread it is running on
Calls:
Is called from:
current_input/1
INFO: gets current input stream
Is called from:
pcollect/2
current_module/1
INFO: gets name of current module
Calls:
Is called from:
end_module/1
current_op/3
INFO: generates/check current op/3 operator definition(s)
Calls:
Is called from:
is_interactive/0
current_output/1
INFO: gets current output stream
current_predicate/1
INFO: generates/checks the head of an existing predicate
Calls:
current_predicate/2
INFO: generates/checks name and head of a currently defined predicate
Calls:
Is called from:
show_defaults/0
current_thread/1
INFO: gets thread id number of current thread
cwrite/1
INFO: basic but quick C-version of write/1
db_abolish/2
INFO: db_abolish(DB,F/N) removes predicate F/N from DB
Calls:
Is called from:
db_assert/2
INFO: does assert/1 arg 2 into database given as arg 1
Calls:
db_assertz/2
db_asserta/2
INFO: does asserta/1 arg 2 into database given as arg 1
Calls:
pushq/3
db_asserted/2
INFO: runs predicate arg 2 if asserted in database arg 1
Calls:
db_assertz/2
INFO: does assertz/1 arg 2 into database given as arg 1
Calls:
addq/3
db_clause/3
INFO: clause(DB,H,B) generates a clause found in database DB with head matching H and body B
Calls:
Is called from:
db_clean/0
INFO: abolishes all predicates in currently active database
Calls:
db_clean/1
INFO: db_clean(DB) abolishes all predicates in DB
Calls:
fail/0
db_consult/2
INFO: db_consult(File,Db) consults a file to a database Db
Calls:
find_file/2
consult/2
db_head/2
INFO: generates/checks a predicate head in database (arg 1)
Calls:
functor/3
db_is_dynamic/2
INFO: checks if dynamic in a given database
db_listing/1
INFO: lists caluses given database
db_listing/2
INFO: lists predicate F/N in given database
Calls:
functor/3
db_move/2
INFO: db_move(FromDB,ToDB) moves the content of database FromDB over database ToDB while replacing similar predicates
Calls:
Is called from:
oconsult/1
db_ratio/1
INFO: sets/gets call/assert ratio which triggers dynamic recompilation
Calls:
integer/1
vget0/2
vset/2
dynco/1
db_retract/2
INFO: does retract/1 arg 2 from database given as arg 1
Calls:
db_retract/3
retract/1
db_retract/3
INFO: db_retract(Db,H,B) retracts clause with head H and body B from database Db
Calls:
array_get/3
db_retract/2
db_retract1/2
INFO: deletes from database given as arg 1 a matching clause
Calls:
Is called from:
db_retractall/2
INFO: removes from database given as arg 1, all matching clauses
Calls:
db_retractall/3
retractall/1
db_retractall/3
INFO: removes from database given as arg 1, all matching clauses seen as head + body
Calls:
arg/3
db_abolish/2
db_asserta/2
db_retract1/2
for/3
functor/3
nonvar/1
db_retractall/2
db_save/1
INFO: db_save(File) saves all the clauses of the current database to File
Calls:
Is called from:
xsave/1
db_save/2
INFO: db_save(Db,File) saves using qprint/1 all the clauses of Db to File
Calls:
Is called from:
db_save/1
dcg_call/4
INFO: (F,X,I,O): DCG metacall for star,plus,one
Calls:
(=..)/2
topcall/1
dcg_call/5
INFO: (F,X,Y,I,O): DCG metacall for star,plus,one
Calls:
(=..)/2
topcall/1
dcg_connect/1
INFO: handles a terminal symbol in HAGs, as [a] in DCGs
dcg_def/1
INFO: backtrackable: sets current Assumption Grammar stream - usually a hidden DCG list
dcg_tell/1
INFO: switches to hidden DCG-stream number K (form 0 to MAXDCG=255)
dcg_telling/1
INFO: retrieves which hidden DCG-stream we a re processing
EXAMPLE(S):
?-dcg_telling(_A).
_A = 1;
no
dcg_val/1
INFO: backtrackable: retrieves current Assumption Grammar stream - usually a hidden DCG list
dconsult/1
INFO: reconsult/1 variant: cleans up data areas, consults/compiles based on db_ratio/1
debugmes/1
INFO: writes message in debug mode (low quietness)
Calls:
quietmes/2
bb_gc0/0
bg/7
call_ifdef/2
clean_up_engines/1
include/1
qfindall/4
spawn/3
timed_call/4
deep_hash/4
INFO: (Key,Depth,Mod) computes hashvalue of Key modulo Mod, up to max recursion Depth
EXAMPLE(S):
?-deep_hash(f(a),5,0,_A).
_A = 23114257;
no
?-deep_hash(f(b),1,32,_A).
_A = 18;
no
Is called from:
default/2
INFO: default that can be overriden if asserted
EXAMPLE(S):
?-default(host(_A),_A = localhost).
_A = localhost;
no
Calls:
Is called from:
default_host/1
default_login/1
default_password/1
default_port/1
default_this_host/1
default_this_port/1
default_timeout/1
prolog_flag/2
default_host/1
INFO: returns default host for remote Linda server
Calls:
default/2
default_login/1
INFO: returns default (nick)name for user
Calls:
default/2
default_password/1
INFO: returns default password for user
Calls:
default/2
default_port/1
INFO: returns default port for remote Linda server
Calls:
default/2
default_this_host/1
INFO: returns default IP address or hostname this machine
Calls:
default/2
default_this_port/1
INFO: returns default port to work as a server on
Calls:
Is called from:
default_timeout/1
INFO: returns default timeout
Calls:
default/2
delete_all_terms/1
INFO: (GroundKey) removes all terms attached to a key
Calls:
term_store_op/4
destroy_array/1
INFO: frees an array
destroy_engine/1
INFO: destroy_engine(E) frees memory of engine E (an integer)
Is called from:
det_call/1
INFO: calls a Goal and warns if it was not deterministic
Calls:
detect_ip_addr/1
INFO: the ip address of current host, if detected, that of localhost if not
Calls:
vread/2
detect_user/1
INFO: guesses the user from environment information
Calls:
unix_getenv/2
dir/0
INFO: lists files under DOS
Calls:
system/1
dir2dirs/2
INFO: (Dir,Dirs): converts dir cmd output to list of sub directories of Dir
Calls:
dir2list/3
dir2files/2
INFO: (Dir,Files): converts dir cmd output to list of files (which are not dirs) contained in Dir
Calls:
dir2list/3
dir2list/3
INFO: (DirListerCmd,DirName,Files): converts OS specific DirLister output to list of files and/or directories
Calls:
Is called from:
(discontiguous)/1
INFO: states that clauses of a predicate can be in different places
Calls:
(multifile)/1
display/1
INFO: writes to terminal while ignoring operator definitions
drop_at_least/2
INFO: (N,Goal) drops at least N answers of Goal G
Calls:
Is called from:
all_but_at_least/4
dyn2stat/1
INFO: dyn2stat(H): compiles at runtime a predicate with head H
Calls:
dyn2stat/2
INFO: dyn2stat(Db,H): compiles at a predicate from database Db with head H
Calls:
vget0/2
vset/2
dyn2stat/1
(dynamic)/1
INFO: states that a predicate can be updated
Calls:
x_dynamic/1
dynbbgc/0
INFO: makes blackboard dynamic with gc on
Calls:
vset/2
dynco/1
INFO: yes/no: activates/desactivates dynamic recompilation
Calls:
Is called from:
static_prolog_flag/2
ed/0
INFO: edits last compiled/consulted file with default editor and refreshes it in memory
edit/0
INFO: calls DOS editor edit on last compiled file
edit/2
INFO: edit(E,F) edits with editor E, file F
Calls:
element_of/2
INFO: (Engine,Answer: backtracks over the answers of a fluent (usually an engine)
emacs/0
INFO: calls emacs editor on last compiled file
end_critical/0
INFO: ends serialized execution - exits critical region
Calls:
unlock_thread_guard/1
sdebug/1
end_module/0
INFO: ends current module
Is called from:
end_module/1
end_module/1
INFO: ends module if current, signals erro if not
Calls:
end_of_file/0
INFO: Prolog atom returned by read when at the end of a file
Calls:
halt/0
eq/2
INFO: unifies arg 1 and arg 2, like =
errmes/2
INFO: writes error message and fails
Is called from:
(##)/1
bb_gc/0
check_password/1
cpopq/3
det_call/1
end_module/1
flush_output/1
get_bp_error/4
get_code/2
(is)/2
number_codes/2
put_char/2
put_code/2
set_bp_error/4
start_rpc/3
to_words/2
unix/1
write_term_to_chars/3
write_words/1
exists_file/1
INFO: true if file exists
Calls:
Is called from:
file_size/2
exit/0
INFO: same as halt
Calls:
halt/0
exp/2
INFO: float function
expand_term/2
INFO: expands a term according to DCG expansion rules
fail/0
INFO: always fails
Is called from:
(\+)/1
(\=)/2
apropos/1
atom/1
bb_gc/0
bb_gc0/0
call_ifdef/2
catch/3
char_of/2
clean_up_engines/1
current_op/3
db_clean/1
db_move/2
db_save/2
det_call/1
false/0
forall/1
forall/2
foreach/1
foreach/2
has_threads/0
hash_clear/0
hash_clear/2
hash_gc/0
hash_save/2
info/0
info/1
list_engines/0
listing/0
listing/2
make_compileable/2
map_clear/1
map_gc/1
map_show/1
mmap_clear/1
mmap_gc/1
mmap_show/1
(module)/2
(not)/1
portray_clause/1
pp_term/1
prolog_run/1
run_server/6
service_loop/2
show_defaults/0
show_info/2
skip_until/2
skip_when/2
stat2dyn/2
statistics/0
subsumes_chk/2
term_of/2
timed_call/4
toplevel/0
while/2
x_gc/0
x_listing/0
x_listing/1
x_profile/0
false/0
INFO: always fails
Calls:
fail/0
fatal_error/2
INFO: writes error message and aborts
Is called from:
fcall/3
INFO: calls a list to list function: to be implemented
fclose/1
INFO: closes the C-stream specifiend as an integer handle
Calls:
close_stream/2
fcompile/1
INFO: compiles a *.pl file to a *.wam bytecode file
fflush/1
INFO: fflush(IntegerStreamNo) flushes a C-stream
Is called from:
flush_output/1
fgetc/2
INFO: fgetc(IntegerStreamNo,CharCode) inputs a char code from a C stream
Is called from:
file2chars/2
INFO: reads a file to a list of ascii codes
Calls:
file2sock/2
INFO: writes to a socket, from a file
file_extension_list/1
INFO: defines default file extensions for find_file
Is called from:
find_file/2
file_search_path/1
INFO: defines search path relative to BP_PATH (home of BinProlog) and PROLOG_PATH (home of user files)
Is called from:
find_file/2
file_size/2
INFO: returns the size of a file, in bytes
Calls:
find_at_most/4
INFO: (N,X,G,Xs) findall variant, computing at most N answers X of G
Calls:
take_at_most/2
det_call/1
find_file/2
INFO: finds a file name on search path
Calls:
Is called from:
find_while/4
INFO: findall variant
Calls:
while/2
findall/3
INFO: findall(X,G,Xs) collects copies of all answers X of G to Xs. If less then half of the heap is free, it allocates new engine for running G
EXAMPLE(S):
?-findall(s(_A),(member(_A,[1,2,3]),_A > 1),_B).
_A = _x149171;
_B = [s(2),s(3)];
no
Calls:
findall/4
findall/4
INFO: findall(X,G,Xs,Ys) appends the list of answers X of G to Ys to obtain Xs
EXAMPLE(S):
?-findall(s(_A),(_A = 1 ; _A = 2),_B,[3,4]).
_A = _x149157;
_B = [s(1),s(2),3,4];
no
Calls:
synchronize_on/2
findall/3
float/1
INFO: true if represented as a 64 bit float number (C-double)
EXAMPLE(S):
?-float(3.14).
yes
Calls:
Is called from:
number/1
trim_term/4
float/2
INFO: float function
Calls:
(is)/2
floor/2
INFO: float to int function
EXAMPLE(S):
?-floor(1.3,_A).
_A = 1;
no
Calls:
integer/2
flush_output/0
INFO: flushes current output stream
flush_output/1
INFO: flushes a stream
Calls:
foldl/4
INFO: (Op,InitialValue,List,?Result) accumulates values interating over List with binary Op
EXAMPLE(S):
?-foldl(+,0,[10,20,30],_A).
_A = 60;
no
Is called from:
foldr/4
INFO: (Op,InitialValue,List,?Result) accumulates values interating over List with binary Op
EXAMPLE(S):
?-foldr(+,0,[10,20,30],_A).
_A = 60;
no
fopen/3
INFO: Prolog equivalent of C-function: opens a stream in a given mode and returns an integer handle to it
Calls:
open_stream/4
for/3
INFO: generates an integer in a range
EXAMPLE(S):
?-for(_A,1,3).
_A = 1;
_A = 2;
_A = 3;
no
Is called from:
argn/3
current_op/3
db_retractall/3
info/1
maps_iterate/1
mmaps_iterate/1
new_thread_guard/1
rpc_test/1
timed_call/4
unix_argv/1
unix_cat/1
for_all/2
INFO: foreach(A,B) fails for all cases when A succeeds and B fails
forall/1
INFO: forall(G) backtracks over all answers to G and succeeds
Calls:
fail/0
forall/2
INFO: forall(G,D) executes D once for each answer of generator G
Calls:
foreach/1
INFO: foreach(G) backtracks over all answers to G and succeeds
Calls:
fail/0
foreach/2
INFO: foreach(G,D) executes D once for each answer of generator G
Calls:
Is called from:
assert_from_chars/2
hash_load/1
make_compileable/2
maps_clean/0
maps_gc/0
maps_show/0
mmaps_clean/0
mmaps_gc/0
mmaps_show/0
spawn/3
x_consult/1
fputc/2
INFO: fputc(IntegerStreamNo,CharCode) outputs a char code to a C stream
Is called from:
put_code/2
free_term/1
INFO: (Handle): frees external term given as a Handle
Calls:
term_store_op/4
free_thread_guard/1
INFO: gives back to pool thread guard in arg 1
Calls:
from_engine/1
INFO: (T) tries to take a term T from the message box of this engine and sets the message box empty
Calls:
fsize/2
INFO: returns the size of the file associated to a C stream, in bytes
Is called from:
file_size/2
unix_cat/1
functor/3
INFO: builds or decomposes a coumpound term
EXAMPLE(S):
?-functor(f(a,b),_A,_B).
_A = f;
_B = 2;
no
?-functor(_A,f,3).
_A = f(_x149745,_x149746,_x149747);
no
?-functor(f(a),f,1).
yes
Is called from:
apropos/2
argn/3
bagof/3
bp_info/2
callable/1
current_predicate/1
current_predicate/2
db_abolish/2
db_head/2
db_listing/2
db_move/2
db_retractall/3
float/1
hash_save/2
listing/2
(nospy)/1
numbervars/3
set_default/1
(spy)/1
x_abolish/1
x_dynamic/1
x_listing/1
garbage_collect/0
INFO: performs heap gc now
gc/0
INFO: enables heap gc
gc_call/1
INFO: G: executes G and ensures that no more space is consumed than the total size of the terms bound to its variables
Calls:
member/2
gc_status/1
INFO: shows if heap gc is enabled or not
Calls:
vget0/2
generic_write/1
INFO: overridable write/1, style (writeq, write, display) given with write_style/1 assumption
gensym/2
INFO: generates a new name based on arg 1
Calls:
Is called from:
gensym_no/2
INFO: generates a new number based on arg 1
Calls:
Is called from:
gensym/2
get/1
INFO: inputs the next char code after skiping over white space
Calls:
get/2
INFO: get(E,A) returns a new answer A=the(...) from engine E or returns no if no (more) answers exist
Calls:
get0/1
INFO: reads a char as an ascii code
Is called from:
get_code/1
get_all_terms/2
INFO: (GroundKey,Ts) collects to alist all terms attached to a key
Calls:
get_bp_error/4
INFO: (Id,Mes,Arg1,Arg2): gets error sate from emulator
Calls:
errmes/2
vget0/2
get_char/2
INFO: (Stream,CharAsOneLetterConstant): inputs a char from a stream -ISO Prolog
Calls:
get_code/1
INFO: ISO char code reader
Calls:
get0/1
get_code/2
INFO: inputs a char code from a stream - ISO
Calls:
Is called from:
get_char/2
get_critical/2
INFO: (Guard,Data): accesses mutex Guard protected Data on blackboard
Calls:
get_deep_cut/2
INFO: gets a choice point address, used with 1 arg only
get_engine_id/2
INFO: (+Engine,-Id) gets the unique id associated to an engine at creation time
Calls:
Is called from:
get_engine_prop/3
INFO: args: Engine,PropertyNo,Val
Is called from:
clean_up_engines/1
get_engine_id/2
get_engine_thread/2
list_engines/0
get_engine_thread/2
INFO: gets from an Engine the thread it is running on
Calls:
Is called from:
get_lineno/1
INFO: gets line number counter in current file
Calls:
vget_int/2
include/1
get_load_method/1
INFO: gets the current load method by name
Calls:
load_method/2
vget0/2
get_neck_cut/1
INFO: gets the choice point as an integer
get_next_term/2
INFO: (Iterator,Term) returns the next term attached to an iterator, fails if no more left
Calls:
term_store_op/4
get_password/1
INFO: gets default password for user
Calls:
show_default/1
get_term/2
INFO: (Iterator,Term): backtracks over terms associated to a key
global_get/3
INFO: (A,B,X): retrieves X associated to ground keys A,B
global_rm/2
INFO: (A,B): removes value associated to ground keys A,B
global_set/3
INFO: (A,B,X): associates X to ground keys A,B
Calls:
nonvar/1
greater/2
INFO: arithemetic comparison
Is called from:
(>)/2
greater_eq/2
INFO: arithemetic comparison
Is called from:
(>=)/2
ground/1
INFO: true if arg has no free variables
EXAMPLE(S):
?-ground(f(a,b)).
yes
Calls:
deep_hash/4
(not)/1
halt/0
INFO: stops BinProlog
Calls:
halt/1
halt/1
INFO: stops Prolog with given return code when used in main thread- or halts current thread
Is called from:
handle_service/2
INFO: handles a Jinni service S with password P - always succedes
has_info/1
INFO: checks/generates predicates Pred/Arity for which info is available
Calls:
(\==)/2
info/1
has_terms/1
INFO: (GroundKey) succeds if at least on term is attached to GroundKey
Calls:
has_threads/0
INFO: succeeds if threads available on this platform
Calls:
Is called from:
hash_clear/0
INFO: removes all terms from all hash keys
Calls:
Is called from:
hash_load/1
hash_clear/1
INFO: (GroundKey) removes all terms attached to a key
Calls:
(##)/1
hash_clear/2
INFO: (GroundKey,Term) removes all matching terms attached to a key
Calls:
hash_compile/0
INFO: compiles the hashed map to a predicate benefiting from 1-arg indexing
Calls:
hash_find_unique/3
INFO: like findall(X,G,Xs) but uses hashing on ground term X to collect unique answers
Calls:
gensym/2
hash_gc/0
INFO: frees space used by hash keys and values
Calls:
hash_get/2
INFO: (GroundKey,Term) retrieves in constant time a term attached to a ground key
Calls:
hash_key/1
var/1
x_listing/0
hash_key/1
INFO: (IntKey) backtrack over hash keys
Calls:
Is called from:
hash_load/1
INFO: (File) loads the hashed map to a database
Calls:
hash_push/2
INFO: (GroundKey,Term): attaches a term to a ground key in constant time as a the first element
Calls:
mmap_push/3
hash_put/2
INFO: (GroundKey,Term): attaches a term to a ground key in constant time as the last element
Calls:
(##)/1
hash_rm/2
INFO: (GroundKey) removes a term attached to a key and returns it - backtracks
Calls:
(##)/1
hash_rm_one/2
INFO: (GroundKey) removes a term attached to a key and returns it
Calls:
(##)/1
hash_save/1
INFO: (File) saves the hashed map to a database ready for 1-arg indexing if compiled
Calls:
hash_save/2
hash_save/2
INFO: (File,PredNMame) saves the hashed map to a database in predicate PredName ready for 1-arg indexing if compiled
Calls:
arg/3
fail/0
functor/3
hash_key/1
keygroup/3
pp_clause/1
tell/1
told/0
hash_save/1
hash_trace/2
INFO: tracer for hash maps
Calls:
help/0
INFO: generates file help.txt with info and examples
Calls:
nl/0
help/1
INFO: same as apropos/1
EXAMPLE(S):
?-help(assert).
use info/1 to get a description of a predicate
assert/1-[built_in,adds a clause]
assert_from_chars/1-[built_in,asserts a program from clauses in list of chars]
assert_from_chars/2-[built_in,(Db,Cs) asserts to database Db, a set of clauses parsed from list of char codes Cs]
asserta/1-[built_in,adds a clause to be first in a predicate definition]
asserted/1-[built_in,runs a predicated if asserted]
assertz/1-[built_in,adds a clause to be last in a predicate definition]
db_assert/2-[built_in,does assert/1 arg 2 into database given as arg 1]
db_asserta/2-[built_in,does asserta/1 arg 2 into database given as arg 1]
db_asserted/2-[built_in,runs predicate arg 2 if asserted in database arg 1]
db_assertz/2-[built_in,does assertz/1 arg 2 into database given as arg 1]
get_asserted/2-[built_in]
is_asserted/1-[built_in,checks if currently asserted]
prolog:assert_it/2-[compiled]
prolog:db_is_asserted/2-[compiled]
prolog:is_asserted_clause/1-[compiled]
prolog:x_assert/2-[compiled]
prolog:x_assert_op/3-[compiled]
x_asserta/1-[built_in,db hook, adds a clause to be first in a predicate definition]
x_assertz/1-[built_in,db hook, adds a clause to be last in a predicate definition]
yes
Calls:
apropos/1
hide_default/1
INFO: makes unavailable a default value
Calls:
bb_let/3
set_password/1
hkey/2
INFO: computes hash code on atomic argument; fails on variables and compound terms
EXAMPLE(S):
?-hkey(t(a,b),_A).
_A = 236945626;
no
?-hkey(t(a,c),_A).
_A = 236945625;
no
Calls:
deep_hash/4
host2ip/2
INFO: converts a host name to an IP address
hostname/1
INFO: the name of current host, if detected, localhost if not
Calls:
vread/2
hypot/3
INFO: float function
if_any/3
INFO: (Cond,Then,Else): executes Cond; each time when Cond succeeds it also executes Then; if Cond never succeds it executes Else
Calls:
in/1
INFO: waits to remove a term from Linda blackboard
Calls:
local_in/1
include/1
INFO: includes/loads a file with current load method, unless it has already been included by the same method
Calls:
call/2
debugmes/1
get_lineno/1
load_method/2
set_lineno/1
vget0/2
info/0
INFO: generates info on predicates with examples
Calls:
info/1
INFO: generates info and examples of use for predicate Pred/Arity
Calls:
Is called from:
info/0
init_gensym/1
INFO: resets gensym for names based on arg 1
Calls:
bb_let/3
instance_of/2
INFO: (Handle,Term): creates an internal instance of an external term given as a Handle
Calls:
term_store_op/4
integer/1
INFO: true if an integer
Is called from:
atom/1
db_ratio/1
number/1
quiet/1
set_lineno/1
set_port/1
set_this_port/1
tab/1
integer/2
INFO: float to int cast
Is called from:
interactive/1
INFO: toggles interactive query answering/tracing with arg 1 = yes or no
Calls:
(is)/2
INFO: calls the function evaluator, mostly for arithmetics
EXAMPLE(S):
?-_A is 3+4*2.
_A = 11;
no
Calls:
Is called from:
abs/2
abstime/1
bb_gc0/0
bp_info/2
ceiling/2
dynco/1
float/2
gensym_no/2
hash_compile/0
nth_answer/2
numbervars/3
round/2
rpc_test/1
to_lower_char/2
to_upper_char/2
trim_term/4
unix_argv/1
x_gc/0
x_profile/0
x_traced_call/1
is_an/1
INFO: true if an alphanumerical char code
is_asserted/1
INFO: checks if currently asserted
Calls:
current_db/1
is_builtin/1
INFO: recognizes a predicate head as a builtin
EXAMPLE(S):
?-is_builtin(var(_A)).
_A = _x148944;
no
Calls:
nonvar/1
is_compiled/1
INFO: true if head of a compiled predicate
Is called from:
(##)/1
call_ifdef/2
callable/1
hash_key/1
hash_trace/2
listing/2
x_trace/2
is_discontiguous/1
INFO: checks if a predicate has been declared as discontiguous
is_dynamic/1
INFO: checks if dynamic
Calls:
is_asserted/1
x_is_dynamic/1
callable/1
is_engine/1
INFO: recognizes and integer as an engine handle
Calls:
is_interactive/0
INFO: checks if toplevel is interactive - use interactive/1 with yes/no to set it the way you want it
Calls:
current_op/3
interactive/1
is_maj/1
INFO: true if is an upper case char code
is_min/1
INFO: true if a lower case char code
is_module/1
INFO: recognizes/generates a module name
Calls:
Is called from:
modules/1
is_num/1
INFO: true if a digit char code
is_prolog/1
INFO: recognizes binprolog - useful for portability
Calls:
Is called from:
is_public/1
INFO: checks predicate head if globally visible
is_spec/1
INFO: true if a spacial character code
is_terminator/1
INFO: true if a terminator character code
keygroup/3
INFO: sorts while grouping similar keys
EXAMPLE(S):
?-keygroup([3-a,1-a,2-b,1-c,2-d],_A,_B).
_A = 1;
_B = [a,c];
_A = 2;
_B = [b,d];
_A = 3;
_B = [a];
no
Calls:
keysort/2
hash_save/2
keysort/2
INFO: sorts while putting similar keys one after the other in a list
EXAMPLE(S):
?-keysort([3-a,1-a,2-b,1-c,2-d],_A).
_A = [1-a,1-c,2-b,2-d,3-a];
no
Is called from:
length/2
INFO: generates/mesures length of a list
Calls:
var/1
merge_sort/3
less/2
INFO: arithemetic comparison
Is called from:
(<)/2
less_eq/2
INFO: arithemetic comparison
Is called from:
(=<)/2
line_of/2
INFO: (File,Line) reads a file to lines ending with eol - on backtracking
Calls:
Is called from:
token_of/2
list_engines/0
INFO: prints out the list of active engines
Calls:
(=)/2
fail/0
get_engine_prop/3
get_engine_thread/2
list_engines/1
member/2
nl/0
write/1
list_engines/1
INFO: lists available engine handles
Is called from:
listify/2
INFO: (T,Cs): transforms T, unless it is already such, to list of chars
Calls:
atom_codes/2
listing/0
INFO: lists current database
Calls:
listing/1
INFO: lists given predicate if in current database
Calls:
listing/2
INFO: lists predicate F of arity N if in current database
Calls:
Is called from:
load/1
INFO: clean loads from a bytecode *.wam file
Calls:
abort/0
load_engine/3
INFO: load_engine(E,Goal,Answer) prepares engine E to execute Goal/Answer
Is called from:
load_method/2
INFO: args: Number, Name
EXAMPLE(S):
?-load_method(_A,_B).
_A = 1;
_B = mcompile;
_A = 2;
_B = scompile;
_A = 3;
_B = oconsult;
_A = 4;
_B = dconsult;
_A = 5;
_B = sconsult;
_A = 6;
_B = load;
no
Is called from:
local_all/2
INFO: local_all(X,Xs) collects all facts matching X on the blackboard
Calls:
local_all/3
all/2
local_all/3
INFO: local_all(X,G,Xs) collects facts X such that G on the blackboard
Calls:
synchronize_on/2
local_cin/1
INFO: removes a term if available on the local blackboard
Calls:
synchronize_on/2
local_cout/1
INFO: puts a term on local blackbord unless already there
Calls:
Is called from:
cout/1
local_in/1
INFO: waits for a term produced by a matching local_out/1
Calls:
current_engine_thread/1
local_cin/1
synchronize_on/2
thread_suspend/1
in/1
local_out/1
INFO: produces a term and possibly wakes up the thread at a matching local_in/1
Calls:
Is called from:
local_rd/1
INFO: tests if a term is available on the local blackboard
Calls:
synchronize_on/2
local_when/1
INFO: waits until a term is available on the local blackboard
Calls:
current_engine_thread/1
local_rd/1
synchronize_on/2
thread_suspend/1
lock_thread_guard/1
INFO: locks thread guard created with new_thread_guard
Is called from:
log/2
INFO: float function
log/3
INFO: returns log in base arg 1 of arg 2, a float
EXAMPLE(S):
?-log(2,8,_A).
_A = 3;
no
ls/0
INFO: list files under Unix
Calls:
system/1
ls2list/2
INFO: (Dir,Files): converts ls cmd output to list of files and dirs
Calls:
dir2list/3
lval/3
INFO: backtrackable: lval(K1,K2,V) associates V to keys K1 and K2
EXAMPLE(S):
?-lval(a,b,f(_A)).
_A = _x148841;
no
make_array/2
INFO: creates an array
make_cmd/2
INFO: concatenates a list of strings and atomic elements into an atom
Calls:
Is called from:
make_cmd0/2
INFO: concatenates a list of strings and atomic elements into a string
Is called from:
make_cmd/2
make_compileable/2
INFO: make_compilable(Files,File) rewrites Files as a canonical File with all predicates contiguous and no operators
Calls:
(=)/2
atomic/1
current_db/1
db_clean/1
fail/0
foreach/2
member/2
tell/1
telling/1
told/0
make_spaced_cmd/2
INFO: concatenates a list of elements with inserted space separtors into an atom
Calls:
make_cmd/2
map/2
INFO: maps a predicate with 1 arg to a list
EXAMPLE(S):
?-map(println,[10,20,30]).
10
20
30
yes
map/3
INFO: maps a predicate with 2 args to a list
EXAMPLE(S):
?-map(+1,[10,20],_A).
_A = [11,21];
no
map_clear/1
INFO: (D): empties and cleans up D
Calls:
fail/0
x_abolish/1
map_gc/1
INFO: (D): frees unused memory in D
Calls:
map_get/3
INFO: (D,K,V): gets V, given K in map D, backtracks over K if K unbound
Calls:
Is called from:
map_show/1
x_abolish/1
x_profile/0
x_traced_call/1
map_key/2
INFO: (D,K): succeds if K is known, otherwise finds V backtracks over each key K in D
Calls:
Is called from:
map_new/1
INFO: (D): returns a new map handle D
Calls:
gensym/2
map_put/3
INFO: (D,K,V): adds K,V to map D
Calls:
Is called from:
x_traced_call/1
map_rm/2
INFO: (D,K): removes key K from map D
Calls:
map_key/2
x_abolish/1
map_show/1
INFO: (D): lists the content of a map
Calls:
maps_clean/0
INFO: empties and cleans up all maps created with mmap_new
Calls:
maps_gc/0
INFO: frees memory for all maps created with mmap_new
Calls:
foreach/2
maps_iterate/1
INFO: (D): backtracks over map handles created with mmap_new D
Calls:
maps_show/0
INFO: lists the content of all maps created with mmap_new
Calls:
foreach/2
match_before/4
INFO: match_before(+Stop,-Word,I,O): matches a word with DCGs until a given delimiter is hit
Calls:
match_before/5
match_before/5
INFO: match_before(+Stops,-Word,-Stop,I,O): matches a word with DCGs until a given delimiter set is hit, one of which is also returned
Calls:
Is called from:
match_word/3
INFO: match_word(+Word,I,O): matches/consumes a word, in the conext of DCGs
Calls:
Is called from:
match_word/3
max/3
INFO: (X,Y,Max): Max is the max of 2 numbers X, Y
Calls:
mcompile/1
INFO: compile/1 variant: cleans up data areas and compiles to memory
Calls:
abort/0
scompile/1
member/2
INFO: (X,Xs): checks if an element X unifies with an element on a list Xs or generates sucessively longer lists if Xs is unbound or open ended
EXAMPLE(S):
?-member(2,[1,2]).
yes
?-member(_A,[1,2]).
_A = 1;
_A = 2;
no
Calls:
member/2
answer_of/2
apropos/1
clean_up_engines/1
gc_call/1
is_engine/1
list_engines/0
make_compileable/2
match_before/5
member/2
(module)/2
read_terms_from_chars/3
show_defaults/0
show_info/2
term_of/2
token_of/2
words_code/2
member_conj/2
INFO: like member/2, for a comma separated conjunction, ending with true
EXAMPLE(S):
?-member_conj(_A,(a,b,true)).
_A = a;
_A = b;
no
Calls:
member_conj/2
member_conj/2
member_scan/3
INFO: finds first element without unifying to it
EXAMPLE(S):
?-member_scan(s(_A),[1,s(s(_B)),2],_C).
_A = _x149282;
_B = _x149292;
_C = [s(s(_x149292)),2];
no
Is called from:
memberchk/2
memberchk/2
INFO: (X,Xs) checks if an X is a the list Xs
Calls:
merge_sort/3
INFO: (Order,List,Sorted)
EXAMPLE(S):
?-merge_sort(>,[1,3,2,2,4],_A).
_A = [4,3,2,2,1];
no
Calls:
length/2
metacall/1
INFO: calls the interpreter
Is called from:
topcall/1
min/3
INFO: (X,Y,Min): Min is the min of 2 numbers X, Y
Calls:
mmap_clear/1
INFO: (D): empties and cleans up D
Calls:
fail/0
hash_clear/0
mmap_gc/1
INFO: (D): frees unused memory in D
Calls:
fail/0
hash_gc/0
mmap_get/3
INFO: (D,K,V): gets V, given K in mmap D, backtracks over K if K unbound
Calls:
Is called from:
mmap_show/1
mmap_key/2
INFO: (D,K): succeds if K is known, otherwise finds V backtracks over each key K in D
Calls:
Is called from:
mmap_new/1
INFO: (D): returns a new mmap handle D - a mmap holds multiple elements for each key
Calls:
gensym/2
mmap_push/3
INFO: (D,K,V): adds K,V as the first element of mmap D
Calls:
Is called from:
hash_push/2
mmap_put/3
INFO: (D,K,V): adds K,V as the last element of mmap D
Calls:
addq/3
mmap_rm/3
INFO: (D,K,X): removes a term X attached to key K from mmap D and backtracks on each such term
Calls:
Is called from:
hash_clear/2
mmap_rm_all/2
INFO: (D,K): removes all terms X attached to key K from mmap D
mmap_rm_one/3
INFO: (D,K,X): removes first term X attached to key K from mmap D
Calls:
mmap_show/1
INFO: (D): lists the content of a mmap
Calls:
mmaps_clean/0
INFO: empties and cleans up all mmaps created with mmap_new
Calls:
mmaps_gc/0
INFO: frees memory for all mmaps created with mmap_new
Calls:
foreach/2
mmaps_iterate/1
INFO: (D): backtracks over mmap handles created with mmap_new D
Calls:
mmaps_show/0
INFO: lists the content of all mmaps created with mmap_new
Calls:
foreach/2
mod/3
INFO: modulo
EXAMPLE(S):
?-mod(10,3,_A).
_A = 1;
no
(mode)/1
INFO: accepts mode declarations although we are not using them currently
(module)/1
INFO: starts a module
Is called from:
(module)/2
(module)/2
INFO: starts a module specifying a list of visible predicates
Calls:
modules/1
INFO: returns a list of existing modules
Calls:
is_module/1
msort/2
INFO: sorts and keeps duplicates
EXAMPLE(S):
?-msort([2,1,3,1,4,4,2],_A).
_A = [1,1,2,2,3,4,4];
no
Calls:
merge_sort/3
(multifile)/1
INFO: states that clauses of a predicate can be in different files
Is called from:
(discontiguous)/1
name/2
INFO: bidirectional: converts atomic to/from list of chars
EXAMPLE(S):
?-name(hello,_A).
_A = [104,101,108,108,111];
no
?-name(_A,[98,121,101]).
_A = bye;
no
Is called from:
apropos/2
atom_codes/2
get_char/2
number_codes/2
put_char/2
read_line/1
show_defaults/0
sread/3
swrite/3
system/2
to_string/2
namecat/4
INFO: concatenates 3 names
EXAMPLE(S):
?-namecat(a,:,b,_A).
_A = a:b;
no
Is called from:
near_match/2
INFO: matches 2 lists of chars
Is called from:
apropos/2
new_builtin/3
INFO: sample 3 arg user added builtin - used for the C interface
new_client/3
INFO: from a (host,port) to a client
Is called from:
start_rpc/3
new_engine/3
INFO: new_engine(X,G,E) creates an engine E ready to execute goal G with answer X
Calls:
open_engine/3
new_iterator/2
INFO: (GroundKey,Iterator) gets an iterator to terms attached to ground key
Calls:
term_store_op/4
get_all_terms/2
new_key_iterator/1
INFO: (Iterator): returns an iterator over the set of external keys
Calls:
term_store_op/4
new_name/2
INFO: returns a new name based on arg 1
new_server/2
INFO: opens on a port a new server
Is called from:
new_service/3
INFO: from (server,timeout) to a service
Is called from:
run_server/6
new_term/2
INFO: (Term,Handle): creates a new external Term and returns an integer Handle to it
Calls:
term_store_op/4
new_thread_guard/1
INFO: returns a new free thread guard from pool
Calls:
nl/0
INFO: writes a new line character
Calls:
cnl/0
apropos/1
help/0
list_engines/0
listing/1
listing/2
map_show/1
mmap_show/1
pp_term/1
sdebug/1
show_defaults/0
show_info/2
spawn/3
statistics/0
nobbgc/0
INFO: disables blackboard gc
Calls:
vset/2
nogc/0
INFO: disables heap gc
nonvar/1
INFO: true if currently instantiated
Is called from:
argn/3
asserted/1
atom_chars/2
bp_info/2
callable/1
compound/1
current_op/3
current_predicate/1
current_predicate/2
db_asserted/2
db_clause/3
db_retractall/3
float/1
global_set/3
info/1
interactive/1
is_builtin/1
is_module/1
map_key/2
mmap_key/2
new_thread_guard/1
number_chars/2
number_codes/2
predicate_property/2
term_codes/2
write_term_to_chars/3
write_words/1
(nospy)/1
INFO: do not spy on Pred/Arity anymore
Calls:
Is called from:
notrace/0
(not)/1
INFO: sound negation
Calls:
notepad/0
INFO: calls notepad editor on last compiled file
notify_about/1
INFO: notifies a suspended matching wait_for(Term,Contraint), if Constraint holds, that Term is available
notrace/0
INFO: do not trace predicates when interpreted
Calls:
(nospy)/1
nth_answer/2
INFO: (N,Goal) returns only the nth answer of Goal, if such an anser exists
Calls:
nth_member/3
INFO: retrieves N-th element of a list
EXAMPLE(S):
?-nth_member(_A,[a,b,c],_B).
_A = a;
_B = 1;
_A = b;
_B = 2;
_A = c;
_B = 3;
no
number/1
INFO: true if integer or float
Calls:
Is called from:
number_chars/2
INFO: (Number,CharAtoms): converts between a number and its list of char atoms representation
EXAMPLE(S):
?-number_chars(1999,_A).
_A = [1,9,9,9];
no
Calls:
number_codes/2
INFO: (Number,CharCodes): converts between a number and its list of char code representation
EXAMPLE(S):
?-number_codes(1999,_A).
_A = [49,57,57,57];
no
?-number_codes(_A,[50,48,48,49]).
_A = 2001;
no
Calls:
Is called from:
number_chars/2
numbervars/3
INFO: binds to $VAR(I) with I over distinct integers variables in a term
Calls:
Is called from:
numbervars/3
oconsult/1
INFO: reconsult/1 variant: consults/compiles based on db_ratio and overwrites old clauses
Calls:
older_file/2
INFO: true if arg 1 is a file older than arg 2
once/1
INFO: executes once, with no backtracking
Is called from:
one/4
INFO: one(Recognizer,Result): DCG based regexp processor for exactly one Recognizer
Calls:
dcg_call/4
op/3
INFO: op(Pri,A,Op) defines an operator Op of priority Pri and associativity A
open/3
INFO: returns a stream (arg 3) on a file (arg 1) in read/write/append mode (arg 2)
Calls:
open_stream/4
open_engine/3
INFO: open_engine(G,X,E) creates an engine E ready to execute goal G with answer X
Calls:
Is called from:
new_engine/3
open_stream/4
INFO: (Type,FileOrCmd,ReadWriteAppend,?StreamID) opens various streams
Is called from:
otherwise/0
INFO: always succeeds
otime/1
INFO: gets time in secs from arbitrary origin to start
EXAMPLE(S):
?-otime(_A).
_A = 372179905;
no
Calls:
statistics/2
out/1
INFO: puts a term on Linda server or trigers resumption of a matching in/1 waiting for this data
Calls:
local_out/1
override/3
INFO: overrides a compiled predicate - to be used with care
pc/0
INFO: pushes code compiled into the workspace to the persistent kernel
Calls:
push_code/1
qcompile/1
pclose/1
INFO: closes a pipe generated stream
Is called from:
pcollect/2
unix/1
pcollect/2
INFO: collects output from a command to a list of char codes
Calls:
Is called from:
peer_addr/2
INFO: gets address of peer connected to socket
peer_port/2
INFO: gets port of peer connected to socket
phrase/2
INFO: (Axiom, ?InputChars): DCG evaluator, starting from Axiom, consuming/producing InputChars
Calls:
phrase/3
phrase/3
INFO: (Axiom, ?InputChars, ?OutputChars): DCG evaluator, staring from Axiom
EXAMPLE(S):
?-phrase(([a],[b]),[a,b|_A],_A).
_A = _x149070;
no
Calls:
(=)/2
phrase/2
pico/0
INFO: calls pico editor on last compiled file
plus/4
INFO: plus(Recognizer,Result): DCG based plus regexp processor for (Recognizer)+
Calls:
popen/3
INFO: popen(Cmd,read/write,Stream) opens Stream using a pipe from/to process executing Cmd
Calls:
Is called from:
pcollect/2
unix/1
portray_clause/1
INFO: pretty prints a clause
Calls:
fail/0
pp_clause/1
pow/3
INFO: (Base,Expo,Val) computes power function
EXAMPLE(S):
?-pow(2,3,_A).
_A = 8;
no
pp_clause/1
INFO: prints out a clause with some care on how it looks
Calls:
portray_clause/1
pp_term/1
INFO: pretty prints a term
Calls:
predicate_property/2
INFO: returns a property of a predicate
EXAMPLE(S):
?-predicate_property(write(_A),_B).
_A = _x149194;
_B = built_in;
no
Calls:
nonvar/1
apropos/2
print/1
INFO: variant of write/1
println/1
INFO: synchronized printing of a term on a line
Calls:
synchronize/1
process_term/3
INFO: (OpCode,Input,Output): applies various user defined C functions to external terms
Calls:
term_store_op/4
prod/2
INFO: (List, ?Result): product of a list
EXAMPLE(S):
?-prod([10,20],_A).
_A = 200;
no
Calls:
foldl/4
profile/0
INFO: in specialy compiled profiler mode prints out info accumulated so far
prolog_flag/2
INFO: (Flag,Value): retrieves the value of a Prolog flag
Calls:
default/2
prolog_init/1
INFO: runs more command line args representing prolog goals
prolog_load/1
INFO: loads code and/or executes first command line arg
Calls:
call_ifdef/2
prolog_run/1
INFO: starts main/0 if defined, otherwise toplevel/0
Calls:
fail/0
(public)/1
INFO: declares globally visible predicate Name/Arity
Calls:
(public)/1
(public)/1
push_code/1
INFO: moves code compiled in workspace to kernel and returns top of code area - used by pc/0
Is called from:
pc/0
push_term/2
INFO: (GroundKey,Term): attaches a term to a ground key in constant time as a the first element
Calls:
term_store_op/4
pushq/3
INFO: adds to beginning of persistent queeue
EXAMPLE(S):
?-pushq(key1,key2,f(_A,_A)).
_A = _x148850;
no
Calls:
(==)/2
(\==)/2
bb_gc/0
clear_bp_error/0
fatal_error/2
get_bp_error/4
put/1
INFO: writes and ascii code as a char
EXAMPLE(S):
?-put(99).
c
yes
Is called from:
put_code/1
put_char/2
INFO: (Stream,CharAsOneLetterConstant): outputs a char to a stream -ISO Prolog
Calls:
put_code/1
INFO: ISO char code writer
EXAMPLE(S):
?-put_code(99).
c
yes
Calls:
put/1
unix_cat/1
write_chars/1
put_code/2
INFO: outputs a char code to a stream - ISO
Calls:
Is called from:
put_char/2
put_critical/2
INFO: (Guard,Data): updates mutex Guard-protected Data on blackboard
Calls:
put_term/2
INFO: (GroundKey,Term): attaches a term to a ground key in constant time as the last element
Calls:
term_store_op/4
pwd/0
INFO: shows current dir
Calls:
system/1
pwd/1
INFO: returns current dir as a list of chars
Calls:
pcollect/2
qcompile/1
INFO: compile/1 variant: compiles a file to memory after pushing current user code to kernel - where it becomes read only
Calls:
pc/0
qfindall/4
INFO: qfindall(X,G,Xs,Ys): queues based, slightly faster findall/4, not MT-safe
EXAMPLE(S):
?-qfindall(s(_A),(_A = 1 ; _A = 2),_B,[3,4]).
_A = _x149183;
_B = [s(1),s(2),3,4];
no
Calls:
qmake/1
INFO: compiles Project to fast C code - for packaging as standalone executable
Calls:
qmake/2
qmake/2
INFO: (Project,Module): compiles to fast C code a project in Module: uses set_threshhold(12,60) before dooing cmake/2, for a good speed/code size ratio
Calls:
Is called from:
qmake/1
qprint/1
INFO: prints out a clause such that a variant of it can be always read back
Is called from:
db_save/2
quiet/1
INFO: gets/sets level of "quietness"
Calls:
integer/1
vget0/2
vset/2
quietmes/1
INFO: writes message if in low quietness mode
Calls:
quietmes/2
quietmes/2
INFO: writes message if quietness is lower than arg 1)
Calls:
Is called from:
quit/0
INFO: same as halt
Calls:
halt/0
random/1
INFO: returns a random integer
EXAMPLE(S):
?-random(_A).
_A = 2508;
no
random_seed/1
INFO: initializes random/1 with an integer, uses clock if 0
rd/1
INFO: reads a term matching arg 1 from Linda blackboard
Calls:
local_rd/1
read/1
INFO: reads a term
Is called from:
term_of/2
read_chars/1
INFO: reads to a list of ascii codes
Calls:
get_code/1
read_line/1
INFO: reads a line into a constant
Calls:
read_term/2
INFO: reads a term and also a list of variable-name associations
read_term_from_chars/2
INFO: reads a term from a list of char codes
EXAMPLE(S):
?-read_term_from_chars([102,40,88,44,88,44,89,44,89,41],_A).
_A = f(_x151573,_x151573,_x151624,_x151624);
no
Calls:
read_term_from_chars/3
read_term_from_chars/3
INFO: reads a term with variable names from a list of char codes
EXAMPLE(S):
?-read_term_from_chars([102,40,88,44,88,44,89,44,89,41],_A,_B).
_A = f(_x151678,_x151678,_x151729,_x151729);
_B = [X = _x151678,Y = _x151729];
no
Is called from:
read_terms_from_chars/2
INFO: (Chars,Clause): backtracks over Clause(s) parsed from a list of char codes
Calls:
read_terms_from_chars/3
read_terms_from_chars/3
INFO: (Chars,Clause,VarsInClause): backtracks over Clause(s) parsed from a list of char codes
EXAMPLE(S):
?-read_terms_from_chars([98,40,88,44,89,41,58,45,97,40,89,44,88,41,46,32,97,40,49,44,49,41,46,32,97,40,95,44,50,41,46,32],_A,_B).
_A = (b(_x154557,_x154585) :- a(_x154585,_x154557));
_B = [X = _x154557,Y = _x154585];
_A = a(1,1);
_B = [];
_A = a(_x154156,2);
_B = [_ = _x154156];
no
Calls:
Is called from:
read_terms_from_chars/2
read_words/1
INFO: reads a line into a list of words
Calls:
reboot/0
INFO: regenerates BinProlog from its sources
Calls:
boot/0
reconsult/1
INFO: applies current consult method to file given as arg 1, set db_ratio/1 for specifying dynamic recompilation of heavily used interpreted code
Is called from:
co/1
remote_run/1
INFO: runs Goal on remote server using default password
Calls:
remote_run/3
INFO: (Host,Port,Goal): runs Goal on rmote server at Host, Port with default password
Calls:
Is called from:
remote_run/1
remote_run/6
INFO: (Host,Port,Answer,Goal,Password,Reply): runs Goal on server at Host, Port with given Password and returns Reply. However, if you do let(where,here) before calling it, a local goal is called instead.
Calls:
call_jinni/3
remote_run/3
remove_current_term/1
INFO: (Iterator) removes current term attached to an iterator
Calls:
term_store_op/4
repeat/0
INFO: backtracks until its continuation succeeds; defined as repeat. repeat:-repeat.
Calls:
repeat/0
char_of/2
get/1
repeat/0
run_server/6
service_loop/2
term_of/2
toplevel/0
restart/0
INFO: cleans up data areas and reinitializes symbol tables
Calls:
call_ifdef/2
retract/1
INFO: backtracks over deleting matching clauses
Calls:
retract1/1
INFO: deletes first matching clause in the current database
Calls:
retractall/1
INFO: deletes all matching clauses
Calls:
Is called from:
set_default/1
return/1
INFO: returns data from an engine as if it were an answer - such that the engine can be resumed with get/2 to execute the next goal
Calls:
return0/1
return0/1
INFO: returns a term from an engine left in a state ready to resume
Is called from:
return/1
reverse/2
INFO: reverses a list
EXAMPLE(S):
?-reverse([a,b,c],_A).
_A = [c,b,a];
no
round/2
INFO: float to int function
EXAMPLE(S):
?-round(1.51,_A).
_A = 2;
no
Calls:
(is)/2
rpc/1
INFO: (Query): calls server on current local reusable socket
Calls:
rpc/3
rpc_test/1
rpc/3
INFO: (Answer,Goal,Result): calls server on local reusable socket and gets back Result as the(Answer) or no
Calls:
ask/5
rpc/1
rpc_server/0
INFO: runs Jinni compatible server with socket reuse on default port
Calls:
rpc_server/2
INFO: Port,Password: runs Jinni compatible server with socket reuse
Calls:
Is called from:
rpc_server/0
rpc_server/3
INFO: Port,Password,Timout: runs Jinni compatible server with socket reuse
Calls:
new_server/2
rpc_server/2
rpc_test/0
INFO: tests rpc server and client with socket reuse
Calls:
rpc_test/1
INFO: tests rpc client with socket reuse for a given number of operations
Calls:
(=)/2
ctime/1
for/3
(is)/2
println/1
rpc/1
start_rpc/0
stop_rpc/0
rpc_test/0
rtime/1
INFO: gets elapsed real time in secs
EXAMPLE(S):
?-rtime(_A).
_A = 21;
no
Calls:
statistics/2
timed_call/4
run_server/0
INFO: runs foreground server on localhost (default port) for Jinni clients
Calls:
run_server/1
INFO: runs foreground server on Port to provide services to Jinni clients
Calls:
run_server/2
run_server/0
run_server/2
INFO: (Port,Password): runs server on Port, Password required from clients
Calls:
run_server/6
run_server/1
run_server/6
INFO: (Port,Password,Heap,Stack,Trail,Timeout): runs server with specified service parameters
Calls:
Is called from:
run_server/2
scompile/1
INFO: smart compile/1 variant: if the *.wam file is newer reloads, otherwise fcompiles first
Calls:
sconsult/1
INFO: reconsult/1 variant: cleans up data areas consults, makes all static
sdebug/1
INFO: emits mt-safe synchronized debug message
Calls:
Is called from:
see/1
INFO: focuses input on a file
Calls:
user_error/2
term_of/2
see_at/1
INFO: seeks a seekable file at a give offset (in bytes)
Calls:
user_error/2
see_or_fail/1
INFO: opens a file if it exists, otherwise fails
Is called from:
exists_file/1
seeing/1
INFO: gets file name opened and set by see/1
Is called from:
seeing_at/1
INFO: retrieves position in current file opened by see/1
seen/0
INFO: close file opened by see/1
Is called from:
sentence_of/2
INFO: reads a natural language file to a sentence built as a list of words - on backtracking
Calls:
sentence_of/3
INFO: (File,Ends,Sent) reads a file to a sentence separated by Ends - on backtracking
Calls:
Is called from:
service_loop/2
INFO: ServiceSocket,Password:starts service loop on reusable ServiceSocket - works on server side with server/2
Calls:
set_bp_error/4
INFO: (Id,Mes,Arg1,Arg2): notifies emulator about error condition
Calls:
errmes/2
vset/2
clear_bp_error/0
set_c_threshold/1
INFO: related to C generator: sets length K of WAM instruction block such that block larger than K will get compiled to C code
Calls:
set_c_threshold/2
set_c_threshold/2
INFO: (Min,Max): related to C generator: sets Min,Max length of WAM instruction block such that blocks between Min and Max size will get compiled to C code
Calls:
bb_let/3
set_db/1
INFO: sets the name of active database for dynamic code
Calls:
vset/2
oconsult/1
set_default/1
INFO: asserts arg 1 as default state for use by default/2
Calls:
Is called from:
set_host/1
set_login/1
set_port/1
set_prolog_flag/2
set_this_host/1
set_timeout/1
set_hash_max/1
INFO: Set the range of values from -1 to -Max, that should be a prime number, defaults to 1999
set_host/1
INFO: asserts IP adress or name of server host we want to talk to
Calls:
set_default/1
set_input/1
INFO: sets current input stream
Is called from:
pcollect/2
set_lineno/1
INFO: sets line number counter in current file - use with care
Calls:
integer/1
vset_int/2
include/1
set_load_method/1
INFO: sets the current load method by name
Calls:
load_method/2
vset/2
set_login/1
INFO: asserts default (nick)name for user
Calls:
set_default/1
set_output/1
INFO: sets current output stream
set_password/1
INFO: sets default password for user
Calls:
hide_default/1
set_port/1
INFO: asserts port number of the server we want to talk to
Calls:
set_prolog_flag/2
INFO: (Flag,Value): sets the value of a Prolog flag
Calls:
set_default/1
set_this_host/1
INFO: asserts IP adress or name of this machine
Calls:
set_default/1
set_this_port/1
INFO: asserts default port for to work as a server on
Calls:
integer/1
vset/2
set_timeout/1
INFO: asserts default timeout
Calls:
set_default/1
setarg/3
INFO: backtrackable: setarg(I,T,X) replaces arg I of T with X
EXAMPLE(S):
?-setarg(2,f(a,b),c).
yes
setof/3
INFO: all solutions predicate generating sorted sets of unduplicated answers
EXAMPLE(S):
?-setof(_A,member(_A,[3,2,2,1]),_B).
_A = _x149050;
_B = [1,2,3];
no
Calls:
sort/2
shell/1
INFO: passes a command to the OS
Calls:
system/1
show_default/1
INFO: makes available a default value
Calls:
bb_val/3
show_defaults/0
INFO: show default values of some system variables
Calls:
append/3
call_ifdef/2
current_predicate/2
fail/0
member/2
name/2
nl/0
write/1
show_engine/0
INFO: if debugmes/1 is on (as with quiet(1)), shows params of current engine
show_info/2
INFO: generates components of info/1 output
Calls:
sign/2
INFO: int function
Calls:
sin/2
INFO: float function
skip_until/2
INFO: findall variant
Calls:
fail/0
nth_answer/2
skip_when/2
INFO: findall variant
Calls:
fail/0
drop_at_least/2
sleep/1
INFO: waits arg 1 seconds
Is called from:
sock2file/2
INFO: reads from a socket, to a file
sock_read/2
INFO: reads from a socket when size of the data is described by int before chars to be read
Calls:
sock_read/3
sock_read/3
INFO: reads from a socket, a string
Is called from:
sock_read/2
sock_readln/2
INFO: reads from a socket until an end of line LF (ascii 10) or char 0 is found and discards possible previous CR (ascii13)
Calls:
sock_readln/3
sock_readln/3
INFO: reads from a socket, a line
Is called from:
sock_readln/2
sock_write/2
INFO: writes a string to a socket prefixed by its lenght
Calls:
sock_write/3
sock_write/3
INFO: writes to a socket, a string
Is called from:
sock_write/2
sock_writeln/2
INFO: writes a string to a socket and adds an ascii 10 to the end
Calls:
sock_writeln/3
sock_writeln/3
INFO: writes to a socket, a line
Is called from:
sock_writeln/2
solutions/2
INFO: (GX,Xs): adds (last) output arg X to closure G then works like findall(X,GX,Xs)
EXAMPLE(S):
?-solutions(argn(_A,f(a,b,c)),_B).
_A = _x149017;
_B = [a,b,c];
no
Calls:
term_append/3
sort/2
INFO: sorts and removes duplicates
EXAMPLE(S):
?-sort([2,1,3,1,4,4,2],_A).
_A = [1,2,3,4];
no
Calls:
merge_sort/3
spawn/1
INFO: spawns Goal in a new bp window on W95/NT PC and Unix/X
Calls:
spawn/3
spawn/3
INFO: spawns(Goal,Includes,TempFile): spawns a new bp window
Calls:
debugmes/1
foreach/2
namecat/4
nl/0
pp_clause/1
system/1
tell/1
told/0
spawn/1
(spy)/1
INFO: set spy point on goal, triggering trace when interpreted
Calls:
Is called from:
trace/0
spying/1
INFO: checks what we are spying
Calls:
is_builtin/1
sqrt/2
INFO: returns square root of arg 1, a float
EXAMPLE(S):
?-sqrt(2,_A).
_A = 1.41421356;
no
sread/2
INFO: reads a term from a string (atom)
Calls:
sread/3
number_codes/2
sread/3
INFO: reads a term and a list of vars from a string (atom)
EXAMPLE(S):
?-sread(f(X,Y),_A,_B).
_A = f(_x149840,_x149868);
_B = [X = _x149840,Y = _x149868];
no
Calls:
Is called from:
sread/2
star/4
INFO: star(Recognizer,Result): DCG based star regexp processor for (Recognizer)*
Calls:
Is called from:
start_rpc/0
INFO: starts rpc client on default local reusable socket and port
Calls:
Is called from:
rpc_test/1
start_rpc/3
INFO: (Host,Port,Password): starts rpc client on local reusable socket
Calls:
Is called from:
start_rpc/0
stat/0
INFO: short hand for statistics
Calls:
statistics/0
stat2dyn/1
INFO: stat2dyn(H): reverts to uncompiled representation for a predicate with head H
Calls:
stat2dyn/2
INFO: stat2dyn(Db,H): reverts to uncompiled representation for a predicate in database Db with head H
Calls:
Is called from:
stat2dyn/1
static_prolog_flag/2
INFO: contains read-only Prolog flag values
Calls:
statistics/0
INFO: shows info about data areas
EXAMPLE(S):
?-statistics.
runtime=[22828,15782]
global_stack=[595896,1420104]
local_stack=[224,1022740]
trail=[75144,947828]
code=[266652,781908]
strings=[26509,1022067]
symbols=[22380,239764]
htable=[158544,627888]
bboard=[1693084,39264864]
gctime=[0,0]
realtime=[23,372179905]
yes
Calls:
Is called from:
stat/0
statistics/2
INFO: returns info about data areas
EXAMPLE(S):
?-statistics(_A,_B).
_A = runtime;
_B = [22859,31];
_A = global_stack;
_B = [596712,1419288];
_A = local_stack;
_B = [208,1022756];
_A = trail;
_B = [75172,947800];
_A = code;
_B = [266652,781908];
_A = strings;
_B = [26509,1022067];
_A = symbols;
_B = [22380,239764];
_A = htable;
_B = [158544,627888];
_A = bboard;
_B = [1694448,39263500];
_A = gctime;
_B = [0,0];
_A = realtime;
_B = [23,372179905];
no
Is called from:
abstime/1
bb_gc0/0
ctime/1
otime/1
rtime/1
statistics/0
stop/0
INFO: exits thread or process
Calls:
halt/1
stop/1
INFO: stops and frees resources held by an engine (may happen automaticaly if an engine fails)
Calls:
destroy_engine/1
stop_rpc/0
INFO: stops rpc client on local reusable socket
Is called from:
rpc_test/1
stop_service/0
INFO: stops server with socket reuse - acts on the server side
subsumes_chk/2
INFO: checks if arg 1 is subsumed by arg 2, after renaming vars
Calls:
fail/0
variant_of/2
sum/2
INFO: (List,?Result): sum of a list
EXAMPLE(S):
?-sum([10,20],_A).
_A = 30;
no
Calls:
foldl/4
swrite/2
INFO: writes a term to a string (atom)
Calls:
atom_codes/2
swrite/3
INFO: writes a term with a liste of vars to a string (atom)
Calls:
name/2
write_term_to_chars/3
symcat/3
INFO: makes new identifier from arg 1 and arg 2
EXAMPLE(S):
?-symcat(a,b,_A).
_A = a_b;
no
?-symcat(a,1,_A).
_A = a_1;
no
Is called from:
gensym/2
maps_iterate/1
mmaps_iterate/1
oconsult/1
static_prolog_flag/2
synchronize/1
INFO: wraps Goal in arg 1 for serialized execution
Calls:
synchronize_on/2
println/1
synchronize/2
INFO: wraps Goal for serialized execution and returns true or fail
Calls:
synchronize_on/3
free_thread_guard/1
get_critical/2
new_thread_guard/1
put_critical/2
synchronize_on/2
INFO: wraps Goal for sync on given mutex for serialized execution
Calls:
Is called from:
findall/4
free_thread_guard/1
local_all/3
local_cin/1
local_in/1
local_out/1
local_rd/1
local_when/1
new_thread_guard/1
synchronize/1
synchronize_on/3
INFO: wraps Goal for sync on given mutex for serialized execution and returns true or fail
Calls:
Is called from:
system/1
INFO: passes a command to the OS
Calls:
system/2
system/2
INFO: passes a command to the OS and gets back return code
Calls:
Is called from:
system/1
tab/1
INFO: outputs N blanks
Calls:
integer/1
user_error/2
take_at_most/2
INFO: (N,Goal) computes at most N answers of Goal
Calls:
(=)/2
while/2
find_at_most/4
tan/2
INFO: float function
tell/1
INFO: focuses output on a file
Calls:
user_error/2
tell_at/1
INFO: moves output file pointer to a given offset (in bytes)
Calls:
user_error/2
tell_at_end/1
INFO: focuses output on file opened in append mode
Calls:
user_error/2
telling/1
INFO: gets file name opened and set by tell/1
Is called from:
make_compileable/2
telling_at/1
INFO: retrieves output file position (in bytes)
term_append/3
INFO: efficiently concatenates 2 terms
EXAMPLE(S):
?-term_append(f(a,b),g(c,d),_A).
_A = f(a,b,c,d);
no
Is called from:
call/2
call/3
call/4
call/5
call/6
call/7
solutions/2
term_chars/2
INFO: (Term,Chars): converts between a term and its list of char code representation
EXAMPLE(S):
?-term_chars(f(a,b),_A).
_A = [102,40,97,44,98,41];
no
?-term_chars(_A,[102,40,97,44,98,41]).
_A = f(a,b);
no
Calls:
term_codes/2
to_string/2
term_codes/2
INFO: (Term,Chars): converts between a term and its list of char code representation
EXAMPLE(S):
?-term_codes(f(a,b),_A).
_A = [102,40,97,44,98,41];
no
?-term_codes(_A,[102,40,97,44,98,41]).
_A = f(a,b);
no
Calls:
nonvar/1
term_chars/2
term_hash/2
INFO: computes hash code on terms ground up to depth 64; fails if something is unbound or the limit is reached
EXAMPLE(S):
?-term_hash(t(a,b),_A).
_A = 236945626;
no
?-term_hash(t(a,c),_A).
_A = 236945625;
no
Calls:
deep_hash/4
term_of/2
INFO: reads a Prolog file to a set of terms - on backtracking
Calls:
(=)/2
(==)/2
arg/3
fail/0
find_file/2
member/2
read/1
repeat/0
see/1
seeing/1
seen/0
term_of/2
term_store_op/4
INFO: API for external term storage
Is called from:
close_iterator/1
count_terms/2
delete_all_terms/1
free_term/1
get_next_term/2
has_terms/1
instance_of/2
new_iterator/2
new_key_iterator/1
new_term/2
process_term/3
push_term/2
put_term/2
remove_current_term/1
tstest/3
update_current_term/2
textedit/0
INFO: calls texedit editor on last compiled file
the/1
INFO: defined as the(G):-the(G,G)
Calls:
the/2
the/2
INFO: defined as the(X,G):-the(X,G,the(X))
Calls:
the/3
the/1
the/3
INFO: the(X,G,R) first answer R=the(X) or R=no, without binding G
Calls:
Is called from:
the/2
this_db/1
INFO: same as current_db, returns the current database
Calls:
current_db/1
this_engine/1
INFO: gets a handle to the current engine
Calls:
current_engine_addr/1
from_engine/1
thread_cancel/1
INFO: terminates (cancels) thread given in arg 1
thread_exit/0
INFO: exits a thread
Calls:
thread_exit/1
thread_exit/1
INFO: exits a thread
Is called from:
thread_exit/0
thread_join/1
INFO: joins thread
thread_notify/1
INFO: notifies a thread waiting on guard with thread_wait
thread_notify_all/1
INFO: notifies all threads waiting on guard with thread_wait
thread_resume/1
INFO: resumes execution of suspended thread
Is called from:
local_out/1
thread_suspend/1
INFO: suspends execution of thread
Is called from:
thread_timed_wait/2
INFO: waits on first arg Guard second arg msec or until notified
Is called from:
thread_wait/1
try_unlock_thread_guard/2
thread_wait/1
INFO: waits on guard until notified by thread_notify
Calls:
throw/1
INFO: ISO Prolog exception operator: throws a term to be caught by a matching catch
timed_call/4
INFO: (Answer,Goal,Timeout,Result) - calls and possibly stops Goal after Timout secs
Calls:
(<)/2
(=)/2
(>)/2
bg/3
debugmes/1
destroy_engine/1
fail/0
for/3
has_threads/0
local_cin/1
rtime/1
sleep/1
to_engine/2
INFO: (E,T) sends to engine E a term T, and fails if E has an empty message box
Calls:
bb_def/3
to_lower_char/2
INFO: (Upper,Lower): converts a char to lower case
Calls:
Is called from:
to_lower_chars/2
to_lower_chars/2
INFO: converts a list of chars to lower case
Calls:
Is called from:
to_lower_chars/2
to_string/2
INFO: converts a term to a string constant (in paricular, converts numbers to strings)
EXAMPLE(S):
?-to_string(13,_A).
_A = 13;
no
?-to_string(3.14,_A).
_A = 3.14;
no
?-to_string(f(_A,_A),_B).
_A = _x149232;
_B = f(_x149232,_x149232);
no
Calls:
to_tokens/2
INFO: to_tokens(Codes,PrologTokens)
Calls:
(=)/2
to_upper_char/2
INFO: (Lower,Upper): converts a char to upper case
Calls:
Is called from:
to_upper_chars/2
to_upper_chars/2
INFO: converts a list of chars to upper case
Calls:
Is called from:
to_upper_chars/2
to_word_codes/2
INFO: to_word_codes(Codes,ListOfWordCodes)
Calls:
(=)/2
to_words/2
to_words/2
INFO: to_words(Codes,NaturalLanguageWords
Calls:
Is called from:
codes_words/2
token_of/2
INFO: reads a Prolog file to a set of tokens - on backtracking
Calls:
Is called from:
tokens_of/2
tokens_of/2
INFO: reads a Prolog file to a slist of tokens
Calls:
token_of/2
told/0
INFO: closes file opened by tell/1
Is called from:
topcall/1
INFO: calls arg 1 as if it were entered by the user at Prolog prompt
Calls:
metacall/1
toplevel/0
INFO: interactive toplevel Prolog loop
Calls:
topstep/1
INFO: interactive toplevel Prolog step
Calls:
ttyprin/1
ttyprint/1
toplevel/0
trace/0
INFO: trace all predicates when interpreted
Calls:
(spy)/1
trace/1
INFO: traces execution of a goal
trim_term/4
INFO: trim_term(D,Filler,T,NewT) replaces subterms of T deeper than D with Filler
Calls:
truncate/2
INFO: float to int function
EXAMPLE(S):
?-truncate(1.51,_A).
_A = 1;
no
Calls:
integer/2
try_unlock_thread_guard/1
INFO: try to unlock a thread guard
Calls:
try_unlock_thread_guard/2
try_unlock_thread_guard/2
INFO: try to unlock a thread guard for a specified timeout
Calls:
thread_timed_wait/2
unlock_thread_guard/1
try_unlock_thread_guard/1
tstest/3
INFO: (K,V,R): performs various tests with external terms
Calls:
term_store_op/4
tsync_op/3
INFO: same as thread_operation(Op, MutexOrParam, ActionOrValue) various thread synchronization operations
ttyprin/1
INFO: writes to terminal
Is called from:
topstep/1
ttyprint/1
INFO: writes to terminal with a new line
Is called from:
unix/1
INFO: executes various Unix commands
Calls:
errmes/2
pclose/1
pcollect/2
popen/3
unix_access/2
unix_argc/1
unix_argv/1
unix_argv/2
unix_cat/1
unix_cd/1
unix_fork/1
unix_getenv/2
unix_kill/2
unix_pid/1
unix_access/2
INFO: checks if arg1 (a path+file) is accessible in arg 2 (integer) mode
Is called from:
unix/1
unix_argc/1
INFO: gets cmd line arg counter
EXAMPLE(S):
?-unix_argc(_A).
_A = 6;
no
Is called from:
unix/1
unix_argv/1
unix_argv/1
INFO: gets the list of cmd line args from 1 to argc
EXAMPLE(S):
?-unix_argv(_A).
_A = [-h40000,-s2000,-t2000,-b40000,preds.pro];
no
Calls:
Is called from:
unix/1
unix_argv/2
INFO: gets a cmd line arg from 0 to argc
EXAMPLE(S):
?-unix_argv(0,_A).
_A = c:\bin\bp.exe;
no
Is called from:
unix/1
unix_argv/1
unix_cat/1
INFO: prints a file to user terminal
Calls:
(=:=)/2
fclose/1
fgetc/2
fopen/3
for/3
fsize/2
put_code/1
unix/1
unix_cd/1
INFO: changes local dir to arg 1
Is called from:
cd/1
unix/1
unix_fork/1
INFO: starts child process with Unix fork
Is called from:
unix/1
unix_getenv/2
INFO: gets an environment variable
Is called from:
detect_user/1
unix/1
unix_kill/2
INFO: sends signal arg 1 to process with pid arg 2
Is called from:
unix/1
unix_pid/1
INFO: returns process id of current process
Is called from:
unix/1
unlock_thread_guard/1
INFO: unlocks thread guard
Is called from:
untrail_to/1
INFO: unwinds the trail up to a choice point
Is called from:
$process_catch/3
update_current_term/2
INFO: (Iterator,NewTerm): replaces current term of an iterator
Calls:
term_store_op/4
user_error/2
INFO: writes basic error message and fail
Is called from:
find_file/2
(not)/1
see/1
see_at/1
(spy)/1
tab/1
tell/1
tell_at/1
tell_at_end/1
var/1
INFO: true if currently an unbound variable
Is called from:
(=..)/2
codes_words/2
dynco/1
hash_get/2
interactive/1
length/2
new_thread_guard/1
to_words/2
trim_term/4
variant_of/2
INFO: checks if args are the same up to a renaming of vars
Calls:
subsumes_chk/2
vars_of/2
INFO: (Term,Vars): lists free vars of a term
EXAMPLE(S):
?-vars_of(f(_A,t(_A,_B,_C),_C),_D).
_A = _x149043;
_B = _x149048;
_C = _x149045;
_D = [_x149043,_x149048,_x149045];
no
vget/2
INFO: gets a VSHARE declared C data object in a term like int(N),F/N or var(V)
Calls:
array_get/3
vget0/2
INFO: gets the type and value of a C word
Calls:
array_get0/3
bbgc_status/1
current_db/1
db_ratio/1
default_this_port/1
dyn2stat/2
gc_status/1
get_bp_error/4
get_load_method/1
include/1
quiet/1
vget_int/2
INFO: gets a VSHARE defined int C variable to a 28 bit int
Calls:
vget_int0/2
vread/2
get_lineno/1
vget_int0/2
INFO: gets from arg 1 - an int* C variable - to a 28 bit int
Is called from:
vget_int/2
vi/0
INFO: calls vi editor on last compiled file
vread/2
INFO: reads HDEFI or HDEFS defined C constant into a Prolog integer or atom
Is called from:
detect_ip_addr/1
has_threads/0
hostname/1
static_prolog_flag/2
vget_int/2
vset_int/2
vset/2
INFO: sets a VSHARE declared C data object in a term like int(N),F/N or var(V)
Calls:
array_set/3
db_ratio/1
dyn2stat/2
dynbbgc/0
nobbgc/0
quiet/1
set_bp_error/4
set_db/1
set_load_method/1
set_this_port/1
vset_int/2
INFO: sets a VSHARE defined int C variable to a 28 bit int
Calls:
vread/2
vset_int0/2
set_lineno/1
vset_int0/2
INFO: sets arg 1 - an int* C variable - to a 28 bit int
Is called from:
vset_int/2
wait_for/2
INFO: wait_for(Term,Constraint) waits for a term on the blackboard, such that Constraint holds
while/2
INFO: (Cond,Goal): findall variant which explores alternative answers for Goal, while Cond holds,
Calls:
fail/0
words_code/2
INFO: generates a code ready to print, one a t a time with put/1 from a list of words
Calls:
Is called from:
codes_words/2
write/1
INFO: writes to current output stream set with tell/1, defaults to <user> - Prolog's stdio
Is called from:
apropos/1
info/1
list_engines/0
listing/2
pp_term/1
sdebug/1
show_defaults/0
show_info/2
write_chars/1
INFO: writes a list of ascii codes
EXAMPLE(S):
?-write_chars([104,101,108,108,111]).
hello
yes
Calls:
put_code/1
write_chars/1
write_chars/1
write_term_to_chars/2
INFO: writes a term to a list of char codes
EXAMPLE(S):
?-write_term_to_chars(f(_A,_A,_B,_B),_C).
_A = _x149372;
_B = _x149374;
_C = [102,40,95,120,49,52,57,51,55,50,44,95,120,49,52,57,51,55,50,44,95,120,49,52,57,51,55,52,44,95,120,49,52,57,51,55,52,41];
no
Calls:
write_term_to_chars/3
write_term_to_chars/3
INFO: writes a term with variables names to a list of char codes
EXAMPLE(S):
?-write_term_to_chars(f(_A,_B),[X = _A,Y = _B],_C).
_A = _x149549;
_B = _x149550;
_C = [102,40,39,88,39,44,39,89,39,41];
no
Calls:
Is called from:
swrite/3
write_term_to_chars/2
write_words/1
INFO: write list of words to a space separated line
Calls:
writeq/1
INFO: variant of write which quotes if needed, so that term is read back correctly/1
x_abolish/1
INFO: db hook, deletes all matching clauses and unmarks the clause as dynamic
Calls:
Is called from:
abolish/1
x_asserta/1
INFO: db hook, adds a clause to be first in a predicate definition
Calls:
(##)/1
asserta/1
x_assertz/1
INFO: db hook, adds a clause to be last in a predicate definition
Calls:
(##)/1
assertz/1
x_clause/2
INFO: db hook, clause(H,B) generates a clause with head matching H and body B
Is called from:
clause/2
x_listing/1
x_consult/1
INFO: db hook, consults with possible duplication of clauses
Calls:
foreach/2
consult/1
x_dynamic/1
INFO: db hook, states that a predicate can be updated
Calls:
functor/3
(dynamic)/1
x_gc/0
INFO: db hook, recovers memory used by the database
Calls:
x_is_dynamic/1
INFO: db hook, checks if dynamic
Is called from:
is_dynamic/1
x_listing/0
INFO: db hook, lists given predicate if in current database
Calls:
Is called from:
listing/0
x_listing/1
INFO: lists predicate F of arity N if in current database
Calls:
Is called from:
listing/1
x_listing/0
x_profile/0
INFO: db hook, shows the result of profiling compiled predicates
Calls:
x_retract/1
INFO: db hook, backtracks over deleting matching clauses
Is called from:
retract/1
x_retractall/1
INFO: db hook, deletes all matching clauses
Calls:
(##)/1
retractall/1
x_abolish/1
x_trace/1
INFO: traces and profiles predicates, in combination with x_profile
Calls:
x_traced_call/1
x_trace/2
INFO: db hook, internal
Calls:
x_traced_call/1
INFO: traces calls if compile-time x_trace triggers it
Calls:
Is called from:
x_trace/1
xload/1
INFO: xload(File) loads clauses to the current database, from a binary File
Calls:
xsave/1
INFO: xsave(File) saves all the clauses of the current database to a binary File
Calls:
~ /1
INFO: short hand for reconsult
Calls:
co/1