C:/Users/Dennis/src/lang/Life_start/Life/life-1.02/source/extern.h File Reference

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <assert.h>
#include <errno.h>
#include <setjmp.h>
#include "types.h"
#include "error.h"
#include <varargs.h>

Go to the source code of this file.

Data Structures

struct  wl_operator_data
struct  wl_int_list
struct  wl_resid_list
struct  wl_module
struct  wl_keyword
struct  wl_hash_table
struct  wl_definition
struct  wl_residuation
struct  wl_psi_term
struct  wl_node
struct  wl_pair_list
struct  wl_triple_list
struct  wl_stack
struct  wl_goal
struct  wl_choice_point

Defines

#define WORD   sizeof(long)
#define ALIGN   8
#define TS
#define LOCALSETUP
#define LOCALSETUPFILE   "./.set_up"
#define GC_THRESHOLD   (alloc_words>>3)
#define COPY_THRESHOLD   (GC_THRESHOLD>>3)
#define REAL   double
#define WL_MAXINT   9007199254740991.0
#define PRETTY_SIZE   20000
#define MAX_BUILT_INS   300
#define STRLEN   10000
#define PAGE_WIDTH   80
#define PRINT_DEPTH   1000000000
#define PRINT_SPLIT   1000000000
#define PRINT_POWER   9
#define PARSER_STACK_SIZE   10000
#define MAX_PRECEDENCE   1200
#define PRINT_BUFFER   100000
#define PROMPT   "> "
#define PROMPT_BUFFER   200
#define MAX_LEVEL   ((PROMPT_BUFFER-4-strlen(PROMPT))/2)
#define XEVENTDELAY   1000
#define MAX_TRACE_INDENT   40
#define HEAP_ALLOC(A)   (A *)heap_alloc(sizeof(A))
#define STACK_ALLOC(A)   (A *)stack_alloc(sizeof(A))
#define QUOTED_TRUE   1
#define UNFOLDED_TRUE   2
#define TRUE   1
#define FALSE   0
#define TRUEMASK   1
#define UNDEF   2
#define NOT_CODED   0
#define UN_CODED   (CODE)0
#define DEFRULES   -1
#define EOLN   10
#define INT_SIZE   8*sizeof(unsigned long)
#define HEAP   TRUE
#define STACK   FALSE
#define FACT   100
#define QUERY   200
#define ERROR   999
#define RMASK   256
#define SMASK   255
#define INIT_TIME_STAMP   1
#define FUNC_ARG(t)   ((t)<match_date || (GENERIC)(t)>=heap_pointer)
#define DIGIT(C)   (C>='0' && C<='9')
#define UPPER(C)   ((C>='A' && C<='Z') || C=='_')
#define LOWER(C)   (C>='a' && C<='z')
#define ISALPHA(C)   (DIGIT(C) || UPPER(C) || LOWER(C))
#define SINGLE(C)
#define SYMBOL(C)
#define equ_tok(A, B)   (!strcmp(A.type->keyword->symbol,B))
#define equ_tok3(A, B, Q)   (Q?FALSE:equ_tok(A,B))
#define equ_tokch(A, B)   (A.type->keyword->symbol[0]==B && A.type->keyword->symbol[1]==0)
#define equ_tokch3(A, B, Q)   (Q?FALSE:equ_tokch(A,B))
#define equ_tokc(A, B)   (B?equ_tokch(A,B):A.type->keyword->symbol[0]==0)
#define equ_tokc3(A, B, Q)   (Q?FALSE:equ_tokc(A,B))
#define cut_to(C)
#define deref_ptr(P)   while(P->coref) P=P->coref
#define noneval(T)   (T->type==quote || T->type==listingsym || T->type==loadsym)
#define wl_const(S)   ((S).value==NULL && (S).type!=variable)
#define equal_types(A, B)   ((A)==(B))
#define is_top(T)   ((T)!=NULL && (T)->type==top && (T)->attr_list==NULL)
#define VALID_RANGE(A)   ((GENERIC)A>=mem_base && (GENERIC)A<mem_limit)
#define VALID_ADDRESS(A)
#define psi_term_ptr   0
#define resid_ptr   1
#define int_ptr   2
#define def_ptr   3
#define code_ptr   4
#define goal_ptr   5
#define cut_ptr   6
#define destroy_window   7+32
#define show_window   8+32
#define hide_window   9+32
#define show_subwindow   10+32
#define hide_subwindow   11+32
#define undo_action   32
#define stack_empty_list()   stack_nil()
#define wl_SETH_H_FILE_
#define ARGS(args)   ()
#define VarArgBase   va_alist
#define VarArgBaseDecl   va_dcl
#define VarArg   ___va_lp___
#define VarArgDecl   va_list VarArg
#define VarArgInit(l)   va_start(VarArg, l)
#define VarArgNext(t)   va_arg(VarArg, t)
#define VarArgEnd()   va_end(VarArg)

Typedefs

typedef unsigned long * GENERIC
typedef char string [STRLEN]
typedef struct wl_operator_dataptr_operator_data
typedef struct wl_int_listptr_int_list
typedef struct wl_resid_listptr_resid_list
typedef struct wl_definitionptr_definition
typedef struct wl_residuationptr_residuation
typedef struct wl_psi_termptr_psi_term
typedef struct wl_nodeptr_node
typedef struct wl_pair_listptr_pair_list
typedef struct wl_triple_listptr_triple_list
typedef struct wl_list * ptr_list
typedef struct wl_stackptr_stack
typedef struct wl_goalptr_goal
typedef struct wl_choice_pointptr_choice_point
typedef struct wl_operator_data operator_data
typedef struct wl_int_list int_list
typedef struct wl_resid_list resid_list
typedef struct wl_hash_tableptr_hash_table
typedef struct wl_moduleptr_module
typedef struct wl_keywordptr_keyword
typedef struct wl_definition definition
typedef struct wl_residuation residuation
typedef struct wl_psi_term psi_term
typedef struct wl_node node
typedef struct wl_pair_list pair_list
typedef struct wl_triple_list triple_list
typedef long type_ptr
typedef struct wl_stack stack
typedef struct wl_goal goal
typedef struct wl_choice_point choice_point

Enumerations

enum  operator {
  nop, xf, fx, yf,
  fy, xfx, xfy, yfx
}
enum  def_type {
  undef, predicate, function, type,
  global
}
enum  goals {
  fail, prove, unify, unify_noeval,
  disj, what_next, eval, eval_cut,
  freeze_cut, implies_cut, general_cut, match,
  type_disj, clause, del_clause, retract,
  load, c_what_next
}

Functions

void hash_insert ()
ptr_keyword hash_lookup ()
ptr_hash_table hash_create ()
void hash_expand ()
int hash_code ()
void hash_display ()
GENERIC stack_alloc ()
GENERIC heap_alloc ()
void init_system ()
ptr_psi_term stack_psi_term ()
ptr_psi_term real_stack_psi_term ()
ptr_psi_term heap_psi_term ()

Variables

int mem_size
int alloc_words
ptr_node module_table
ptr_module current_module
ptr_definition first_definition
int arg_c
char ** arg_v
GENERIC mem_base
GENERIC heap_pointer
GENERIC mem_limit
GENERIC stack_pointer
float garbage_time
struct tms life_start life_end
GENERIC other_base
GENERIC other_limit
GENERIC other_pointer
ptr_psi_term error_psi_term
long parser_stack_index
ptr_node var_tree
ptr_node printed_vars
ptr_node printed_pointers
ptr_node pointer_names
long gen_sym_counter
long warningflag
long verbose
long trace
long noisy
long types_done
long interrupted
FILE * input_stream
long line_count
string input_file_name
FILE * output_stream
char * prompt
long page_width
ptr_definitiongamma_table
long type_count
long types_modified
long main_loop_ok
ptr_goal aim
ptr_goal goal_stack
ptr_choice_point choice_stack
ptr_stack undo_stack
unsigned long global_time_stamp
long assert_first
long assert_ok
long file_date
ptr_definition abortsym
ptr_definition aborthooksym
ptr_definition add_module1
ptr_definition add_module2
ptr_definition add_module3
ptr_definition and
ptr_definition apply
ptr_definition boolean
ptr_definition boolpredsym
ptr_definition built_in
ptr_definition colonsym
ptr_definition commasym
ptr_definition comment
ptr_definition constant
ptr_definition cut
ptr_definition disjunction
ptr_definition disj_nil
ptr_definition eof
ptr_definition eqsym
ptr_definition leftarrowsym
ptr_definition false
ptr_definition funcsym
ptr_definition functor
ptr_definition iff
ptr_definition integer
ptr_definition alist
ptr_definition life_or
ptr_definition minus_symbol
ptr_definition nil
ptr_definition nothing
ptr_definition predsym
ptr_definition quote
ptr_definition quoted_string
ptr_definition real
ptr_definition stream
ptr_definition succeed
ptr_definition such_that
ptr_definition top
ptr_definition true
ptr_definition timesym
ptr_definition tracesym
ptr_definition typesym
ptr_definition variable
ptr_definition opsym
ptr_definition loadsym
ptr_definition dynamicsym
ptr_definition staticsym
ptr_definition encodesym
ptr_definition listingsym
ptr_definition delay_checksym
ptr_definition eval_argsym
ptr_definition inputfilesym
ptr_definition call_handlersym
ptr_definition xf_sym
ptr_definition fx_sym
ptr_definition yf_sym
ptr_definition fy_sym
ptr_definition xfx_sym
ptr_definition xfy_sym
ptr_definition yfx_sym
ptr_definition nullsym
ptr_definition sys_bytedata
ptr_definition sys_bitvector
ptr_definition sys_regexp
ptr_definition sys_stream
ptr_definition sys_file_stream
ptr_definition sys_socket_stream
ptr_definition final_dot
ptr_definition final_question
ptr_psi_term null_psi_term
char * one
char * two
char * three
char * year_attr
char * month_attr
char * day_attr
char * hour_attr
char * minute_attr
char * second_attr
char * weekday_attr
ptr_psi_term old_state
long(* c_rule [])()


