Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

soarkernel.h File Reference

Go to the source code of this file.

Data Structures

struct  action_struct
struct  agent_struct
struct  alias_struct
struct  backtrace_struct
struct  bt_info_struct
struct  captured_action_struct
struct  chunk_cond_set_struct
struct  chunk_cond_struct
struct  complex_test_struct
union  complex_test_struct::test_info_union
struct  condition_struct
union  condition_struct::condition_main_data_union
struct  cons_struct
struct  dir_stack_struct
struct  dl_cons_struct
struct  expansion_node
struct  explain_chunk_struct
struct  float_constant_struct
struct  gds_struct
struct  hash_table_struct
struct  identifier_struct
struct  instantiation_struct
struct  int_constant_struct
struct  io_wme_struct
struct  item_in_hash_table_struct
struct  lexeme_info
struct  lexer_source_file_struct
struct  memory_pool_struct
struct  ms_change_struct
struct  multi_attributes_struct
struct  ncc_info_struct
struct  not_struct
struct  output_call_info_struct
struct  output_link_struct
struct  pi_struct
struct  preference_struct
struct  production_struct
struct  reorder_info_struct
struct  rhs_function_struct
struct  slot_struct
struct  sym_constant_struct
struct  symbol_common_data_struct
union  symbol_common_data_struct::a_union
union  symbol_union
struct  three_field_tests_struct
struct  variable_struct
struct  wme_struct

Typedefs

typedef unsigned char byte
typedef char bool
typedef signed short goal_stack_level
typedef unsigned long tc_number
typedef void * growable_string
typedef memory_pool_struct memory_pool
typedef cons_struct cons
typedef cons list
typedef dl_cons_struct dl_cons
typedef dl_cons dl_list
typedef bool(* cons_test_fn )(cons *c)
typedef bool(* dl_cons_test_fn )(dl_cons *dc)
typedef unsigned long ((*hash_function)(void *item, short num_bits))
typedef item_in_hash_table_struct item_in_hash_table
typedef item_in_hash_tablebucket_array
typedef hash_table_struct hash_table
typedef bool(* hash_table_callback_fn )(void *item)
typedef lexer_source_file_struct lexer_source_file
typedef symbol_common_data_struct symbol_common_data
typedef sym_constant_struct sym_constant
typedef int_constant_struct int_constant
typedef float_constant_struct float_constant
typedef variable_struct variable
typedef identifier_struct identifier
typedef symbol_union Symbol
typedef wme_struct wme
typedef gds_struct goal_dependency_set
typedef preference_struct preference
typedef slot_struct slot
typedef char * test
typedef complex_test_struct complex_test
typedef bt_info_struct bt_info
typedef reorder_info_struct reorder_info
typedef three_field_tests_struct three_field_tests
typedef ncc_info_struct ncc_info
typedef condition_struct condition
typedef char * rhs_value
typedef action_struct action
typedef production_struct production
typedef not_struct not
typedef instantiation_struct instantiation
typedef pi_struct parent_inst
typedef byte ms_trace_type
typedef byte wme_trace_type
typedef bool(* user_interface_routine )(void)
typedef expansion_node expansion_node
typedef alias_struct alias_struct
typedef dir_stack_struct dir_stack_struct
typedef multi_attributes_struct multi_attribute
typedef chunk_cond_struct chunk_cond
typedef chunk_cond_set_struct chunk_cond_set
typedef Symbol *(* rhs_function_routine )(list *args))
typedef rhs_function_struct rhs_function
typedef io_wme_struct io_wme
typedef captured_action_struct captured_action
typedef output_call_info_struct output_call_info
typedef backtrace_struct backtrace_str
typedef explain_chunk_struct explain_chunk_str
typedef ms_change_struct ms_change
typedef agent_struct agent
typedef output_link_struct output_link

Enumerations

enum  agent_id_state { UNTOUCHED, TOUCHED, ALLOCATED }
enum  ni_mode { NUMERIC_INDIFFERENT_MODE_AVG, NUMERIC_INDIFFERENT_MODE_SUM }
enum  lexer_token_type {
  EOF_LEXEME, IDENTIFIER_LEXEME, VARIABLE_LEXEME, SYM_CONSTANT_LEXEME,
  INT_CONSTANT_LEXEME, FLOAT_CONSTANT_LEXEME, L_PAREN_LEXEME, R_PAREN_LEXEME,
  L_BRACE_LEXEME, R_BRACE_LEXEME, PLUS_LEXEME, MINUS_LEXEME,
  RIGHT_ARROW_LEXEME, GREATER_LEXEME, LESS_LEXEME, EQUAL_LEXEME,
  LESS_EQUAL_LEXEME, GREATER_EQUAL_LEXEME, NOT_EQUAL_LEXEME, LESS_EQUAL_GREATER_LEXEME,
  LESS_LESS_LEXEME, GREATER_GREATER_LEXEME, AMPERSAND_LEXEME, AT_LEXEME,
  TILDE_LEXEME, UP_ARROW_LEXEME, EXCLAMATION_POINT_LEXEME, COMMA_LEXEME,
  PERIOD_LEXEME, QUOTED_STRING_LEXEME, DOLLAR_STRING_LEXEME
}
enum  go_type_enum {
  GO_PHASE, GO_ELABORATION, GO_DECISION, GO_STATE,
  GO_OPERATOR, GO_SLOT, GO_OUTPUT
}
enum  top_level_phase {
  INPUT_PHASE, DETERMINE_LEVEL_PHASE, PREFERENCE_PHASE, WM_PHASE,
  OUTPUT_PHASE, DECISION_PHASE
}
enum  captured_action_type { ADD_WME, REMOVE_WME }

Functions

int tolower (int)
void init_memory_utilities (void)
void * allocate_memory (unsigned long size, int usage_code)
void * allocate_memory_and_zerofill (unsigned long size, int usage_code)
void free_memory (void *mem, int usage_code)
char * make_memory_block_for_string (const char *s)
void free_memory_block_for_string (char *p)
growable_string make_blank_growable_string (void)
void add_to_growable_string (growable_string *gs, char *string_to_add)
void free_growable_string (growable_string gs)
void add_block_to_memory_pool (memory_pool *p)
void init_memory_pool (memory_pool *p, long item_size, char *name)
void allocate_with_pool_fn (memory_pool *p, void **dest)
void free_with_pool_fn (memory_pool *p, void *item)
listdestructively_reverse_list (list *c)
bool member_of_list (void *item, list *the_list)
listadd_if_not_member (void *item, list *old_list)
void free_list (list *the_list)
listextract_list_elements (list **header, cons_test_fn f)
dl_listextract_dl_list_elements (dl_list **header, dl_cons_test_fn f)
hash_table_structmake_hash_table (short minimum_log2size, hash_function h)
void remove_from_hash_table (struct hash_table_struct *ht, void *item)
void add_to_hash_table (struct hash_table_struct *ht, void *item)
void do_for_all_items_in_hash_table (struct hash_table_struct *ht, hash_table_callback_fn f)
void do_for_all_items_in_hash_bucket (struct hash_table_struct *ht, hash_table_callback_fn f, unsigned long hash_value)
void determine_possible_symbol_types_for_string (char *s, int length_of_s, bool *possible_id, bool *possible_var, bool *possible_sc, bool *possible_ic, bool *possible_fc, bool *rereadable)
void init_lexer (void)
void start_lex_from_file (char *filename, FILE *already_opened_file)
void stop_lex_from_file (void)
void get_lexeme (void)
void print_location_of_most_recent_lexeme (void)
int current_lexer_parentheses_level (void)
void skip_ahead_to_balanced_parentheses (int parentheses_level)
void fake_rparen_at_next_end_of_line (void)
void set_lexer_allow_ids (bool allow_identifiers)
void determine_type_of_constituent_string (void)
void init_symbol_tables (void)
Symbolfind_variable (char *name)
Symbolfind_identifier (char name_letter, unsigned long name_number)
Symbolfind_sym_constant (const char *name)
Symbolfind_int_constant (long value)
Symbolfind_float_constant (float value)
Symbolmake_variable (char *name)
Symbolmake_sym_constant (const char *name)
Symbolmake_int_constant (long value)
Symbolmake_float_constant (float value)
Symbolmake_new_identifier (char name_letter, goal_stack_level level)
void deallocate_symbol (Symbol *sym)
void reset_id_counters (void)
void reset_id_and_variable_tc_numbers (void)
void reset_variable_gensym_numbers (void)
bool print_sym (void *item)
Symbolgenerate_new_sym_constant (char *prefix, unsigned long *counter)
void create_predefined_symbols (void)
bool remove_preference_from_clones (preference *pref)
void init_sysparams (void)
void set_sysparam (int param_number, long new_value)
void reset_statistics (void)
void setup_signal_handling (void)
void load_init_file (void)
void control_c_handler (int the_signal)
void exit_soar (void)
void abort_with_fatal_error (char *)
void just_before_exit_soar (void)
void reset_timer (TIMER_VALUE *tv_to_reset)
void start_timer (TIMER_VALUE *tv_for_recording_start_time)
void stop_timer (TIMER_VALUE *tv_with_recorded_start_time, TIMER_VALUE *tv_with_accumulated_time)
double timer_value (TIMER_VALUE *tv)
int test_timers ()
void init_real_time ()
void wake_from_attention_lapse ()
void init_attention_lapse ()
void add_pwatch (struct production_struct *prod)
void remove_pwatch (struct production_struct *prod)
void reinitialize_soar (void)
void run_forever (void)
void run_for_n_phases (long n)
void run_for_n_elaboration_cycles (long n)
void run_for_n_decision_cycles (long n)
void run_for_n_modifications_of_output (long n)
void run_for_n_selections_of_slot (long n, Symbol *attr_of_slot)
void run_for_n_selections_of_slot_at_level (long n, Symbol *attr_of_slot, goal_stack_level level)
void reset_wme_timetags (void)
wmemake_wme (Symbol *id, Symbol *attr, Symbol *value, bool acceptable)
void add_wme_to_wm (wme *w)
void remove_wme_from_wm (wme *w)
void remove_wme_list_from_wm (wme *w)
void do_buffered_wm_changes (void)
void deallocate_wme (wme *w)
Symbolfind_name_of_object (Symbol *id)
void post_link_addition (Symbol *from, Symbol *to)
void post_link_removal (Symbol *from, Symbol *to)
void mark_context_slot_as_acceptable_preference_changed (slot *s)
slotfind_slot (Symbol *id, Symbol *attr)
slotmake_slot (Symbol *id, Symbol *attr)
void mark_slot_as_changed (slot *s)
void mark_slot_for_possible_removal (slot *s)
void remove_garbage_slots (void)
preferencemake_preference (byte type, Symbol *id, Symbol *attr, Symbol *value, Symbol *referent)
bool possibly_deallocate_preference_and_clones (preference *pref)
void deallocate_preference (preference *pref)
void add_preference_to_tm (preference *pref)
void remove_preference_from_tm (preference *pref)
void process_o_rejects_and_deallocate_them (preference *o_rejects)
void init_decider (void)
void do_buffered_wm_and_ownership_changes (void)
void do_working_memory_phase (void)
void do_decision_phase (void)
void create_top_goal (void)
void clear_goal_stack (void)
void print_lowest_slot_in_context_stack (void)
void add_command (char *command_name, user_interface_routine f)
bool dispatch_command (void)
void repeatedly_read_and_dispatch_commands (void)
void load_file (char *file_name, FILE *already_open_file)
void add_help (char *topic, char **lines_of_text)
void init_built_in_commands (void)
void init_multi_agent_built_in_commands (void)
bool old_parse_go_command (void)
void old_execute_go_selection (void)
void respond_to_load_errors (void)
char * tilde_expand (char *filename)
void init_parser (void)
conditionparse_lhs (void)
bool parse_rhs (action **dest_rhs)
production_structparse_production (void)
void start_log_file (char *filename, bool append)
void stop_log_file (void)
void print_string_to_log_file_only (char *string)
int get_printer_output_column (void)
void tell_printer_that_output_column_has_been_reset (void)
void start_redirection_to_file (FILE *already_opened_file)
void stop_redirection_to_file (void)
void print_string (char *s)
void print (char *format,...)
 print -- Print a given string using the agent's current print function

void print_with_symbols (char *format,...)
void print ()
void print_with_symbols ()
void print_spaces (int n)
char * string_to_escaped_string (char *s, char first_and_last_char, char *dest)
char * symbol_to_string (Symbol *sym, bool rereadable, char *dest, size_t dest_size)
char * test_to_string (test t, char *dest, size_t dest_size)
char * rhs_value_to_string (rhs_value rv, char *dest, size_t dest_size)
void print_condition_list (condition *conds, int indent, bool internal)
void print_action_list (action *actions, int indent, bool internal)
void print_production (production *p, bool internal)
void print_condition (condition *cond)
void print_action (action *a)
char preference_type_indicator (byte type)
void print_preference (preference *pref)
void print_wme (wme *w)
void print_instantiation_with_wmes (instantiation *inst, wme_trace_type wtt)
void print_list_of_conditions (condition *cond)
void init_production_utilities (void)
char first_letter_from_symbol (Symbol *sym)
listcopy_symbol_list_adding_references (list *sym_list)
void deallocate_symbol_list_removing_references (list *sym_list)
void add_all_variables_in_action (action *a, tc_number tc, list **var_list)
void add_bound_variables_in_test (test t, tc_number tc, list **var_list)
void add_bound_variables_in_condition (condition *c, tc_number tc, list **var_list)
void unmark_variables_and_free_list (list *var_list)
test copy_test (test t)
test copy_test_removing_goal_impasse_tests (test t, bool *removed_goal, bool *removed_impasse)
void deallocate_test (test t)
void add_new_test_to_test (test *t, test add_me)
void add_new_test_to_test_if_not_already_there (test *t, test add_me)
bool tests_are_equal (test t1, test t2)
unsigned long hash_test (test t)
bool test_includes_equality_test_for_symbol (test t, Symbol *sym)
bool test_includes_goal_or_impasse_id_test (test t, bool look_for_goal, bool look_for_impasse)
test copy_of_equality_test_found_in_test (test t)
char first_letter_from_test (test t)
void deallocate_condition_list (condition *cond_list)
conditioncopy_condition (condition *cond)
void copy_condition_list (condition *top_cond, condition **dest_top, condition **dest_bottom)
bool conditions_are_equal (condition *c1, condition *c2)
unsigned long hash_condition (condition *cond)
void deallocate_rhs_value (rhs_value rv)
rhs_value copy_rhs_value (rhs_value rv)
void deallocate_action_list (action *actions)
char first_letter_from_rhs_value (rhs_value rv)
void deallocate_list_of_nots (not *nots)
tc_number get_new_tc_number (void)
void add_symbol_to_tc (Symbol *sym, tc_number tc, list **id_list, list **var_list)
void add_cond_to_tc (condition *c, tc_number tc, list **id_list, list **var_list)
void add_action_to_tc (action *a, tc_number tc, list **id_list, list **var_list)
bool cond_is_in_tc (condition *cond, tc_number tc)
bool action_is_in_tc (action *a, tc_number tc)
void reset_variable_generator (condition *conds_with_vars_to_avoid, action *actions_with_vars_to_avoid)
Symbolgenerate_new_variable (char *prefix)
productionmake_production (byte type, Symbol *name, condition **lhs_top, condition **lhs_bottom, action **rhs_top, bool reorder_nccs)
void deallocate_production (production *prod)
void excise_production (production *prod, bool print_sharp_sign)
bool canonical_cond_greater (condition *c1, condition *c2)
bool reorder_action_list (action **action_list, tc_number lhs_tc)
bool reorder_lhs (condition **lhs_top, condition **lhs_bottom, bool reorder_nccs)
void init_reorderer (void)
void init_firer (void)
void do_preference_phase (void)
preferencefind_clone_for_level (preference *p, goal_stack_level level)
void fill_in_new_instantiation_stuff (instantiation *inst, bool need_to_do_support_calculations)
void build_prohibits_list (instantiation *inst)
void deallocate_instantiation (instantiation *inst)
void trace_locals (goal_stack_level grounds_level)
void trace_grounded_potentials (void)
bool trace_ungrounded_potentials (goal_stack_level grounds_level)
void backtrace_through_instantiation (instantiation *inst, goal_stack_level grounds_level, condition *trace_cond, int indent)
void init_chunker (void)
void chunk_instantiation (instantiation *inst, bool allow_variablization)
chunk_condmake_chunk_cond_for_condition (condition *cond)
bool add_to_chunk_cond_set (chunk_cond_set *set, chunk_cond *new_cc)
void calculate_support_for_instantiation_preferences (instantiation *inst)
void calculate_compile_time_o_support (condition *lhs, action *rhs)
void dougs_calculate_support_for_instantiation_preferences (instantiation *inst)
void init_rete (void)
bool any_assertions_or_retractions_ready (void)
bool get_next_assertion (production **prod, struct token_struct **tok, wme **w)
bool get_next_retraction (struct instantiation_struct **inst)
bool get_next_nil_goal_retraction (struct instantiation_struct **inst)
byte add_production_to_rete (production *p, condition *lhs_top, instantiation *refracted_inst, bool warn_on_duplicates)
void excise_production_from_rete (production *p)
void add_wme_to_rete (wme *w)
void remove_wme_from_rete (wme *w)
void p_node_to_conditions_and_nots (struct rete_node_struct *p_node, struct token_struct *tok, wme *w, condition **dest_top_cond, condition **dest_bottom_cond, not **dest_nots, action **dest_rhs)
Symbolget_symbol_from_rete_loc (unsigned short levels_up, byte field_num, struct token_struct *tok, wme *w)
unsigned long count_rete_tokens_for_production (production *prod)
void print_partial_match_information (struct rete_node_struct *p_node, wme_trace_type wtt)
void print_match_set (wme_trace_type wtt, ms_trace_type mst)
int get_node_count_statistic (const char *node_type_name, const char *column_name, unsigned long *result)
bool save_rete_net (FILE *dest_file)
bool load_rete_net (FILE *source_file)
void add_rhs_function (Symbol *name, rhs_function_routine f, int num_args_expected, bool can_be_rhs_value, bool can_be_stand_alone_action)
rhs_functionlookup_rhs_function (Symbol *name)
void init_built_in_rhs_functions (void)
void init_tracing (void)
bool add_trace_format (bool stack_trace, int type_restriction, Symbol *name_restriction, const char *format_string)
bool remove_trace_format (bool stack_trace, int type_restriction, Symbol *name_restriction)
void print_all_trace_formats (bool stack_trace)
void print_object_trace (Symbol *object)
void print_stack_trace (Symbol *object, Symbol *state, int slot_type, bool allow_cycle_counts)
void init_soar_io (void)
void do_input_cycle (void)
void do_output_cycle (void)
void inform_output_module_of_wm_changes (list *wmes_being_added, list *wmes_being_removed)
Symbolget_new_io_identifier (char first_letter)
Symbolget_io_sym_constant (char *name)
Symbolget_io_int_constant (long value)
Symbolget_io_float_constant (float value)
void release_io_symbol (Symbol *sym)
wmeadd_input_wme (Symbol *id, Symbol *attr, Symbol *value)
bool remove_input_wme (wme *w)
Symbolget_output_value (io_wme *outputs, Symbol *id, Symbol *attr)
Symbolget_next_io_symbol_from_text_input_line (char **text_read_position)
void explain_add_temp_to_backtrace_list (backtrace_str *temp, cons *grounds, cons *pots, cons *locals, cons *negateds)
void explain_add_temp_to_chunk_list (explain_chunk_str *temp)
void reset_backtrace_list (void)
void reset_explain (void)
void init_explain (void)
void explain_full_trace (void)
void explain_chunk (char *chunk_name, int cond_number)
void explain_list_chunks (void)
explain_chunk_strfind_chunk (explain_chunk_str *chunk, char *name)
void explain_trace_chunk (explain_chunk_str *chunk)
conditionfind_ground (explain_chunk_str *chunk, int number)
void explain_trace (char *chunk_name, backtrace_str *prod_list, condition *ground)
agentcreate_soar_agent (char *name)
void destroy_soar_agent (agent *soar_agent)
void init_soar (void)
int terminate_soar (void)

Variables

char * soar_version_string
char * soar_news_string
unsigned long masks_for_n_low_order_bits [33]
char * preference_name [NUM_PREFERENCE_TYPES]
timeval * current_real_time
char * help_on_trace_format_escapes []
unsigned long soar_global_callback_error
agentsoar_agent
listall_soar_agents
int agent_count
char * c_interrupt_msg


Typedef Documentation

typedef struct action_struct action
 

