Private and protected interface of class 'HrcNode'. More...
#include <HrcNode_private.h>
Public Member Functions | |
INHERITS_FROM (EnvObject) | |
Data Fields | |
Olist_ptr | actual_parameters |
Olist_ptr | array_defines |
hash_ptr | assigns_table |
Slist_ptr | childs |
Olist_ptr | compassion |
Olist_ptr | compute_props |
Olist_ptr | constants |
Olist_ptr | ctl_props |
Olist_ptr | defines |
Olist_ptr | formal_parameters |
Olist_ptr | frozen_functions |
Olist_ptr | frozen_variables |
Olist_ptr | init_assign |
Olist_ptr | init_expr |
Olist_ptr | input_variables |
node_ptr | instance_name |
Olist_ptr | invar_assign |
Olist_ptr | invar_expr |
Olist_ptr | invar_props |
Olist_ptr | justice |
int | lineno |
Olist_ptr | ltl_props |
node_ptr | name |
Olist_ptr | next_assign |
Olist_ptr | next_expr |
HrcNode_ptr | parent |
Olist_ptr | psl_props |
SymbTable_ptr | st |
Olist_ptr | state_functions |
Olist_ptr | state_variables |
void * | undef |
Related Functions | |
(Note that these are not member functions.) | |
void | hrc_node_deinit (HrcNode_ptr self) |
The HrcNode class private deinitializer. | |
void | hrc_node_init (HrcNode_ptr self, const NuSMVEnv_ptr env) |
The HrcNode class private initializer. | |
void | HrcNode_add_actual_parameter (HrcNode_ptr self, node_ptr par) |
Adds an actual parameter to the current node. | |
void | HrcNode_add_array_define (HrcNode_ptr self, node_ptr mdef) |
Adds an ARRAY DEFINE to the current node. | |
void | HrcNode_add_child_hrc_node (HrcNode_ptr self, HrcNode_ptr node) |
Adds a child node to the current node. | |
void | HrcNode_add_compassion_expr (HrcNode_ptr self, node_ptr compassion) |
Adds a COMPASSION constraint. | |
void | HrcNode_add_compute_property_expr (HrcNode_ptr self, node_ptr compute) |
Adds a COMPUTE property. | |
void | HrcNode_add_constants (HrcNode_ptr self, node_ptr constant) |
Adds a CONSTANTS declaration to the list of constants. | |
void | HrcNode_add_ctl_property_expr (HrcNode_ptr self, node_ptr ctl) |
Adds a CTL property. | |
void | HrcNode_add_define (HrcNode_ptr self, node_ptr def) |
Adds a DEFINE to the current node. | |
void | HrcNode_add_formal_parameter (HrcNode_ptr self, node_ptr par) |
Adds a formal parameter to the the current node. | |
void | HrcNode_add_frozen_function (HrcNode_ptr self, node_ptr fun) |
Adds a frozen function to the current node. | |
void | HrcNode_add_frozen_variable (HrcNode_ptr self, node_ptr var) |
Adds a frozen variable to the current node. | |
void | HrcNode_add_init_assign_expr (HrcNode_ptr self, node_ptr assign) |
Adds an init(*) := assignment to the current node. | |
void | HrcNode_add_init_expr (HrcNode_ptr self, node_ptr expr) |
Adds an INIT expression to the current node. | |
void | HrcNode_add_input_variable (HrcNode_ptr self, node_ptr var) |
Adds a input variable to the current node. | |
void | HrcNode_add_invar_assign_expr (HrcNode_ptr self, node_ptr assign) |
Adds an (*) := assignment to the current node. | |
void | HrcNode_add_invar_expr (HrcNode_ptr self, node_ptr expr) |
Adds an INVAR expression to the current node. | |
void | HrcNode_add_invar_property_expr (HrcNode_ptr self, node_ptr invar) |
Adds an INVARIANT property. | |
void | HrcNode_add_justice_expr (HrcNode_ptr self, node_ptr justice) |
Adds a JUSTICE constraint. | |
void | HrcNode_add_ltl_property_expr (HrcNode_ptr self, node_ptr ltl) |
Adds an LTL property. | |
void | HrcNode_add_next_assign_expr (HrcNode_ptr self, node_ptr assign) |
Adds an next(*) := assignment to the current node. | |
void | HrcNode_add_psl_property_expr (HrcNode_ptr self, node_ptr psl) |
Adds an PSL property. | |
void | HrcNode_add_state_variable (HrcNode_ptr self, node_ptr var) |
Adds a state variable to the current node. | |
void | HrcNode_add_trans_expr (HrcNode_ptr self, node_ptr expr) |
Adds an TRANS expression to the current node. | |
boolean | HrcNode_can_declare_assign (HrcNode_ptr self, node_ptr symbol, int assign_type) |
Checks if an assignment can be declared within the node. | |
void | HrcNode_cleanup (HrcNode_ptr self) |
Resets all fields of the given node. | |
HrcNode_ptr | HrcNode_copy (const HrcNode_ptr self) |
Creates a new node that is a copy of self without considering children. | |
HrcNode_ptr | HrcNode_copy_rename (const HrcNode_ptr self, node_ptr new_module_name) |
Creates a new node that is a copy of self without considering children. The name of the module of the new node is set as new_module_name. | |
HrcNode_ptr | HrcNode_create (const NuSMVEnv_ptr env) |
The HrcNode class constructor. | |
void | HrcNode_destroy (HrcNode_ptr self) |
The HrcNode class destructor. | |
void | HrcNode_destroy_recur (HrcNode_ptr self) |
The HrcNode class destructor. It recurses on the childs. | |
node_ptr | HrcNode_find_define (const HrcNode_ptr self, node_ptr def_name) |
Returns the define (def_name, def_body). | |
node_ptr | HrcNode_find_formal_parameter (const HrcNode_ptr self, node_ptr par_name) |
Returns the formal param (pair name, type). | |
HrcNode_ptr | HrcNode_find_hrc_node_by_instance_name (const HrcNode_ptr self, node_ptr name) |
Returns the pointer to the a module instance of a of given name. | |
HrcNode_ptr | HrcNode_find_hrc_node_by_mod_type (const HrcNode_ptr self, node_ptr mod_type) |
Returns the pointer to a node instance of mod_type. | |
Olist_ptr | HrcNode_find_hrc_nodes_by_mod_type (const HrcNode_ptr self, const node_ptr mod_type) |
Returns all the node instances of mod_type, from given root. | |
node_ptr | HrcNode_find_var (HrcNode_ptr self, node_ptr var_name, int type) |
Returns the variable var_name of type var_type. | |
node_ptr | HrcNode_find_var_all (HrcNode_ptr self, node_ptr var_name) |
Returns the variable var_name searching in all types. | |
Oiter | HrcNode_get_actual_parameters_iter (const HrcNode_ptr self) |
Gets the actual parameters of the current node. | |
int | HrcNode_get_actual_parameters_length (const HrcNode_ptr self) |
Returns the number of actual parameters. | |
Oiter | HrcNode_get_array_defines_iter (const HrcNode_ptr self) |
Gets the local ARRAY DEFINES of the current node. | |
int | HrcNode_get_array_defines_num (const HrcNode_ptr self) |
Returns the number of all declared array define. | |
Slist_ptr | HrcNode_get_child_hrc_nodes (const HrcNode_ptr self) |
Oiter | HrcNode_get_compassion_exprs_iter (const HrcNode_ptr self) |
Gets the list of COMPASSION constraints. | |
Oiter | HrcNode_get_compute_properties_iter (const HrcNode_ptr self) |
Gets the list of COMPUTE properties. | |
Oiter | HrcNode_get_constants_iter (const HrcNode_ptr self) |
Gets the list of CONSTANTS declarations. | |
int | HrcNode_get_constants_num (const HrcNode_ptr self) |
Returns the number of all declared constants. | |
node_ptr | HrcNode_get_crude_name (const HrcNode_ptr self) |
Gets the MOD_TYPE name of the node. | |
Oiter | HrcNode_get_ctl_properties_iter (const HrcNode_ptr self) |
Gets the list of CTL properties. | |
Oiter | HrcNode_get_defines_iter (const HrcNode_ptr self) |
Gets the local DEFINES of the current node. | |
int | HrcNode_get_defines_num (const HrcNode_ptr self) |
Returns the number of all declared defines. | |
node_ptr | HrcNode_get_flattened_instance_name (const HrcNode_ptr self) |
Gets the flattened instance name of the node. | |
Oiter | HrcNode_get_formal_parameters_iter (const HrcNode_ptr self) |
Gets the formal parameters of the current node. | |
int | HrcNode_get_formal_parameters_length (const HrcNode_ptr self) |
Returns the number of formal parameters. | |
Oiter | HrcNode_get_frozen_functions_iter (const HrcNode_ptr self) |
Gets the frozen functions of the current node. | |
Oiter | HrcNode_get_frozen_variables_iter (const HrcNode_ptr self) |
Gets the local frozen variables of the current node. | |
int | HrcNode_get_frozen_vars_num (const HrcNode_ptr self) |
Returns the number of all declared frozen variables. | |
int | HrcNode_get_functions_num (const HrcNode_ptr self) |
Returns the number of all NFunctions. | |
Oiter | HrcNode_get_init_assign_exprs_iter (const HrcNode_ptr self) |
Gets the init(*) := expressions for the current node. | |
Oiter | HrcNode_get_init_exprs_iter (const HrcNode_ptr self) |
Sets the INIT expressions for the current node. | |
Oiter | HrcNode_get_input_variables_iter (const HrcNode_ptr self) |
Gets the local input variables of the current node. | |
int | HrcNode_get_input_vars_num (const HrcNode_ptr self) |
Returns the number of all declared input variables. | |
node_ptr | HrcNode_get_instance_name (const HrcNode_ptr self) |
Gets the instance name of the node. | |
Oiter | HrcNode_get_invar_assign_exprs_iter (const HrcNode_ptr self) |
Gets the (*) := expressions for the current node. | |
Oiter | HrcNode_get_invar_exprs_iter (const HrcNode_ptr self) |
Sets the INVAR expressions for the current node. | |
Oiter | HrcNode_get_invar_properties_iter (const HrcNode_ptr self) |
Gets the list of INVARIANT properties. | |
Oiter | HrcNode_get_justice_exprs_iter (const HrcNode_ptr self) |
Gets the list of JUSTICE constraints. | |
int | HrcNode_get_lineno (const HrcNode_ptr self) |
Gets the MOD_TYPE lineno of the node. | |
Oiter | HrcNode_get_ltl_properties_iter (const HrcNode_ptr self) |
Gets the list of LTL properties. | |
node_ptr | HrcNode_get_name (const HrcNode_ptr self) |
Gets the MOD_TYPE name of the node. | |
Oiter | HrcNode_get_next_assign_exprs_iter (const HrcNode_ptr self) |
Gets the next(*) := expressions for the current node. | |
int | HrcNode_get_parameters_num (const HrcNode_ptr self) |
Returns the number of all parameters. | |
HrcNode_ptr | HrcNode_get_parent (const HrcNode_ptr self) |
Get the parent node of the node. | |
Oiter | HrcNode_get_psl_properties_iter (const HrcNode_ptr self) |
Gets the list of PSL properties. | |
HrcNode_ptr | HrcNode_get_root (const HrcNode_ptr self) |
Get the parent node of the node. | |
Oiter | HrcNode_get_state_variables_iter (const HrcNode_ptr self) |
Gets the local state variables of the current node. | |
int | HrcNode_get_state_vars_num (const HrcNode_ptr self) |
Returns the number of all declared state variables. | |
SymbTable_ptr | HrcNode_get_symbol_table (HrcNode_ptr self) |
Gets the symbol table. | |
int | HrcNode_get_symbols_num (const HrcNode_ptr self) |
Returns the number of all symbols. | |
Oiter | HrcNode_get_trans_exprs_iter (const HrcNode_ptr self) |
Gets the TRANS expressions for the current node. | |
void * | HrcNode_get_undef (const HrcNode_ptr self) |
Getter for the undef field. | |
int | HrcNode_get_vars_num (const HrcNode_ptr self) |
Returns the number of all declared variables. | |
boolean | HrcNode_is_leaf (const HrcNode_ptr self) |
Checks wether current node is a leaf node in the hierarchy. | |
boolean | HrcNode_is_root (const HrcNode_ptr self) |
Checks wether current node is the root of the hierarchy. | |
void | HrcNode_link_nodes (HrcNode_ptr self, HrcNode_ptr child) |
Link two nodes. | |
HrcNode_ptr | HrcNode_recursive_copy (const HrcNode_ptr self) |
void | HrcNode_remove_frozen_variable (HrcNode_ptr self, node_ptr var) |
Remove a frozen variable from the current node. | |
void | HrcNode_remove_input_variable (HrcNode_ptr self, node_ptr var) |
Remove a input variable from the current node. | |
void | HrcNode_remove_state_variable (HrcNode_ptr self, node_ptr var) |
Remove a state variable from the current node. | |
void | HrcNode_replace_actual_parameters (HrcNode_ptr self, Olist_ptr par) |
Replaces the actual parameters of the current node. | |
void | HrcNode_replace_array_defines (HrcNode_ptr self, Olist_ptr mdefs) |
Replaces the local ARRAY DEFINES of the current node. | |
void | HrcNode_replace_compassion_exprs (HrcNode_ptr self, Olist_ptr compassions) |
Replaces the list of COMPASSION constraints. | |
void | HrcNode_replace_compute_properties (HrcNode_ptr self, Olist_ptr computes) |
Replaces the list of COMPUTE properties. | |
void | HrcNode_replace_constants (HrcNode_ptr self, Olist_ptr constants) |
Replaces the list of CONSTANTS declarations. | |
void | HrcNode_replace_ctl_properties (HrcNode_ptr self, Olist_ptr ctls) |
Replaces the list of CTL properties. | |
void | HrcNode_replace_defines (HrcNode_ptr self, Olist_ptr defs) |
Replaces the local DEFINES of the current node. | |
void | HrcNode_replace_formal_parameters (HrcNode_ptr self, Olist_ptr par) |
Replaces the formal parameters of the current node. | |
void | HrcNode_replace_frozen_functions (HrcNode_ptr self, Olist_ptr functions) |
Replaces the local frozen functions of the current node. | |
void | HrcNode_replace_frozen_variables (HrcNode_ptr self, Olist_ptr vars) |
Replaces the local frozen variables of the current node. | |
void | HrcNode_replace_init_assign_exprs (HrcNode_ptr self, Olist_ptr assigns) |
Replaces the init(*) := expressions for the current node. | |
void | HrcNode_replace_init_exprs (HrcNode_ptr self, Olist_ptr exprs) |
Replaces the INIT expressions for the current node. | |
void | HrcNode_replace_input_variables (HrcNode_ptr self, Olist_ptr vars) |
Replacess the local input variables of the current node. | |
void | HrcNode_replace_invar_assign_exprs (HrcNode_ptr self, Olist_ptr assigns) |
Replaces the (*) := expressions for the current node. | |
void | HrcNode_replace_invar_exprs (HrcNode_ptr self, Olist_ptr exprs) |
Replaces the INVAR expressions for the current node. | |
void | HrcNode_replace_invar_properties (HrcNode_ptr self, Olist_ptr invars) |
Replaces the list of INVARIANT properties. | |
void | HrcNode_replace_justice_exprs (HrcNode_ptr self, Olist_ptr justices) |
Replaces the list of JUSTICE constraints. | |
void | HrcNode_replace_ltl_properties (HrcNode_ptr self, Olist_ptr ltls) |
Replaces the list of LTL properties. | |
void | HrcNode_replace_next_assign_exprs (HrcNode_ptr self, Olist_ptr assigns) |
Replaces the next(*) := expressions for the current node. | |
void | HrcNode_replace_psl_properties (HrcNode_ptr self, Olist_ptr psls) |
Replaces the list of PSL properties. | |
void | HrcNode_replace_state_variables (HrcNode_ptr self, Olist_ptr vars) |
Replaces the local state variables of the current node. | |
void | HrcNode_replace_trans_exprs (HrcNode_ptr self, Olist_ptr exprs) |
Replaces the TRANS expressions for the current node. | |
void | HrcNode_set_child_hrc_nodes (HrcNode_ptr self, Slist_ptr list) |
Sets the list of local childs for the current node. | |
void | HrcNode_set_instance_name (HrcNode_ptr self, node_ptr name) |
Sets the instance name of the node. | |
void | HrcNode_set_lineno (HrcNode_ptr self, int lineno) |
Sets the MOD_TYPE lineno of the node. | |
void | HrcNode_set_name (HrcNode_ptr self, node_ptr name) |
Sets the MOD_TYPE name of the node. | |
void | HrcNode_set_parent (const HrcNode_ptr self, HrcNode_ptr father) |
Sets the parent node of the node. | |
void | HrcNode_set_symbol_table (HrcNode_ptr self, SymbTable_ptr st) |
Sets the symbol table inside the node. | |
void | HrcNode_set_undef (const HrcNode_ptr self, void *undef) |
Getter for the undef field. | |
void | HrcNode_unlink_nodes (HrcNode_ptr self, HrcNode_ptr child) |
Unlink two nodes. |
Private and protected interface of class 'HrcNode'.
Public interface of class 'HrcNode'.
HrcNode class definition derived from class EnvObject
Definition of the public accessor for class HrcNode
HrcNode::INHERITS_FROM | ( | EnvObject | ) |
void hrc_node_deinit | ( | HrcNode_ptr | self | ) | [related] |
The HrcNode class private deinitializer.
The HrcNode class private deinitializer
void hrc_node_init | ( | HrcNode_ptr | self, | |
const NuSMVEnv_ptr | env | |||
) | [related] |
The HrcNode class private initializer.
The HrcNode class private initializer
void HrcNode_add_actual_parameter | ( | HrcNode_ptr | self, | |
node_ptr | par | |||
) | [related] |
void HrcNode_add_array_define | ( | HrcNode_ptr | self, | |
node_ptr | mdef | |||
) | [related] |
void HrcNode_add_child_hrc_node | ( | HrcNode_ptr | self, | |
HrcNode_ptr | node | |||
) | [related] |
void HrcNode_add_compassion_expr | ( | HrcNode_ptr | self, | |
node_ptr | compassion | |||
) | [related] |
Adds a COMPASSION constraint.
Adds a COMPASSION constraint.
Structure is updated
void HrcNode_add_compute_property_expr | ( | HrcNode_ptr | self, | |
node_ptr | compute | |||
) | [related] |
Adds a COMPUTE property.
Adds a COMPUTE property.
Structure is updated
void HrcNode_add_constants | ( | HrcNode_ptr | self, | |
node_ptr | constant | |||
) | [related] |
Adds a CONSTANTS declaration to the list of constants.
Adds a CONSTANTS declaration to the list of constants. All constants are kept in a unique list.
constant is a list of constants.
Structure is updated
void HrcNode_add_ctl_property_expr | ( | HrcNode_ptr | self, | |
node_ptr | ctl | |||
) | [related] |
Adds a CTL property.
Adds a CTL property.
Structure is updated
void HrcNode_add_define | ( | HrcNode_ptr | self, | |
node_ptr | def | |||
) | [related] |
void HrcNode_add_formal_parameter | ( | HrcNode_ptr | self, | |
node_ptr | par | |||
) | [related] |
void HrcNode_add_frozen_function | ( | HrcNode_ptr | self, | |
node_ptr | fun | |||
) | [related] |
void HrcNode_add_frozen_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
void HrcNode_add_init_assign_expr | ( | HrcNode_ptr | self, | |
node_ptr | assign | |||
) | [related] |
void HrcNode_add_init_expr | ( | HrcNode_ptr | self, | |
node_ptr | expr | |||
) | [related] |
void HrcNode_add_input_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
void HrcNode_add_invar_assign_expr | ( | HrcNode_ptr | self, | |
node_ptr | assign | |||
) | [related] |
void HrcNode_add_invar_expr | ( | HrcNode_ptr | self, | |
node_ptr | expr | |||
) | [related] |
void HrcNode_add_invar_property_expr | ( | HrcNode_ptr | self, | |
node_ptr | invar | |||
) | [related] |
Adds an INVARIANT property.
Adds an INVARIANT property.
Structure is updated
void HrcNode_add_justice_expr | ( | HrcNode_ptr | self, | |
node_ptr | justice | |||
) | [related] |
Adds a JUSTICE constraint.
Adds a JUSTICE constraint.
Structure is updated
void HrcNode_add_ltl_property_expr | ( | HrcNode_ptr | self, | |
node_ptr | ltl | |||
) | [related] |
Adds an LTL property.
Adds an LTL property.
Structure is updated
void HrcNode_add_next_assign_expr | ( | HrcNode_ptr | self, | |
node_ptr | assign | |||
) | [related] |
void HrcNode_add_psl_property_expr | ( | HrcNode_ptr | self, | |
node_ptr | psl | |||
) | [related] |
Adds an PSL property.
Adds an PSL property.
Structure is updated
void HrcNode_add_state_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
void HrcNode_add_trans_expr | ( | HrcNode_ptr | self, | |
node_ptr | expr | |||
) | [related] |
boolean HrcNode_can_declare_assign | ( | HrcNode_ptr | self, | |
node_ptr | symbol, | |||
int | assign_type | |||
) | [related] |
Checks if an assignment can be declared within the node.
Checks if an assignment can be declared within the node. If an INIT/NEXT assign is already declared for a symbol, then only a NEXT/INIT assign can be declared. If an INVAR assignment is already declared, then no other assignments can be declared
void HrcNode_cleanup | ( | HrcNode_ptr | self | ) | [related] |
HrcNode_ptr HrcNode_copy | ( | const HrcNode_ptr | self | ) | [related] |
HrcNode_ptr HrcNode_copy_rename | ( | const HrcNode_ptr | self, | |
node_ptr | new_module_name | |||
) | [related] |
Creates a new node that is a copy of self without considering children. The name of the module of the new node is set as new_module_name.
Creates a new node that is a copy of self without considering childre. The name of the module of the new node is set as new_module_name.
The copy does not even link a node with its parent.
HrcNode_ptr HrcNode_create | ( | const NuSMVEnv_ptr | env | ) | [related] |
The HrcNode class constructor.
AutomaticStart
The HrcNode class constructor
void HrcNode_destroy | ( | HrcNode_ptr | self | ) | [related] |
The HrcNode class destructor.
The HrcNode class destructor
The node is freed
void HrcNode_destroy_recur | ( | HrcNode_ptr | self | ) | [related] |
The HrcNode class destructor. It recurses on the childs.
The HrcNode class destructor. It recurses on the childs.
The whole hierarchy tree is freed
node_ptr HrcNode_find_define | ( | const HrcNode_ptr | self, | |
node_ptr | def_name | |||
) | [related] |
Returns the define (def_name, def_body).
Returns the define def_name with body. The search is performed only inside self node, thus the function does not recur over hierarchy.
A cons between the found name and define body is returned upon success. Returned cons must be freed by the caller. Nil is returned if define is not found.
def_name is the name of the define.
node_ptr HrcNode_find_formal_parameter | ( | const HrcNode_ptr | self, | |
node_ptr | par_name | |||
) | [related] |
Returns the formal param (pair name, type).
Returns the parameter par_name of type par_type. The search is performed only inside self node, thus the function does not recur over hierarchy. A cons between the found name and its type is returned upon success. Returned cons must be freed by the caller. Nil is returned if parameter is not found.
par_name is the name of the formal parameter.
Note that given parameter may have type set to Nil.
HrcNode_ptr HrcNode_find_hrc_node_by_instance_name | ( | const HrcNode_ptr | self, | |
node_ptr | name | |||
) | [related] |
Returns the pointer to the a module instance of a of given name.
Returns the pointer to the a module instance of a of given name. Returns HRC_NODE(NULL) if no instance exists.
None
HrcNode_ptr HrcNode_find_hrc_node_by_mod_type | ( | const HrcNode_ptr | self, | |
node_ptr | mod_type | |||
) | [related] |
Returns the pointer to a node instance of mod_type.
Returns the pointer to the first instance of a module of type mod_type encountered in a depth first traversal of the hierarchy tree. Returns HRC_NODE(NULL) if no instance exists.
None
Olist_ptr HrcNode_find_hrc_nodes_by_mod_type | ( | const HrcNode_ptr | self, | |
const node_ptr | mod_type | |||
) | [related] |
Returns all the node instances of mod_type, from given root.
Returns a list of pointers to all the instances of a module of type mod_type encountered in a depth first traversal of the hierarchy tree. Returned list must be freed by the caller.
None
node_ptr HrcNode_find_var | ( | HrcNode_ptr | self, | |
node_ptr | var_name, | |||
int | type | |||
) | [related] |
Returns the variable var_name of type var_type.
Returns the variable var_name of type var_type. The search is performed only inside self node, thus the function does not recur over hierarchy. A cons between the found variable and its type is returned upon success. Returned cons must be freed by the caller. Nil is returned if variable is not found.
var_name is the name of the variable while type is the type of variable to search (VAR, FROZENVAR, IVAR).
[MD] bad interface, the input is a symbol, the output is a pair symbol, type (returned as a CONS)
node_ptr HrcNode_find_var_all | ( | HrcNode_ptr | self, | |
node_ptr | var_name | |||
) | [related] |
Returns the variable var_name searching in all types.
Like HrcNode_find_var, but it searches in all variable types VAR, FROZENVAR, INVAR
Oiter HrcNode_get_actual_parameters_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_actual_parameters_length | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of actual parameters.
Oiter HrcNode_get_array_defines_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_array_defines_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared array define.
Slist_ptr HrcNode_get_child_hrc_nodes | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_compassion_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of COMPASSION constraints.
Gets the list of COMPASSION constraints.
None
Oiter HrcNode_get_compute_properties_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of COMPUTE properties.
Gets the list of COMPUTE properties.
None
Oiter HrcNode_get_constants_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of CONSTANTS declarations.
Gets the list of CONSTANTS declarations.
None
int HrcNode_get_constants_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared constants.
Warning: this functions returns a number that can be different from the one returned by SymbTable_get_constants_num (constants within types could be not counted here)
node_ptr HrcNode_get_crude_name | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_ctl_properties_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of CTL properties.
Gets the list of CTL properties.
None
Oiter HrcNode_get_defines_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_defines_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared defines.
node_ptr HrcNode_get_flattened_instance_name | ( | const HrcNode_ptr | self | ) | [related] |
Gets the flattened instance name of the node.
Gets the flattened instance name of the node.
The hierarchy is visited upward from self until main node is found. The flattened and normalized instance node is built and returned.
The flattened instance name is the name obtained considering all the anchestors instance of the current node.
The result of this operation could also be memoized to improve performances (this would avoid to recompute the same path twice).
Oiter HrcNode_get_formal_parameters_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_formal_parameters_length | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of formal parameters.
Oiter HrcNode_get_frozen_functions_iter | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_frozen_variables_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_frozen_vars_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared frozen variables.
int HrcNode_get_functions_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all NFunctions.
Oiter HrcNode_get_init_assign_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_init_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_input_variables_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_input_vars_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared input variables.
node_ptr HrcNode_get_instance_name | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_invar_assign_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_invar_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_invar_properties_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of INVARIANT properties.
Gets the list of INVARIANT properties.
None
Oiter HrcNode_get_justice_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of JUSTICE constraints.
Gets the list of JUSTICE constraints.
None
int HrcNode_get_lineno | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_ltl_properties_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of LTL properties.
Gets the list of LTL properties.
None
node_ptr HrcNode_get_name | ( | const HrcNode_ptr | self | ) | [related] |
Oiter HrcNode_get_next_assign_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_parameters_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all parameters.
HrcNode_ptr HrcNode_get_parent | ( | const HrcNode_ptr | self | ) | [related] |
Get the parent node of the node.
Get the parent node of the node. HRC_NODE(NULL) is returned if no father available.
None
Oiter HrcNode_get_psl_properties_iter | ( | const HrcNode_ptr | self | ) | [related] |
Gets the list of PSL properties.
Gets the list of PSL properties.
None
HrcNode_ptr HrcNode_get_root | ( | const HrcNode_ptr | self | ) | [related] |
Get the parent node of the node.
Get the parent node of the node. HRC_NODE(NULL) is returned if no father available.
None
Oiter HrcNode_get_state_variables_iter | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_state_vars_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared state variables.
SymbTable_ptr HrcNode_get_symbol_table | ( | HrcNode_ptr | self | ) | [related] |
Gets the symbol table.
Gets the symbol table.
None
int HrcNode_get_symbols_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all symbols.
Oiter HrcNode_get_trans_exprs_iter | ( | const HrcNode_ptr | self | ) | [related] |
void * HrcNode_get_undef | ( | const HrcNode_ptr | self | ) | [related] |
int HrcNode_get_vars_num | ( | const HrcNode_ptr | self | ) | [related] |
Returns the number of all declared variables.
boolean HrcNode_is_leaf | ( | const HrcNode_ptr | self | ) | [related] |
boolean HrcNode_is_root | ( | const HrcNode_ptr | self | ) | [related] |
void HrcNode_link_nodes | ( | HrcNode_ptr | self, | |
HrcNode_ptr | child | |||
) | [related] |
HrcNode_ptr HrcNode_recursive_copy | ( | const HrcNode_ptr | self | ) | [related] |
Creates a copy of self and recursively of all its children.
void HrcNode_remove_frozen_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
Remove a frozen variable from the current node.
The symbol table is not modified. Linear in the number of frozen variables
void HrcNode_remove_input_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
Remove a input variable from the current node.
The symbol table is not modified. Linear in the number of input variables
void HrcNode_remove_state_variable | ( | HrcNode_ptr | self, | |
node_ptr | var | |||
) | [related] |
Remove a state variable from the current node.
The symbol table is not modified. Linear in the number of state variables
void HrcNode_replace_actual_parameters | ( | HrcNode_ptr | self, | |
Olist_ptr | par | |||
) | [related] |
void HrcNode_replace_array_defines | ( | HrcNode_ptr | self, | |
Olist_ptr | mdefs | |||
) | [related] |
void HrcNode_replace_compassion_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | compassions | |||
) | [related] |
Replaces the list of COMPASSION constraints.
Replaces the list of COMPASSION constraints.
Structure is updated
void HrcNode_replace_compute_properties | ( | HrcNode_ptr | self, | |
Olist_ptr | computes | |||
) | [related] |
Replaces the list of COMPUTE properties.
Replaces the list of COMPUTE properties.
Structure is updated
void HrcNode_replace_constants | ( | HrcNode_ptr | self, | |
Olist_ptr | constants | |||
) | [related] |
Replaces the list of CONSTANTS declarations.
Replaces the list of CONSTANTS declarations.
Structure is updated
void HrcNode_replace_ctl_properties | ( | HrcNode_ptr | self, | |
Olist_ptr | ctls | |||
) | [related] |
Replaces the list of CTL properties.
Replaces the list of CTL properties.
Structure is updated
void HrcNode_replace_defines | ( | HrcNode_ptr | self, | |
Olist_ptr | defs | |||
) | [related] |
void HrcNode_replace_formal_parameters | ( | HrcNode_ptr | self, | |
Olist_ptr | par | |||
) | [related] |
void HrcNode_replace_frozen_functions | ( | HrcNode_ptr | self, | |
Olist_ptr | functions | |||
) | [related] |
void HrcNode_replace_frozen_variables | ( | HrcNode_ptr | self, | |
Olist_ptr | vars | |||
) | [related] |
void HrcNode_replace_init_assign_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | assigns | |||
) | [related] |
void HrcNode_replace_init_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | exprs | |||
) | [related] |
void HrcNode_replace_input_variables | ( | HrcNode_ptr | self, | |
Olist_ptr | vars | |||
) | [related] |
void HrcNode_replace_invar_assign_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | assigns | |||
) | [related] |
void HrcNode_replace_invar_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | exprs | |||
) | [related] |
void HrcNode_replace_invar_properties | ( | HrcNode_ptr | self, | |
Olist_ptr | invars | |||
) | [related] |
Replaces the list of INVARIANT properties.
Replaces the list of INVARIANT properties.
Structure is updated
void HrcNode_replace_justice_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | justices | |||
) | [related] |
Replaces the list of JUSTICE constraints.
Replaces the list of JUSTICE constraints.
Structure is updated
void HrcNode_replace_ltl_properties | ( | HrcNode_ptr | self, | |
Olist_ptr | ltls | |||
) | [related] |
Replaces the list of LTL properties.
Replaces the list of LTL properties.
Structure is updated
void HrcNode_replace_next_assign_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | assigns | |||
) | [related] |
void HrcNode_replace_psl_properties | ( | HrcNode_ptr | self, | |
Olist_ptr | psls | |||
) | [related] |
Replaces the list of PSL properties.
Replaces the list of PSL properties.
Structure is updated
void HrcNode_replace_state_variables | ( | HrcNode_ptr | self, | |
Olist_ptr | vars | |||
) | [related] |
void HrcNode_replace_trans_exprs | ( | HrcNode_ptr | self, | |
Olist_ptr | exprs | |||
) | [related] |
void HrcNode_set_child_hrc_nodes | ( | HrcNode_ptr | self, | |
Slist_ptr | list | |||
) | [related] |
void HrcNode_set_instance_name | ( | HrcNode_ptr | self, | |
node_ptr | name | |||
) | [related] |
void HrcNode_set_lineno | ( | HrcNode_ptr | self, | |
int | lineno | |||
) | [related] |
void HrcNode_set_name | ( | HrcNode_ptr | self, | |
node_ptr | name | |||
) | [related] |
void HrcNode_set_parent | ( | const HrcNode_ptr | self, | |
HrcNode_ptr | father | |||
) | [related] |
void HrcNode_set_symbol_table | ( | HrcNode_ptr | self, | |
SymbTable_ptr | st | |||
) | [related] |
void HrcNode_set_undef | ( | const HrcNode_ptr | self, | |
void * | undef | |||
) | [related] |
void HrcNode_unlink_nodes | ( | HrcNode_ptr | self, | |
HrcNode_ptr | child | |||
) | [related] |
Unlink two nodes.
Unlink two nodes and "deinstantiate" child, since its instantiation makes sense only as a child of self
hash_ptr HrcNode::assigns_table |
node_ptr HrcNode::instance_name |
int HrcNode::lineno |
node_ptr HrcNode::name |
void* HrcNode::undef |