Define Documentation

#define ALIGN   8

Definition at line 36 of file extern.h.

Referenced by compress(), heap_alloc(), and stack_alloc().

#define ARGS ( args   )     ()

Definition at line 799 of file extern.h.

#define code_ptr   4

Definition at line 534 of file extern.h.

Referenced by check_undo_stack(), and residuateGoalOnVar().

#define COPY_THRESHOLD   (GC_THRESHOLD>>3)

Definition at line 74 of file extern.h.

Referenced by copy().

#define cut_ptr   6

Definition at line 536 of file extern.h.

Referenced by check_special_addresses(), and check_undo_stack().

#define cut_to (  ) 

Value:

{ ptr_choice_point cp=choice_stack; \
                    while ((GENERIC)cp>(GENERIC)(C)) cp=cp->next; \
                    choice_stack=cp; \
                  }

Definition at line 236 of file extern.h.

Referenced by main_prove(), and prove_aim().

#define def_ptr   3

Definition at line 533 of file extern.h.

Referenced by check_undo_stack(), get_bool_value(), get_real_value(), push_def_ptr_value(), rec_replace(), residuateGoalOnVar(), type_disj_aim(), and unify_real_result().

#define DEFRULES   -1

Definition at line 148 of file extern.h.

Referenced by abort_life(), c_boolpred(), c_call(), c_disj(), c_freeze_inner(), c_repeat(), c_such_that(), c_undo(), call_once_internal(), check_goal_stack(), fetch_def(), fetch_def_lazy(), load_aim(), main(), my_wait_on_feature_internal(), prove_aim(), wait_on_feature_internal(), WFInput(), and what_next_aim().

#define deref_ptr (  )     while(P->coref) P=P->coref

Definition at line 251 of file extern.h.

Referenced by add_rule(), all_public_symbols(), assert_args_not_eval(), assert_attributes(), assert_clause(), assert_complicated_type(), assert_delay_check(), assert_less(), assert_protected(), c_add(), c_alias(), c_append_file(), c_apply(), c_ascii(), c_assert_first(), c_assert_last(), c_assign(), c_bit_and(), c_bit_not(), c_bit_or(), c_bk_assign(), c_boolpred(), c_call(), c_char(), c_chdir(), c_children(), c_close(), c_combined_name(), c_concatenate(), c_cond(), c_copy_pointer(), c_copy_term(), c_cputime(), c_current_module(), c_declaration(), c_delay_check(), c_deref_length(), c_diff(), c_diff_address(), c_disj(), c_display_modules(), c_display_persistent(), c_div(), c_dynamic(), c_equal(), c_eval(), c_eval_disjunction(), c_eval_inplace(), c_exist_feature(), c_exists(), c_exists_choice(), c_exp(), c_feature_values(), c_features(), c_floor_ceiling(), c_freeze_inner(), c_funct(), c_get(), c_get_choice(), c_glb(), c_global(), c_global_assign(), c_gt(), c_gtoe(), c_in_raw(), c_initrandom(), c_int2string(), c_intdiv(), c_is_function(), c_is_number(), c_is_persistent(), c_is_predicate(), c_is_sort(), c_is_value(), c_isa_main(), c_isa_subsort(), c_listing(), c_load(), c_localtime(), c_log(), c_logical_main(), c_lt(), c_ltoe(), c_lub(), c_maxint(), c_mod(), c_module_access(), c_module_name(), c_mresiduate(), c_mult(), c_non_strict(), c_nonvar(), c_not(), c_not_implemented(), c_open_in(), c_open_module(), c_open_out(), c_page_width(), c_parents(), c_parse(), c_persistent(), c_pred(), c_print_depth(), c_private(), c_private_feature(), c_project(), c_psi2string(), c_public(), c_put_main(), c_quiet(), c_quote(), c_random(), c_read(), c_realtime(), c_replace(), c_reset_window_flag(), c_residList(), c_rootsort(), c_same_address(), c_set_choice(), c_set_input(), c_set_module(), c_set_output(), c_setq(), c_shift(), c_split_double(), c_sqrt(), c_static(), c_string2psi(), c_string_address(), c_string_length(), c_strip(), c_sub(), c_sub_string(), c_such_that(), c_trace(), c_trace_input(), c_trig(), c_undo(), c_unify_func(), c_unify_pred(), c_var(), c_window_flag(), c_xor(), call_primitive(), check_out(), check_pointer(), copy(), declare_operator(), deref2_eval(), deref2_rec_eval(), deref_eval(), deref_rec_args(), deref_rec_args_exc(), deref_rec_body(), do_residuation(), eval_aim(), eval_global_var(), fetch_def(), fetch_def_lazy(), forbid_variables(), get_module(), global_error_check(), global_one(), global_tree(), global_unify(), insert_variables(), main_display_psi_term(), make_feature_private(), make_life_form(), make_public(), mark_eval_new(), mark_quote_c(), mark_quote_new(), match_aim(), persistent_error_check(), persistent_tree(), pred_clause(), pretty_list(), pretty_psi_term(), pretty_psi_with_ops(), pretty_tag_or_psi_term(), pretty_variables(), prove_aim(), rec_replace(), redefine(), string_val(), traverse_tree(), unify_real_result(), WFFeatureCount(), WFFeatures(), WFGetDouble(), WFGetFeature(), WFGetString(), WFGetVar(), and WFType().

#define destroy_window   7+32

Definition at line 543 of file extern.h.

Referenced by check_undo_stack(), and undo().

#define DIGIT (  )     (C>='0' && C<='9')

Definition at line 193 of file extern.h.

Referenced by handle_interrupt(), is_integer(), legal_in_name(), read_number(), and str_to_int().

#define EOLN   10

Definition at line 150 of file extern.h.

Referenced by handle_interrupt(), parse(), read_char(), read_comment(), what_next_aim(), and yes_or_no().

#define equ_tok ( A,
 )     (!strcmp(A.type->keyword->symbol,B))

Definition at line 218 of file extern.h.

Referenced by assert_clause(), assert_complicated_type(), and read_psi_term().

#define equ_tok3 ( A,
B,
 )     (Q?FALSE:equ_tok(A,B))

Definition at line 219 of file extern.h.

#define equ_tokc ( A,
 )     (B?equ_tokch(A,B):A.type->keyword->symbol[0]==0)

Definition at line 227 of file extern.h.

Referenced by parse_list(), and read_life_form().

#define equ_tokc3 ( A,
B,
 )     (Q?FALSE:equ_tokc(A,B))

Definition at line 228 of file extern.h.

#define equ_tokch ( A,
 )     (A.type->keyword->symbol[0]==B && A.type->keyword->symbol[1]==0)

Definition at line 222 of file extern.h.

Referenced by make_life_form(), parse_list(), read_life_form(), and read_psi_term().

#define equ_tokch3 ( A,
B,
 )     (Q?FALSE:equ_tokch(A,B))

Definition at line 223 of file extern.h.

#define equal_types ( A,
 )     ((A)==(B))

Definition at line 260 of file extern.h.

Referenced by c_close(), c_page_width(), c_print_depth(), c_put_main(), c_set_input(), c_set_output(), pretty_list(), pretty_psi_term(), psi_to_string(), and read_psi_term().

#define ERROR   999

Definition at line 163 of file extern.h.

Referenced by parse().

#define FACT   100

Definition at line 161 of file extern.h.

Referenced by c_parse(), c_read(), load_aim(), main(), parse(), set_parse_queryflag(), WFInput(), and what_next_aim().

#define FALSE   0

Definition at line 137 of file extern.h.