Referenced by action_is_in_tc(), actions_are_equal_with_bindings(), add_action_to_tc(), add_all_variables_in_action(), add_all_variables_in_action_list(), add_production_to_rete(), add_tc_through_lhs_and_rhs(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), capture_input_wme(), chunk_instantiation(), copy_action_list_and_substitute_varnames(), copy_and_variablize_result_list(), create_instantiation(), deallocate_action_list(), destructively_reverse_action_list(), execute_action(), init_production_utilities(), legal_to_execute_action(), make_production(), p_node_left_addition(), p_node_to_conditions_and_nots(), parse_attr_value_make(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_production(), parse_rhs(), parse_rhs_action(), print(), read_rhs_pattern_and_get_matching_productions(), reorder_action_list(), reset_variable_generator(), reteload_action_list(), reteload_rhs_action(), retesave_action_list(), retesave_rhs_action(), same_rhs(), soar_ecReplayInput(), and substitute_for_placeholders_in_action_list().

typedef struct agent_struct agent
 

Referenced by add_input_function(), add_output_function(), cb_appendToSoarResultResult(), cb_soarResult_AppendResult(), control_c_handler(), create_soar_agent(), destroy_soar_agent(), execute_go_selection(), interrupt_rhs_function_code(), just_before_exit_soar(), remove_input_function(), remove_output_function(), replay_input_wme(), run_all_agents(), soar_agent_already_defined(), soar_alternate_input(), soar_cAddCallback(), soar_cAddInputFunction(), soar_cAddOutputFunction(), soar_cDestroyAgentById(), soar_cDestroyAgentByName(), soar_cDestroyAllAgentsWithName(), soar_cGetAgentByName(), soar_cGetAgentId(), soar_cGetAgentInputLinkId(), soar_cGetAgentOutputLinkId(), soar_cGetIdForAgentByName(), soar_cInitAgentIterator(), soar_cListAllCallbacksForEvent(), soar_cPopCallback(), soar_cPushCallback(), soar_cRemoveAllCallbacksForEvent(), soar_cRemoveCallback(), soar_cRemoveInputFunction(), soar_cRemoveOutputFunction(), soar_cRun(), soar_cSetCurrentAgent(), soar_cSetCurrentAgentByName(), soar_default_create_agent_procedure(), soar_default_destroy_agent_procedure(), soar_exists_callback(), soar_exists_callback_id(), soar_init_callbacks(), soar_invoke_callbacks(), soar_invoke_first_callback(), and soar_Run().

typedef struct alias_struct alias_struct
 

typedef struct backtrace_struct backtrace_str
 

Referenced by backtrace_through_instantiation(), explain_add_temp_to_backtrace_list(), explain_trace(), explain_trace_chunk(), and free_backtrace_list().

typedef char bool
 

Definition at line 185 of file soarkernel.h.

typedef struct bt_info_struct bt_info
 

typedef item_in_hash_table* bucket_array
 

Definition at line 583 of file soarkernel.h.

Referenced by resize_hash_table().

typedef unsigned char byte
 

Definition at line 183 of file soarkernel.h.

Referenced by add_hash_info_to_id_test(), add_production_to_rete(), add_rete_test_list_to_tests(), add_rete_tests_for_test(), bind_variables_in_test(), calculate_support_for_instantiation_preferences(), chunk_instantiation(), copy_rhs_value_and_substitute_varnames(), decision_consistent_with_current_preferences(), find_var_location(), generate_chunk_name_sym_constant(), get_symbol_from_rete_loc(), instantiate_rhs_value(), make_new_mem_node(), make_new_mp_node(), make_new_negative_node(), make_new_positive_node(), make_node_for_negative_cond(), make_node_for_positive_cond(), make_preference(), make_production(), merge_into_mp_node(), p_node_left_addition(), parse_preference_specifier_without_referent(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_production(), parse_relational_test(), print(), print_memories(), remove_token_and_subtree(), require_preference_semantics(), reteload_node_and_children(), reteload_one_byte(), reteload_rhs_value(), retesave_alpha_mem_and_assign_index(), retesave_four_bytes(), retesave_one_byte(), retesave_rete_node_and_children(), retesave_rhs_value(), retesave_two_bytes(), reverse_direction_of_relational_test(), run_preference_semantics(), soar_cExciseAllProductionsOfType(), split_mp_node(), and var_bound_in_reconstructed_conds().

typedef struct captured_action_struct captured_action
 

Referenced by replay_input_wme(), and soar_ecReplayInput().

typedef struct chunk_cond_struct chunk_cond
 

Referenced by add_goal_or_impasse_tests(), add_to_chunk_cond_set(), build_chunk_conds_for_grounds_and_add_negateds(), chunk_instantiation(), init_chunker(), make_chunk_cond_for_condition(), remove_from_chunk_cond_set(), reorder_instantiated_conditions(), and second_stage_chunk_instantiation().

typedef struct chunk_cond_set_struct chunk_cond_set
 

Referenced by add_to_chunk_cond_set(), init_chunk_cond_set(), and remove_from_chunk_cond_set().

typedef struct complex_test_struct complex_test
 

Referenced by add_all_variables_in_test(), add_bound_variables_in_test(), add_goal_or_impasse_tests(), add_new_test_to_test(), add_new_test_to_test_if_not_already_there(), add_rete_test_list_to_tests(), add_rete_tests_for_test(), add_test_to_tc(), add_unbound_varnames_in_test(), bind_variables_in_test(), collect_vars_tested_by_test_that_are_bound(), copy_of_equality_test_found_in_test(), copy_test(), copy_test_removing_goal_impasse_tests(), deallocate_test(), first_letter_from_test(), hash_test(), init_production_utilities(), parse_disjunction_test(), parse_head_of_conds_for_one_id(), parse_relational_test(), parse_test(), print(), restore_saved_tests_to_test(), simplify_test(), substitute_for_placeholders_in_test(), test_covered_by_bound_vars(), test_has_id_in_os_tc(), test_includes_equality_test_for_symbol(), test_includes_goal_or_impasse_id_test(), test_is_for_symbol(), test_is_in_tc(), test_tests_for_root(), tests_are_equal(), tests_are_equal_with_bindings(), var_bound_in_reconstructed_conds(), variablize_nots_and_insert_into_conditions(), and variablize_test().

typedef struct condition_struct condition
 

Referenced by add_all_variables_in_condition(), add_all_variables_in_condition_list(), add_bound_variables_in_condition(), add_bound_variables_in_condition_list(), add_cond_to_tc(), add_hash_info_to_id_test(), add_named_superstate_attribute_to_grounds(), add_production_to_rete(), add_rete_test_list_to_tests(), add_tc_through_lhs_and_rhs(), backtrace_through_instantiation(), build_chunk_conds_for_grounds_and_add_negateds(), build_network_for_condition_list(), build_prohibits_list(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), canonical_cond_greater(), chunk_instantiation(), collect_nots(), collect_root_variables(), collect_vars_tested_by_cond_that_are_bound(), cond_is_in_tc(), condition_list_has_id_test_for_sym(), conditions_are_equal(), conditions_are_equal_with_bindings(), copy_action_list_and_substitute_varnames(), copy_cond_list(), copy_condition(), copy_condition_list(), copy_conds_from_list(), copy_rhs_value_and_substitute_varnames(), cost_of_adding_condition(), create_instantiation(), deallocate_condition_list(), deallocate_inst_members_to_be_rewritten(), deallocate_instantiation(), dougs_calculate_support_for_instantiation_preferences(), explain_find_cond(), explain_trace(), fill_in_attr_tests(), fill_in_id_tests(), fill_in_new_instantiation_stuff(), fill_in_vars_requiring_bindings(), find_compile_time_match_goal(), find_ground(), find_known_goals(), find_lowest_cost_lookahead(), find_match_goal(), find_thing_off_goal(), get_nvn_for_condition_list(), hash_condition(), id_or_value_of_condition_list_is_in_os_tc(), init_production_utilities(), make_chunk_cond_for_condition(), make_node_for_negative_cond(), make_node_for_positive_cond(), make_nvn_for_posneg_cond(), make_production(), match_state_tests_non_operator_slot(), negate_condition_list(), p_node_left_addition(), p_node_to_conditions_and_nots(), parse_attr_value_tests(), parse_cond(), parse_cond_plus(), parse_conds_for_one_id(), parse_lhs(), parse_production(), parse_tail_of_conds_for_one_id(), parse_value_test_star(), ppmi_aux(), print(), print_all_conditions_in_block(), print_consed_list_of_condition_wmes(), print_partial_match_information(), re_fill_in_instantiation_stuff_for_modified_lhs(), read_pattern_and_get_matching_productions(), read_rhs_pattern_and_get_matching_productions(), remove_isa_state_tests_for_non_roots(), remove_vars_requiring_bindings(), reorder_condition_list(), reorder_instantiated_conditions(), reorder_lhs(), reorder_simplified_conditions(), reset_variable_generator(), restore_and_deallocate_saved_tests(), rete_node_to_conditions(), run_preference_semantics(), second_stage_chunk_instantiation(), simplify_condition_list(), soar_ecExplainChunkCondition(), soar_ecExplainChunkConditionList(), substitute_for_placeholders_in_condition_list(), trace_grounded_potentials(), trace_locals(), trace_ungrounded_potentials(), var_bound_in_reconstructed_conds(), variablize_condition_list(), and variablize_nots_and_insert_into_conditions().

typedef struct cons_struct cons
 

Referenced by add_all_variables_in_rhs_value(), add_all_variables_in_test(), add_bound_variables_in_test(), add_if_not_member(), add_new_test_to_test(), add_new_test_to_test_if_not_already_there(), add_rete_tests_for_test(), add_test_to_tc(), add_trace_for_attribute_path(), add_unbound_varnames_in_test(), add_var_to_varnames(), add_varnames_to_test(), all_variables_in_rhs_value_bound(), atan2_rhs_function_code(), bind_variables_in_test(), build_chunk_conds_for_grounds_and_add_negateds(), calculate_compile_time_o_support(), cfps_removal_test_function(), collect_root_variables(), collect_vars_tested_by_test_that_are_bound(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), control_c_handler(), copy_conds_from_list(), copy_of_equality_test_found_in_test(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), copy_symbol_list_adding_references(), copy_test_list(), copy_test_removing_goal_impasse_tests(), cost_of_adding_condition(), create_instantiation(), deallocate_rhs_value(), deallocate_symbol_list_removing_references(), deallocate_test(), destructively_reverse_list(), disjunction_rete_test_routine(), do_buffered_wm_changes(), do_promotion(), explain_add_temp_to_backtrace_list(), extract_list_elements(), fill_in_new_instantiation_stuff(), find_compile_time_match_goal(), find_impasse_wme(), first_letter_from_test(), fixup_rhs_value_variable_references(), fp_divide_rhs_function_code(), free_binding_list(), free_list(), get_binding(), get_io_wmes_for_output_link(), get_nots_for_instantiated_conditions(), hash_test(), ifeq_rhs_function_code(), inform_output_module_of_wm_changes(), init_memory_utilities(), instantiate_rhs_value(), interrupt_rhs_function_code(), just_before_exit_soar(), make_constant_symbol_rhs_function_code(), minus_rhs_function_code(), p_node_to_conditions_and_nots(), parse_function_call_after_lparen(), passes_wme_filtering(), plus_rhs_function_code(), pop_bindings_and_deallocate_list_of_variables(), print(), print_binding_list(), print_trace_format_list(), re_fill_in_instantiation_stuff_for_modified_lhs(), remove_output_link_tc_info(), remove_pwatch_test_fn(), reorder_simplified_conditions(), reset_old_binding_point(), reset_variable_generator(), retesave_rete_node_and_children(), retesave_rete_test(), retesave_rhs_value(), round_off_air_rhs_function_code(), round_off_heading_air_rhs_function_code(), run_all_agents(), simplify_test(), single_rete_tests_are_identical(), soar_agent_already_defined(), soar_cAddGlobalCallback(), soar_cDestroyAgentById(), soar_cDestroyAgentByName(), soar_cDestroyAllAgentsWithName(), soar_cGetAgentByName(), soar_cInitAgentIterator(), soar_cListAllCallbacksForEvent(), soar_cRemoveAllCallbacksForEvent(), soar_cRemoveCallback(), soar_cRemoveGlobalCallback(), soar_cRun(), soar_default_destroy_agent_procedure(), soar_ecAddWmeFilter(), soar_ecListWmeFilters(), soar_ecPrintProductionsBeingTraced(), soar_ecRemoveWmeFilter(), soar_ecResetWmeFilters(), soar_ecStopAllProductionTracing(), soar_exists_callback_id(), soar_invoke_callbacks(), soar_invoke_global_callbacks(), soar_Learn(), soar_Print(), soar_PWatch(), soar_Run(), substitute_for_placeholders_in_test(), test_covered_by_bound_vars(), test_has_id_in_os_tc(), test_includes_equality_test_for_symbol(), test_includes_goal_or_impasse_id_test(), test_is_for_symbol(), test_is_in_tc(), test_tests_for_root(), tests_are_equal(), tests_are_equal_with_bindings(), times_rhs_function_code(), trace_grounded_potentials(), trace_locals(), trace_ungrounded_potentials(), unmark_identifiers_and_free_list(), unmark_variables_and_free_list(), update_for_io_wme_change(), var_bound_in_reconstructed_conds(), and variablize_test().

typedef bool(* cons_test_fn)(cons * c)
 

Definition at line 565 of file soarkernel.h.

Referenced by extract_list_elements().

typedef struct dir_stack_struct dir_stack_struct
 

typedef struct dl_cons_struct dl_cons
 

Referenced by do_buffered_acceptable_preference_wme_changes(), do_demotion(), extract_dl_list_elements(), find_impasse_wme(), init_memory_utilities(), mark_context_slot_as_acceptable_preference_changed(), mark_id_and_tc_as_unknown_level(), post_link_removal(), print(), run_preference_semantics(), and walk_and_update_levels().

typedef bool(* dl_cons_test_fn)(dl_cons * dc)
 

Definition at line 566 of file soarkernel.h.

Referenced by extract_dl_list_elements().

typedef dl_cons dl_list
 

Definition at line 547 of file soarkernel.h.

Referenced by extract_dl_list_elements(), and print().

typedef struct expansion_node expansion_node
 

typedef struct explain_chunk_struct explain_chunk_str
 

Referenced by chunk_instantiation(), explain_add_temp_to_chunk_list(), explain_full_trace(), explain_list_chunks(), explain_trace_chunk(), find_chunk(), find_ground(), free_explain_chunk(), reset_explain(), soar_ecExplainChunkCondition(), soar_ecExplainChunkConditionList(), and soar_ecExplainChunkTrace().

typedef struct float_constant_struct float_constant
 

Referenced by hash_float_constant(), and init_symbol_tables().

typedef struct gds_struct goal_dependency_set
 

Referenced by run_preference_semantics().

typedef signed short goal_stack_level
 

Definition at line 259 of file soarkernel.h.

Referenced by backtrace_through_instantiation(), check_context_slot_decisions(), chunk_instantiation(), deallocate_inst_members_to_be_rewritten(), deallocate_instantiation(), execute_go_selection(), fill_in_new_instantiation_stuff(), find_clone_for_level(), find_goal_at_goal_stack_level(), find_goal_for_match_set_change_assertion(), find_match_goal(), generate_chunk_name_sym_constant(), instantiate_rhs_value(), make_new_identifier(), parse_go_command(), parse_run_command(), promote_id_and_tc(), re_fill_in_instantiation_stuff_for_modified_lhs(), run_all_agents(), run_current_agent(), run_for_n_selections_of_slot_at_level(), run_preference_semantics(), second_stage_chunk_instantiation(), soar_Run(), trace_locals(), and trace_ungrounded_potentials().

typedef void* growable_string
 

Definition at line 449 of file soarkernel.h.

Referenced by add_to_growable_string(), add_trace_for_attribute_path(), add_trace_for_wme(), add_values_of_attribute_path(), free_growable_string(), make_blank_growable_string(), object_to_trace_string(), print_object_trace(), print_object_trace_using_provided_format_string(), print_stack_trace(), selection_to_trace_string(), and trace_format_list_to_string().

typedef struct hash_table_struct hash_table
 

Referenced by add_trace_format(), add_wme_to_aht(), find_alpha_mem(), find_or_make_alpha_mem(), lookup_trace_format(), make_hash_table(), remove_ref_to_alpha_mem(), remove_trace_format(), and resize_hash_table().

typedef bool(* hash_table_callback_fn)(void *item)
 

Definition at line 598 of file soarkernel.h.

Referenced by do_for_all_items_in_hash_bucket(), and do_for_all_items_in_hash_table().

typedef struct identifier_struct identifier
 

Referenced by hash_identifier(), and init_symbol_tables().

typedef struct instantiation_struct instantiation
 

Referenced by add_named_superstate_attribute_to_grounds(), add_production_to_rete(), backtrace_through_instantiation(), build_prohibits_list(), calculate_support_for_instantiation_preferences(), chunk_instantiation(), create_instantiation(), deallocate_inst_members_to_be_rewritten(), deallocate_instantiation(), dougs_calculate_support_for_instantiation_preferences(), fill_in_new_instantiation_stuff(), find_match_goal(), generate_chunk_name_sym_constant(), get_next_nil_goal_retraction(), get_next_retraction(), get_nots_for_instantiated_conditions(), get_results_for_instantiation(), init_firer(), make_clones_of_results(), p_node_left_removal(), print(), print_all_instantiations_in_block(), re_fill_in_instantiation_stuff_for_modified_lhs(), retract_instantiation(), run_preference_semantics(), and second_stage_chunk_instantiation().

typedef struct int_constant_struct int_constant
 

Referenced by hash_int_constant(), and init_symbol_tables().

typedef struct io_wme_struct io_wme
 

Referenced by add_wme_to_collected_io_wmes(), deallocate_io_wme_list(), do_output_cycle(), get_io_wmes_for_output_link(), get_output_value(), and init_soar_io().

typedef struct item_in_hash_table_struct item_in_hash_table
 

Referenced by add_to_hash_table(), do_for_all_items_in_hash_bucket(), do_for_all_items_in_hash_table(), remove_from_hash_table(), and resize_hash_table().

typedef struct lexer_source_file_struct lexer_source_file
 

Referenced by start_lex_from_file(), and stop_lex_from_file().

typedef cons list
 

Definition at line 539 of file soarkernel.h.

Referenced by abs_rhs_function_code(), accept_rhs_function_code(), actions_are_equal_with_bindings(), add_action_to_tc(), add_all_variables_in_action(), add_all_variables_in_action_list(), add_all_variables_in_condition(), add_all_variables_in_condition_list(), add_all_variables_in_rhs_value(), add_all_variables_in_test(), add_bound_variables_in_condition(), add_bound_variables_in_condition_list(), add_bound_variables_in_test(), add_cond_to_tc(), add_if_not_member(), add_production_to_rete(), add_symbol_to_tc(), add_tc_through_lhs_and_rhs(), add_test_to_tc(), add_trace_for_attribute_path(), add_values_of_attribute_path(), all_variables_in_rhs_value_bound(), atan2_rhs_function_code(), backtrace_through_instantiation(), bind_variables_in_test(), build_network_for_condition_list(), calculate_compile_time_o_support(), capitalize_symbol_rhs_function_code(), collect_root_variables(), collect_vars_tested_by_cond_that_are_bound(), collect_vars_tested_by_test_that_are_bound(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), cond_is_in_tc(), conditions_are_equal_with_bindings(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), copy_symbol_list_adding_references(), copy_test_list(), cos_rhs_function_code(), cost_of_adding_condition(), crlf_rhs_function_code(), deallocate_instantiation(), deallocate_rhs_value(), deallocate_symbol_list_removing_references(), deallocate_varnames(), div_rhs_function_code(), dont_learn_rhs_function_code(), extract_list_elements(), fill_in_new_instantiation_stuff(), fill_in_vars_requiring_bindings(), find_compile_time_match_goal(), find_known_goals(), find_lowest_cost_lookahead(), find_thing_off_goal(), float_rhs_function_code(), force_learn_rhs_function_code(), fp_divide_rhs_function_code(), free_binding_list(), free_list(), funcalls_match(), get_augs_of_id(), get_binding(), get_nots_for_instantiated_conditions(), get_nvn_for_condition_list(), halt_rhs_function_code(), ifeq_rhs_function_code(), inform_output_module_of_wm_changes(), instantiate_rhs_value(), int_rhs_function_code(), interrupt_rhs_function_code(), make_constant_symbol_rhs_function_code(), make_node_for_negative_cond(), make_node_for_positive_cond(), make_nvn_for_posneg_cond(), member_of_list(), minus_rhs_function_code(), mod_rhs_function_code(), parse_attribute_path_in_brackets(), parse_function_call_after_lparen(), parse_item_from_format_string(), plus_rhs_function_code(), pop_bindings_and_deallocate_list_of_variables(), print(), print_augs_of_id(), print_binding_list(), print_consed_list_of_condition_wmes(), print_consed_list_of_conditions(), print_memories_insert_in_list(), re_fill_in_instantiation_stuff_for_modified_lhs(), read_pattern_and_get_matching_productions(), read_pattern_and_get_matching_wmes(), read_rhs_pattern_and_get_matching_productions(), remove_isa_state_tests_for_non_roots(), reorder_action_list(), reorder_condition_list(), reorder_lhs(), reorder_simplified_conditions(), reset_old_binding_point(), reset_variable_generator(), restore_and_deallocate_saved_tests(), reteload_node_and_children(), reteload_rete_test(), reteload_rhs_value(), reteload_varnames(), retesave_varnames(), round_off_air_rhs_function_code(), round_off_heading_air_rhs_function_code(), sin_rhs_function_code(), soar_cPopCallback(), soar_cRemoveAllCallbacksForEvent(), soar_cRemoveCallback(), soar_cRemoveGlobalCallback(), soar_exists_callback(), soar_exists_global_callback(), soar_init_callbacks(), soar_init_global_callbacks(), soar_invoke_first_callback(), soar_Print(), soar_ProductionFind(), sqrt_rhs_function_code(), strlen_rhs_function_code(), symbols_are_equal_with_bindings(), test_covered_by_bound_vars(), test_tests_for_root(), tests_are_equal_with_bindings(), times_rhs_function_code(), timestamp_rhs_function_code(), unmark_identifiers_and_free_list(), unmark_variables_and_free_list(), user_select_rhsfun(), and write_rhs_function_code().

typedef unsigned long((*hash_function) (void *item, short num_bits))
 

Definition at line 576 of file soarkernel.h.

typedef struct memory_pool_struct memory_pool
 

Referenced by add_block_to_memory_pool(), allocate_with_pool_fn(), check_for_addr_in_free_list(), examine_memory_pool(), free_with_pool_fn(), get_item_in_pool_block(), init_memory_pool(), parse_memory_stats(), soar_ecPrintMemoryPoolStatistics(), and soar_exPrintMemoryPoolStatistics().

typedef struct ms_change_struct ms_change
 

Referenced by add_production_to_rete(), excise_production_from_rete(), find_goal_for_match_set_change_assertion(), find_goal_for_match_set_change_retraction(), get_next_assertion(), get_next_nil_goal_retraction(), get_next_retraction(), init_rete(), p_node_left_addition(), p_node_left_removal(), print_assertion(), print_match_set(), print_retraction(), and run_preference_semantics().

typedef byte ms_trace_type
 

Definition at line 1895 of file soarkernel.h.

Referenced by print_match_set(), soar_ecPrintMatchSet(), and soar_Matches().

typedef struct multi_attributes_struct multi_attribute
 

Referenced by get_cost_of_possible_multi_attribute(), print_multi_attribute_symbols(), and soar_cMultiAttributes().

typedef struct ncc_info_struct ncc_info
 

typedef struct not_struct not
 

Referenced by backtrace_through_instantiation(), chunk_instantiation(), collect_nots(), deallocate_list_of_nots(), get_nots_for_instantiated_conditions(), init_production_utilities(), p_node_to_conditions_and_nots(), second_stage_chunk_instantiation(), and variablize_nots_and_insert_into_conditions().

typedef struct output_call_info_struct output_call_info
 

typedef struct output_link_struct output_link
 

Referenced by calculate_output_link_tc_info(), do_output_cycle(), get_io_wmes_for_output_link(), init_soar_io(), remove_output_link_tc_info(), soar_cRemoveOutputFunction(), update_for_io_wme_change(), and update_for_top_state_wme_addition().

typedef struct pi_struct parent_inst
 

Referenced by run_preference_semantics().

typedef struct preference_struct preference
 

Referenced by add_pref_to_results(), add_preference_to_tm(), add_results_for_id(), add_to_os_tc(), begin_os_tc(), build_prohibits_list(), calculate_support_for_instantiation_preferences(), chunk_instantiation(), copy_and_variablize_result_list(), create_instantiation(), deallocate_inst_members_to_be_rewritten(), deallocate_instantiation(), deallocate_preference(), decision_consistent_with_current_preferences(), do_acceptable_preference_wme_changes_for_slot(), dougs_calculate_support_for_instantiation_preferences(), execute_action(), fill_in_new_instantiation_stuff(), find_clone_for_level(), garbage_collect_id(), generate_chunk_name_sym_constant(), get_results_for_instantiation(), make_clones_of_results(), make_preference(), mark_id_and_tc_as_unknown_level(), possibly_deallocate_preference_and_clones(), print(), print_all_preferences_in_block(), print_candidates(), print_preference_and_source(), process_o_rejects_and_deallocate_them(), promote_id_and_tc(), re_fill_in_instantiation_stuff_for_modified_lhs(), remove_preference_from_clones(), remove_preference_from_tm(), require_preference_semantics(), retract_instantiation(), run_preference_semantics(), second_stage_chunk_instantiation(), soar_cDefaultAskCallback(), soar_ecPrintPreferences(), trace_locals(), trace_ungrounded_potentials(), and walk_and_update_levels().

typedef struct production_struct production
 

Referenced by add_production_to_rete(), add_pwatch(), chunk_instantiation(), compare_firing_counts(), count_rete_tokens_for_production(), create_instantiation(), deallocate_production(), excise_production(), excise_production_from_rete(), get_next_assertion(), init_production_utilities(), make_new_production_node(), make_production(), name_to_production(), p_node_to_conditions_and_nots(), parse_production(), print(), print_all_productions_in_block(), read_pattern_and_get_matching_productions(), read_rhs_pattern_and_get_matching_productions(), remove_pwatch(), reset_production_firing_counts(), reteload_node_and_children(), retesave_rete_node_and_children(), retract_instantiation(), soar_cExciseProductionByName(), soar_ecBeginTracingProductions(), soar_ecPrintAllProductionsOfType(), soar_ecPrintAllProductionsWithInterruptSetting(), soar_ecPrintFiringsForProduction(), soar_ecPrintMatchInfoForProduction(), soar_ecPrintMemories(), soar_ecPrintProductionsBeingTraced(), soar_ecPrintTopProductionFirings(), soar_ecSp(), soar_ecStopAllProductionTracing(), soar_ecStopTracingProductions(), soar_Interrupt(), soar_Memories(), and soar_PWatch().

typedef struct reorder_info_struct reorder_info
 

typedef struct rhs_function_struct rhs_function
 

Referenced by add_rhs_function(), instantiate_rhs_value(), lookup_rhs_function(), parse_function_call_after_lparen(), print(), remove_rhs_function(), reteload_rhs_value(), and retesave_rhs_value().

typedef Symbol*(* rhs_function_routine)(list * args))
 

Definition at line 3035 of file soarkernel.h.

Referenced by add_rhs_function().

typedef char* rhs_value
 

Definition at line 1597 of file soarkernel.h.

Referenced by add_all_variables_in_rhs_value(), all_variables_in_rhs_value_bound(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), first_letter_from_rhs_value(), fixup_rhs_value_variable_references(), instantiate_rhs_value(), parse_attr_value_make(), parse_function_call_after_lparen(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_rhs_action(), parse_rhs_value(), print(), reteload_rhs_value(), and retesave_rhs_value().

typedef struct slot_struct slot
 

Referenced by add_id_to_output_link_tc(), add_named_superstate_attribute_to_grounds(), add_preference_to_tm(), add_results_for_id(), add_to_os_tc(), add_trace_for_attribute_path(), add_values_of_attribute_path(), check_context_slot_decisions(), decision_consistent_with_current_preferences(), do_acceptable_preference_wme_changes_for_slot(), do_buffered_acceptable_preference_wme_changes(), find_impasse_wme(), find_name_of_object(), find_slot(), garbage_collect_id(), get_augs_of_id(), get_io_wmes_for_output_link(), mark_context_slot_as_acceptable_preference_changed(), mark_id_and_tc_as_unknown_level(), print_augs_of_id(), process_o_rejects_and_deallocate_them(), promote_id_and_tc(), read_attribute_from_string(), remove_current_decision(), remove_operator_if_necessary(), remove_preference_from_tm(), require_preference_semantics(), retract_instantiation(), run_preference_semantics(), soar_cRemoveWme(), soar_cRun(), soar_ecPrintPreferences(), and walk_and_update_levels().

typedef struct sym_constant_struct sym_constant
 

Referenced by hash_sym_constant(), and init_symbol_tables().

typedef union symbol_union Symbol
 

Referenced by abs_rhs_function_code(), accept_rhs_function_code(), active_production_type_at_goal(), add_all_variables_in_action(), add_all_variables_in_rhs_value(), add_all_variables_in_test(), add_bound_variables_in_test(), add_gensymmed_equality_test(), add_goal_or_impasse_tests(), add_hash_info_to_id_test(), add_id_to_output_link_tc(), add_input_wme(), add_named_superstate_attribute_to_grounds(), add_results_for_id(), add_rete_test_list_to_tests(), add_rete_tests_for_test(), add_rhs_function(), add_symbol_to_tc(), add_to_os_tc(), add_trace_for_attribute_path(), add_trace_format(), add_unbound_varnames_in_test(), add_values_of_attribute_path(), add_var_to_varnames(), add_varnames_to_test(), all_variables_in_rhs_value_bound(), any_assertions_or_retractions_ready(), atan2_rhs_function_code(), attr_of_slot_just_decided(), backtrace_through_instantiation(), beta_memory_node_left_addition(), bind_variables_in_test(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), canonical_test(), capitalize_symbol_rhs_function_code(), check_context_slot_decisions(), chunk_instantiation(), collect_nots(), collect_root_variables(), collect_vars_tested_by_test_that_are_bound(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), condition_list_has_id_test_for_sym(), constant_equal_rete_test_routine(), constant_greater_or_equal_rete_test_routine(), constant_greater_rete_test_routine(), constant_less_or_equal_rete_test_routine(), constant_less_rete_test_routine(), constant_not_equal_rete_test_routine(), constant_same_type_rete_test_routine(), copy_and_variablize_result_list(), copy_rhs_value_and_substitute_varnames(), copy_symbol_list_adding_references(), copy_test(), cos_rhs_function_code(), cost_of_adding_condition(), create_instantiation(), crlf_rhs_function_code(), deallocate_symbol(), deallocate_symbol_list_removing_references(), deallocate_varnames(), decision_consistent_with_current_preferences(), determine_highest_active_production_level_in_stack_apply(), determine_highest_active_production_level_in_stack_propose(), disjunction_rete_test_routine(), div_rhs_function_code(), do_demotion(), do_print_for_identifier(), do_print_for_production_name(), do_promotion(), dont_learn_rhs_function_code(), dougs_calculate_support_for_instantiation_preferences(), execute_action(), execute_go_selection(), find_alpha_mem(), find_appropriate_trace_format(), find_compile_time_match_goal(), find_float_constant(), find_goal_at_goal_stack_level(), find_goal_for_match_set_change_assertion(), find_goal_for_match_set_change_retraction(), find_identifier(), find_impasse_wme(), find_impasse_wme_value(), find_int_constant(), find_match_goal(), find_name_of_object(), find_or_make_alpha_mem(), find_slot(), find_sym_constant(), find_thing_off_goal(), find_var_location(), find_variable(), first_letter_from_symbol(), fixup_rhs_value_variable_references(), float_rhs_function_code(), force_learn_rhs_function_code(), fp_divide_rhs_function_code(), garbage_collect_id(), generate_chunk_name_sym_constant(), generate_new_sym_constant(), generate_new_variable(), get_augs_of_id(), get_binding(), get_context_var_info(), get_context_var_info_from_string(), get_cost_of_possible_multi_attribute(), get_io_float_constant(), get_io_int_constant(), get_io_sym_constant(), get_io_symbol_from_tio_constituent_string(), get_io_wmes_for_output_link(), get_new_io_identifier(), get_next_io_symbol_from_text_input_line(), get_output_value(), get_symbol_from_rete_loc(), goal_stack_consistent_through_goal(), halt_rhs_function_code(), hash_test(), highest_active_goal_apply(), highest_active_goal_propose(), i_activity_at_goal(), id_or_value_of_condition_list_is_in_os_tc(), ifeq_rhs_function_code(), in_ms_trace(), in_ms_trace_same_goal(), init_rete(), init_soar_agent(), initialize_consistency_calculations_for_new_decision(), instantiate_rhs_value(), int_rhs_function_code(), interrupt_rhs_function_code(), is_state_id(), lookup_rhs_function(), lookup_trace_format(), make_constant_symbol_rhs_function_code(), make_float_constant(), make_int_constant(), make_new_identifier(), make_node_for_negative_cond(), make_node_for_positive_cond(), make_placeholder_test(), make_preference(), make_production(), make_sym_constant(), make_symbol_for_current_lexeme(), make_variable(), make_wme(), mark_id_and_tc_as_unknown_level(), match_state_tests_non_operator_slot(), minor_quiescence_at_goal(), minus_rhs_function_code(), mod_rhs_function_code(), mp_node_left_addition(), mp_node_right_addition(), name_to_production(), negative_node_left_addition(), negative_node_right_addition(), object_to_trace_string(), p_node_to_conditions_and_nots(), parse_attr_value_make(), parse_attribute_path_in_brackets(), parse_function_call_after_lparen(), parse_go_command(), parse_head_of_conds_for_one_id(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_production(), parse_relational_test(), parse_rhs_action(), parse_run_command(), plus_rhs_function_code(), positive_node_left_addition(), positive_node_right_addition(), post_link_addition(), post_link_removal(), print(), print_all_identifiers_in_block(), print_augs_of_id(), print_object_trace(), print_object_trace_using_provided_format_string(), print_stack_trace(), print_trace_format_list(), print_tracing_rule(), promote_id_and_tc(), read_attribute_from_string(), read_id_or_context_var_from_string(), read_identifier_or_context_variable(), read_pattern_and_get_matching_wmes(), read_pattern_component(), read_wme_filter_component(), release_io_symbol(), remove_output_link_tc_info(), remove_rhs_function(), remove_trace_format(), reorder_simplified_conditions(), require_preference_semantics(), reset_gensym_number(), reset_tc_num(), reset_variable_generator(), restore_saved_tests_to_test(), reteload_all_symbols(), reteload_alpha_memories(), reteload_node_and_children(), reteload_rete_test(), reteload_rhs_value(), reteload_symbol_from_index(), reteload_varnames(), retesave_rete_node_and_children(), retesave_rete_test(), retesave_rhs_value(), retesave_symbol_and_assign_index(), retesave_varnames(), round_off_air_rhs_function_code(), round_off_heading_air_rhs_function_code(), run_all_agents(), run_current_agent(), run_for_n_selections_of_slot(), run_for_n_selections_of_slot_at_level(), run_preference_semantics(), second_stage_chunk_instantiation(), selection_to_trace_string(), setSoarResultResult(), simplify_test(), sin_rhs_function_code(), soar_cAddWme(), soar_cMultiAttributes(), soar_cRemoveWme(), soar_cRun(), soar_ecAddWmeFilter(), soar_ecGDSPrint(), soar_ecPrintPreferences(), soar_ecRemoveWmeFilter(), soar_FormatWatch(), soar_Interrupt(), soar_Learn(), soar_Preferences(), soar_Print(), soar_Run(), sqrt_rhs_function_code(), strlen_rhs_function_code(), substitute_for_placeholders_in_action_list(), substitute_for_placeholders_in_symbol(), substitute_for_placeholders_in_test(), symbol_is_in_tc(), symbols_are_equal_with_bindings(), test_covered_by_bound_vars(), test_has_id_in_os_tc(), test_includes_equality_test_for_symbol(), test_is_for_symbol(), test_tests_for_root(), times_rhs_function_code(), timestamp_rhs_function_code(), trace_format_list_to_string(), unmark_identifiers_and_free_list(), unmark_variables_and_free_list(), update_max_rhs_unbound_variables(), user_select_rhsfun(), var_bound_in_reconstructed_conds(), variable_equal_rete_test_routine(), variable_greater_or_equal_rete_test_routine(), variable_greater_rete_test_routine(), variable_less_or_equal_rete_test_routine(), variable_less_rete_test_routine(), variable_not_equal_rete_test_routine(), variable_same_type_rete_test_routine(), variablize_nots_and_insert_into_conditions(), variablize_symbol(), variablize_test(), walk_and_update_levels(), wme_filter_component_match(), and write_rhs_function_code().

typedef struct symbol_common_data_struct symbol_common_data
 

typedef unsigned long tc_number
 

Definition at line 294 of file soarkernel.h.

Referenced by action_is_in_tc(), add_action_to_tc(), add_all_variables_in_action(), add_all_variables_in_action_list(), add_all_variables_in_condition(), add_all_variables_in_condition_list(), add_all_variables_in_rhs_value(), add_all_variables_in_test(), add_bound_variables_in_condition(), add_bound_variables_in_condition_list(), add_bound_variables_in_test(), add_cond_to_tc(), add_goal_or_impasse_tests(), add_symbol_to_tc(), add_tc_through_lhs_and_rhs(), add_test_to_tc(), all_variables_in_rhs_value_bound(), backtrace_through_instantiation(), build_chunk_conds_for_grounds_and_add_negateds(), calculate_compile_time_o_support(), chunk_instantiation(), collect_root_variables(), collect_vars_tested_by_cond_that_are_bound(), collect_vars_tested_by_test_that_are_bound(), cond_is_in_tc(), cost_of_adding_condition(), do_print_for_identifier(), do_print_for_wme(), fill_in_vars_requiring_bindings(), find_compile_time_match_goal(), find_known_goals(), find_lowest_cost_lookahead(), find_thing_off_goal(), get_augs_of_id(), get_new_tc_number(), get_nots_for_instantiated_conditions(), legal_to_execute_action(), make_production(), print_augs_of_id(), reorder_action_list(), reorder_condition_list(), reorder_lhs(), reorder_simplified_conditions(), reset_variable_generator(), restore_and_deallocate_saved_tests(), restore_saved_tests_to_test(), second_stage_chunk_instantiation(), symbol_is_in_tc(), test_covered_by_bound_vars(), test_is_in_tc(), and trace_grounded_potentials().

typedef char* test
 

Definition at line 1452 of file soarkernel.h.

Referenced by add_all_variables_in_test(), add_bound_variables_in_test(), add_gensymmed_equality_test(), add_goal_or_impasse_tests(), add_hash_info_to_id_test(), add_new_test_to_test(), add_new_test_to_test_if_not_already_there(), add_rete_test_list_to_tests(), add_rete_tests_for_test(), add_test_to_tc(), add_unbound_varnames_in_test(), add_varnames_to_test(), bind_variables_in_test(), canonical_test(), collect_vars_tested_by_test_that_are_bound(), copy_of_equality_test_found_in_test(), copy_test(), copy_test_removing_goal_impasse_tests(), deallocate_test(), fill_in_attr_tests(), fill_in_id_tests(), first_letter_from_test(), goal_stack_consistent_through_goal(), hash_test(), make_placeholder_test(), parse_attr_value_tests(), parse_conds_for_one_id(), parse_disjunction_test(), parse_head_of_conds_for_one_id(), parse_relational_test(), parse_simple_test(), parse_test(), parse_value_test_star(), print(), remove_isa_state_tests_for_non_roots(), restore_saved_tests_to_test(), simplify_test(), substitute_for_placeholders_in_test(), test_covered_by_bound_vars(), test_has_id_in_os_tc(), test_includes_equality_test_for_symbol(), test_includes_goal_or_impasse_id_test(), test_is_for_symbol(), test_is_in_tc(), test_tests_for_root(), tests_are_equal(), tests_are_equal_with_bindings(), var_bound_in_reconstructed_conds(), variablize_nots_and_insert_into_conditions(), and variablize_test().

typedef struct three_field_tests_struct three_field_tests
 

typedef bool(* user_interface_routine)(void)
 

Definition at line 2371 of file soarkernel.h.

typedef struct variable_struct variable
 

Referenced by hash_variable(), and init_symbol_tables().

typedef struct wme_struct wme
 

Referenced by add_id_to_output_link_tc(), add_input_wme(), add_named_superstate_attribute_to_grounds(), add_results_for_id(), add_to_os_tc(), add_trace_for_attribute_path(), add_trace_for_wme(), add_values_of_attribute_path(), add_wme_to_aht(), add_wme_to_alpha_mem(), add_wme_to_collected_io_wmes(), add_wme_to_rete(), add_wme_to_wm(), beta_memory_node_left_addition(), calculate_support_for_instantiation_preferences(), capture_input_wme(), cn_node_left_addition(), cn_partner_node_left_addition(), collect_nots(), compare_attr(), constant_equal_rete_test_routine(), constant_greater_or_equal_rete_test_routine(), constant_greater_rete_test_routine(), constant_less_or_equal_rete_test_routine(), constant_less_rete_test_routine(), constant_not_equal_rete_test_routine(), constant_same_type_rete_test_routine(), create_instantiation(), deallocate_wme(), decision_consistent_with_current_preferences(), disjunction_rete_test_routine(), do_acceptable_preference_wme_changes_for_slot(), do_buffered_wm_changes(), do_input_cycle(), do_print_for_wme(), dougs_calculate_support_for_instantiation_preferences(), dummy_matches_node_left_addition(), error_rete_test_routine(), execute_action(), find_goal_for_match_set_change_assertion(), find_impasse_wme(), find_impasse_wme_value(), find_or_make_alpha_mem(), get_augs_of_id(), get_context_var_info_from_string(), get_io_wmes_for_output_link(), get_next_assertion(), get_symbol_from_rete_loc(), id_is_goal_rete_test_routine(), id_is_impasse_rete_test_routine(), inform_output_module_of_wm_changes(), instantiate_rhs_value(), make_wme(), mark_id_and_tc_as_unknown_level(), mp_node_left_addition(), mp_node_right_addition(), neatly_print_wme_augmentation_of_id(), negative_node_left_addition(), negative_node_right_addition(), p_node_left_addition(), p_node_left_removal(), p_node_to_conditions_and_nots(), passes_wme_filtering(), positive_node_right_addition(), print(), print_all_wmes_in_block(), print_augs_of_id(), promote_id_and_tc(), read_pattern_and_get_matching_wmes(), remove_input_wme(), remove_operator_if_necessary(), remove_wme_from_alpha_mem(), remove_wme_from_rete(), remove_wme_from_wm(), remove_wme_list_from_wm(), rete_error_left(), rete_error_right(), rete_node_to_conditions(), retract_instantiation(), run_preference_semantics(), soar_AddWme(), soar_cAddWme(), soar_cGetWmeAttr(), soar_cGetWmeId(), soar_cGetWmeTimetag(), soar_cGetWmeValue(), soar_cRemoveWme(), soar_cRemoveWmeUsingTimetag(), soar_ecGDSPrint(), soar_Print(), unhashed_beta_memory_node_left_addition(), unhashed_mp_node_left_addition(), unhashed_mp_node_right_addition(), unhashed_negative_node_left_addition(), unhashed_negative_node_right_addition(), unhashed_positive_node_right_addition(), update_for_io_wme_change(), update_for_top_state_wme_addition(), update_for_top_state_wme_removal(), variable_equal_rete_test_routine(), variable_greater_or_equal_rete_test_routine(), variable_greater_rete_test_routine(), variable_less_or_equal_rete_test_routine(), variable_less_rete_test_routine(), variable_not_equal_rete_test_routine(), variable_same_type_rete_test_routine(), and walk_and_update_levels().

typedef byte wme_trace_type
 

Definition at line 1907 of file soarkernel.h.

Referenced by create_instantiation(), ppmi_aux(), print(), print_all_instantiations_in_block(), print_match_set(), print_partial_match_information(), print_preference_and_source(), print_whole_token(), read_pref_detail_from_string(), retract_instantiation(), soar_ecPrintMatchInfoForProduction(), soar_ecPrintMatchSet(), soar_ecPrintPreferences(), soar_Matches(), and soar_Preferences().


Enumeration Type Documentation

enum agent_id_state
 

Enumeration values:
UNTOUCHED 
TOUCHED 
ALLOCATED 

Definition at line 206 of file soarkernel.h.

enum captured_action_type
 

Enumeration values:
ADD_WME 
REMOVE_WME 

Definition at line 3259 of file soarkernel.h.

enum go_type_enum
 

Enumeration values:
GO_PHASE 
GO_ELABORATION 
GO_DECISION 
GO_STATE 
GO_OPERATOR 
GO_SLOT 
GO_OUTPUT 

Definition at line 2129 of file soarkernel.h.

Referenced by soar_Run().

enum lexer_token_type
 

Enumeration values:
EOF_LEXEME 
IDENTIFIER_LEXEME 
VARIABLE_LEXEME 
SYM_CONSTANT_LEXEME 
INT_CONSTANT_LEXEME 
FLOAT_CONSTANT_LEXEME 
L_PAREN_LEXEME 
R_PAREN_LEXEME 
L_BRACE_LEXEME 
R_BRACE_LEXEME 
PLUS_LEXEME 
MINUS_LEXEME 
RIGHT_ARROW_LEXEME 
GREATER_LEXEME 
LESS_LEXEME 
EQUAL_LEXEME 
LESS_EQUAL_LEXEME 
GREATER_EQUAL_LEXEME 
NOT_EQUAL_LEXEME 
LESS_EQUAL_GREATER_LEXEME 
LESS_LESS_LEXEME 
GREATER_GREATER_LEXEME 
AMPERSAND_LEXEME 
AT_LEXEME 
TILDE_LEXEME 
UP_ARROW_LEXEME 
EXCLAMATION_POINT_LEXEME 
COMMA_LEXEME 
PERIOD_LEXEME 
QUOTED_STRING_LEXEME 
DOLLAR_STRING_LEXEME 

Definition at line 648 of file soarkernel.h.

enum ni_mode
 

Enumeration values:
NUMERIC_INDIFFERENT_MODE_AVG 
NUMERIC_INDIFFERENT_MODE_SUM 

Definition at line 213 of file soarkernel.h.

enum top_level_phase
 

Enumeration values:
INPUT_PHASE 
DETERMINE_LEVEL_PHASE 
PREFERENCE_PHASE 
WM_PHASE 
OUTPUT_PHASE 
DECISION_PHASE 

Definition at line 2144 of file soarkernel.h.


Function Documentation

void abort_with_fatal_error char *   ) 
 

Definition at line 109 of file init_soar.c.

References print(), soar_agent, soar_call_data, soar_invoke_callbacks(), stop_log_file(), and SYSTEM_TERMINATION_CALLBACK.

Referenced by add_rete_test_list_to_tests(), add_rete_tests_for_test(), allocate_memory(), copy_of_equality_test_found_in_test(), deallocate_preference(), deallocate_production(), deallocate_rete_node(), deallocate_symbol(), error_rete_test_routine(), find_goal_for_match_set_change_assertion(), get_next_assertion(), get_next_char(), hash_condition(), hash_test(), highest_active_goal_apply(), highest_active_goal_propose(), init_memory_pool(), make_symbol_for_current_lexeme(), merge_into_mp_node(), next_available_agent_id(), p_node_left_removal(), print(), print_trace_format_list(), promote_id_and_tc(), remove_output_link_tc_info(), remove_token_and_subtree(), rete_error_left(), rete_error_right(), reteload_am_from_index(), reteload_node_and_children(), reteload_rhs_value(), reteload_symbol_from_index(), retesave_rete_node_and_children(), reverse_direction_of_relational_test(), run_preference_semantics(), single_rete_tests_are_identical(), soar_default_destroy_agent_procedure(), trace_format_list_to_string(), update_node_with_matches_from_above(), var_bound_in_reconstructed_conds(), and variablize_nots_and_insert_into_conditions().

bool action_is_in_tc action a,
tc_number  tc
 

Definition at line 1437 of file production.c.

References action, action_struct::id, symbol_is_in_tc(), tc_number, and action_struct::type.

Referenced by add_tc_through_lhs_and_rhs(), and calculate_compile_time_o_support().

void add_action_to_tc action a,
tc_number  tc,
list **  id_list,
list **  var_list
 

Definition at line 1354 of file production.c.

References action, add_symbol_to_tc(), action_struct::id, list, action_struct::preference_type, action_struct::referent, tc_number, action_struct::type, and action_struct::value.

Referenced by add_tc_through_lhs_and_rhs().

void add_all_variables_in_action action a,
tc_number  tc,
list **  var_list
 

Definition at line 1261 of file production.c.

References action, add_all_variables_in_rhs_value(), action_struct::attr, action_struct::id, list, action_struct::preference_type, action_struct::referent, Symbol, tc_number, action_struct::type, and action_struct::value.

Referenced by add_all_variables_in_action_list(), and reorder_action_list().

void add_block_to_memory_pool memory_pool p  ) 
 

Definition at line 226 of file mem.c.

References allocate_memory(), memory_pool_struct::first_block, memory_pool_struct::free_list, memory_pool_struct::item_size, memory_pool_struct::items_per_block, memory_pool, and memory_pool_struct::num_blocks.

Referenced by allocate_with_pool_fn().

void add_bound_variables_in_condition condition c,
tc_number  tc,
list **  var_list
 

Definition at line 1144 of file production.c.

References add_bound_variables_in_test(), three_field_tests_struct::attr_test, condition, condition_struct::data, three_field_tests_struct::id_test, list, tc_number, condition_struct::condition_main_data_union::tests, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by add_bound_variables_in_condition_list(), fill_in_vars_requiring_bindings(), find_lowest_cost_lookahead(), and reorder_simplified_conditions().

void add_bound_variables_in_test test  t,
tc_number  tc,
list **  var_list
 

Definition at line 1121 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, cons_struct::first, list, cons_struct::rest, Symbol, tc_number, test, and complex_test_struct::type.

Referenced by add_bound_variables_in_condition(), calculate_compile_time_o_support(), collect_root_variables(), find_known_goals(), find_thing_off_goal(), reorder_lhs(), and restore_and_deallocate_saved_tests().

void add_command char *  command_name,
user_interface_routine  f
 

void add_cond_to_tc condition c,
tc_number  tc,
list **  id_list,
list **  var_list
 

Definition at line 1346 of file production.c.

References add_test_to_tc(), condition, condition_struct::data, three_field_tests_struct::id_test, list, tc_number, condition_struct::condition_main_data_union::tests, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by add_tc_through_lhs_and_rhs(), build_chunk_conds_for_grounds_and_add_negateds(), cond_is_in_tc(), and trace_grounded_potentials().

void add_help char *  topic,
char **  lines_of_text
 

list* add_if_not_member void *  item,
list old_list
 

Definition at line 340 of file mem.c.

References cons, cons_struct::first, list, and cons_struct::rest.

Referenced by collect_vars_tested_by_test_that_are_bound().

wme* add_input_wme Symbol id,
Symbol attr,
Symbol value
 

Definition at line 126 of file io.c.

References add_wme_to_wm(), symbol_union::id, identifier_struct::input_wmes, make_wme(), print(), Symbol, and wme.

Referenced by do_input_cycle().

void add_new_test_to_test test t,
test  add_me
 

Definition at line 344 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, cons_struct::first, cons_struct::rest, test, and complex_test_struct::type.

Referenced by add_gensymmed_equality_test(), add_goal_or_impasse_tests(), add_hash_info_to_id_test(), add_new_test_to_test_if_not_already_there(), add_rete_test_list_to_tests(), add_varnames_to_test(), copy_test_removing_goal_impasse_tests(), parse_attr_value_tests(), parse_head_of_conds_for_one_id(), parse_test(), parse_value_test_star(), and variablize_nots_and_insert_into_conditions().

void add_new_test_to_test_if_not_already_there test t,
test  add_me
 

Definition at line 389 of file production.c.

References add_new_test_to_test(), complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, deallocate_test(), cons_struct::first, cons_struct::rest, test, tests_are_equal(), and complex_test_struct::type.

Referenced by restore_saved_tests_to_test().

void add_preference_to_tm preference pref  ) 
 

