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  )