Referenced by abort_life(), accept_internal(), all_symbol(), append_files(), apply1_internal(), assert_args_not_eval(), assert_clause(), assert_complicated_type(), assert_delay_check(), assert_less(), bind_or_connect_internal(), bitvector_bit_code(), bk2_stack_insert(), bk_stack_insert(), bounds_undo_stack(), c_add(), c_alias(), c_append_file(), c_apply(), c_ascii(), c_assert_first(), c_assert_last(), c_assign(), c_begin_raw(), c_bit_and(), c_bit_not(), c_bit_or(), c_bk_assign(), c_boolpred(), c_call(), c_ceiling(), c_char(), c_chdir(), c_clause(), c_close(), c_concatenate(), c_declaration(), c_diff(), c_diff_address(), c_disj(), c_display_modules(), c_display_persistent(), c_div(), c_dynamic(), c_end_raw(), c_equal(), c_exists(), c_exists_choice(), c_exp(), c_fail(), c_freeze_inner(), c_get(), c_get_raw(), c_glb(), c_global(), c_global_assign(), c_implies(), c_initrandom(), c_int2string(), c_intdiv(), c_isa_subsort(), c_listing(), c_load(), c_log(), c_logical_main(), c_mod(), c_module_access(), c_mresiduate(), c_mult(), c_not(), c_not_implemented(), c_open_in(), c_open_module(), c_open_out(), c_or(), c_page_width(), c_parse(), c_persistent(), c_pred(), c_print_depth(), c_private(), c_private_feature(), c_project(), c_public(), c_put(), c_put_main(), c_pwrite(), c_pwriteq(), c_random(), c_read(), c_read_token(), c_replace(), c_reset_window_flag(), c_retract(), c_same_address(), c_set_choice(), c_set_input(), c_set_module(), c_set_output(), c_setq(), c_shift(), c_shift_left(), c_split_double(), c_sqrt(), c_string2psi(), c_string_address(), c_string_length(), c_sub(), c_sub_string(), c_trace(), c_trace_input(), c_trig(), c_undo(), c_unify_pred(), c_window_flag(), c_write(), c_write_canonical(), c_write_err(), c_writeq(), c_writeq_err(), c_xor(), call_primitive(), check_out(), check_real(), check_type(), clause_aim(), clear_already_loaded(), copy(), crunch(), cuserid_internal(), dbmdelete_internal(), dbmfetch_internal(), dbmfirstkey_internal(), dbminit_internal(), dbmnextkey_internal(), dbmstore_internal(), declare_operator(), deref_args_eval(), deref_eval(), deref_rec_eval(), display_couple(), do_residuation(), encode_types(), errmsg_internal(), eval_aim(), eval_copy(), exact_copy(), fclose_internal(), fetch_def_lazy(), fflush_internal(), file_exists(), find(), fopen_internal(), fork_internal(), fseek_internal(), fwrite_internal(), garbage(), general_insert(), get_arg(), get_bool(), get_bool_value(), get_buffer_internal(), get_code_internal(), get_module(), get_real_value(), gethostname_internal(), glb(), glb_code(), glb_value(), global_error_check(), global_unify(), global_unify_attr(), handle_interrupt(), has_non_alpha(), has_rules(), heap_insert(), heap_psi_term(), i_check_out(), i_eval_args(), import_symbol_internal(), in_set(), inherit_always_check(), init_parse_state(), init_system(), init_trace(), insert_own_prop(), insert_prop(), int2stream_internal(), is_int(), is_integer(), isSubTypeValue(), kill_internal(), list_nil(), list_special(), listen_internal(), listing_pred_write(), load_aim(), main(), main_display_psi_term(), main_pred_write(), main_prove(), make_bitvector_internal(), mark_eval(), mark_eval_new(), mark_quote_new(), mark_quote_new2(), match_aim(), matches(), memory_check(), new_definition(), new_tab(), no_quote(), only_arg1(), open_input_file(), open_module_one(), open_output_file(), overlap_type(), parse(), parse_list(), pop(), pred_clause(), pred_write(), pretty_list(), pretty_psi_term(), pretty_psi_with_ops(), pretty_tag_or_psi_term(), prettyf(), print_resid_message(), print_variables(), propagate_always_check(), prove_aim(), psi_term_error(), push_choice_point(), push_goal(), quote_copy(), read_char(), read_life_form(), read_name(), read_psi_term(), read_string(), read_string_error(), read_token_main(), real_stack_psi_term(), redefine(), regexp_execute_internal(), release_resid_main(), release_resid_notrail(), residuateGoalOnVar(), restore_resid(), socket_internal(), stack_insert(), stack_psi_term(), stdin_cleareof(), strict_matches(), sub_CodeType(), sub_type(), traverse_tree(), two_or_more(), type_cyclicity(), type_disj_aim(), type_member(), unchecked(), unify_real_result(), unify_wait_result(), update_symbol(), WFGetDouble(), WFGetString(), WFInit(), WFInput(), what_next_aim(), and work_out_length().

#define FUNC_ARG (  )     ((t)<match_date || (GENERIC)(t)>=heap_pointer)

Definition at line 182 of file extern.h.

Referenced by match_aim().

#define GC_THRESHOLD   (alloc_words>>3)

Definition at line 71 of file extern.h.

Referenced by main_prove(), and memory_check().

#define goal_ptr   5

Definition at line 535 of file extern.h.

Referenced by check_undo_stack(), and release_resid_main().

#define HEAP   TRUE

Definition at line 157 of file extern.h.

Referenced by add_rule(), c_assign(), c_setq(), copy(), general_insert(), global_one(), heap_insert(), and heap_insert_copystr().

#define HEAP_ALLOC (  )     (A *)heap_alloc(sizeof(A))

Definition at line 128 of file extern.h.

Referenced by add_rule(), c_setq(), cons(), copyTypeCode(), create_module(), equalize_codes(), find_adults(), general_insert(), heap_copy_psi_term(), heap_psi_term(), import_symbol_internal(), insert_own_prop(), insert_prop(), new_definition(), new_tab(), open_module_one(), or_codes(), two_to_the(), and update_symbol().

#define hide_subwindow   11+32

Definition at line 547 of file extern.h.

Referenced by undo().

#define hide_window   9+32

Definition at line 545 of file extern.h.

Referenced by check_undo_stack(), and undo().

#define INIT_TIME_STAMP   1

Definition at line 174 of file extern.h.

#define int_ptr   2

Definition at line 532 of file extern.h.

Referenced by bk_mark_quote(), check_type(), check_undo_stack(), deref_eval(), deref_rec_body(), eval_aim(), fetch_def(), fetch_def_lazy(), general_insert(), get_bool_value(), get_real_value(), push_def_ptr_value(), push_psi_ptr_value(), rec_replace(), release_resid_main(), residuateGoalOnVar(), and unify_real_result().

#define INT_SIZE   8*sizeof(unsigned long)

Definition at line 154 of file extern.h.

Referenced by bit_length(), print_bin(), and two_to_the().

#define is_top (  )     ((T)!=NULL && (T)->type==top && (T)->attr_list==NULL)

Definition at line 262 of file extern.h.

Referenced by c_open_in(), c_trace(), and pretty_tag_or_psi_term().

#define ISALPHA (  )     (DIGIT(C) || UPPER(C) || LOWER(C))

Definition at line 199 of file extern.h.

Referenced by has_non_alpha(), and no_quote().

#define LOCALSETUP

Definition at line 52 of file extern.h.

#define LOCALSETUPFILE   "./.set_up"

Definition at line 53 of file extern.h.

#define LOWER (  )     (C>='a' && C<='z')

Definition at line 197 of file extern.h.

Referenced by legal_in_name(), no_quote(), and starts_nonlower().

#define MAX_BUILT_INS   300

Definition at line 88 of file extern.h.

Referenced by add_rule(), assert_protected(), c_freeze_inner(), check_bytedata(), check_string(), clause_aim(), eval_aim(), is_built_in(), new_built_in(), prove_aim(), redefine(), and unchecked().

#define MAX_LEVEL   ((PROMPT_BUFFER-4-strlen(PROMPT))/2)

Definition at line 119 of file extern.h.

Referenced by what_next_aim().

#define MAX_PRECEDENCE   1200

Definition at line 109 of file extern.h.

Referenced by declare_operator(), display_couple(), main_display_psi_term(), main_pred_write(), op_declare(), pretty_list(), pretty_psi_with_ops(), pretty_variables(), print_resid_message(), read_life_form(), and write_attributes().

#define MAX_TRACE_INDENT   40

Definition at line 126 of file extern.h.

#define noneval (  )     (T->type==quote || T->type==listingsym || T->type==loadsym)

Definition at line 254 of file extern.h.

#define NOT_CODED   0

Definition at line 143 of file extern.h.