Definition at line 219 of file prefmem.c.

References slot_struct::all_preferences, preference_struct::attr, preference_struct::id, preference_struct::in_tm, preference_struct::inst, slot_struct::isa_context_slot, make_slot(), mark_context_slot_as_acceptable_preference_changed(), mark_slot_as_changed(), instantiation_struct::match_goal_level, preference_struct::match_goal_level, preference_struct::next, post_link_addition(), preference, slot_struct::preferences, preference_struct::prev, print(), print_preference(), preference_struct::referent, preference_struct::slot, slot, preference_struct::type, and preference_struct::value.

Referenced by retract_instantiation().

byte add_production_to_rete production p,
condition lhs_top,
instantiation refracted_inst,
bool  warn_on_duplicates
 

Definition at line 3043 of file rete.c.

References action, production_struct::action_list, adjust_sharing_factors_from_here_to_top(), production_struct::already_fired, action_struct::attr, rete_node_struct::b, build_network_for_condition_list(), byte, condition, deallocate_symbol_list_removing_references(), destructively_reverse_list(), discard_chunk_varnames, rete_node_struct::first_child, fixup_rhs_value_variable_references(), get_new_tc_number(), get_nvn_for_condition_list(), ms_change_struct::goal, symbol_union::id, action_struct::id, ms_change_struct::inst, instantiation, production_struct::instantiations, ms_change_struct::level, list, make_new_production_node(), ms_change, identifier_struct::ms_retractions, production_struct::name, action_struct::next, rete_node_struct::next_sibling, rete_node_struct::node_type, num_rhs_unbound_vars_for_new_prod, rete_node_struct::rete_node_b_union::p, production_struct::p_node, ms_change_struct::p_node, p_node_data_struct::parents_nvn, pop_bindings_and_deallocate_list_of_variables(), action_struct::preference_type, print_with_symbols(), instantiation_struct::prod, p_node_data_struct::prod, production, PRODUCTION_JUST_ADDED_CALLBACK, action_struct::referent, rete_node, rete_node_level, instantiation_struct::rete_token, instantiation_struct::rete_wme, production_struct::rhs_unbound_variables, rhs_unbound_vars_for_new_prod, rhs_unbound_vars_tc, same_rhs(), soar_agent, soar_call_data, soar_invoke_callbacks(), p_node_data_struct::tentative_retractions, production_struct::type, action_struct::type, update_max_rhs_unbound_variables(), update_node_with_matches_from_above(), and action_struct::value.

