297 long success=
TRUE,ans;
502 int success=
TRUE,ans;
528 int success=
TRUE,ans;
558 int success=
TRUE,ans;
584 int success=
TRUE,ans;
612 long success=
TRUE,ans;
638 long success=
TRUE,ans;
721 if ((!arg1) || (!arg2)) {
731 if ((ret=
glb(arg1->
type, arg2->
type, &ans, &complexType)) == 0)
740 decodedType =
decode(complexType);
742 decodedType = decodedType->
next;
751 Errorline(
"glb of multiple-inheritance value sorts not yet implemented.\n");
783 if ((!arg1) || (!arg2))
796 decodedType =
lub(arg1, arg2, &other);
800 decodedType = decodedType->
next;
ptr_psi_term makePsiTerm(ptr_definition x)
ptr_psi_term makePsiTerm
void new_built_in(ptr_module m, char *s, def_type t, long(*r)())
new_built_in
static long c_isa_cmp()
c_isa_cmp
#define function_it
was enum (def_type) in extern.h now there is typedef ptr_definition
void get_two_args(ptr_node t, ptr_psi_term *a, ptr_psi_term *b)
get_two_args
int isSubTypeValue(ptr_psi_term arg1, ptr_psi_term arg2)
isSubTypeValue
static long c_smallest()
c_smallest
GENERIC heap_pointer
used to allocate from heap - size allocated subtracted - adj for alignment
struct wl_definition * def_type
ptr_psi_term stack_cons(ptr_psi_term head, ptr_psi_term tail)
stack_cons
void insert_type_builtins()
void insert_type_builtins
void residuate(ptr_psi_term t)
residuate
#define least_sel
used by collect_symbols in built_ins.c
ptr_definition integer
symbol in bi module
#define isa_nlt_sel
a value used in case satement in isa_select function in bi_type.c
long glb(ptr_definition t1, ptr_definition t2, ptr_definition *t3, ptr_int_list *c3)
glb
void push_choice_point(goals t, ptr_psi_term a, ptr_psi_term b, GENERIC c)
push_choice_point
void push_goal(goals t, ptr_psi_term a, ptr_psi_term b, GENERIC c)
push_goal
#define isa_eq_sel
a value used in case satement in isa_select function in bi_type.c
static long c_is_number()
static long c_is_number
static long isa(ptr_psi_term arg1, ptr_psi_term arg2)
isa
static long c_is_predicate()
c_is_predicate
static long c_isa_lt()
c_isa_lt
void unify_bool_result(ptr_psi_term t, long v)
unify_bool_result
static long c_isa_ncmp()
c_isa_ncmp
ptr_definition cut
symbol in syntax module
ptr_int_list decode(ptr_int_list c)
decode
long reportAndAbort(ptr_psi_term g, char *s)
reportAndAbort
ptr_module syntax_module
Module for minimal Prolog syntax.
#define predicate_it
was enum (def_type) in extern.h now there is typedef ptr_definition
long matches(ptr_definition t1, ptr_definition t2, long *smaller)
matches
#define set_empty
Set constants for deref_args in lefun.c.
#define isa_le_sel
a value used in case satement in isa_select function in bi_type.c
void get_one_arg(ptr_node t, ptr_psi_term *a)
get_one_arg
#define set_1
Set constants for deref_args in lefun.c.
#define global_it
was enum (def_type) in extern.h now there is typedef ptr_definition
#define REAL
Which C type to use to represent reals and integers in Wild_Life.
static long c_children()
c_children
static long c_isa_nle()
c_isa_nle
long sub_type(ptr_definition t1, ptr_definition t2)
sub_type
ptr_definition real
symbol in bi module
#define isa_nge_sel
a value used in case satement in isa_select function in bi_type.c
#define isa_ngt_sel
a value used in case satement in isa_select function in bi_type.c
#define type_it
was enum (def_type) in extern.h now there is typedef ptr_definition
void Errorline(char *format,...)
Errorline.
unsigned long * GENERIC
unsigned long *GENERIC
#define set_1_2
Set constants for deref_args in lefun.c.
#define greatest_sel
used by collect_symbols in built_ins.c
#define isa_neq_sel
a value used in case satement in isa_select function in bi_type.c
static long c_isa_ge()
c_isa_ge
#define TRUE
Standard boolean.
long c_isa_subsort()
long c_isa_subsort
static long c_isa_nlt()
c_isa_nlt
static long c_isa_ngt()
c_isa_ngt
static long c_isa_gt()
c_isa_gt
ptr_psi_term global_value
#define FALSE
Standard boolean.
ptr_int_list lub(ptr_psi_term a, ptr_psi_term b, ptr_psi_term *pp)
struct wl_definition * ptr_definition
ptr_psi_term stack_psi_term(long stat)
stack_psi_term
ptr_psi_term stack_nil()
stack_nil
static long c_is_value()
c_is_value
#define isa_cmp_sel
a value used in case satement in isa_select function in bi_type.c
static long c_isa_nge()
c_isa_nge
#define unify
was enum (goal) – but must be long for error.c - now typedef
ptr_module bi_module
Module for public built-ins.
#define isa_nle_sel
a value used in case satement in isa_select function in bi_type.c
static long c_parents()
c_parents
ptr_definition top
symbol in syntax module
static long c_is_sort()
c_is_sort
#define isa_ge_sel
a value used in case satement in isa_select function in bi_type.c
ptr_psi_term collect_symbols(long sel)
collect_symbols
static long c_is_function()
c_is_function
static long isa_select(ptr_psi_term arg1, ptr_psi_term arg2, long sel)
isa_select
static long c_isa_eq()
c_isa_eq
static long c_isa_main(long sel)
c_isa_main
#define type_disj
was enum (goal) – but must be long for error.c - now typedef
#define isa_gt_sel
a value used in case satement in isa_select function in bi_type.c
long isValue(ptr_psi_term p)
isValue(p)
static long c_isa_le()
c_isa_le
static long c_is_persistent()
c_is_persistent
#define isa_lt_sel
a value used in case satement in isa_select function in bi_type.c
#define isa_ncmp_sel
a value used in case satement in isa_select function in bi_type.c
static long c_isa_neq()
c_isa_neq
long hidden_type(ptr_definition t)
hidden_type
ptr_definition quoted_string
symbol in bi module