Referenced by clear_coding(), encode_types(), glb(), glb_code(), init_built_in_types(), matches(), new_definition(), overlap_type(), print_code(), sub_CodeType(), and type_cyclicity().

#define PAGE_WIDTH   80

Definition at line 95 of file extern.h.

#define PARSER_STACK_SIZE   10000

Definition at line 106 of file extern.h.

Referenced by push(), and title().

#define PRETTY_SIZE   20000

Definition at line 85 of file extern.h.

#define PRINT_BUFFER   100000

Definition at line 112 of file extern.h.

Referenced by init_memory().

#define PRINT_DEPTH   1000000000

Definition at line 98 of file extern.h.

Referenced by c_print_depth(), and listing_pred_write().

#define PRINT_POWER   9

Definition at line 102 of file extern.h.

Referenced by init_print(), and pretty_psi_term().

#define PRINT_SPLIT   1000000000

Definition at line 101 of file extern.h.

Referenced by pretty_psi_term().

#define PROMPT   "> "

Definition at line 115 of file extern.h.

Referenced by init_system(), and what_next_aim().

#define PROMPT_BUFFER   200

Definition at line 118 of file extern.h.

#define psi_term_ptr   0

Definition at line 530 of file extern.h.

Referenced by c_cond(), check_undo_stack(), eval_global_var(), and push_psi_ptr_value().

#define QUERY   200

Definition at line 162 of file extern.h.

Referenced by c_parse(), c_read(), load_aim(), main(), parse(), set_parse_queryflag(), WFInput(), and what_next_aim().

#define QUOTED_TRUE   1

Definition at line 132 of file extern.h.

Referenced by bk_mark_quote(), c_project(), copy(), heap_psi_term(), mark_eval_new(), mark_quote(), mark_quote_c(), mark_quote_new(), real_stack_psi_term(), and stack_psi_term().

#define REAL   double

Definition at line 78 of file extern.h.

Referenced by apply1_internal(), bind_or_connect_internal(), bitvector_bit_code(), bitvector_bit_internal(), bitvector_unop_code(), c_add(), c_ascii(), c_bit_and(), c_bit_not(), c_bit_or(), c_char(), c_cond(), c_cputime(), c_deref_length(), c_diff(), c_diff_address(), c_div(), c_equal(), c_exist_feature(), c_exists_choice(), c_exp(), c_floor_ceiling(), c_get(), c_get_choice(), c_get_raw(), c_gt(), c_gtoe(), c_int2string(), c_intdiv(), c_log(), c_lt(), c_ltoe(), c_maxint(), c_mod(), c_mult(), c_page_width(), c_print_depth(), c_project(), c_put_main(), c_random(), c_read(), c_realtime(), c_same_address(), c_set_choice(), c_shift(), c_split_double(), c_sqrt(), c_string_address(), c_sub(), c_trig(), check_psi_term(), check_real(), check_resid(), declare_operator(), errmsg_internal(), fork_internal(), fseek_internal(), ftell_internal(), get_buffer_internal(), get_code_internal(), get_real_value(), getpid_internal(), glb_value(), global_unify(), heap_add_int_attr(), heap_mod_int_attr(), int2stream_internal(), isSubTypeValue(), kill_internal(), lazy_project_internal(), listen_internal(), make_bitvector_internal(), make_feature_list(), make_life_form(), match_aim(), my_wait_on_feature_internal(), pretty_psi_term(), read_number(), read_psi_term(), real_stack_psi_term(), regexp_execute_internal(), restore_state(), stack_add_int_attr(), stack_int(), title(), unify_real_result(), wait_on_feature_internal(), and waitpid_internal().

#define resid_ptr   1

Definition at line 531 of file extern.h.

Referenced by append_resid(), check_undo_stack(), release_resid_main(), and residuateGoalOnVar().

#define RMASK   256

Definition at line 169 of file extern.h.

Referenced by bk_mark_quote(), check_func(), check_out(), check_type(), fetch_def(), and mark_quote().

#define show_subwindow   10+32

Definition at line 546 of file extern.h.

Referenced by undo().

#define show_window   8+32

Definition at line 544 of file extern.h.

Referenced by check_undo_stack(), and undo().

#define SINGLE (  ) 

Value:

(C=='(' || C==')' || C=='[' || C==']' || C=='{' || C=='`' ||\
                   C=='}' || C==',' || C=='.' || C==';' || C=='@' ||\
                   C=='!')

Definition at line 203 of file extern.h.

Referenced by no_quote().

#define SMASK   255

Definition at line 170 of file extern.h.

Referenced by check_type(), eval_aim(), and fetch_def().

#define STACK   FALSE

Definition at line 158 of file extern.h.

Referenced by bk2_stack_insert(), bk_stack_insert(), c_copy_term(), c_eval(), c_freeze_inner(), clause_aim(), eval_aim(), eval_global_var(), fetch_def(), fetch_def_lazy(), prove_aim(), stack_insert(), and stack_insert_copystr().

#define STACK_ALLOC (  )     (A *)stack_alloc(sizeof(A))

Definition at line 129 of file extern.h.

Referenced by appendIntList(), bfs(), c_cond(), c_freeze_inner(), copy_attr_list(), decode(), distinct_copy(), distinct_tree(), eval_aim(), eval_global_var(), general_insert(), glb(), glb_code(), makeUnitList(), new_psi_term(), one_attr(), prove_aim(), push2_ptr_value(), push_choice_point(), push_def_ptr_value(), push_goal(), push_psi_ptr_value(), push_ptr_value(), push_window(), real_stack_psi_term(), residuate(), residuate_double(), residuateGoalOnVar(), stack_copy_psi_term(), and stack_psi_term().

 
#define stack_empty_list (  )     stack_nil()

Definition at line 767 of file extern.h.

#define STRLEN   10000

Definition at line 92 of file extern.h.

Referenced by c_int2string(), expand_file_name(), heap_nice_name(), pretty_psi_term(), read_name(), read_string(), and title().

#define SYMBOL (  ) 

Value:

(C=='#' || C=='$' || C=='%' || C=='&' ||\
                   C=='*' || C=='+' || C=='-' || C=='>' || C=='/' ||\
                   C==':' || C=='<' || C=='=' ||\
                   C=='~' || C=='^' || C=='|' || C=='\\' ||\
                   C=='.' || C=='?' /*  RM: Jul  7 1993  */ \
                   )

Definition at line 208 of file extern.h.

Referenced by all_symbol(), read_name(), and symbolic().

#define TRUE   1

Definition at line 136 of file extern.h.