Referenced by chunk_instantiation(), and parse_production().

void add_pwatch struct production_struct prod  ) 
 

Referenced by soar_ecBeginTracingProductions().

void add_rhs_function Symbol name,
rhs_function_routine  f,
int  num_args_expected,
bool  can_be_rhs_value,
bool  can_be_stand_alone_action
 

Definition at line 70 of file rhsfun.c.

References allocate_memory(), available_rhs_functions, rhs_function_struct::name, rhs_function_struct::next, print(), print_with_symbols(), rhs_function, rhs_function_routine, and Symbol.

Referenced by add_bot_rhs_functions(), init_built_in_rhs_functions(), and init_built_in_rhs_math_functions().

void add_symbol_to_tc Symbol sym,
tc_number  tc,
list **  id_list,
list **  var_list
 

Definition at line 1317 of file production.c.

References list, Symbol, and tc_number.

Referenced by add_action_to_tc(), add_test_to_tc(), and calculate_compile_time_o_support().

bool add_to_chunk_cond_set chunk_cond_set set,
chunk_cond new_cc
 

Definition at line 403 of file chunk.c.

References chunk_cond_set_struct::all, chunk_cond, chunk_cond_set, chunk_cond_struct::compressed_hash_value, chunk_cond_struct::cond, conditions_are_equal(), chunk_cond_struct::hash_value, chunk_cond_struct::next_in_bucket, and chunk_cond_set_struct::table.

Referenced by backtrace_through_instantiation().

void add_to_growable_string growable_string gs,
char *  string_to_add
 

Definition at line 170 of file mem.c.

References allocate_memory(), free_memory(), and growable_string.

Referenced by add_trace_for_attribute_path(), add_trace_for_wme(), add_values_of_attribute_path(), object_to_trace_string(), and trace_format_list_to_string().

void add_to_hash_table struct hash_table_struct ht,
void *  item
 

Definition at line 531 of file mem.c.

References hash_table_struct::buckets, hash_table_struct::count, hash_table_struct::h, item_in_hash_table, hash_table_struct::log2size, item_in_hash_table_struct::next, resize_hash_table(), and hash_table_struct::size.

Referenced by add_trace_format(), find_or_make_alpha_mem(), make_float_constant(), make_int_constant(), make_new_identifier(), make_sym_constant(), and make_variable().

bool add_trace_format bool  stack_trace,
int  type_restriction,
Symbol name_restriction,
const char *  format_string
 

Definition at line 779 of file trace.c.

References add_to_hash_table(), allocate_memory(), tracing_rule_struct::format, hash_table, tracing_rule_struct::name_restriction, parse_format_string(), remove_trace_format(), Symbol, trace_format, tracing_rule, and tracing_rule_struct::type_restriction.

Referenced by init_soar_agent(), and soar_FormatWatch().

void add_wme_to_rete wme w  ) 
 

Definition at line 1241 of file rete.c.

References wme_struct::acceptable, add_wme_to_aht(), wme_struct::attr, wme_struct::id, wme_struct::right_mems, wme_struct::tokens, wme_struct::value, and wme.

Referenced by do_buffered_wm_changes().

void add_wme_to_wm wme w  ) 
 

Definition at line 127 of file wmem.c.

References wme_struct::attr, wme_struct::id, symbol_union::id, identifier_struct::isa_operator, post_link_addition(), wme_struct::value, and wme.

Referenced by add_input_wme(), do_acceptable_preference_wme_changes_for_slot(), run_preference_semantics(), and soar_cAddWme().

void* allocate_memory unsigned long  size,
int  usage_code
 

Definition at line 60 of file mem.c.

References abort_with_fatal_error().

Referenced by add_block_to_memory_pool(), add_rhs_function(), add_to_growable_string(), add_trace_format(), allocate_memory_and_zerofill(), get_augs_of_id(), make_blank_growable_string(), make_hash_table(), make_memory_block_for_string(), parse_item_from_format_string(), print_match_set(), read_rest_of_floating_point_number(), reteload_all_symbols(), reteload_alpha_memories(), run_preference_semantics(), soar_cLoadReteNet(), soar_cMultiAttributes(), soar_cSaveReteNet(), soar_ecAddWmeFilter(), soar_ecPrintMemories(), soar_ecPrintTopProductionFirings(), soar_ecReplayInput(), start_lex_from_file(), and symbols_are_equal_with_bindings().

void* allocate_memory_and_zerofill unsigned long  size,
int  usage_code
 

Definition at line 91 of file mem.c.

References allocate_memory().

Referenced by init_rete(), make_hash_table(), resize_hash_table(), and update_max_rhs_unbound_variables().

void allocate_with_pool_fn memory_pool p,
void **  dest
 

Definition at line 204 of file debugutil.c.

References add_block_to_memory_pool(), and memory_pool.

bool any_assertions_or_retractions_ready void   ) 
 

Definition at line 823 of file rete.c.

References identifier_struct::higher_goal, symbol_union::id, identifier_struct::ms_i_assertions, identifier_struct::ms_o_assertions, identifier_struct::ms_retractions, and Symbol.

Referenced by determine_highest_active_production_level_in_stack_apply(), and do_one_top_level_phase().

void backtrace_through_instantiation instantiation inst,
goal_stack_level  grounds_level,
condition trace_cond,
int  indent
 

Definition at line 162 of file backtrace.c.

References add_to_chunk_cond_set(), instantiation_struct::backtrace_number, backtrace_str, condition_struct::bt, condition, condition_struct::data, explain_add_temp_to_backtrace_list(), free_list(), get_new_tc_number(), goal_stack_level, backtrace_struct::grounds, symbol_union::id, three_field_tests_struct::id_test, instantiation, identifier_struct::isa_goal, bt_info_struct::level, list, backtrace_struct::locals, make_chunk_cond_for_condition(), sym_constant_struct::name, production_struct::name, backtrace_struct::negated, not_struct::next, condition_struct::next, backtrace_struct::next_backtrace, not, instantiation_struct::nots, instantiation_struct::okay_to_variablize, backtrace_struct::potentials, print(), print_consed_list_of_condition_wmes(), print_consed_list_of_conditions(), print_spaces(), print_string(), print_with_symbols(), instantiation_struct::prod, backtrace_struct::prod_name, backtrace_struct::result, not_struct::s1, not_struct::s2, symbol_union::sc, Symbol, identifier_struct::tc_num, tc_number, condition_struct::condition_main_data_union::tests, instantiation_struct::top_of_instantiated_conditions, backtrace_struct::trace_cond, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by chunk_instantiation(), second_stage_chunk_instantiation(), trace_locals(), and trace_ungrounded_potentials().

void build_prohibits_list instantiation inst  ) 
 

Definition at line 85 of file recmem.c.

References condition_struct::bt, condition, find_clone_for_level(), preference_struct::in_tm, preference_struct::inst, instantiation, instantiation_struct::match_goal_level, preference_struct::next, condition_struct::next, preference, slot_struct::preferences, bt_info_struct::prohibits, preference_struct::slot, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, and condition_struct::type.

Referenced by create_instantiation().

void calculate_compile_time_o_support condition lhs,
action rhs
 

Definition at line 1049 of file osupport.c.

References action, action_is_in_tc(), add_bound_variables_in_test(), add_symbol_to_tc(), add_tc_through_lhs_and_rhs(), action_struct::attr, three_field_tests_struct::attr_test, condition, condition_list_has_id_test_for_sym(), cons, condition_struct::data, find_compile_time_match_goal(), find_known_goals(), find_thing_off_goal(), cons_struct::first, free_list(), get_new_tc_number(), action_struct::id, three_field_tests_struct::id_test, list, match_state_tests_non_operator_slot(), MAYBE, condition_struct::next, action_struct::next, NO, action_struct::preference_type, print(), cons_struct::rest, action_struct::support, Symbol, tc_number, test_is_for_symbol(), condition_struct::condition_main_data_union::tests, condition_struct::type, action_struct::type, action_struct::value, three_field_tests_struct::value_test, YES, and yes_no_maybe.

Referenced by make_production().

void calculate_support_for_instantiation_preferences instantiation inst  ) 
 

Definition at line 270 of file osupport.c.

References wme_struct::acceptable, action, production_struct::action_list, preference_struct::attr, wme_struct::attr, action_struct::attr, begin_os_tc(), condition_struct::bt, byte, condition, production_struct::declared_support, get_symbol_from_rete_loc(), preference_struct::id, action_struct::id, symbol_union::id, wme_struct::id, id_or_value_of_condition_list_is_in_os_tc(), preference_struct::inst_next, instantiation, is_state_id(), identifier_struct::isa_goal, identifier_struct::level, instantiation_struct::match_goal, production_struct::name, condition_struct::next, action_struct::next, preference_struct::o_supported, preference, action_struct::preference_type, instantiation_struct::preferences_generated, print(), print_with_symbols(), instantiation_struct::prod, instantiation_struct::rete_token, rhs_value_to_string(), Symbol, identifier_struct::tc_num, instantiation_struct::top_of_instantiated_conditions, preference_struct::type, condition_struct::type, action_struct::type, preference_struct::value, wme_struct::value, bt_info_struct::wme, and wme.

Referenced by fill_in_new_instantiation_stuff(), and re_fill_in_instantiation_stuff_for_modified_lhs().

bool canonical_cond_greater condition c1,
condition c2
 

Definition at line 547 of file production.c.

References three_field_tests_struct::attr_test, condition, condition_struct::data, condition_struct::condition_main_data_union::tests, and three_field_tests_struct::value_test.

Referenced by reorder_simplified_conditions().

void chunk_instantiation instantiation inst,
bool  allow_variablization
 

Definition at line 926 of file chunk.c.

References action, explain_chunk_struct::actions, add_goal_or_impasse_tests(), add_named_superstate_attribute_to_grounds(), add_production_to_rete(), explain_chunk_struct::all_grounds, identifier_struct::allow_bottom_up_chunks, explain_chunk_struct::backtrace, backtrace_through_instantiation(), instantiation_struct::bottom_of_instantiated_conditions, build_chunk_conds_for_grounds_and_add_negateds(), byte, chunk_cond, chunk_cond_struct::cond, condition, explain_chunk_struct::conds, copy_and_variablize_result_list(), copy_condition_list(), deallocate_action_list(), deallocate_condition_list(), excise_production(), explain_add_temp_to_chunk_list(), explain_chunk_str, fill_in_new_instantiation_stuff(), free_list(), instantiation_struct::GDS_evaluated_already, generate_chunk_name_sym_constant(), generate_new_sym_constant(), get_new_tc_number(), get_nots_for_instantiated_conditions(), get_printer_output_column(), get_results_for_instantiation(), goal_stack_level, identifier_struct::higher_goal, symbol_union::id, preference_struct::id, instantiation_struct::in_ms, preference_struct::inst, preference_struct::inst_next, instantiation, identifier_struct::isa_goal, instantiation_struct::isa_ssci_inst, identifier_struct::level, make_clones_of_results(), make_production(), preference_struct::match_goal, instantiation_struct::match_goal, preference_struct::match_goal_level, instantiation_struct::match_goal_level, member_of_list(), sym_constant_struct::name, explain_chunk_struct::name, production_struct::name, chunk_cond_struct::next, instantiation_struct::next, explain_chunk_struct::next_chunk, preference_struct::next_result, not, instantiation_struct::nots, preference_struct::o_supported, instantiation_struct::okay_to_variablize, preference, instantiation_struct::preferences_generated, print(), print_action_list(), print_condition_list(), print_instantiation_with_wmes(), print_preference(), print_production(), print_string(), print_with_symbols(), instantiation_struct::prod, production, preference_struct::reference_count, reorder_instantiated_conditions(), reset_backtrace_list(), reset_variable_generator(), symbol_union::sc, second_stage_chunk_instantiation(), start_timer(), stop_timer(), Symbol, tc_number, instantiation_struct::top_of_instantiated_conditions, trace_grounded_potentials(), trace_locals(), trace_ungrounded_potentials(), variablize_condition_list(), variablize_nots_and_insert_into_conditions(), and chunk_cond_struct::variablized_cond.

