listing
listing(
:Spec)
| ?- listing([concatenate/3, reverse, m:go/[2,3], bar:_]).
current_atom(
?Atom)
meta-logicalcurrent_predicate(
?Name,
:Head)
current_predicate(
?Name,
-Head)
current_predicate(
?Name/
?Arity)
ISOpredicate_property(
:Head,
?Property)
predicate_property(
-Head,
?Property)
built_in
(for built-in predicates)
or compiled
or interpreted
(for user defined
predicates) or fd_constraint
for FD predicates
see Defining Primitive Constraints.
dynamic
for predicates that have been
declared dynamic (see Dynamic Declarations),
multifile
for predicates that have been
declared multifile (see Multifile Declarations),
volatile
for predicates that have been
declared volatile (see Volatile Declarations),
(block
Term)
for predicates
that have block declarations (see Block Declarations),
exported
or terms
imported_from(
ModuleFrom)
for predicates
exported or imported from modules (see Module Intro),
(meta_predicate
Term)
for predicates
that have meta-predicate declarations (see Meta Decl).
This predicate can be used to enumerate all existing
predicates and their properties through backtracking.
current_module(
?Module)
current_module(
?Module,
?File)
module(
+Module)
set_prolog_flag(
+FlagName,
+NewValue)
ISOprolog_flag(
+FlagName,
?OldValue,
?NewValue)
agc_margin
argv
% sicstus -a hello world 2001
bounded
ISOfalse
, indicating that the domain of
integers is practically unbounded.
char_conversion
ISOon
, unquoted characters in terms and
programs read in will be converted, as specified by previous
invocations of char_conversion/2
. If the flag is off
no
conversion will take place. The default value is on
.
compiling
compile/1
and fcompile/1
operate (see Load Intro).
compactcode
fastcode
profiledcode
debugcode
debugging
debug/0
, nodebug/0
,
tracee/0
, notrace/0
, zip/0
, nozip/0
(see Debug Pred). The flag describes the mode the debugger is in, or
is required to be switched to:
trace
debug
zip
off
debug
ISOdebug
, prescribed by the ISO Prolog standard, is a
simplified form of the debugging
flag:
off
on
(The flags debugging
and debug
have no effect in
runtime systems.)
double_quotes
ISO onlycodes
chars
atom
character_escapes
on
or off
. If this flag is on
, a backslash
occurring inside integers in `0'' notation or inside quoted
atoms or strings has special meaning, and indicates the
start of an escape sequence (see Escape Sequences). This flag
is relevant when reading as well as when writing terms, and is
initially on
.
debugger_print_options
write_term/3
(see Term I/O), to be used in the debugger's messages. The initial
value is
[quoted(true),numbervars(true),portrayed(true),max_depth(10)]
.
discontiguous_warnings
on
or off
. Enable or disable warning messages when
clauses are not together in source files. Initially on
.
(This warning is always disabled in runtime systems.)
fileerrors
on
or off
. Enables or disables raising of file error
exceptions. Equivalent to fileerrors/0
and
nofileerrors/0
, respectively (see Stream Pred). Initially
on
(enabled).
gc
on
or off
. Enables or disables garbage collection
of the global stack. Initially on
(enabled).
gc_margin
gc_trace
verbose
terse
off
host_type
'x86-linux-glibc2.1'
or 'sparc-solaris-5.7'
.
informational
on
or off
. Enables or disables the printing of
informational messages. Initially on
(printing enabled) in
development systems, unless the --noinfo command line option
was used; off
(printing disabled) in runtime systems.
integer_rounding_function
ISOtoward_zero
, indicating that the
integer division ((//)/2
) and integer remainder (rem/2
)
arithmetic functions use rounding toward zero; see Arithmetic.
language
iso
or sicstus
. Selects the execution mode specified.
Initially sicstus
, unless the --iso command line
option was used.
max_arity
ISOmax_integer
ISOprolog_flag/3
and current_prolog_flag/2
will fail, when
accessing this flag.
min_integer
ISOprolog_flag/3
and current_prolog_flag/2
will fail, when
accessing this flag.
redefine_warnings
on
or off
. Enable or disable warning messages when :
Initially on
. (This warning is always disabled in runtime
systems.)
single_var_warnings
on
or off
. Enable or disable warning messages when a
clause containing variables not beginning with `_'
occurring once only is compiled or consulted. Initially
on
.
source_info
emacs
or on
or off
. If not off
while
source code is being loaded, information about line numbers
and file names are stored with the loaded code. If the value is
on
while debugging, this information is used to print the
source code location while prompting for a debugger command. If
the value is on
while printing an uncaught error exception
message, the information is used to print the source code location
of the culprit goal or one of its ancestors, as far as it
can be determined. If the value is emacs
in any of these cases,
the appropriate line of code is instead highlighted, and no extra text
is printed. The value is off
initially, and that is its only
available value in runtime systems.
syntax_errors
read/[1,2]
.
dec10
error
fail
quiet
system_type
development
in development
systems and runtime
in runtime systems.
toplevel_print_options
write_term/3
(see Term I/O), to be used when the top-level displays
variable bindings, answer constraints. It is also used when
messages are displayed. The initial value is
[quoted(true),numbervars(true),portrayed(true),max_depth(10)]
.
typein_module
module/1
.
unknown
ISOunknown/2
(see Debug Pred).
trace
fail
warning
error
user_input
user_input
and
SP_stdin
. It is initially set to a stream connected to UNIX
stdin
.
user_output
user_output
and SP_stdout
. It is initially set to a stream
connected to UNIX stdout
.
user_error
user_error
and SP_stderr
. It is initially set to a stream
connected to UNIX stderr
.
version
'SICStus 3 #0: Wed Mar 15 12:29:29 MET 1995'
.
wcx
prolog_flag(
?FlagName,
?Value)
current_prolog_flag(
?FlagName,
?Value)
ISOprolog_load_context(
?Key,
?Value)
source
file
source
key. In included files this is the absolute path
name of the file being included.
directory
module
user:term_expansion/[2,4]
and need to access the source module at compile time.
stream
term_position
statistics
print_message/2
;
see Messages and Queries.
statistics(
?Key,
?Value)
global_stack
[
size used,
free]
local_stack
[
size used,
free]
trail
[
size used,
free]
choice
[
size used,
free]
core
memory
[
size used,0]
heap
program
[
size used,
size free]
runtime
[
since start of Prolog,
since previous statistics]
These refer to CPU time used while executing, excluding time spent
garbage collecting, stack shifting, or in system calls.
The second element is the time since the last call to
statistics/2
with this key. It is not affected by calls to
statistics/0
.
walltime
[
since start of Prolog,
since previous statistics]
These refer to absolute time elapsed.
The second element is the time since the last call to
statistics/2
with this key. It is not affected by calls to
statistics/0
.
garbage_collection
[
no. of GCs,
bytes freed,
time spent]
stack_shifts
[
no. of global shifts,
no. of local/trailtrail shifts,
time spent]
atoms
[
no. of atoms,
bytes used,
atoms free]
The number of atoms free is the number of atoms allocated (the
first element in the list) subtracted from the maximum number of atoms,
i.e. 262143 (33554431) on 32-bit (64-bit) architectures. Note that
atom garbage collection may be able to reclaim some of the
allocated atoms.
atom_garbage_collection
[
no. of AGCs,
bytes freed,
time spent]
Times are in milliseconds, sizes of areas in bytes.
trimcore