Referenced by abort_life(), accept_internal(), add_rule(), all_public_symbols(), all_symbol(), append_files(), apply1_internal(), assert_attributes(), assert_complicated_type(), assert_less(), bad_psi_term(), bind_or_connect_internal(), bitvector_binop_code(), bitvector_bit_code(), bitvector_unop_code(), bounds_undo_stack(), c_abort(), c_add(), c_alias(), c_and(), c_append_file(), c_apply(), c_args(), c_ascii(), c_assert_first(), c_assign(), c_begin_raw(), c_bit_and(), c_bit_not(), c_bit_or(), c_bk_assign(), c_boolpred(), c_call(), c_char(), c_children(), c_close(), c_combined_name(), c_concatenate(), c_cond(), c_copy_pointer(), c_copy_term(), c_current_module(), c_delay_check(), c_deref_length(), c_diff(), c_diff_address(), c_disj(), c_display_modules(), c_display_persistent(), c_div(), c_dynamic(), c_end_raw(), c_equal(), c_eval(), c_eval_disjunction(), c_eval_inplace(), c_exist_feature(), c_exists(), c_exists_choice(), c_exp(), c_feature_values(), c_features(), c_floor(), c_floor_ceiling(), c_freeze(), c_freeze_inner(), c_funct(), c_get(), c_get_choice(), c_get_raw(), c_glb(), c_global_assign(), c_gt(), c_gtoe(), c_halt(), c_in_raw(), c_initrandom(), c_int2string(), c_intdiv(), c_is_function(), c_is_number(), c_is_persistent(), c_is_predicate(), c_is_sort(), c_is_value(), c_isa_main(), c_isa_subsort(), c_listing(), c_localtime(), c_log(), c_logical_main(), c_lt(), c_ltoe(), c_lub(), c_mod(), c_module_name(), c_mresiduate(), c_mult(), c_non_strict(), c_nonvar(), c_not(), c_open_in(), c_open_out(), c_ops(), c_page_width(), c_parents(), c_parse(), c_pred(), c_print_codes(), c_print_depth(), c_print_variables(), c_private(), c_private_feature(), c_project(), c_psi2string(), c_public(), c_put_err(), c_put_main(), c_put_raw(), c_pwrite(), c_pwriteq(), c_quiet(), c_quote(), c_random(), c_read(), c_read_psi(), c_repeat(), c_replace(), c_reset_window_flag(), c_residList(), c_rootsort(), c_same_address(), c_set_choice(), c_set_input(), c_set_module(), c_set_output(), c_setq(), c_shift(), c_shift_right(), c_smallest(), c_split_double(), c_sqrt(), c_static(), c_step(), c_string2psi(), c_string_length(), c_strip(), c_sub(), c_sub_string(), c_succeed(), c_such_that(), c_tprove(), c_trace(), c_trace_input(), c_trig(), c_undo(), c_unify_func(), c_unify_pred(), c_var(), c_verbose(), c_warning(), c_window_flag(), c_write_canonical(), c_write_err(), c_writeq(), c_writeq_err(), c_xor(), call_once_internal(), call_primitive(), check(), check_disj(), check_func(), check_out(), check_real(), check_type(), clause_aim(), compress(), copy(), curry(), cuserid_internal(), dbmdelete_internal(), dbmfetch_internal(), dbmfirstkey_internal(), dbminit_internal(), dbmnextkey_internal(), dbmstore_internal(), declare_operator(), deref_eval(), deref_rec_body(), disjunct_aim(), display_couple(), do_residuation(), encode_types(), errmsg_internal(), errno_internal(), eval_aim(), eval_args(), f_check_out(), fail_all(), fclose_internal(), fflush_internal(), file_exists(), find(), fopen_internal(), fseek_internal(), fwrite_internal(), garbage(), general_insert(), generic_write(), get_arg(), get_bool(), get_bool_value(), get_buffer_internal(), get_module(), get_real_value(), get_record_internal(), gethostname_internal(), glb(), glb_code(), glb_value(), global_error_check(), global_unify(), global_unify_attr(), handle_interrupt(), has_non_alpha(), has_rules(), heap_insert_copystr(), import_symbol_internal(), in_set(), inc_heap_copy(), init_built_in_types(), init_io(), init_parse_state(), insert_own_prop(), insert_prop(), int2stream_internal(), interrupt(), is_int(), is_integer(), isa(), isSubTypeValue(), kill_internal(), lazy_project_internal(), List_CountAtom(), List_EnumBackFrom(), List_EnumFrom(), list_special(), List_SwapLinks(), listen_internal(), listing_pred_write(), load_aim(), main(), main_display_psi_term(), main_prove(), make_bitvector_internal(), make_feature_private(), make_public(), mark_eval_new(), mark_nonstrict(), mark_quote_new(), match_aim(), match_attr1(), match_attr3(), matches(), memory_check(), my_wait_on_feature_internal(), new_definition(), no_quote(), only_arg1(), open_input_file(), open_module_one(), open_output_file(), overlap_type(), parse(), persistent_error_check(), pred_clause(), pretty_list(), pretty_output(), pretty_psi_with_ops(), print_resid_message(), print_variables(), propagate_always_check(), prove_aim(), psi_to_string(), read_char(), read_life_form(), read_name(), read_psi_term(), read_string(), read_token(), redefine(), regexp_compile_internal(), regexp_execute_internal(), release_resid(), residuateGoalOnVar(), restore_resid(), socket_internal(), stack_insert_copystr(), stdin_cleareof(), stream2sys_stream_internal(), strict_matches(), sub_CodeType(), sub_type(), sys_stream2stream_internal(), tracing(), traverse_tree(), two_or_more(), type_cyclicity(), type_member(), unchecked(), unify_pterm_result(), unify_real_result(), wait_on_feature_internal(), WFGetDouble(), WFGetString(), WFInit(), WFInput(), what_next_aim(), and work_out_length().

#define TRUEMASK   1

Definition at line 138 of file extern.h.

Referenced by what_next_aim().

#define TS

Definition at line 41 of file extern.h.

#define UN_CODED   (CODE)0

Definition at line 144 of file extern.h.

#define UNDEF   2

Definition at line 141 of file extern.h.

Referenced by c_logical_main(), c_not(), c_xor(), and get_bool().

#define undo_action   32

Definition at line 548 of file extern.h.

Referenced by bounds_undo_stack(), check_special_addresses(), clean_trail(), clean_undo_window(), push_window(), and undo().

#define UNFOLDED_TRUE   2

Definition at line 133 of file extern.h.

#define UPPER (  )     ((C>='A' && C<='Z') || C=='_')

Definition at line 195 of file extern.h.

Referenced by legal_in_name().

#define VALID_ADDRESS (  ) 

Value:

(  VALID_RANGE(A) \
                         || (GENERIC)A==(GENERIC)&var_tree \
                         )

Definition at line 286 of file extern.h.

Referenced by bounds_undo_stack(), compress(), push_def_ptr_value(), push_psi_ptr_value(), push_ptr_value(), and unchecked().

#define VALID_RANGE (  )     ((GENERIC)A>=mem_base && (GENERIC)A<mem_limit)

Definition at line 276 of file extern.h.

Referenced by check_special_addresses(), and clean_trail().

#define VarArg   ___va_lp___

Definition at line 806 of file extern.h.

Referenced by outputline(), and traceline().

#define VarArgBase   va_alist

Definition at line 804 of file extern.h.

#define VarArgBaseDecl   va_dcl

Definition at line 805 of file extern.h.

#define VarArgDecl   va_list VarArg

Definition at line 807 of file extern.h.

Referenced by outputline(), and traceline().

 
#define VarArgEnd (  )     va_end(VarArg)

Definition at line 815 of file extern.h.

#define VarArgInit (  )     va_start(VarArg, l)

Definition at line 812 of file extern.h.

Referenced by outputline(), and traceline().

#define VarArgNext (  )     va_arg(VarArg, t)

Definition at line 814 of file extern.h.

#define wl_const (  )     ((S).value==NULL && (S).type!=variable)

Definition at line 258 of file extern.h.

Referenced by assert_attributes(), and read_psi_term().

#define WL_MAXINT   9007199254740991.0

Definition at line 82 of file extern.h.

Referenced by c_maxint(), and pretty_psi_term().

#define wl_SETH_H_FILE_

Definition at line 790 of file extern.h.

#define WORD   sizeof(long)

Definition at line 31 of file extern.h.

#define XEVENTDELAY   1000

Definition at line 123 of file extern.h.

Referenced by main_prove().


Typedef Documentation

typedef struct wl_choice_point choice_point

typedef struct wl_definition definition

typedef unsigned long* GENERIC

Definition at line 298 of file extern.h.

typedef struct wl_goal goal

typedef struct wl_int_list int_list

typedef struct wl_node node

typedef struct wl_operator_data operator_data

typedef struct wl_pair_list pair_list

typedef struct wl_psi_term psi_term

typedef struct wl_choice_point* ptr_choice_point

Definition at line 315 of file extern.h.

typedef struct wl_definition* ptr_definition

Definition at line 306 of file extern.h.

typedef struct wl_goal* ptr_goal

Definition at line 314 of file extern.h.

typedef struct wl_hash_table* ptr_hash_table

Definition at line 355 of file extern.h.

typedef struct wl_int_list* ptr_int_list

Definition at line 304 of file extern.h.

typedef struct wl_keyword* ptr_keyword

Definition at line 385 of file extern.h.

typedef struct wl_list* ptr_list

Definition at line 312 of file extern.h.

typedef struct wl_module* ptr_module

Definition at line 370 of file extern.h.

typedef struct wl_node* ptr_node

Definition at line 309 of file extern.h.

typedef struct wl_operator_data* ptr_operator_data

Definition at line 303 of file extern.h.

typedef struct wl_pair_list* ptr_pair_list

Definition at line 310 of file extern.h.

typedef struct wl_psi_term* ptr_psi_term

Definition at line 308 of file extern.h.

typedef struct wl_resid_list* ptr_resid_list

Definition at line 305 of file extern.h.

typedef struct wl_residuation* ptr_residuation

Definition at line 307 of file extern.h.

typedef struct wl_stack* ptr_stack

Definition at line 313 of file extern.h.

typedef struct wl_triple_list* ptr_triple_list

Definition at line 311 of file extern.h.

typedef struct wl_resid_list resid_list

typedef struct wl_residuation residuation

typedef struct wl_stack stack

typedef char string[STRLEN]

Definition at line 302 of file extern.h.

typedef struct wl_triple_list triple_list

typedef long type_ptr

Definition at line 529 of file extern.h.


Enumeration Type Documentation

enum def_type

Enumerator:
undef 
predicate 
function 
type 
global 

Definition at line 342 of file extern.h.

enum goals

Enumerator:
fail 
prove 
unify 
unify_noeval 
disj 
what_next 
eval 
eval_cut 
freeze_cut 
implies_cut 
general_cut 
match 
type_disj 
clause 
del_clause 
retract 
load 
c_what_next 

Definition at line 557 of file extern.h.

enum operator