Referenced by create_instantiation().

void clear_goal_stack void   ) 
 

Referenced by run_preference_semantics(), and soar_cReInitSoar().

bool cond_is_in_tc condition cond,
tc_number  tc
 

Definition at line 1396 of file production.c.

References add_cond_to_tc(), condition_struct::already_in_tc, condition, condition_struct::data, three_field_tests_struct::id_test, list, condition_struct::condition_main_data_union::ncc, condition_struct::next, tc_number, test_is_in_tc(), condition_struct::condition_main_data_union::tests, ncc_info_struct::top, condition_struct::type, unmark_identifiers_and_free_list(), and unmark_variables_and_free_list().

Referenced by add_tc_through_lhs_and_rhs(), build_chunk_conds_for_grounds_and_add_negateds(), and trace_grounded_potentials().

bool conditions_are_equal condition c1,
condition c2
 

Definition at line 820 of file production.c.

References three_field_tests_struct::attr_test, condition, condition_struct::data, three_field_tests_struct::id_test, condition_struct::condition_main_data_union::ncc, condition_struct::next, condition_struct::test_for_acceptable_preference, condition_struct::condition_main_data_union::tests, tests_are_equal(), ncc_info_struct::top, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by add_to_chunk_cond_set(), and explain_find_cond().

void control_c_handler int  the_signal  ) 
 

Definition at line 22 of file sysdep.c.

References agent, all_soar_agents, c_interrupt_msg, cons, control_c_handler(), cons_struct::first, agent_struct::reason_for_stopping, cons_struct::rest, and agent_struct::stop_soar.

Referenced by control_c_handler(), get_next_char(), setup_signal_handling(), soar_cAddOutputFunction(), and soar_cStopAllAgents().

condition* copy_condition condition cond  ) 
 

Definition at line 763 of file production.c.

References three_field_tests_struct::attr_test, condition_struct::bt, condition, copy_condition_list(), copy_test(), condition_struct::data, three_field_tests_struct::id_test, condition_struct::condition_main_data_union::ncc, condition_struct::test_for_acceptable_preference, condition_struct::condition_main_data_union::tests, ncc_info_struct::top, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by build_chunk_conds_for_grounds_and_add_negateds(), copy_condition_list(), copy_conds_from_list(), and explain_add_temp_to_backtrace_list().

void copy_condition_list condition top_cond,
condition **  dest_top,
condition **  dest_bottom
 

Definition at line 794 of file production.c.

References condition, copy_condition(), condition_struct::next, and condition_struct::prev.

Referenced by chunk_instantiation(), copy_cond_list(), and copy_condition().

test copy_of_equality_test_found_in_test test  t  ) 
 

Definition at line 705 of file production.c.

References abort_with_fatal_error(), complex_test, complex_test_struct::test_info_union::conjunct_list, cons, copy_test(), complex_test_struct::data, cons_struct::first, cons_struct::rest, test, and complex_test_struct::type.

Referenced by fill_in_attr_tests(), fill_in_id_tests(), parse_conds_for_one_id(), parse_head_of_conds_for_one_id(), and print().

rhs_value copy_rhs_value rhs_value  rv  ) 
 

Definition at line 929 of file production.c.

References cons, cons_struct::first, list, cons_struct::rest, and rhs_value.

Referenced by parse_preferences(), and parse_preferences_soar8_non_operator().

list* copy_symbol_list_adding_references list sym_list  ) 
 

Definition at line 147 of file production.c.

References cons, cons_struct::first, list, cons_struct::rest, and Symbol.

Referenced by add_rete_test_list_to_tests(), add_rete_tests_for_test(), and copy_test().

test copy_test test  t  ) 
 

Definition at line 209 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, copy_symbol_list_adding_references(), copy_test_list(), complex_test_struct::data, complex_test_struct::test_info_union::disjunction_list, complex_test_struct::test_info_union::referent, Symbol, test, and complex_test_struct::type.

Referenced by copy_condition(), copy_of_equality_test_found_in_test(), copy_test_list(), copy_test_removing_goal_impasse_tests(), fill_in_attr_tests(), fill_in_id_tests(), parse_attr_value_tests(), and tests_are_equal_with_bindings().

test copy_test_removing_goal_impasse_tests test  t,
bool removed_goal,
bool removed_impasse
 

Definition at line 251 of file production.c.

References add_new_test_to_test(), complex_test, complex_test_struct::test_info_union::conjunct_list, cons, copy_test(), complex_test_struct::data, destructively_reverse_list(), cons_struct::first, cons_struct::rest, test, and complex_test_struct::type.

Referenced by print(), remove_isa_state_tests_for_non_roots(), and tests_are_equal_with_bindings().

unsigned long count_rete_tokens_for_production production prod  ) 
 

Definition at line 6907 of file rete.c.

References rete_node_struct::a, rete_node_struct::b, rete_node_struct::rete_node_b_union::cn, token_struct::next_of_node, rete_node_struct::node_type, rete_node_struct::rete_node_a_union::np, production_struct::p_node, rete_node_struct::parent, cn_node_data_struct::partner, production, rete_node, token, and non_pos_node_data_struct::tokens.

Referenced by soar_ecPrintMemories(), and soar_Memories().

void create_predefined_symbols void   ) 
 

Definition at line 555 of file symtab.c.

References make_sym_constant(), and make_variable().

Referenced by init_soar_agent().

agent* create_soar_agent char *  name  ) 
 

Definition at line 12 of file legacy.c.

References agent, soar_cCreateAgent(), and soar_cGetAgentByName().

void create_top_goal void   ) 
 

Referenced by do_one_top_level_phase(), and run_preference_semantics().

int current_lexer_parentheses_level void   ) 
 

Definition at line 1092 of file lexer.c.

Referenced by read_pattern_and_get_matching_wmes().

void deallocate_action_list action actions  ) 
 

Definition at line 961 of file production.c.

References action, action_struct::attr, deallocate_rhs_value(), action_struct::id, action_struct::next, action_struct::preference_type, action_struct::referent, action_struct::type, and action_struct::value.

Referenced by chunk_instantiation(), deallocate_production(), free_explain_chunk(), parse_attr_value_make(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_production(), parse_rhs(), parse_rhs_action(), print(), and read_rhs_pattern_and_get_matching_productions().

void deallocate_condition_list condition cond_list  ) 
 

Definition at line 740 of file production.c.

References three_field_tests_struct::attr_test, condition, condition_struct::data, three_field_tests_struct::id_test, condition_struct::condition_main_data_union::ncc, condition_struct::next, condition_struct::condition_main_data_union::tests, ncc_info_struct::top, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by chunk_instantiation(), deallocate_inst_members_to_be_rewritten(), deallocate_instantiation(), free_backtrace_list(), free_explain_chunk(), parse_attr_value_tests(), parse_cond(), parse_cond_plus(), parse_production(), parse_tail_of_conds_for_one_id(), parse_value_test_star(), print(), print_partial_match_information(), read_pattern_and_get_matching_productions(), read_rhs_pattern_and_get_matching_productions(), and second_stage_chunk_instantiation().

void deallocate_instantiation instantiation inst  ) 
 

Definition at line 789 of file recmem.c.

References condition_struct::bt, condition, deallocate_condition_list(), deallocate_list_of_nots(), free_list(), goal_stack_level, instantiation, instantiation_struct::isa_ssci_inst, list, instantiation_struct::match_goal_level, production_struct::name, condition_struct::next, instantiation_struct::nots, preference, print(), print_with_symbols(), instantiation_struct::prod, bt_info_struct::prohibits, production_struct::reference_count, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, condition_struct::type, and bt_info_struct::wme.

void deallocate_list_of_nots not nots  ) 
 

Definition at line 1004 of file production.c.

References not_struct::next, not, not_struct::s1, and not_struct::s2.

Referenced by deallocate_inst_members_to_be_rewritten(), and deallocate_instantiation().

void deallocate_preference preference pref  ) 
 

Definition at line 97 of file prefmem.c.

References abort_with_fatal_error(), preference_struct::attr, preference_struct::id, symbol_union::id, preference_struct::inst, instantiation_struct::match_goal, preference_struct::match_goal, preference_struct::on_goal_list, preference, identifier_struct::preferences_from_goal, instantiation_struct::preferences_generated, print(), print_preference(), preference_struct::reference_count, preference_struct::referent, preference_struct::type, and preference_struct::value.

Referenced by possibly_deallocate_preference_and_clones(), and remove_preference_from_clones().

void deallocate_production production prod  ) 
 

Definition at line 1606 of file production.c.

References abort_with_fatal_error(), production_struct::action_list, deallocate_action_list(), deallocate_symbol_list_removing_references(), production_struct::documentation, production_struct::filename, free_memory_block_for_string(), production_struct::instantiations, production_struct::name, print_with_symbols(), production, and production_struct::rhs_unbound_variables.

void deallocate_rhs_value rhs_value  rv  ) 
 

Definition at line 906 of file production.c.

References cons, cons_struct::first, free_list(), list, cons_struct::rest, and rhs_value.

Referenced by deallocate_action_list(), parse_attr_value_make(), and parse_function_call_after_lparen().

void deallocate_symbol Symbol sym  ) 
 

Definition at line 416 of file symtab.c.

References abort_with_fatal_error(), free_memory_block_for_string(), variable_struct::name, sym_constant_struct::name, print_with_symbols(), remove_from_hash_table(), symbol_union::sc, Symbol, and symbol_union::var.

void deallocate_symbol_list_removing_references list sym_list  ) 
 

Definition at line 174 of file production.c.

References cons, cons_struct::first, list, cons_struct::rest, and Symbol.

Referenced by add_production_to_rete(), deallocate_production(), deallocate_rete_test_list(), deallocate_test(), deallocate_trace_format_list(), deallocate_varnames(), and parse_attribute_path_in_brackets().

void deallocate_test test  t  ) 
 

Definition at line 293 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, deallocate_symbol_list_removing_references(), complex_test_struct::test_info_union::disjunction_list, cons_struct::first, complex_test_struct::test_info_union::referent, cons_struct::rest, test, and complex_test_struct::type.

Referenced by add_new_test_to_test_if_not_already_there(), fill_in_attr_tests(), fill_in_id_tests(), parse_attr_value_tests(), parse_conds_for_one_id(), parse_disjunction_test(), parse_head_of_conds_for_one_id(), parse_test(), print(), and remove_isa_state_tests_for_non_roots().

void deallocate_wme wme w  ) 
 

Definition at line 249 of file wmem.c.

References wme_struct::attr, wme_struct::id, print_with_symbols(), print_wme(), wme_struct::value, and wme.

void destroy_soar_agent agent soar_agent  ) 
 

Definition at line 21 of file legacy.c.

References agent, and soar_cDestroyAgentByAddress().

list* destructively_reverse_list list c  ) 
 

Referenced by add_production_to_rete(), copy_test_removing_goal_impasse_tests(), fill_in_new_instantiation_stuff(), parse_attribute_path_in_brackets(), parse_disjunction_test(), parse_test(), re_fill_in_instantiation_stuff_for_modified_lhs(), reteload_node_and_children(), reteload_rete_test(), reteload_rhs_value(), and reteload_varnames().

void determine_possible_symbol_types_for_string char *  s,
int  length_of_s,
bool possible_id,
bool possible_var,
bool possible_sc,
bool possible_ic,
bool possible_fc,
bool rereadable
 

Definition at line 1140 of file lexer.c.

References constituent_char, and number_starters.

Referenced by determine_type_of_constituent_string(), get_io_symbol_from_tio_constituent_string(), and print().

void determine_type_of_constituent_string void   ) 
 

Definition at line 318 of file lexer.c.

References determine_possible_symbol_types_for_string(), FLOAT_CONSTANT_LEXEME, IDENTIFIER_LEXEME, INT_CONSTANT_LEXEME, print(), print_location_of_most_recent_lexeme(), QUOTED_STRING_LEXEME, SYM_CONSTANT_LEXEME, and VARIABLE_LEXEME.

Referenced by get_lexeme_from_string(), lex_ampersand(), lex_constituent_string(), lex_digit(), lex_equal(), lex_greater(), lex_less(), lex_minus(), lex_period(), and lex_plus().

bool dispatch_command void   ) 
 

void do_buffered_wm_and_ownership_changes void   ) 
 

Referenced by do_input_cycle(), remove_current_decision(), run_preference_semantics(), soar_cAddWme(), and soar_cRemoveWme().

void do_buffered_wm_changes void   ) 
 

Definition at line 171 of file wmem.c.

References add_wme_to_rete(), cons, filtered_print_wme_add(), filtered_print_wme_remove(), cons_struct::first, inform_output_module_of_wm_changes(), remove_wme_from_rete(), cons_struct::rest, soar_agent, soar_call_data, soar_invoke_callbacks(), start_timer(), stop_timer(), WM_CHANGES_CALLBACK, and wme.

Referenced by run_preference_semantics().

void do_decision_phase void   ) 
 

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void do_for_all_items_in_hash_bucket struct hash_table_struct ht,
hash_table_callback_fn  f,
unsigned long  hash_value
 

Definition at line 558 of file mem.c.

References hash_table_struct::buckets, hash_table_callback_fn, item_in_hash_table, hash_table_struct::log2size, masks_for_n_low_order_bits, and item_in_hash_table_struct::next.

void do_for_all_items_in_hash_table struct hash_table_struct ht,
hash_table_callback_fn  f
 

Definition at line 545 of file mem.c.

References hash_table_struct::buckets, hash_table_callback_fn, item_in_hash_table, item_in_hash_table_struct::next, and hash_table_struct::size.

Referenced by print_all_trace_formats(), reset_id_and_variable_tc_numbers(), reset_variable_gensym_numbers(), retesave_alpha_memories(), retesave_symbol_table(), and soar_ecPrintInternalSymbols().

void do_input_cycle void   ) 
 

Definition at line 207 of file io.c.

References add_input_wme(), do_buffered_wm_and_ownership_changes(), get_new_io_identifier(), INPUT_PHASE_CALLBACK, make_sym_constant(), print(), release_io_symbol(), soar_agent, soar_call_data, soar_invoke_callbacks(), and wme.

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void do_output_cycle void   ) 
 

Definition at line 614 of file io.c.

References calculate_output_link_tc_info(), output_link_struct::cb, callback_struct::data, deallocate_io_wme_list(), callback_struct::function, get_io_wmes_for_output_link(), io_wme, output_link_struct::link_wme, output_call_info_struct::mode, output_link_struct::next, output_call_data, output_link, output_call_info_struct::outputs, print(), remove_output_link_tc_info(), soar_agent, and output_link_struct::status.

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void do_preference_phase void   ) 
 

Referenced by do_one_top_level_phase(), retract_instantiation(), and soar_cReInitSoar().

void do_working_memory_phase void   ) 
 

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void dougs_calculate_support_for_instantiation_preferences instantiation inst  ) 
 

Definition at line 661 of file osupport.c.

References preference_struct::attr, wme_struct::attr, condition_struct::bt, condition, get_new_tc_number(), symbol_union::id, preference_struct::id, wme_struct::id, preference_struct::inst_next, instantiation, instantiation_struct::match_goal, condition_struct::next, preference_struct::o_supported, preference, instantiation_struct::preferences_generated, preference_struct::referent, Symbol, identifier_struct::tc_num, instantiation_struct::top_of_instantiated_conditions, preference_struct::type, condition_struct::type, preference_struct::value, bt_info_struct::wme, and wme.

Referenced by fill_in_new_instantiation_stuff(), and re_fill_in_instantiation_stuff_for_modified_lhs().

void excise_production production prod,
bool  print_sharp_sign
 

Definition at line 1629 of file production.c.

References excise_production_from_rete(), production_struct::name, production_struct::p_node, print(), print_with_symbols(), sym_constant_struct::production, production, production_struct::reference_count, remove_pwatch(), symbol_union::sc, production_struct::trace_firings, and production_struct::type.

Referenced by chunk_instantiation(), parse_production(), retract_instantiation(), soar_cExciseAllProductionsOfType(), and soar_cExciseProductionByName().

void excise_production_from_rete production p  ) 
 

Definition at line 3235 of file rete.c.

References rete_node_struct::a, adjust_sharing_factors_from_here_to_top(), rete_node_struct::b, deallocate_node_varnames(), deallocate_rete_node(), rete_node_struct::first_child, ms_change, ms_change_struct::next_of_node, rete_node_struct::rete_node_a_union::np, rete_node_struct::rete_node_b_union::p, ms_change_struct::p_node, production_struct::p_node, rete_node_struct::parent, p_node_data_struct::parents_nvn, production, PRODUCTION_JUST_ABOUT_TO_BE_EXCISED_CALLBACK, remove_node_from_parents_list_of_children(), remove_token_and_subtree(), rete_node, soar_agent, soar_call_data, soar_invoke_callbacks(), p_node_data_struct::tentative_retractions, and non_pos_node_data_struct::tokens.

Referenced by excise_production().

void exit_soar void   ) 
 

Definition at line 101 of file init_soar.c.

References just_before_exit_soar().

Referenced by terminate_soar().

void explain_add_temp_to_backtrace_list backtrace_str temp,
cons grounds,
cons pots,
cons locals,
cons negateds
 

Definition at line 178 of file explain.c.

References backtrace_str, cons, copy_condition(), copy_conds_from_list(), backtrace_struct::grounds, backtrace_struct::locals, backtrace_struct::negated, condition_struct::next, backtrace_struct::next_backtrace, backtrace_struct::potentials, backtrace_struct::prod_name, backtrace_struct::result, and backtrace_struct::trace_cond.

Referenced by backtrace_through_instantiation().

void explain_add_temp_to_chunk_list explain_chunk_str temp  ) 
 

Definition at line 212 of file explain.c.

References explain_chunk_struct::actions, explain_chunk_struct::all_grounds, explain_chunk_struct::backtrace, explain_chunk_struct::conds, copy_cond_list(), explain_chunk_str, explain_chunk_struct::name, and explain_chunk_struct::next_chunk.

Referenced by chunk_instantiation().

void explain_chunk char *  chunk_name,
int  cond_number
 

Definition at line 112 of file legacy.c.

References soar_ecExplainChunkCondition().

void explain_full_trace void   ) 
 

Definition at line 493 of file explain.c.

References explain_chunk_str, explain_trace_chunk(), and explain_chunk_struct::next_chunk.

void explain_list_chunks void   ) 
 

Definition at line 470 of file explain.c.

References explain_chunk_str, explain_chunk_struct::name, explain_chunk_struct::next_chunk, and print().

Referenced by soar_ExplainBacktraces().

void explain_trace char *  chunk_name,
backtrace_str prod_list,
condition ground
 

Definition at line 381 of file explain.c.

References backtrace_str, condition, explain_find_cond(), backtrace_struct::grounds, backtrace_struct::locals, backtrace_struct::negated, backtrace_struct::next_backtrace, backtrace_struct::potentials, print(), print_condition(), backtrace_struct::prod_name, backtrace_struct::result, soar_ecExplainChunkTrace(), and backtrace_struct::trace_cond.

Referenced by soar_ecExplainChunkCondition().

void explain_trace_chunk explain_chunk_str chunk  ) 
 

Definition at line 329 of file explain.c.

References explain_chunk_struct::backtrace, backtrace_str, explain_chunk_str, backtrace_struct::grounds, backtrace_struct::locals, explain_chunk_struct::name, backtrace_struct::negated, backtrace_struct::next_backtrace, backtrace_struct::potentials, print(), print_condition(), print_list_of_conditions(), print_string(), backtrace_struct::prod_name, backtrace_struct::result, and backtrace_struct::trace_cond.

Referenced by explain_full_trace(), and soar_ecExplainChunkTrace().

dl_list* extract_dl_list_elements dl_list **  header,
dl_cons_test_fn  f
 

Definition at line 394 of file mem.c.

References dl_cons, dl_cons_test_fn, dl_list, dl_cons_struct::next, and dl_cons_struct::prev.

Referenced by print().

list* extract_list_elements list **  header,
cons_test_fn  f
 

Definition at line 364 of file mem.c.

References cons, cons_test_fn, list, and cons_struct::rest.

Referenced by remove_pwatch().

void fake_rparen_at_next_end_of_line void   ) 
 

Definition at line 1109 of file lexer.c.

void fill_in_new_instantiation_stuff instantiation inst,
bool  need_to_do_support_calculations
 

Definition at line 414 of file recmem.c.

References instantiation_struct::backtrace_number, condition_struct::bt, calculate_support_for_instantiation_preferences(), condition, cons, production_struct::declared_support, destructively_reverse_list(), dougs_calculate_support_for_instantiation_preferences(), find_clone_for_level(), find_match_goal(), cons_struct::first, goal_stack_level, symbol_union::id, preference_struct::inst, preference_struct::inst_next, instantiation, list, instantiation_struct::match_goal, preference_struct::match_goal, preference_struct::match_goal_level, instantiation_struct::match_goal_level, production_struct::name, condition_struct::next, preference_struct::o_supported, preference_struct::on_goal_list, preference, identifier_struct::preferences_from_goal, instantiation_struct::preferences_generated, print_with_symbols(), instantiation_struct::prod, cons_struct::rest, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, condition_struct::type, and bt_info_struct::wme.