Enumerator:
nop 
xf 
fx 
yf 
fy 
xfx 
xfy 
yfx 

Definition at line 321 of file extern.h.


Function Documentation

int hash_code (  ) 

Referenced by hash_display(), and hash_find().

ptr_hash_table hash_create (  ) 

Referenced by create_module().

void hash_display (  ) 

void hash_expand (  ) 

Referenced by hash_insert().

void hash_insert (  ) 

Referenced by hash_expand(), import_symbol_internal(), and update_symbol().

ptr_keyword hash_lookup (  ) 

Referenced by c_alias(), import_symbol_internal(), init_built_in_types(), make_feature_private(), make_public(), open_module_one(), update_feature(), and update_symbol().

GENERIC heap_alloc (  ) 

Referenced by c_char(), c_get(), c_read(), encode_types(), end_tab(), get_buffer_internal(), get_record_internal(), heap_add_int_attr(), heap_ncopy_string(), make_bytedata(), make_feature_list(), make_life_form(), op_declare(), read_number(), real_stack_psi_term(), stack_add_int_attr(), stack_int(), str_conc(), sub_str(), and unify_real_result().

ptr_psi_term heap_psi_term (  ) 

Referenced by c_setq(), heap_add_int_attr(), heap_add_str_attr(), init_built_in_types(), new_state(), persistent_one(), and save_state().

void init_system (  ) 

Definition at line 122 of file lib.c.

References choice_stack, current_module, exit_if_true(), FALSE, goal_stack, init_global_vars(), mem_base, memory_check(), wl_module::module_name, NULL, PROMPT, prompt, prompt_buffer, resid_aim, stack_nil(), stack_pointer, undo_stack, user_module, and var_tree.

Referenced by abort_life(), main(), and WFInit().

ptr_psi_term real_stack_psi_term (  ) 

Referenced by c_get_choice(), c_page_width(), c_print_depth(), and c_random().

GENERIC stack_alloc (  ) 

Referenced by lub(), and stack_copy_string().

ptr_psi_term stack_psi_term (  ) 

Referenced by abort_life(), all_public_symbols(), c_args(), c_call(), c_char(), c_children(), c_combined_name(), c_cond(), c_copy_pointer(), c_current_module(), c_exist_feature(), c_exists_choice(), c_get(), c_int2string(), c_is_function(), c_is_predicate(), c_is_sort(), c_localtime(), c_module_name(), c_nonvar(), c_open_out(), c_parents(), c_parse(), c_psi2string(), c_quiet(), c_read(), c_rootsort(), c_string2psi(), c_string_address(), c_var(), call_once_internal(), check_func(), collect_symbols(), get_buffer_internal(), get_record_internal(), global_one(), make_bytedata(), make_feature_list(), new_psi_term(), pred_clause(), prove_aim(), read_psi_term(), regexp_execute_internal(), set_parse_queryflag(), stack_add_int_attr(), stack_add_str_attr(), stack_bytes(), stack_cons(), stack_int(), stack_nil(), stack_pair(), stack_string(), sys_stream2stream_internal(), unify_bool(), unify_bool_result(), and unify_pterm_result().


Variable Documentation

ptr_definition aborthooksym

Definition at line 43 of file built_in.c.

Referenced by check().

ptr_definition abortsym

Definition at line 42 of file built_in.c.

Referenced by check().

ptr_definition add_module1

Definition at line 45 of file built_in.c.

Referenced by check(), and read_psi_term().

ptr_definition add_module2

Definition at line 46 of file built_in.c.

Referenced by check(), and read_psi_term().

ptr_definition add_module3

Definition at line 47 of file built_in.c.

Referenced by check(), and read_psi_term().

ptr_goal aim

Definition at line 53 of file login.c.

Referenced by all_public_symbols(), c_add(), c_alias(), c_append_file(), c_apply(), c_args(), c_ascii(), c_assert_first(), c_assert_last(), c_assign(), c_bit_and(), c_bit_not(), c_bit_or(), c_bk_assign(), c_boolpred(), c_call(), c_char(), c_chdir(), c_children(), c_clause(), c_close(), c_combined_name(), c_concatenate(), c_cond(), c_copy_pointer(), c_copy_term(), c_cputime(), c_current_module(), c_declaration(), c_delay_check(), c_deref_length(), c_diff(), c_diff_address(), c_disj(), c_display_modules(), c_display_persistent(), c_div(), c_dynamic(), c_equal(), c_eval(), c_eval_disjunction(), c_eval_inplace(), c_exist_feature(), c_exists(), c_exists_choice(), c_exp(), c_feature_values(), c_features(), c_floor_ceiling(), c_freeze_inner(), c_funct(), c_get(), c_get_choice(), c_get_raw(), c_glb(), c_global(), c_global_assign(), c_gt(), c_gtoe(), c_in_raw(), c_initrandom(), c_int2string(), c_intdiv(), c_is_function(), c_is_number(), c_is_persistent(), c_is_predicate(), c_is_sort(), c_is_value(), c_isa_main(), c_isa_subsort(), c_listing(), c_load(), c_localtime(), c_log(), c_logical_main(), c_lt(), c_ltoe(), c_lub(), c_maxint(), c_mod(), c_module_access(), c_module_name(), c_mresiduate(), c_mult(), c_non_strict(), c_nonvar(), c_not(), c_not_implemented(), c_op(), c_open_in(), c_open_module(), c_open_out(), c_ops(), c_page_width(), c_parents(), c_parse(), c_persistent(), c_pred(), c_print_codes(), c_print_depth(), c_private(), c_private_feature(), c_project(), c_psi2string(), c_public(), c_put_main(), c_quiet(), c_quote(), c_random(), c_read(), c_realtime(), c_repeat(), c_replace(), c_reset_window_flag(), c_residList(), c_retract(), c_rootsort(), c_same_address(), c_set_choice(), c_set_input(), c_set_module(), c_set_output(), c_setq(), c_shift(), c_smallest(), c_split_double(), c_sqrt(), c_static(), c_step(), c_string2psi(), c_string_address(), c_string_length(), c_strip(), c_sub(), c_sub_string(), c_succeed(), c_such_that(), c_tprove(), c_trace(), c_trace_input(), c_trig(), c_undo(), c_unify_func(), c_unify_pred(), c_var(), c_verbose(), c_warning(), c_window_flag(), c_xor(), call_primitive(), check(), deref_args_eval(), deref_eval(), deref_rec_eval(), eval_aim(), generic_write(), and match_aim().

ptr_definition alist

Definition at line 71 of file built_in.c.

Referenced by c_mresiduate(), check(), check_psi_term(), check_resid(), pretty_list(), pretty_psi_term(), and read_psi_term().

int alloc_words

Definition at line 55 of file memory.c.

Referenced by init_memory().

ptr_definition and

Definition at line 49 of file built_in.c.

Referenced by check(), and prove_aim().

ptr_definition apply

Definition at line 50 of file built_in.c.

Referenced by check(), and read_psi_term().

int arg_c

Definition at line 133 of file built_in.c.

Referenced by c_args(), GetStrOption(), main(), and WFInit().

char** arg_v

Definition at line 134 of file built_in.c.

Referenced by c_args(), GetStrOption(), main(), and WFInit().

long assert_first

Definition at line 63 of file login.c.

Referenced by add_rule(), c_assert_first(), c_assert_last(), load_aim(), main(), WFInput(), and what_next_aim().

long assert_ok

Definition at line 64 of file login.c.

Referenced by add_rule(), assert_clause(), assert_complicated_type(), assert_type(), c_assert_first(), c_assert_last(), main(), and WFInput().

ptr_definition boolean

Definition at line 51 of file built_in.c.

Referenced by c_get_raw().

ptr_definition boolpredsym

Definition at line 52 of file built_in.c.

Referenced by check(), and prove_aim().

ptr_definition built_in

Definition at line 53 of file built_in.c.

long(* c_rule[])()

Referenced by eval_aim(), new_built_in(), and prove_aim().

ptr_definition call_handlersym

Definition at line 99 of file built_in.c.

Referenced by check(), and prove_aim().

ptr_choice_point choice_stack

Definition at line 45 of file login.c.

Referenced by c_call(), c_exists_choice(), c_freeze_inner(), c_get_choice(), c_set_choice(), call_once_internal(), check(), check_goal_stack(), check_psi_term(), check_resid(), check_special_addresses(), copy(), depth_cs(), eval_aim(), fail_all(), init_system(), pchoices(), and WFInput().

ptr_definition colonsym

Definition at line 55 of file built_in.c.

Referenced by check().

ptr_definition commasym

Definition at line 56 of file built_in.c.

Referenced by check().

ptr_definition comment

Definition at line 57 of file built_in.c.

Referenced by check(), and read_comment().

ptr_definition constant

Definition at line 59 of file built_in.c.

Referenced by check(), and read_name().