Referenced by chunk_instantiation(), and create_instantiation().

explain_chunk_str* find_chunk explain_chunk_str chunk,
char *  name
 

Definition at line 286 of file explain.c.

References explain_chunk_str, explain_chunk_struct::name, explain_chunk_struct::next_chunk, and print().

Referenced by soar_ecExplainChunkCondition(), soar_ecExplainChunkConditionList(), and soar_ecExplainChunkTrace().

preference* find_clone_for_level preference p,
goal_stack_level  level
 

Definition at line 126 of file recmem.c.

References goal_stack_level, preference_struct::inst, instantiation_struct::match_goal_level, preference_struct::match_goal_level, preference_struct::next_clone, preference, and preference_struct::prev_clone.

Referenced by build_prohibits_list(), deallocate_inst_members_to_be_rewritten(), fill_in_new_instantiation_stuff(), re_fill_in_instantiation_stuff_for_modified_lhs(), trace_locals(), and trace_ungrounded_potentials().

Symbol* find_float_constant float  value  ) 
 

Definition at line 274 of file symtab.c.

References symbol_union::fc, hash_float_constant_raw_info(), Symbol, and float_constant_struct::value.

Referenced by make_float_constant(), read_attribute_from_string(), and read_pattern_component().

condition* find_ground explain_chunk_str chunk,
int  number
 

Definition at line 307 of file explain.c.

References explain_chunk_struct::all_grounds, condition, explain_chunk_str, condition_struct::next, and print().

Referenced by soar_ecExplainChunkCondition().

Symbol* find_identifier char  name_letter,
unsigned long  name_number
 

Definition at line 232 of file symtab.c.

References hash_identifier_raw_info(), symbol_union::id, identifier_struct::name_letter, identifier_struct::name_number, and Symbol.

Referenced by read_attribute_from_string(), read_id_or_context_var_from_string(), read_identifier_or_context_variable(), read_pattern_component(), and read_wme_filter_component().

Symbol* find_int_constant long  value  ) 
 

Definition at line 260 of file symtab.c.

References hash_int_constant_raw_info(), symbol_union::ic, Symbol, and int_constant_struct::value.

Referenced by make_int_constant(), read_attribute_from_string(), and read_pattern_component().

Symbol* find_name_of_object Symbol id  ) 
 

Definition at line 262 of file wmem.c.

References find_slot(), slot, Symbol, wme_struct::value, and slot_struct::wmes.

Referenced by object_to_trace_string().

slot* find_slot Symbol id,
Symbol attr
 

Definition at line 72 of file tempmem.c.

References slot_struct::attr, symbol_union::id, slot_struct::next, slot, identifier_struct::slots, and Symbol.

Referenced by add_named_superstate_attribute_to_grounds(), add_values_of_attribute_path(), find_name_of_object(), process_o_rejects_and_deallocate_them(), read_attribute_from_string(), retract_instantiation(), run_preference_semantics(), and soar_ecPrintPreferences().

Symbol* find_sym_constant const char *  name  ) 
 

Definition at line 246 of file symtab.c.

References hash_sym_constant_raw_info(), sym_constant_struct::name, symbol_union::sc, and Symbol.

Referenced by add_named_superstate_attribute_to_grounds(), do_print_for_production_name(), generate_chunk_name_sym_constant(), generate_new_sym_constant(), make_constant_symbol_rhs_function_code(), make_sym_constant(), name_to_production(), parse_function_call_after_lparen(), read_attribute_from_string(), read_pattern_component(), and soar_Interrupt().

Symbol* find_variable char *  name  ) 
 

Definition at line 218 of file symtab.c.

References hash_variable_raw_info(), variable_struct::name, Symbol, and symbol_union::var.

Referenced by get_context_var_info_from_string(), and make_variable().

char first_letter_from_rhs_value rhs_value  rv  ) 
 

Definition at line 987 of file production.c.

References first_letter_from_symbol(), and rhs_value.

Referenced by copy_action_list_and_substitute_varnames(), and parse_attr_value_make().

char first_letter_from_symbol Symbol sym  ) 
 

Definition at line 94 of file production.c.

References symbol_union::id, sym_constant_struct::name, variable_struct::name, identifier_struct::name_letter, symbol_union::sc, Symbol, and symbol_union::var.

Referenced by execute_action(), first_letter_from_rhs_value(), and first_letter_from_test().

char first_letter_from_test test  t  ) 
 

Definition at line 113 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, cons_struct::first, first_letter_from_symbol(), cons_struct::rest, test, and complex_test_struct::type.

Referenced by add_rete_test_list_to_tests(), parse_attr_value_tests(), and rete_node_to_conditions().

void free_growable_string growable_string  gs  ) 
 

Definition at line 192 of file mem.c.

References free_memory(), and growable_string.

Referenced by add_trace_for_attribute_path(), add_trace_for_wme(), add_values_of_attribute_path(), print_object_trace(), print_object_trace_using_provided_format_string(), print_stack_trace(), and trace_format_list_to_string().

void free_list list the_list  ) 
 

Definition at line 353 of file mem.c.

References cons, list, and cons_struct::rest.

Referenced by backtrace_through_instantiation(), calculate_compile_time_o_support(), chunk_instantiation(), deallocate_instantiation(), deallocate_rhs_value(), find_compile_time_match_goal(), find_thing_off_goal(), free_binding_list(), instantiate_rhs_value(), remove_pwatch(), remove_vars_requiring_bindings(), reorder_lhs(), reorder_simplified_conditions(), reset_variable_generator(), second_stage_chunk_instantiation(), soar_Print(), and soar_ProductionFind().

void free_memory void *  mem,
int  usage_code
 

Definition at line 100 of file mem.c.

Referenced by add_to_growable_string(), deallocate_trace_format_list(), free_binding_list(), free_growable_string(), free_memory_block_for_string(), print_augs_of_id(), print_match_set(), remove_rhs_function(), remove_trace_format(), remove_wme_from_wm(), reset_old_binding_point(), resize_hash_table(), reteload_free_am_table(), reteload_free_symbol_table(), run_preference_semantics(), soar_cLoadReteNet(), soar_cSaveReteNet(), soar_ecPrintMemories(), soar_ecPrintTopProductionFirings(), soar_ecRemoveWmeFilter(), soar_ecResetWmeFilters(), stop_lex_from_file(), and update_max_rhs_unbound_variables().

void free_memory_block_for_string char *  p  ) 
 

Definition at line 152 of file mem.c.

References free_memory().

Referenced by deallocate_production(), deallocate_symbol(), deallocate_trace_format_list(), parse_production(), read_rest_of_floating_point_number(), stop_lex_from_file(), and stop_log_file().

void free_with_pool_fn memory_pool p,
void *  item
 

Definition at line 217 of file debugutil.c.

References memory_pool.

Symbol* generate_new_sym_constant char *  prefix,
unsigned long counter
 

Definition at line 534 of file symtab.c.

References find_sym_constant(), make_sym_constant(), and Symbol.

Referenced by chunk_instantiation(), generate_chunk_name_sym_constant(), and make_constant_symbol_rhs_function_code().

Symbol* generate_new_variable char *  prefix  ) 
 

Definition at line 1489 of file production.c.

References make_variable(), Symbol, and tolower().

Referenced by add_gensymmed_equality_test(), copy_rhs_value_and_substitute_varnames(), simplify_test(), substitute_for_placeholders_in_symbol(), and variablize_symbol().

Symbol* get_io_float_constant float  value  ) 
 

Definition at line 116 of file io.c.

References make_float_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string().

Symbol* get_io_int_constant long  value  ) 
 

Definition at line 111 of file io.c.

References make_int_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string().

Symbol* get_io_sym_constant char *  name  ) 
 

Definition at line 106 of file io.c.

References make_sym_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string(), and get_next_io_symbol_from_text_input_line().

void get_lexeme void   ) 
 

Definition at line 839 of file lexer.c.

References do_fake_rparen(), get_next_char(), lex_eof(), lexer_routines(), and whitespace.

Referenced by lex_unknown(), parse_attr_value_make(), parse_attr_value_tests(), parse_cond(), parse_disjunction_test(), parse_function_call_after_lparen(), parse_head_of_conds_for_one_id(), parse_preference_specifier_without_referent(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_production(), parse_relational_test(), parse_rhs_action(), parse_rhs_value(), parse_tail_of_conds_for_one_id(), parse_test(), parse_value_test_star(), read_pattern_and_get_matching_wmes(), skip_ahead_to_balanced_parentheses(), soar_ecSp(), soar_Print(), and soar_ProductionFind().

Symbol* get_new_io_identifier char  first_letter  ) 
 

Definition at line 100 of file io.c.

References make_new_identifier(), and Symbol.

Referenced by do_input_cycle().

tc_number get_new_tc_number void   ) 
 

Definition at line 1041 of file production.c.

References current_tc_number, reset_id_and_variable_tc_numbers(), and tc_number.

Referenced by add_goal_or_impasse_tests(), add_production_to_rete(), backtrace_through_instantiation(), begin_os_tc(), calculate_compile_time_o_support(), calculate_output_link_tc_info(), chunk_instantiation(), do_demotion(), do_print_for_identifier(), do_print_for_wme(), dougs_calculate_support_for_instantiation_preferences(), find_compile_time_match_goal(), find_known_goals(), find_thing_off_goal(), get_results_for_instantiation(), make_production(), print_object_trace(), print_object_trace_using_provided_format_string(), print_stack_trace(), reorder_lhs(), reset_variable_generator(), second_stage_chunk_instantiation(), trace_grounded_potentials(), and update_for_top_state_wme_addition().

bool get_next_assertion production **  prod,
struct token_struct **  tok,
wme **  w
 

Definition at line 875 of file rete.c.

References abort_with_fatal_error(), rete_node_struct::b, ms_change, rete_node_struct::rete_node_b_union::p, ms_change_struct::p_node, p_node_data_struct::prod, production, p_node_data_struct::tentative_assertions, ms_change_struct::tok, ms_change_struct::w, and wme.

Referenced by retract_instantiation().

Symbol* get_next_io_symbol_from_text_input_line char **  text_read_position  ) 
 

Definition at line 790 of file io.c.

References get_io_sym_constant(), get_io_symbol_from_tio_constituent_string(), Symbol, tio_constituent_char, and tio_whitespace.

Referenced by accept_rhs_function_code().

bool get_next_nil_goal_retraction struct instantiation_struct **  inst  ) 
 

Referenced by retract_instantiation().

bool get_next_retraction struct instantiation_struct **  inst  ) 
 

Referenced by retract_instantiation().

int get_node_count_statistic const char *  node_type_name,
const char *  column_name,
unsigned long result
 

Definition at line 7035 of file rete.c.

References actual, bnode_type_names, get_all_node_count_stats(), if_no_merging, and if_no_sharing.

Referenced by parse_rete_stats().

Symbol* get_output_value io_wme outputs,
Symbol id,
Symbol attr
 

Definition at line 715 of file io.c.

References io_wme_struct::attr, io_wme_struct::id, io_wme, io_wme_struct::next, Symbol, and io_wme_struct::value.

int get_printer_output_column void   ) 
 

Definition at line 128 of file print.c.

Referenced by chunk_instantiation(), create_instantiation(), neatly_print_wme_augmentation_of_id(), print(), print_consed_list_of_condition_wmes(), print_consed_list_of_conditions(), retract_instantiation(), second_stage_chunk_instantiation(), and soar_ecExplainChunkConditionList().

Symbol* get_symbol_from_rete_loc unsigned short  levels_up,
byte  field_num,
struct token_struct tok,
wme w
 

Referenced by calculate_support_for_instantiation_preferences(), instantiate_rhs_value(), and p_node_left_addition().

unsigned long hash_condition condition cond  ) 
 

Definition at line 852 of file production.c.

References abort_with_fatal_error(), three_field_tests_struct::attr_test, condition, condition_struct::data, hash_test(), three_field_tests_struct::id_test, condition_struct::condition_main_data_union::ncc, condition_struct::next, condition_struct::test_for_acceptable_preference, condition_struct::condition_main_data_union::tests, ncc_info_struct::top, condition_struct::type, and three_field_tests_struct::value_test.

Referenced by make_chunk_cond_for_condition().

unsigned long hash_test test  t  ) 
 

Definition at line 465 of file production.c.

References abort_with_fatal_error(), complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, complex_test_struct::test_info_union::disjunction_list, cons_struct::first, complex_test_struct::test_info_union::referent, cons_struct::rest, Symbol, test, and complex_test_struct::type.

Referenced by hash_condition().

void inform_output_module_of_wm_changes list wmes_being_added,
list wmes_being_removed
 

Definition at line 424 of file io.c.

References identifier_struct::associated_output_links, cons, cons_struct::first, symbol_union::id, wme_struct::id, list, print(), cons_struct::rest, symbol_to_string(), update_for_io_wme_change(), update_for_top_state_wme_addition(), update_for_top_state_wme_removal(), and wme.

Referenced by do_buffered_wm_changes().

void init_attention_lapse  ) 
 

Definition at line 152 of file init_soar.c.

References current_real_time, and wake_from_attention_lapse().

Referenced by init_soar_agent().

void init_built_in_commands void   ) 
 

void init_built_in_rhs_functions void   ) 
 

Definition at line 587 of file rhsfun.c.

References accept_rhs_function_code(), add_rhs_function(), capitalize_symbol_rhs_function_code(), crlf_rhs_function_code(), dont_learn_rhs_function_code(), force_learn_rhs_function_code(), halt_rhs_function_code(), ifeq_rhs_function_code(), init_built_in_rhs_math_functions(), interrupt_rhs_function_code(), make_constant_symbol_rhs_function_code(), make_sym_constant(), strlen_rhs_function_code(), timestamp_rhs_function_code(), and write_rhs_function_code().

Referenced by init_soar_agent().

void init_chunker void   ) 
 

Definition at line 2187 of file chunk.c.

References chunk_cond, init_chunk_cond_set(), and init_memory_pool().

Referenced by init_soar_agent().

void init_decider void   ) 
 

Referenced by init_soar_agent(), and run_preference_semantics().

void init_explain void   ) 
 

Definition at line 75 of file explain.c.

References set_sysparam().

Referenced by init_soar_agent().

void init_firer void   ) 
 

Definition at line 576 of file recmem.c.

References init_memory_pool(), and instantiation.

Referenced by init_soar_agent().

void init_lexer void   ) 
 

Definition at line 945 of file lexer.c.

References constituent_char, extra_constituents, lex_ampersand(), lex_at(), lex_comma(), lex_constituent_string(), lex_digit(), lex_dollar(), lex_equal(), lex_exclamation_point(), lex_greater(), lex_lbrace(), lex_less(), lex_lparen(), lex_minus(), lex_period(), lex_plus(), lex_quote(), lex_rbrace(), lex_rparen(), lex_tilde(), lex_unknown(), lex_up_arrow(), lex_vbar(), lexer_routines(), number_starters, start_lex_from_file(), and whitespace.

Referenced by init_soar_agent().

void init_memory_pool memory_pool p,
long  item_size,
char *  name
 

Definition at line 258 of file mem.c.

References abort_with_fatal_error(), memory_pool_struct::first_block, memory_pool_struct::free_list, memory_pool_struct::item_size, memory_pool_struct::items_per_block, memory_pool, memory_pool_struct::name, memory_pool_struct::next, memory_pool_struct::num_blocks, and memory_pool_struct::used_count.

Referenced by init_chunker(), init_firer(), init_memory_utilities(), init_production_utilities(), init_reorderer(), init_rete(), init_soar_io(), init_symbol_tables(), and run_preference_semantics().

void init_memory_utilities void   ) 
 

Definition at line 577 of file mem.c.

References cons, dl_cons, and init_memory_pool().

Referenced by init_soar_agent().

void init_multi_agent_built_in_commands void   ) 
 

void init_parser void   ) 
 

void init_production_utilities void   ) 
 

Definition at line 60 of file production.c.

References action, complex_test, condition, init_memory_pool(), init_reorderer(), not, and production.

Referenced by init_soar_agent().

void init_real_time  ) 
 

Definition at line 133 of file init_soar.c.

References current_real_time.

Referenced by init_soar_agent().

void init_reorderer void   ) 
 

Definition at line 1061 of file reorder.c.

References init_memory_pool(), and saved_test.

Referenced by init_production_utilities().

void init_rete void   ) 
 

Definition at line 7315 of file rete.c.

References allocate_memory_and_zerofill(), alpha_mem, beta_memory_node_left_addition(), bnode_type_names, cn_node_left_addition(), cn_partner_node_left_addition(), constant_equal_rete_test_routine(), constant_greater_or_equal_rete_test_routine(), constant_greater_rete_test_routine(), constant_less_or_equal_rete_test_routine(), constant_less_rete_test_routine(), constant_not_equal_rete_test_routine(), constant_same_type_rete_test_routine(), disjunction_rete_test_routine(), dummy_matches_node_left_addition(), error_rete_test_routine(), hash_alpha_mem(), id_is_goal_rete_test_routine(), id_is_impasse_rete_test_routine(), init_dummy_top_node(), init_memory_pool(), init_test_type_conversion_tables(), left_addition_routines(), make_hash_table(), mp_node_left_addition(), mp_node_right_addition(), ms_change, negative_node_left_addition(), negative_node_right_addition(), node_varnames, p_node_left_addition(), positive_node_right_addition(), rete_error_left(), rete_error_right(), rete_node, rete_test, right_addition_routines(), right_mem, Symbol, token, unhashed_beta_memory_node_left_addition(), unhashed_mp_node_left_addition(), unhashed_mp_node_right_addition(), unhashed_negative_node_left_addition(), unhashed_negative_node_right_addition(), unhashed_positive_node_right_addition(), variable_equal_rete_test_routine(), variable_greater_or_equal_rete_test_routine(), variable_greater_rete_test_routine(), variable_less_or_equal_rete_test_routine(), variable_less_rete_test_routine(), variable_not_equal_rete_test_routine(), and variable_same_type_rete_test_routine().

Referenced by init_soar_agent().

void init_soar void   ) 
 

Definition at line 37 of file legacy.c.

References soar_cInitializeSoar().

void init_soar_io void   ) 
 

Definition at line 835 of file io.c.

References extra_tio_constituents, init_memory_pool(), io_wme, output_link, tio_constituent_char, and tio_whitespace.

Referenced by init_soar_agent().

void init_symbol_tables void   ) 
 

Definition at line 180 of file symtab.c.

References float_constant, hash_float_constant(), hash_identifier(), hash_int_constant(), hash_sym_constant(), hash_variable(), identifier, init_memory_pool(), int_constant, make_hash_table(), sym_constant, and variable.

Referenced by init_soar_agent().

void init_sysparams void   ) 
 

Definition at line 181 of file init_soar.c.

Referenced by init_soar_agent().

void init_tracing void   ) 
 

Definition at line 705 of file trace.c.

References make_hash_table(), and tracing_rule_hash_function().

Referenced by init_soar_agent().

void just_before_exit_soar void   ) 
 

Definition at line 85 of file init_soar.c.

References agent, all_soar_agents, cons, cons_struct::first, cons_struct::rest, soar_call_data, soar_invoke_callbacks(), stop_log_file(), and SYSTEM_TERMINATION_CALLBACK.

Referenced by exit_soar(), and soar_cQuit().

void load_file char *  file_name,
FILE *  already_open_file
 

void load_init_file void   ) 
 

bool load_rete_net FILE *  source_file  ) 
 

Definition at line 6841 of file rete.c.

References print(), rete_fs_file, reteload_all_symbols(), reteload_alpha_memories(), reteload_four_bytes(), reteload_free_am_table(), reteload_free_symbol_table(), reteload_node_and_children(), reteload_one_byte(), reteload_string(), and reteload_string_buf.

Referenced by soar_cLoadReteNet().

rhs_function* lookup_rhs_function Symbol name  ) 
 

Definition at line 97 of file rhsfun.c.

References available_rhs_functions, rhs_function_struct::name, rhs_function_struct::next, rhs_function, and Symbol.

Referenced by parse_function_call_after_lparen(), and reteload_rhs_value().

growable_string make_blank_growable_string void   ) 
 

Definition at line 159 of file mem.c.

References allocate_memory(), and growable_string.

Referenced by add_trace_for_attribute_path(), object_to_trace_string(), selection_to_trace_string(), and trace_format_list_to_string().

chunk_cond* make_chunk_cond_for_condition condition cond  ) 
 

Definition at line 385 of file chunk.c.

References chunk_cond, chunk_cond_struct::compressed_hash_value, chunk_cond_struct::cond, condition, hash_condition(), chunk_cond_struct::hash_value, and masks_for_n_low_order_bits.

Referenced by backtrace_through_instantiation().

Symbol* make_float_constant float  value  ) 
 

Definition at line 392 of file symtab.c.

References add_to_hash_table(), symbol_union::fc, find_float_constant(), Symbol, and float_constant_struct::value.

Referenced by abs_rhs_function_code(), atan2_rhs_function_code(), cos_rhs_function_code(), float_rhs_function_code(), fp_divide_rhs_function_code(), get_io_float_constant(), make_symbol_for_current_lexeme(), minus_rhs_function_code(), plus_rhs_function_code(), reteload_all_symbols(), round_off_air_rhs_function_code(), round_off_heading_air_rhs_function_code(), sin_rhs_function_code(), soar_cAddWme(), sqrt_rhs_function_code(), and times_rhs_function_code().

struct hash_table_struct* make_hash_table short  minimum_log2size,
hash_function  h
 

Definition at line 464 of file mem.c.

References allocate_memory(), allocate_memory_and_zerofill(), hash_table_struct::buckets, hash_table_struct::count, hash_table_struct::h, hash_table, hash_table_struct::log2size, hash_table_struct::minimum_log2size, and hash_table_struct::size.

Referenced by init_rete(), init_symbol_tables(), and init_tracing().

Symbol* make_int_constant long  value  ) 
 

Definition at line 374 of file symtab.c.

References add_to_hash_table(), find_int_constant(), symbol_union::ic, Symbol, and int_constant_struct::value.

Referenced by abs_rhs_function_code(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), div_rhs_function_code(), get_io_int_constant(), int_rhs_function_code(), make_symbol_for_current_lexeme(), minus_rhs_function_code(), mod_rhs_function_code(), plus_rhs_function_code(), reteload_all_symbols(), round_off_air_rhs_function_code(), round_off_heading_air_rhs_function_code(), soar_cAddWme(), strlen_rhs_function_code(), and times_rhs_function_code().

char* make_memory_block_for_string const char *  s  ) 
 

Definition at line 140 of file mem.c.

References allocate_memory().

Referenced by make_sym_constant(), make_variable(), parse_item_from_format_string(), parse_production(), reteload_node_and_children(), soar_ecSp(), start_lex_from_file(), and start_log_file().

Symbol* make_new_identifier char  name_letter,
goal_stack_level  level
 

Definition at line 309 of file symtab.c.

References add_to_hash_table(), identifier_struct::associated_output_links, identifier_struct::could_be_a_link_from_below, identifier_struct::gds, goal_stack_level, identifier_struct::higher_goal, symbol_union::id, identifier_struct::impasse_wmes, identifier_struct::input_wmes, identifier_struct::isa_goal, identifier_struct::isa_impasse, identifier_struct::isa_operator, identifier_struct::level, identifier_struct::link_count, identifier_struct::lower_goal, identifier_struct::ms_i_assertions, identifier_struct::ms_o_assertions, identifier_struct::ms_retractions, identifier_struct::name_letter, identifier_struct::name_number, identifier_struct::operator_slot, identifier_struct::preferences_from_goal, identifier_struct::promotion_level, identifier_struct::saved_firing_type, identifier_struct::slots, Symbol, identifier_struct::tc_num, and identifier_struct::unknown_level.

Referenced by get_new_io_identifier(), instantiate_rhs_value(), run_preference_semantics(), and soar_cAddWme().

preference* make_preference byte  type,
Symbol id,
Symbol attr,
Symbol value,
Symbol referent
 

Definition at line 64 of file prefmem.c.

References preference_struct::attr, byte, preference_struct::id, preference_struct::in_tm, preference_struct::next_clone, preference_struct::o_supported, preference_struct::on_goal_list, preference, preference_struct::prev_clone, print(), print_preference(), preference_struct::reference_count, preference_struct::referent, preference_struct::slot, Symbol, preference_struct::type, and preference_struct::value.

Referenced by execute_action(), make_clones_of_results(), and run_preference_semantics().

production* make_production byte  type,
Symbol name,
condition **  lhs_top,
condition **  lhs_bottom,
action **  rhs_top,
bool  reorder_nccs
 

Definition at line 1538 of file production.c.

References action, production_struct::action_list, add_bound_variables_in_condition_list(), byte, calculate_compile_time_o_support(), condition, production_struct::declared_support, production_struct::documentation, production_struct::filename, production_struct::firing_count, get_new_tc_number(), production_struct::instantiations, production_struct::interrupt, production_struct::name, sym_constant_struct::name, name_of_production_being_reordered, action_struct::next, production_struct::p_node, print(), print_with_symbols(), sym_constant_struct::production, production, production_struct::reference_count, reorder_action_list(), reorder_lhs(), reset_variable_generator(), production_struct::rhs_unbound_variables, symbol_union::sc, action_struct::support, Symbol, tc_number, production_struct::trace_firings, production_struct::type, and action_struct::type.

Referenced by chunk_instantiation(), and parse_production().

slot* make_slot Symbol id,
Symbol attr
 

Referenced by add_preference_to_tm(), find_impasse_wme(), and run_preference_semantics().

Symbol* make_sym_constant const char *  name  ) 
 

Definition at line 355 of file symtab.c.

References add_to_hash_table(), find_sym_constant(), make_memory_block_for_string(), sym_constant_struct::name, sym_constant_struct::production, symbol_union::sc, and Symbol.

Referenced by add_bot_rhs_functions(), capitalize_symbol_rhs_function_code(), create_predefined_symbols(), crlf_rhs_function_code(), do_input_cycle(), generate_chunk_name_sym_constant(), generate_new_sym_constant(), get_io_sym_constant(), init_built_in_rhs_functions(), init_built_in_rhs_math_functions(), init_soar_agent(), make_constant_symbol_rhs_function_code(), make_symbol_for_current_lexeme(), parse_attribute_path_in_brackets(), parse_production(), remove_bot_rhs_functions(), remove_built_in_rhs_functions(), remove_built_in_rhs_math_functions(), reteload_all_symbols(), soar_cAddWme(), soar_cMultiAttributes(), soar_FormatWatch(), and timestamp_rhs_function_code().

Symbol* make_variable char *  name  ) 
 

Definition at line 288 of file symtab.c.

References add_to_hash_table(), find_variable(), variable_struct::gensym_number, make_memory_block_for_string(), variable_struct::name, variable_struct::rete_binding_locations, Symbol, variable_struct::tc_num, and symbol_union::var.

Referenced by create_predefined_symbols(), generate_new_variable(), make_placeholder_test(), make_symbol_for_current_lexeme(), parse_attr_value_make(), parse_rhs_action(), and reteload_all_symbols().

wme* make_wme Symbol id,
Symbol attr,
Symbol value,
bool  acceptable
 

Definition at line 94 of file wmem.c.

References wme_struct::acceptable, wme_struct::attr, wme_struct::gds, wme_struct::grounds_tc, wme_struct::id, wme_struct::locals_tc, wme_struct::output_link, wme_struct::potentials_tc, wme_struct::preference, wme_struct::reference_count, Symbol, wme_struct::timetag, wme_struct::value, and wme.

Referenced by add_input_wme(), do_acceptable_preference_wme_changes_for_slot(), run_preference_semantics(), and soar_cAddWme().

void mark_context_slot_as_acceptable_preference_changed slot s  ) 
 

Definition at line 166 of file decide.c.

References slot_struct::acceptable_preference_changed, dl_cons, dl_cons_struct::item, and slot.

Referenced by add_preference_to_tm(), and remove_preference_from_tm().

void mark_slot_as_changed slot s  ) 
 

Referenced by add_preference_to_tm(), find_impasse_wme(), and remove_preference_from_tm().

void mark_slot_for_possible_removal slot s  ) 
 

Referenced by find_impasse_wme(), garbage_collect_id(), and run_preference_semantics().

bool member_of_list void *  item,
list the_list
 

Definition at line 330 of file mem.c.

References cons_struct::first, list, and cons_struct::rest.

Referenced by chunk_instantiation(), dont_learn_rhs_function_code(), find_compile_time_match_goal(), force_learn_rhs_function_code(), test_covered_by_bound_vars(), test_is_for_symbol(), and test_tests_for_root().

void old_execute_go_selection void   ) 
 

bool old_parse_go_command void   ) 
 

void p_node_to_conditions_and_nots struct rete_node_struct p_node,
struct token_struct tok,
wme w,
condition **  dest_top_cond,
condition **  dest_bottom_cond,
not **  dest_nots,
action **  dest_rhs
 

Referenced by create_instantiation(), print(), print_partial_match_information(), read_pattern_and_get_matching_productions(), and read_rhs_pattern_and_get_matching_productions().

condition* parse_lhs void   ) 
 

Definition at line 1075 of file parser.c.

References condition, and parse_cond_plus().

Referenced by parse_production(), and read_pattern_and_get_matching_productions().

struct production_struct* parse_production void   ) 
 

Definition at line 1839 of file parser.c.

References action, add_production_to_rete(), byte, condition, deallocate_action_list(), deallocate_condition_list(), production_struct::declared_support, destructively_reverse_action_list(), production_struct::documentation, excise_production(), free_memory_block_for_string(), get_lexeme(), production_struct::interrupt, make_memory_block_for_string(), make_production(), make_sym_constant(), condition_struct::next, parse_lhs(), parse_rhs(), print(), print_location_of_most_recent_lexeme(), print_with_symbols(), sym_constant_struct::production, production, QUOTED_STRING_LEXEME, R_PAREN_LEXEME, reset_placeholder_variable_generator(), reset_variable_generator(), RIGHT_ARROW_LEXEME, symbol_union::sc, substitute_for_placeholders_in_action_list(), substitute_for_placeholders_in_condition_list(), SYM_CONSTANT_LEXEME, and Symbol.

Referenced by soar_ecSp().

bool parse_rhs action **  dest_rhs  ) 
 

Definition at line 1780 of file parser.c.

References action, deallocate_action_list(), action_struct::next, parse_rhs_action(), and R_PAREN_LEXEME.

Referenced by parse_production(), and read_rhs_pattern_and_get_matching_productions().

bool possibly_deallocate_preference_and_clones preference pref  ) 
 

Definition at line 151 of file prefmem.c.

References deallocate_preference(), preference_struct::next_clone, preference, preference_struct::prev_clone, and preference_struct::reference_count.

Referenced by remove_preference_from_clones().

void post_link_addition Symbol from,
Symbol to
 

Referenced by add_preference_to_tm(), add_wme_to_wm(), and run_preference_semantics().

void post_link_removal Symbol from,
Symbol to
 

Referenced by remove_preference_from_tm(), remove_wme_from_wm(), and run_preference_semantics().

char preference_type_indicator byte  type  ) 
 

Referenced by print(), and print_preference_and_source().

void print  ) 
 

void print char *  format,
... 
 

print -- Print a given string using the agent's current print function

This function invokes the current agent's top level PRINT_CALLBACK & LOG_CALLBACK to perform an agent specific print operation. This operation mimics the output generated internally by the soar kernel, and so using this function provides an easy way to guarentee that input produced by you interface, and by the soar kernel will be handled the same way.

Definition at line 211 of file print.c.

References abort_with_fatal_error(), wme_struct::acceptable, action, wme_struct::attr, preference_struct::attr, action_struct::attr, three_field_tests_struct::attr_test, condition_struct::bt, byte, complex_test, condition, complex_test_struct::test_info_union::conjunct_list, cons, copy_of_equality_test_found_in_test(), copy_test_removing_goal_impasse_tests(), condition_struct::data, complex_test_struct::data, deallocate_action_list(), deallocate_condition_list(), deallocate_test(), production_struct::declared_support, detailed_print_preference(), detailed_print_wme(), determine_possible_symbol_types_for_string(), complex_test_struct::test_info_union::disjunction_list, dl_cons, dl_list, production_struct::documentation, extract_dl_list_elements(), symbol_union::fc, filtered_print_wme_add(), filtered_print_wme_remove(), cons_struct::first, format, get_printer_output_column(), symbol_union::ic, wme_struct::id, preference_struct::id, action_struct::id, symbol_union::id, three_field_tests_struct::id_test, preference_struct::in_tm, instantiation, production_struct::interrupt, dl_cons_struct::item, identifier_struct::level, list, production_struct::name, rhs_function_struct::name, sym_constant_struct::name, variable_struct::name, identifier_struct::name_letter, identifier_struct::name_number, condition_struct::condition_main_data_union::ncc, action_struct::next, dl_cons_struct::next, condition_struct::next, preference_struct::o_supported, production_struct::p_node, p_node_to_conditions_and_nots(), passes_wme_filtering(), preference, action_struct::preference_type, preference_type_indicator(), condition_struct::prev, dl_cons_struct::prev, print(), print_action(), print_action_list(), print_condition(), print_condition_list(), print_instantiation_with_wmes(), print_list_of_conditions(), print_preference(), print_production(), print_spaces(), print_string(), print_with_symbols(), print_wme(), instantiation_struct::prod, production, wme_struct::reference_count, preference_struct::reference_count, preference_struct::referent, action_struct::referent, complex_test_struct::test_info_union::referent, cons_struct::rest, rhs_function, rhs_value, rhs_value_to_string(), symbol_union::sc, string_to_escaped_string(), Symbol, symbol_to_string(), test, condition_struct::test_for_acceptable_preference, test_to_string(), condition_struct::condition_main_data_union::tests, tests_are_equal(), wme_struct::timetag, ncc_info_struct::top, instantiation_struct::top_of_instantiated_conditions, preference_struct::type, production_struct::type, action_struct::type, condition_struct::type, complex_test_struct::type, wme_struct::value, preference_struct::value, action_struct::value, float_constant_struct::value, int_constant_struct::value, three_field_tests_struct::value_test, symbol_union::var, bt_info_struct::wme, wme, and wme_trace_type.

void print_action action a  ) 
 

Referenced by print().

void print_action_list action actions,
int  indent,
bool  internal
 

Referenced by chunk_instantiation(), print(), and soar_ecExplainChunkConditionList().

void print_all_trace_formats bool  stack_trace  ) 
 

Definition at line 868 of file trace.c.

References do_for_all_items_in_hash_table(), print_trace_callback_fn(), and print_tracing_rule().

Referenced by soar_FormatWatch().

void print_condition condition cond  ) 
 

Referenced by build_chunk_conds_for_grounds_and_add_negateds(), explain_trace(), explain_trace_chunk(), ppmi_aux(), print(), print_all_conditions_in_block(), print_consed_list_of_conditions(), and soar_ecExplainChunkConditionList().

void print_condition_list condition conds,
int  indent,
bool  internal
 

Referenced by chunk_instantiation(), print(), second_stage_chunk_instantiation(), and soar_ecExplainChunkConditionList().

void print_instantiation_with_wmes instantiation inst,
wme_trace_type  wtt
 

Referenced by chunk_instantiation(), create_instantiation(), print(), print_all_instantiations_in_block(), print_match_set(), print_preference_and_source(), retract_instantiation(), run_preference_semantics(), and second_stage_chunk_instantiation().

void print_list_of_conditions condition cond  ) 
 

Referenced by explain_trace_chunk(), and print().

void print_location_of_most_recent_lexeme void   ) 
 

Definition at line 1020 of file lexer.c.

References print(), and print_string().

Referenced by determine_type_of_constituent_string(), do_print_for_production_name(), lex_quote(), lex_vbar(), parse_attr_value_make(), parse_attr_value_tests(), parse_cond(), parse_disjunction_test(), parse_function_call_after_lparen(), parse_head_of_conds_for_one_id(), parse_preferences_soar8_non_operator(), parse_production(), parse_relational_test(), parse_rhs_action(), parse_rhs_value(), read_identifier_or_context_variable(), read_pattern_and_get_matching_wmes(), and read_pattern_component().

void print_lowest_slot_in_context_stack void   ) 
 

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void print_match_set wme_trace_type  wtt,
ms_trace_type  mst
 

Definition at line 7413 of file rete.c.

References allocate_memory(), rete_node_struct::b, match_set_trace::count, free_memory(), match_set_trace::goal, ms_change_struct::goal, in_ms_trace(), in_ms_trace_same_goal(), ms_change_struct::inst, ms_change, MS_trace, ms_trace_type, production_struct::name, match_set_trace::next, ms_change_struct::next, rete_node_struct::rete_node_b_union::p, ms_change_struct::p_node, token_struct::parent, print(), print_instantiation_with_wmes(), print_whole_token(), print_with_symbols(), instantiation_struct::prod, p_node_data_struct::prod, match_set_trace::sym, ms_change_struct::tok, token, ms_change_struct::w, token_struct::w, and wme_trace_type.

Referenced by soar_ecPrintMatchSet().

void print_object_trace Symbol object  ) 
 

Definition at line 1341 of file trace.c.

References free_growable_string(), get_new_tc_number(), growable_string, object_to_trace_string(), print_string(), and Symbol.

Referenced by print_preference_and_source(), and soar_cDefaultAskCallback().

void print_partial_match_information struct rete_node_struct p_node,
wme_trace_type  wtt
 

Referenced by soar_ecPrintMatchInfoForProduction().

void print_preference preference pref  ) 
 

Referenced by add_preference_to_tm(), chunk_instantiation(), create_instantiation(), deallocate_inst_members_to_be_rewritten(), deallocate_preference(), decision_consistent_with_current_preferences(), make_preference(), print(), process_o_rejects_and_deallocate_them(), re_fill_in_instantiation_stuff_for_modified_lhs(), remove_preference_from_tm(), retract_instantiation(), run_preference_semantics(), second_stage_chunk_instantiation(), trace_locals(), and trace_ungrounded_potentials().

void print_production production p,
bool  internal
 

Referenced by chunk_instantiation(), do_print_for_production_name(), print(), print_all_productions_in_block(), and soar_ecPrintAllProductionsOfType().

void print_spaces int  n  ) 
 

Referenced by backtrace_through_instantiation(), neatly_print_wme_augmentation_of_id(), parse_memory_stats(), ppmi_aux(), print(), print_augs_of_id(), print_consed_list_of_condition_wmes(), print_consed_list_of_conditions(), soar_ecPrintMemoryPoolStatistics(), and soar_exPrintMemoryPoolStatistics().

void print_stack_trace Symbol object,
Symbol state,
int  slot_type,
bool  allow_cycle_counts
 

Definition at line 1351 of file trace.c.

References free_growable_string(), get_new_tc_number(), growable_string, print_string(), selection_to_trace_string(), and Symbol.

Referenced by run_preference_semantics(), and soar_Print().

void print_string char *  s  ) 
 

Definition at line 159 of file print.c.

References LOG_CALLBACK, PRINT_CALLBACK, soar_agent, and soar_invoke_first_callback().

Referenced by backtrace_through_instantiation(), build_chunk_conds_for_grounds_and_add_negateds(), chunk_instantiation(), do_one_top_level_phase(), do_print_for_production_name(), explain_trace_chunk(), neatly_print_wme_augmentation_of_id(), parse_memory_stats(), print(), print_location_of_most_recent_lexeme(), print_object_trace(), print_object_trace_using_provided_format_string(), print_preference_and_source(), print_saved_test(), print_stack_trace(), print_sym(), print_trace_format_list(), print_tracing_rule(), second_stage_chunk_instantiation(), soar_cPopCallback(), soar_ecGDSPrint(), soar_ecPrintAllProductionsOfType(), soar_ecPrintInternalSymbols(), soar_ecPrintMemoryPoolStatistics(), soar_exPrintMemoryPoolStatistics(), trace_grounded_potentials(), trace_locals(), trace_ungrounded_potentials(), and write_rhs_function_code().

void print_string_to_log_file_only char *  string  ) 
 

Definition at line 123 of file print.c.

Referenced by get_next_char(), and soar_cDefaultAskCallback().

bool print_sym void *  item  ) 
 

Definition at line 526 of file symtab.c.

References print_string(), and symbol_to_string().

Referenced by soar_ecPrintInternalSymbols().

void print_with_symbols  ) 
 

Referenced by abs_rhs_function_code(), add_production_to_rete(), add_rete_tests_for_test(), add_rhs_function(), atan2_rhs_function_code(), backtrace_through_instantiation(), capitalize_symbol_rhs_function_code(), check_context_slot_decisions(), chunk_instantiation(), collect_root_variables(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), cos_rhs_function_code(), create_instantiation(), deallocate_instantiation(), deallocate_production(), deallocate_symbol(), deallocate_wme(), decision_consistent_with_current_preferences(), div_rhs_function_code(), dont_learn_rhs_function_code(), excise_production(), execute_action(), fill_in_new_instantiation_stuff(), find_goal_for_match_set_change_assertion(), find_goal_for_match_set_change_retraction(), find_impasse_wme(), float_rhs_function_code(), force_learn_rhs_function_code(), fp_divide_rhs_function_code(), garbage_collect_id(), goal_stack_consistent_through_goal(), int_rhs_function_code(), make_production(), minus_rhs_function_code(), mod_rhs_function_code(), p_node_left_addition(), p_node_left_removal(), parse_head_of_conds_for_one_id(), parse_preferences_soar8_non_operator(), parse_production(), plus_rhs_function_code(), post_link_addition(), post_link_removal(), print(), print_all_productions_in_block(), print_assertion(), print_augs_of_id(), print_binding_list(), print_candidates(), print_match_set(), print_retraction(), print_saved_test(), print_tracing_rule(), re_fill_in_instantiation_stuff_for_modified_lhs(), read_identifier_or_context_variable(), read_pattern_and_get_matching_productions(), read_rhs_pattern_and_get_matching_productions(), remove_current_decision(), remove_rhs_function(), reteload_rhs_value(), retract_instantiation(), run_preference_semantics(), second_stage_chunk_instantiation(), sin_rhs_function_code(), soar_ecGDSPrint(), soar_ecListWmeFilters(), soar_ecPrintAllProductionsOfType(), soar_ecPrintMemories(), soar_ecPrintPreferences(), soar_ecPrintProductionsBeingTraced(), soar_ecPrintTopProductionFirings(), soar_ecResetWmeFilters(), soar_PWatch(), sqrt_rhs_function_code(), and times_rhs_function_code().

void print_with_symbols char *  format,
... 
 

Referenced by calculate_support_for_instantiation_preferences(), check_context_slot_decisions(), p_node_left_addition(), and run_preference_semantics().

void print_wme wme w  ) 
 

Referenced by deallocate_wme(), decision_consistent_with_current_preferences(), do_print_for_wme(), ppmi_aux(), print(), print_augs_of_id(), print_consed_list_of_condition_wmes(), print_whole_token(), remove_operator_if_necessary(), run_preference_semantics(), trace_grounded_potentials(), trace_locals(), and trace_ungrounded_potentials().

void process_o_rejects_and_deallocate_them preference o_rejects  ) 
 