ptr_module current_module

Definition at line 26 of file modules.c.

Referenced by add_rule(), c_feature_values(), c_features(), c_string2psi(), check(), import_symbol_internal(), init_system(), insert_sys_builtins(), new_built_in(), new_state(), read_psi_term(), and what_next_aim().

ptr_definition cut

Definition at line 60 of file built_in.c.

Referenced by check(), check_psi_term(), check_resid(), copy(), isa(), match_aim(), pretty_psi_term(), prove_aim(), and what_next_aim().

char* day_attr

Definition at line 122 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_definition delay_checksym

Definition at line 96 of file built_in.c.

Referenced by check().

ptr_definition disj_nil

Definition at line 62 of file built_in.c.

Referenced by check(), list_nil(), pretty_list(), and pretty_psi_term().

ptr_definition disjunction

Definition at line 61 of file built_in.c.

Referenced by assert_complicated_type(), check(), check_func(), list_nil(), pretty_list(), pretty_psi_term(), and read_psi_term().

ptr_definition dynamicsym

Definition at line 91 of file built_in.c.

Referenced by check().

ptr_definition encodesym

Definition at line 93 of file built_in.c.

Referenced by check().

ptr_definition eof

Definition at line 63 of file built_in.c.

Referenced by check(), load_aim(), main(), parse(), pretty_psi_term(), read_psi_term(), and what_next_aim().

ptr_definition eqsym

Definition at line 64 of file built_in.c.

Referenced by check(), and pretty_variables().

ptr_psi_term error_psi_term

Definition at line 27 of file token.c.

Referenced by c_string2psi(), check(), crunch(), global_error_check(), init_built_in_types(), make_life_form(), persistent_error_check(), pop(), read_life_form(), read_psi_term(), and update_symbol().

ptr_definition eval_argsym

Definition at line 97 of file built_in.c.

Referenced by check().

ptr_definition false

Definition at line 66 of file built_in.c.

long file_date

Definition at line 49 of file lib.c.

Referenced by c_load(), load_aim(), main(), redefine(), and WFInit().

ptr_definition final_dot

Definition at line 111 of file built_in.c.

Referenced by bad_psi_term(), check(), and parse().

ptr_definition final_question

Definition at line 112 of file built_in.c.

Referenced by bad_psi_term(), check(), and parse().

ptr_definition first_definition

Definition at line 22 of file hash_tab.c.

Referenced by all_public_symbols(), all_sorts(), check_definition_list(), clear_coding(), collect_symbols(), count_sorts(), equalize_codes(), find_adults(), init_global_vars(), least_sorts(), new_definition(), and one_pass_always_check().

ptr_definition funcsym

Definition at line 67 of file built_in.c.

Referenced by check().

ptr_definition functor

Definition at line 68 of file built_in.c.

Referenced by check(), and read_psi_term().

ptr_definition fx_sym

Definition at line 101 of file built_in.c.

Referenced by check().

ptr_definition fy_sym

Definition at line 103 of file built_in.c.

Referenced by check().

ptr_definition* gamma_table

Definition at line 28 of file types.c.

Referenced by check_gamma_code(), and check_gamma_rest().

float garbage_time

Definition at line 57 of file lib.c.

Referenced by exit_life(), and garbage().

long gen_sym_counter

Definition at line 33 of file print.c.

Referenced by display_couple(), heap_nice_name(), main_display_psi_term(), main_pred_write(), print_resid_message(), and print_variables().

unsigned long global_time_stamp

Definition at line 50 of file login.c.

Referenced by c_get_choice(), copy(), distinct_copy(), heap_copy_psi_term(), heap_psi_term(), push_choice_point(), push_def_ptr_value(), push_psi_ptr_value(), real_stack_psi_term(), stack_copy_psi_term(), and stack_psi_term().

ptr_goal goal_stack

Definition at line 53 of file login.c.

Referenced by c_cond(), check(), depth_gs(), deref_args_eval(), deref_eval(), deref_rec_eval(), do_currying(), do_residuation_user(), fail_all(), init_system(), release_resid_main(), and WFInput().

GENERIC heap_pointer

Definition at line 27 of file memory.c.

Referenced by bk_mark_quote(), c_assign(), c_bk_assign(), c_global_assign(), c_is_persistent(), c_project(), check_out(), check_psi_term(), compress(), copy(), deref_eval(), deref_rec_body(), display_couple(), garbage(), get_bool_value(), get_real_value(), global_unify(), heap_alloc(), init_global_vars(), init_memory(), main_display_psi_term(), main_pred_write(), main_prove(), memory_check(), persistent_one(), pretty_psi_term(), print_gc_info(), print_resid_message(), print_variables(), push_def_ptr_value(), push_ptr_value(), residuateGoalOnVar(), show_count(), stack_alloc(), and unify_real_result().

char* hour_attr

Definition at line 123 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_definition iff

Definition at line 69 of file built_in.c.

Referenced by check(), and check_func().

string input_file_name

Definition at line 50 of file token.c.

Referenced by create_module(), new_state(), open_input_file(), psi_term_error(), restore_state(), and save_state().

FILE* input_stream

Definition at line 49 of file token.c.

Referenced by begin_terminal_io(), c_close(), load_aim(), new_state(), open_input_file(), read_char(), restore_state(), and save_state().

ptr_definition inputfilesym

Definition at line 98 of file built_in.c.

Referenced by check(), and new_state().

ptr_definition integer

Definition at line 70 of file built_in.c.

Referenced by apply1_internal(), bitvector_bit(), c_bind(), c_connect(), c_errmsg(), c_fseek(), c_get_buffer(), c_int2stream(), c_kill(), c_listen(), c_make_bitvector(), c_parents(), c_regexp_execute(), c_waitpid(), check(), encode_types(), heap_add_int_attr(), isa(), isSubTypeValue(), lazy_project_internal(), make_life_form(), match_aim(), my_wait_on_feature_internal(), pretty_psi_term(), read_number(), read_psi_term(), real_stack_psi_term(), stack_add_int_attr(), and wait_on_feature_internal().

long interrupted

Definition at line 22 of file interrup.c.

Referenced by handle_interrupt(), interrupt(), and main_prove().

ptr_definition leftarrowsym

Definition at line 65 of file built_in.c.

struct tms life_start life_end

Definition at line 53 of file lib.c.

Referenced by c_cputime(), and exit_life().

ptr_definition life_or

Definition at line 72 of file built_in.c.

Referenced by check(), and prove_aim().

long line_count

Definition at line 51 of file token.c.

Referenced by c_read(), init_parse_state(), new_state(), read_char(), read_life_form(), restore_parse_state(), restore_state(), save_parse_state(), and save_state().

ptr_definition listingsym

Definition at line 94 of file built_in.c.

Referenced by check().

ptr_definition loadsym

Definition at line 90 of file built_in.c.

Referenced by check().

long main_loop_ok

Definition at line 66 of file login.c.

Referenced by abort_life(), and main_prove().

GENERIC mem_base

Definition at line 24 of file memory.c.

Referenced by bounds_undo_stack(), clean_trail(), compress(), garbage(), init_memory(), init_system(), main(), print_gc_info(), print_undo_stack(), show_count(), and WFInit().

GENERIC mem_limit

Definition at line 25 of file memory.c.

Referenced by bounds_undo_stack(), check_psi_term(), compress(), garbage(), init_memory(), print_gc_info(), print_undo_stack(), and show_count().

int mem_size

Definition at line 54 of file memory.c.

Referenced by init_memory(), and print_gc_info().

ptr_definition minus_symbol

Definition at line 73 of file built_in.c.

Referenced by check(), and make_life_form().

char* minute_attr

Definition at line 124 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_node module_table

Definition at line 25 of file modules.c.

Referenced by check().

char* month_attr

Definition at line 121 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_definition nil

Definition at line 74 of file built_in.c.

Referenced by assert_complicated_type(), c_mresiduate(), check(), list_nil(), pretty_list(), and pretty_psi_term().

long noisy

Definition at line 48 of file lib.c.

Referenced by load_aim(), main(), open_input_file(), and WFInit().

ptr_definition nothing

Definition at line 75 of file built_in.c.

Referenced by all_sorts(), check(), encode_types(), glb(), and least_sorts().

ptr_psi_term null_psi_term

Definition at line 115 of file built_in.c.

Referenced by check(), new_state(), restore_state(), and save_state().

ptr_definition nullsym

Definition at line 107 of file built_in.c.

Referenced by check().

ptr_psi_term old_state

Definition at line 443 of file token.c.

Referenced by check(), handle_interrupt(), and yes_or_no().

char* one

Definition at line 117 of file built_in.c.

Referenced by c_append_file(), c_concatenate(), c_cond(), c_deref_length(), c_exists(), c_initrandom(), c_random(), c_string_length(), c_sub_string(), check(), check_legal_cons(), collect_symbols(), get_numeric_feature(), get_one_arg(), get_one_arg_addr(), get_two_args(), heap_ncopy_string(), init_built_in_types(), make_life_form(), new_psi_term(), one_attr(), only_arg1(), parse_list(), prove_aim(), stack_cons(), stack_copy_string(), stack_pair(), and unify_wait_result().

ptr_definition opsym

Definition at line 89 of file built_in.c.

Referenced by check().

GENERIC other_base

Definition at line 28 of file memory.c.

Referenced by garbage(), init_memory(), main(), and WFInit().

GENERIC other_limit

Definition at line 30 of file memory.c.

Referenced by garbage(), and init_memory().

GENERIC other_pointer

Definition at line 31 of file memory.c.

Referenced by compress(), and init_memory().

FILE* output_stream

Definition at line 31 of file token.c.

Referenced by begin_terminal_io(), c_close(), c_listing(), c_open_out(), c_put_main(), c_set_output(), display_couple(), display_psi_stream(), end_terminal_io(), fail_all(), init_io(), list_special(), listing_pred_write(), open_output_file(), outputline(), pred_write(), and print_variables().

long page_width

Definition at line 34 of file print.c.

Referenced by c_page_width(), and work_out_length().

long parser_stack_index

Definition at line 34 of file parser.c.

Referenced by crunch(), look(), parse(), pop(), push(), read_life_form(), and show().

ptr_node pointer_names

Definition at line 23 of file print.c.

Referenced by garbage().

ptr_definition predsym

Definition at line 76 of file built_in.c.

Referenced by check().

ptr_node printed_pointers

Definition at line 23 of file print.c.

Referenced by garbage().

ptr_node printed_vars

char* prompt

Definition at line 32 of file token.c.

Referenced by c_get(), c_read(), handle_interrupt(), init_system(), parse(), read_char(), what_next_aim(), and yes_or_no().

ptr_definition quote

Definition at line 77 of file built_in.c.

Referenced by check().

ptr_definition quoted_string

Definition at line 78 of file built_in.c.

Referenced by apply1_internal(), c_bind(), c_connect(), c_current_module(), c_dbmdelete(), c_dbmfetch(), c_dbminit(), c_dbmnextkey(), c_dbmstore(), c_fopen(), c_fwrite(), c_get_record(), c_int2stream(), c_parents(), c_regexp_compile(), c_regexp_execute(), c_socket(), check(), check_psi_term(), check_resid(), encode_types(), get_buffer_internal(), get_module(), get_record_internal(), glb_value(), global_unify(), heap_add_str_attr(), isSubTypeValue(), lazy_project_internal(), match_aim(), my_wait_on_feature_internal(), pretty_psi_term(), read_psi_term(), stack_add_str_attr(), string_val(), wait_on_feature_internal(), and WFGetString().

ptr_definition real

Definition at line 79 of file built_in.c.

Referenced by c_children(), c_get_raw(), c_is_number(), c_parents(), c_put_raw(), check(), check_psi_term(), check_resid(), encode_types(), glb_value(), global_unify(), isa(), isSubTypeValue(), make_life_form(), match_aim(), pretty_psi_term(), read_number(), real_stack_psi_term(), and WFGetDouble().

char* second_attr

Definition at line 125 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

GENERIC stack_pointer

Definition at line 26 of file memory.c.

Referenced by backtrack(), c_freeze_inner(), clean_trail(), compress(), copy(), eval_aim(), garbage(), heap_alloc(), init_memory(), init_system(), main(), main_prove(), memory_check(), pchoices(), print_gc_info(), push2_ptr_value(), push_choice_point(), push_def_ptr_value(), push_psi_ptr_value(), push_ptr_value(), show_count(), stack_alloc(), and WFInit().

ptr_definition staticsym

Definition at line 92 of file built_in.c.

Referenced by check().

ptr_definition stream

Definition at line 80 of file built_in.c.

Referenced by c_stream2sys_stream(), check(), check_psi_term(), new_state(), pretty_psi_term(), and sys_stream2stream_internal().

ptr_definition succeed

Definition at line 81 of file built_in.c.

Referenced by add_rule(), check(), and prove_aim().

ptr_definition such_that

Definition at line 82 of file built_in.c.

Referenced by check(), and check_func().

ptr_definition sys_bitvector

Definition at line 37 of file sys.c.

ptr_definition sys_bytedata

Definition at line 36 of file sys.c.

Referenced by check_psi_term(), check_resid(), match_aim(), and pretty_psi_term().

ptr_definition sys_file_stream

Definition at line 40 of file sys.c.

ptr_definition sys_regexp

Definition at line 38 of file sys.c.

ptr_definition sys_socket_stream

Definition at line 41 of file sys.c.

ptr_definition sys_stream

Definition at line 39 of file sys.c.

char* three

Definition at line 119 of file built_in.c.

Referenced by c_cond(), c_exist_feature(), c_parse(), c_read(), c_replace(), c_sub_string(), check(), collect_symbols(), declare_operator(), get_numeric_feature(), and init_built_in_types().

ptr_definition timesym

Definition at line 85 of file built_in.c.

Referenced by c_localtime(), and check().

ptr_definition top

Definition at line 83 of file built_in.c.

Referenced by apply1_internal(), assert_less(), bfs(), c_apply1(), c_call_once(), c_children(), c_import_symbol(), c_lazy_project(), c_my_wait_on_feature(), c_parents(), c_regexp_execute(), c_wait_on_feature(), check(), deref_args_eval(), encode_types(), glb(), glb_code(), heap_psi_term(), lazy_project_internal(), lub(), make_life_form(), make_type_link(), matches(), my_wait_on_feature_internal(), overlap_type(), push_choice_point(), regexp_execute_internal(), stack_psi_term(), sub_type(), text_buffer_cmp(), text_buffer_next(), and wait_on_feature_internal().

long trace

Definition at line 99 of file error.c.

Referenced by c_trace(), do_residuation(), handle_interrupt(), init_trace(), toggle_step(), and traceline().

ptr_definition tracesym

Definition at line 86 of file built_in.c.

Referenced by check(), and prove_aim().

ptr_definition true

Definition at line 84 of file built_in.c.

char* two

Definition at line 118 of file built_in.c.

Referenced by c_append_file(), c_concatenate(), c_cond(), c_parse(), c_read(), c_sub_string(), check(), check_legal_cons(), collect_symbols(), get_numeric_feature(), get_two_args(), heap_ncopy_string(), init_built_in_types(), make_life_form(), new_psi_term(), parse_list(), read_psi_term(), set_parse_queryflag(), stack_cons(), stack_copy_string(), stack_pair(), and unify_wait_result().

long type_count

Definition at line 26 of file types.c.

Referenced by c_print_codes(), check_gamma_code(), check_gamma_rest(), encode_types(), lub(), and print_codes().

long types_done

Definition at line 50 of file lib.c.

Referenced by encode_types().

long types_modified

Definition at line 25 of file types.c.

Referenced by assert_attributes(), assert_less(), and encode_types().

ptr_definition typesym

Definition at line 87 of file built_in.c.

Referenced by check().

ptr_stack undo_stack

Definition at line 44 of file login.c.

Referenced by bounds_undo_stack(), check(), check_special_addresses(), depth_ts(), eval_global_var(), fail_all(), init_system(), main(), print_undo_stack(), WFInit(), and WFInput().

ptr_node var_tree

Definition at line 35 of file parser.c.

Referenced by c_read(), check(), display_couple(), init_system(), load_aim(), main_display_psi_term(), main_pred_write(), print_resid_message(), print_variables(), read_name(), unique_name(), and WFGetVar().

ptr_definition variable

Definition at line 88 of file built_in.c.

Referenced by check(), check_psi_term(), check_resid(), and read_psi_term().

long verbose

Definition at line 100 of file error.c.

Referenced by c_verbose(), garbage(), handle_interrupt(), memory_check(), show_count(), and stack_info().

long warningflag

Definition at line 97 of file error.c.

Referenced by c_warning(), redefine(), report_error2_main(), report_warning2(), and warningx().

char* weekday_attr

Definition at line 126 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_definition xf_sym

Definition at line 100 of file built_in.c.

Referenced by check().

ptr_definition xfx_sym

Definition at line 104 of file built_in.c.

Referenced by check().

ptr_definition xfy_sym

Definition at line 105 of file built_in.c.

Referenced by check().

char* year_attr

Definition at line 120 of file built_in.c.

Referenced by c_localtime(), check(), and init_built_in_types().

ptr_definition yf_sym

Definition at line 102 of file built_in.c.

Referenced by check().

ptr_definition yfx_sym

Definition at line 106 of file built_in.c.

Referenced by check().


Generated on Sat Jan 26 08:48:09 2008 for WildLife by  doxygen 1.5.4