Definition at line 353 of file prefmem.c.

References preference_struct::all_of_slot_next, slot_struct::all_preferences, preference_struct::attr, find_slot(), preference_struct::id, preference_struct::next, preference, print(), print_preference(), remove_preference_from_tm(), slot, and preference_struct::value.

Referenced by retract_instantiation().

void reinitialize_soar void   ) 
 

Definition at line 29 of file legacy.c.

References soar_cReInitSoar().

void release_io_symbol Symbol sym  ) 
 

Definition at line 121 of file io.c.

References Symbol.

Referenced by accept_rhs_function_code(), and do_input_cycle().

void remove_from_hash_table struct hash_table_struct ht,
void *  item
 

Definition at line 507 of file mem.c.

References hash_table_struct::buckets, hash_table_struct::count, hash_table_struct::h, item_in_hash_table, hash_table_struct::log2size, hash_table_struct::minimum_log2size, item_in_hash_table_struct::next, resize_hash_table(), and hash_table_struct::size.

Referenced by deallocate_symbol(), remove_ref_to_alpha_mem(), and remove_trace_format().

void remove_garbage_slots void   ) 
 

Referenced by find_impasse_wme(), and run_preference_semantics().

bool remove_input_wme wme w  ) 
 

Definition at line 152 of file io.c.

References wme_struct::gds, gds_invalid_so_remove_goal(), gds_struct::goal, symbol_union::id, wme_struct::id, identifier_struct::input_wmes, identifier_struct::level, wme_struct::next, print(), remove_wme_from_wm(), and wme.

bool remove_preference_from_clones preference pref  ) 
 

Definition at line 190 of file prefmem.c.

References deallocate_preference(), preference_struct::next_clone, possibly_deallocate_preference_and_clones(), preference, preference_struct::prev_clone, and preference_struct::reference_count.

Referenced by run_preference_semantics().

void remove_preference_from_tm preference pref  ) 
 

Definition at line 306 of file prefmem.c.

References slot_struct::all_preferences, preference_struct::id, preference_struct::in_tm, slot_struct::isa_context_slot, mark_context_slot_as_acceptable_preference_changed(), mark_slot_as_changed(), post_link_removal(), preference, slot_struct::preferences, print(), print_preference(), preference_struct::referent, preference_struct::slot, slot, preference_struct::type, and preference_struct::value.

Referenced by garbage_collect_id(), process_o_rejects_and_deallocate_them(), retract_instantiation(), and run_preference_semantics().

void remove_pwatch struct production_struct prod  ) 
 

Referenced by excise_production(), soar_ecStopAllProductionTracing(), and soar_ecStopTracingProductions().

bool remove_trace_format bool  stack_trace,
int  type_restriction,
Symbol name_restriction
 

Definition at line 742 of file trace.c.

References hash_table_struct::buckets, deallocate_trace_format_list(), format, tracing_rule_struct::format, free_memory(), hash_table, hash_table_struct::log2size, tracing_rule_struct::name_restriction, tracing_rule_struct::next_in_hash_bucket, remove_from_hash_table(), Symbol, trace_format, and tracing_rule.

Referenced by add_trace_format(), and soar_FormatWatch().

void remove_wme_from_rete wme w  ) 
 

Definition at line 1280 of file rete.c.

References token_struct::a, alpha_mem, right_mem_struct::am, rete_node_struct::b, alpha_mem_struct::beta_nodes, rete_node_struct::first_child, left_addition_routines(), token_struct::token_a_union::token_from_right_memory_of_negative_or_cn_node_struct::left_token, token_struct::token_a_union::neg, token_struct::negrm_tokens, posneg_node_data_struct::next_from_alpha_mem, rete_node_struct::next_sibling, token_struct::node, rete_node_struct::node_type, token_struct::parent, rete_node_struct::rete_node_b_union::posneg, remove_token_and_subtree(), remove_wme_from_alpha_mem(), rete_node, right_mem, alpha_mem_struct::right_mems, wme_struct::right_mems, token, wme_struct::tokens, and wme.

Referenced by do_buffered_wm_changes().

void remove_wme_from_wm wme w  ) 
 

Definition at line 137 of file wmem.c.

References wme_struct::attr, free_memory(), wme_struct::gds, wme_struct::id, symbol_union::id, identifier_struct::isa_operator, post_link_removal(), wme_struct::value, wme, and gds_struct::wmes_in_gds.

Referenced by do_acceptable_preference_wme_changes_for_slot(), remove_input_wme(), remove_wme_list_from_wm(), run_preference_semantics(), and soar_cRemoveWme().

void remove_wme_list_from_wm wme w  ) 
 

Definition at line 160 of file wmem.c.

References wme_struct::next, remove_wme_from_wm(), and wme.

Referenced by garbage_collect_id(), and run_preference_semantics().

bool reorder_action_list action **  action_list,
tc_number  lhs_tc
 

Definition at line 94 of file reorder.c.

References action, add_all_variables_in_action(), legal_to_execute_action(), list, name_of_production_being_reordered, action_struct::next, print(), tc_number, and unmark_variables_and_free_list().

Referenced by make_production().

bool reorder_lhs condition **  lhs_top,
condition **  lhs_bottom,
bool  reorder_nccs
 

Definition at line 1017 of file reorder.c.

References add_bound_variables_in_test(), collect_root_variables(), condition, condition_struct::data, fill_in_vars_requiring_bindings(), free_list(), get_new_tc_number(), three_field_tests_struct::id_test, list, name_of_production_being_reordered, condition_struct::next, print(), remove_isa_state_tests_for_non_roots(), remove_vars_requiring_bindings(), reorder_condition_list(), tc_number, test_includes_goal_or_impasse_id_test(), condition_struct::condition_main_data_union::tests, and condition_struct::type.

Referenced by make_production().

void repeatedly_read_and_dispatch_commands void   ) 
 

void reset_backtrace_list void   ) 
 

Definition at line 124 of file explain.c.

References free_backtrace_list().

Referenced by chunk_instantiation(), and reset_explain().

void reset_explain void   ) 
 

Definition at line 260 of file explain.c.

References explain_chunk_str, free_explain_chunk(), explain_chunk_struct::next_chunk, and reset_backtrace_list().

Referenced by soar_cReInitSoar().

void reset_id_and_variable_tc_numbers void   ) 
 

Definition at line 506 of file symtab.c.

References do_for_all_items_in_hash_table(), and reset_tc_num().

Referenced by get_new_tc_number().

void reset_id_counters void   ) 
 

Definition at line 480 of file symtab.c.

References print().

Referenced by soar_cReInitSoar().

void reset_statistics void   ) 
 

Definition at line 281 of file init_soar.c.

References DECISION_PHASE, DETERMINE_LEVEL_PHASE, INPUT_PHASE, OUTPUT_PHASE, PREFERENCE_PHASE, reset_production_firing_counts(), reset_timer(), and WM_PHASE.

Referenced by init_soar_agent(), and soar_cReInitSoar().

void reset_timer TIMER_VALUE *  tv_to_reset  ) 
 

void reset_variable_generator condition conds_with_vars_to_avoid,
action actions_with_vars_to_avoid
 

Definition at line 1462 of file production.c.

References action, add_all_variables_in_action_list(), add_all_variables_in_condition_list(), condition, cons, cons_struct::first, free_list(), get_new_tc_number(), list, reset_variable_gensym_numbers(), cons_struct::rest, Symbol, and tc_number.

Referenced by chunk_instantiation(), make_production(), p_node_to_conditions_and_nots(), parse_production(), and second_stage_chunk_instantiation().

void reset_variable_gensym_numbers void   ) 
 

Definition at line 521 of file symtab.c.

References do_for_all_items_in_hash_table(), and reset_gensym_number().

Referenced by reset_variable_generator().

void reset_wme_timetags void   ) 
 

Definition at line 83 of file wmem.c.

References print().

Referenced by soar_cReInitSoar().

void respond_to_load_errors void   ) 
 

char* rhs_value_to_string rhs_value  rv,
char *  dest,
size_t  dest_size
 

Referenced by calculate_support_for_instantiation_preferences(), p_node_left_addition(), parse_attr_value_make(), and print().

void run_for_n_decision_cycles long  n  ) 
 

Definition at line 1125 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_elaboration_cycles long  n  ) 
 

Definition at line 1046 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_modifications_of_output long  n  ) 
 

Definition at line 1084 of file init_soar.c.

References do_one_top_level_phase(), OUTPUT_PHASE, run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_phases long  n  ) 
 

Definition at line 1022 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_selections_of_slot long  n,
Symbol attr_of_slot
 

Definition at line 1167 of file init_soar.c.

References attr_of_slot_just_decided(), DECISION_PHASE, do_one_top_level_phase(), run_forever(), start_timer(), stop_timer(), and Symbol.

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_selections_of_slot_at_level long  n,
Symbol attr_of_slot,
goal_stack_level  level
 

Definition at line 1198 of file init_soar.c.

References attr_of_slot_just_decided(), DECISION_PHASE, do_one_top_level_phase(), goal_stack_level, run_forever(), start_timer(), stop_timer(), and Symbol.

Referenced by execute_go_selection(), and run_current_agent().

void run_forever void   ) 
 

Definition at line 1005 of file init_soar.c.

References do_one_top_level_phase(), start_timer(), and stop_timer().

Referenced by run_for_n_decision_cycles(), run_for_n_elaboration_cycles(), run_for_n_modifications_of_output(), run_for_n_phases(), run_for_n_selections_of_slot(), and run_for_n_selections_of_slot_at_level().

bool save_rete_net FILE *  dest_file  ) 
 

Definition at line 6822 of file rete.c.

References print(), rete_fs_file, retesave_alpha_memories(), retesave_children_of_node(), retesave_one_byte(), retesave_string(), and retesave_symbol_table().

Referenced by soar_cSaveReteNet().

void set_lexer_allow_ids bool  allow_identifiers  ) 
 

Definition at line 1123 of file lexer.c.

Referenced by soar_ecSp().

void set_sysparam int  param_number,
long  new_value
 

Definition at line 66 of file soar_core_api.c.

References print(), soar_agent, soar_call_data, soar_invoke_callbacks(), and SYSTEM_PARAMETER_CHANGED_CALLBACK.

Referenced by init_explain(), run_preference_semantics(), set_watch_prod_group_setting(), set_watch_setting(), soar_cDefaultAskCallback(), soar_cReInitSoar(), soar_cSetChunkNameLong(), soar_cSetLearning(), soar_ecWatchLevel(), soar_IndifferentSelection(), soar_MaxChunks(), soar_MaxElaborations(), soar_Warnings(), soar_Watch(), and user_select_rhsfun().

void setup_signal_handling void   ) 
 

Definition at line 46 of file sysdep.c.

References control_c_handler().

Referenced by soar_cInitializeSoar().

void skip_ahead_to_balanced_parentheses int  parentheses_level  ) 
 

Definition at line 1097 of file lexer.c.

References EOF_LEXEME, get_lexeme(), and R_PAREN_LEXEME.

Referenced by read_pattern_and_get_matching_wmes().

void start_lex_from_file char *  filename,
FILE *  already_opened_file
 

Definition at line 106 of file lexer.c.

References allocate_memory(), lexer_source_file_struct::allow_ids, lexer_source_file_struct::buffer, lexer_source_file_struct::column_of_start_of_last_lexeme, lexer_source_file_struct::current_column, lexer_source_file_struct::current_line, lexer_source_file_struct::fake_rparen_at_eol, lexer_source_file_struct::file, lexer_source_file_struct::filename, lexer_source_file, lexer_source_file_struct::line_of_start_of_last_lexeme, make_memory_block_for_string(), lexer_source_file_struct::parent_file, lexer_source_file_struct::parentheses_level, lexer_source_file_struct::saved_current_char, and lexer_source_file_struct::saved_lexeme.

Referenced by init_lexer().

void start_log_file char *  filename,
bool  append
 

Definition at line 94 of file print.c.

References make_memory_block_for_string(), print(), and stop_log_file().

void start_redirection_to_file FILE *  already_opened_file  ) 
 

Definition at line 138 of file print.c.

void start_timer TIMER_VALUE *  tv_for_recording_start_time  ) 
 

void stop_lex_from_file void   ) 
 

Definition at line 128 of file lexer.c.

References lexer_source_file_struct::filename, free_memory(), free_memory_block_for_string(), lexer_source_file, print(), lexer_source_file_struct::saved_current_char, and lexer_source_file_struct::saved_lexeme.

void stop_log_file void   ) 
 

Definition at line 112 of file print.c.

References free_memory_block_for_string(), and print().

Referenced by abort_with_fatal_error(), just_before_exit_soar(), and start_log_file().

void stop_redirection_to_file void   ) 
 

Definition at line 146 of file print.c.

void stop_timer TIMER_VALUE *  tv_with_recorded_start_time,
TIMER_VALUE *  tv_with_accumulated_time
 

char* string_to_escaped_string char *  s,
char  first_and_last_char,
char *  dest
 

Referenced by print(), and print_trace_format_list().

char* symbol_to_string Symbol sym,
bool  rereadable,
char *  dest,
size_t  dest_size
 

Referenced by add_rete_tests_for_test(), add_trace_for_attribute_path(), add_trace_for_wme(), add_values_of_attribute_path(), capitalize_symbol_rhs_function_code(), capture_input_wme(), compare_attr(), find_goal_for_match_set_change_assertion(), float_rhs_function_code(), inform_output_module_of_wm_changes(), int_rhs_function_code(), interrupt_rhs_function_code(), make_constant_symbol_rhs_function_code(), neatly_print_wme_augmentation_of_id(), object_to_trace_string(), p_node_left_addition(), print(), print_all_identifiers_in_block(), print_multi_attribute_symbols(), print_sym(), reteload_rhs_value(), retesave_symbol_and_assign_index(), setSoarResultResult(), soar_cGetAgentInputLinkId(), soar_cGetAgentOutputLinkId(), soar_cGetWmeAttr(), soar_cGetWmeId(), soar_cGetWmeValue(), soar_Learn(), soar_Preferences(), strlen_rhs_function_code(), trace_format_list_to_string(), update_for_top_state_wme_addition(), and write_rhs_function_code().

void tell_printer_that_output_column_has_been_reset void   ) 
 

Definition at line 133 of file print.c.

Referenced by get_next_char().

int terminate_soar void   ) 
 

Definition at line 1279 of file init_soar.c.

References exit_soar(), and soar_agent.

bool test_includes_equality_test_for_symbol test  t,
Symbol sym
 

Definition at line 649 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, cons_struct::first, cons_struct::rest, Symbol, test, and complex_test_struct::type.

Referenced by add_rete_test_list_to_tests(), collect_root_variables(), condition_list_has_id_test_for_sym(), id_or_value_of_condition_list_is_in_os_tc(), match_state_tests_non_operator_slot(), parse_attr_value_tests(), parse_head_of_conds_for_one_id(), parse_value_test_star(), restore_saved_tests_to_test(), rete_node_to_conditions(), and variablize_nots_and_insert_into_conditions().

bool test_includes_goal_or_impasse_id_test test  t,
bool  look_for_goal,
bool  look_for_impasse
 

Definition at line 678 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, cons_struct::first, cons_struct::rest, test, and complex_test_struct::type.

Referenced by collect_root_variables(), find_known_goals(), remove_isa_state_tests_for_non_roots(), reorder_lhs(), and tests_are_equal_with_bindings().

int test_timers  ) 
 

Definition at line 64 of file timers.c.

References print(), reset_timer(), start_timer(), stop_timer(), and timer_value().

char* test_to_string test  t,
char *  dest,
size_t  dest_size
 

Referenced by print(), and print_saved_test().

bool tests_are_equal test  t1,
test  t2
 

Definition at line 416 of file production.c.

References complex_test, complex_test_struct::test_info_union::conjunct_list, cons, complex_test_struct::data, complex_test_struct::test_info_union::disjunction_list, cons_struct::first, complex_test_struct::test_info_union::referent, cons_struct::rest, test, and complex_test_struct::type.

Referenced by add_new_test_to_test_if_not_already_there(), conditions_are_equal(), and print().

char* tilde_expand char *  filename  ) 
 

double timer_value TIMER_VALUE *  tv  ) 
 

int tolower int   ) 
 

Referenced by generate_new_variable(), make_placeholder_test(), and variablize_symbol().

void trace_grounded_potentials void   ) 
 

Definition at line 543 of file backtrace.c.

References add_cond_to_tc(), condition_struct::bt, cond_is_in_tc(), condition, cons, cons_struct::first, get_new_tc_number(), wme_struct::grounds_tc, print_string(), print_wme(), cons_struct::rest, tc_number, and bt_info_struct::wme.

Referenced by chunk_instantiation(), and second_stage_chunk_instantiation().

void trace_locals goal_stack_level  grounds_level  ) 
 

Definition at line 426 of file backtrace.c.

References three_field_tests_struct::attr_test, backtrace_through_instantiation(), condition_struct::bt, condition, cons, condition_struct::data, find_clone_for_level(), cons_struct::first, goal_stack_level, three_field_tests_struct::id_test, preference_struct::inst, preference, print_preference(), print_string(), print_wme(), bt_info_struct::prohibits, cons_struct::rest, condition_struct::test_for_acceptable_preference, condition_struct::condition_main_data_union::tests, bt_info_struct::trace, three_field_tests_struct::value_test, and bt_info_struct::wme.

Referenced by chunk_instantiation(), and second_stage_chunk_instantiation().

bool trace_ungrounded_potentials goal_stack_level  grounds_level  ) 
 

Definition at line 608 of file backtrace.c.

References backtrace_through_instantiation(), condition_struct::bt, condition, cons, find_clone_for_level(), cons_struct::first, goal_stack_level, preference_struct::inst, preference, print_preference(), print_string(), print_wme(), bt_info_struct::prohibits, cons_struct::rest, bt_info_struct::trace, and bt_info_struct::wme.

Referenced by chunk_instantiation(), and second_stage_chunk_instantiation().

void unmark_variables_and_free_list list var_list  ) 
 

Definition at line 1098 of file production.c.

References cons, cons_struct::first, list, cons_struct::rest, Symbol, variable_struct::tc_num, and symbol_union::var.

Referenced by collect_root_variables(), cond_is_in_tc(), fill_in_vars_requiring_bindings(), find_lowest_cost_lookahead(), reorder_action_list(), reorder_simplified_conditions(), and restore_and_deallocate_saved_tests().

void wake_from_attention_lapse  ) 
 

Definition at line 145 of file init_soar.c.

References start_timer().

Referenced by do_one_top_level_phase(), and init_attention_lapse().


Variable Documentation

int agent_count
 

Definition at line 4003 of file soarkernel.h.

Referenced by soar_cInitAgentIterator(), soar_default_create_agent_procedure(), and soar_default_destroy_agent_procedure().

list* all_soar_agents
 

Definition at line 4002 of file soarkernel.h.

Referenced by control_c_handler(), interrupt_rhs_function_code(), just_before_exit_soar(), run_all_agents(), soar_agent_already_defined(), soar_cDestroyAgentById(), soar_cDestroyAgentByName(), soar_cDestroyAllAgentsWithName(), soar_cGetAgentByName(), soar_cInitAgentIterator(), soar_cRun(), soar_cStepAgentIterator(), soar_default_create_agent_procedure(), soar_default_destroy_agent_procedure(), and soar_Run().

char* c_interrupt_msg
 

Definition at line 4008 of file soarkernel.h.

Referenced by control_c_handler().

struct timeval* current_real_time
 

Definition at line 2073 of file soarkernel.h.

Referenced by do_one_top_level_phase(), init_attention_lapse(), init_lapse_duration(), and init_real_time().

char* help_on_trace_format_escapes[]
 

Definition at line 3099 of file soarkernel.h.

unsigned long masks_for_n_low_order_bits[33]
 

Definition at line 575 of file soarkernel.h.

Referenced by add_wme_to_aht(), compress(), do_for_all_items_in_hash_bucket(), and make_chunk_cond_for_condition().

char* preference_name[NUM_PREFERENCE_TYPES]
 

Definition at line 1303 of file soarkernel.h.

Referenced by soar_ecPrintPreferences().

agent* soar_agent
 

Definition at line 4001 of file soarkernel.h.

Referenced by abort_with_fatal_error(), add_production_to_rete(), create_instantiation(), do_buffered_wm_changes(), do_input_cycle(), do_one_top_level_phase(), do_output_cycle(), excise_production_from_rete(), init_lapse_duration(), print_string(), reteload_node_and_children(), retract_instantiation(), run_all_agents(), run_current_agent(), run_preference_semantics(), set_sysparam(), soar_cGetCurrentAgent(), soar_cInitAgentIterator(), soar_cQuit(), soar_cReInitSoar(), soar_cRun(), soar_cSetCurrentAgent(), soar_cSetCurrentAgentByName(), soar_cStepAgentIterator(), soar_default_create_agent_procedure(), soar_default_destroy_agent_procedure(), soar_ecCloseLog(), soar_ecOpenLog(), soar_ecReplayInput(), soar_ecSp(), soar_Log(), soar_Print(), soar_Run(), terminate_soar(), and update_for_top_state_wme_addition().

unsigned long soar_global_callback_error
 

Definition at line 3138 of file soarkernel.h.

char* soar_news_string
 

Definition at line 167 of file soarkernel.h.

Referenced by print_startup_banner().

char* soar_version_string
 

Definition at line 166 of file soarkernel.h.

Referenced by print_startup_banner(), soar_BuildInfo(), soar_cInitializeSoar(), soar_ecBuildInfo(), soar_ecExcludedBuildInfo(), soar_ecPrintSystemStatistics(), and soar_ExcludedBuildInfo().


Generated on Thu Dec 11 13:00:37 2003 for Soar Kernel by doxygen 1.3.5