|
nuXmv API 126f6942
API for nuXmv
|
Functions for getting objects from a Module. More...

Functions | |
| const char * | nuxmv_module_get_name (nuxmv_env env, nuxmv_module module) |
| Get the name of a module. | |
| int | nuxmv_module_get_param_num (nuxmv_env env, nuxmv_module module) |
| Get the number of parameters of a module. | |
| nuxmv_expr | nuxmv_module_get_param (nuxmv_env env, nuxmv_module module, int param_idx) |
| Get the i-th parameter of a module. | |
| int | nuxmv_module_get_state_var_num (nuxmv_env env, nuxmv_module module) |
| Get the number of state variables in a module. | |
| nuxmv_var_decl | nuxmv_module_get_state_var (nuxmv_env env, nuxmv_module module, int var_idx) |
| Get the i-th state variable of a module. | |
| int | nuxmv_module_get_input_var_num (nuxmv_env env, nuxmv_module module) |
| Get the number of input variables in a module. | |
| nuxmv_var_decl | nuxmv_module_get_input_var (nuxmv_env env, nuxmv_module module, int var_idx) |
| Get the i-th input variable of a module. | |
| int | nuxmv_module_get_frozen_var_num (nuxmv_env env, nuxmv_module module) |
| Get the number of frozen variables in a module. | |
| nuxmv_var_decl | nuxmv_module_get_frozen_var (nuxmv_env env, nuxmv_module module, int var_idx) |
| Get the i-th frozen variable of a module. | |
| int | nuxmv_module_get_function_num (nuxmv_env env, nuxmv_module module) |
| Get the number of uninterpreted function declarations in a module. | |
| nuxmv_fun_decl | nuxmv_module_get_function (nuxmv_env env, nuxmv_module module, int fun_idx) |
| Get the i-th uninterpreted function declaration of a module. | |
| int | nuxmv_module_get_init_num (nuxmv_env env, nuxmv_module module) |
| Get the number of initial constraints in a module. | |
| nuxmv_expr | nuxmv_module_get_init (nuxmv_env env, nuxmv_module module, int init_idx) |
| Get the i-th initial constraint of a module. | |
| int | nuxmv_module_get_trans_num (nuxmv_env env, nuxmv_module module) |
| Get the number of transition constraints in a module. | |
| nuxmv_expr | nuxmv_module_get_trans (nuxmv_env env, nuxmv_module module, int trans_idx) |
| Get the i-th transition constraint of a module. | |
| int | nuxmv_module_get_invar_num (nuxmv_env env, nuxmv_module module) |
| Get the number of invariant constraints in a module. | |
| nuxmv_expr | nuxmv_module_get_invar (nuxmv_env env, nuxmv_module module, int invar_idx) |
| Get the i-th invariant constraint of a module. | |
| int | nuxmv_module_get_justice_num (nuxmv_env env, nuxmv_module module) |
| Get the number of justice constraints in a module. | |
| nuxmv_expr | nuxmv_module_get_justice (nuxmv_env env, nuxmv_module module, int just_idx) |
| Get the i-th justice constraint of a module. | |
| int | nuxmv_module_get_compassion_num (nuxmv_env env, nuxmv_module module) |
| Get the number of compassions in a module. | |
| nuxmv_compassion | nuxmv_module_get_compassion (nuxmv_env env, nuxmv_module module, int comp_idx) |
| Get the i-th compassion of a module. | |
| int | nuxmv_module_get_define_num (nuxmv_env env, nuxmv_module module) |
| Get the number of define declarations in a module. | |
| nuxmv_define_decl | nuxmv_module_get_define (nuxmv_env env, nuxmv_module module, int def_idx) |
| Get the i-th define declaration of a module. | |
| int | nuxmv_module_get_init_assign_num (nuxmv_env env, nuxmv_module module) |
| Get the number of initial assignments in a module. | |
| nuxmv_assign | nuxmv_module_get_init_assign (nuxmv_env env, nuxmv_module module, int assign_idx) |
| Get the i-th initial assignment of a module. | |
| int | nuxmv_module_get_next_assign_num (nuxmv_env env, nuxmv_module module) |
| Get the number of next assignments in a module. | |
| nuxmv_assign | nuxmv_module_get_next_assign (nuxmv_env env, nuxmv_module module, int assign_idx) |
| Get the i-th next assignment of a module. | |
| int | nuxmv_module_get_invar_assign_num (nuxmv_env env, nuxmv_module module) |
| Get the number of invariant assignments in a module. | |
| nuxmv_assign | nuxmv_module_get_invar_assign (nuxmv_env env, nuxmv_module module, int assign_idx) |
| Get the i-th invariant assignment of a module. | |
| int | nuxmv_module_get_property_num (nuxmv_env env, nuxmv_module module) |
| Get the number of properties in a module. | |
| nuxmv_property | nuxmv_module_get_property (nuxmv_env env, nuxmv_module module, int prop_idx) |
| Get the i-th property of a module. | |
| int | nuxmv_module_get_submodule_num (nuxmv_env env, nuxmv_module module) |
| Get the number of submodules in a module. | |
| const char * | nuxmv_module_get_submodule_name (nuxmv_env env, nuxmv_module module, int sub_idx) |
| Get the name of the i-th submodule of a module. | |
| nuxmv_module | nuxmv_module_get_submodule (nuxmv_env env, nuxmv_module module, int sub_idx) |
| Get the i-th submodule of a module. | |
| int | nuxmv_module_get_submodule_param_num (nuxmv_env env, nuxmv_module module, int sub_idx) |
| Get the number of parameters in a submodule. | |
| nuxmv_expr | nuxmv_module_get_submodule_param (nuxmv_env env, nuxmv_module module, int sub_idx, int param_idx) |
| Get the i-th parameter of a submodule. | |
| int | nuxmv_serialize_module_to_string (nuxmv_env env, nuxmv_module module, bool with_submodules, nuxmv_serialized_chunk_callback callback, void *user_data, char *data, size_t data_size) |
| Serialize a module to a string in SMV format. | |
Functions for getting objects from a Module.
| nuxmv_compassion nuxmv_module_get_compassion | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | comp_idx | ||
| ) |
Get the i-th compassion of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | comp_idx | The index of the compassion counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_compassion_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of compassions in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the compassion number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_define_decl nuxmv_module_get_define | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | def_idx | ||
| ) |
Get the i-th define declaration of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | def_idx | The index of the define declaration counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_define_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of define declarations in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the define declaration number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_var_decl nuxmv_module_get_frozen_var | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | var_idx | ||
| ) |
Get the i-th frozen variable of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | var_idx | The index of the frozen variable counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_frozen_var_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of frozen variables in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the frozen variable number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_fun_decl nuxmv_module_get_function | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | fun_idx | ||
| ) |
Get the i-th uninterpreted function declaration of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | fun_idx | The index of the uninterpreted function declaration counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_function_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of uninterpreted function declarations in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the uninterpreted function declaration number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_expr nuxmv_module_get_init | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | init_idx | ||
| ) |
Get the i-th initial constraint of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | init_idx | The index of the initial constraint counting from 0. |
false.Requirements: 03.009.02
| nuxmv_assign nuxmv_module_get_init_assign | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | assign_idx | ||
| ) |
Get the i-th initial assignment of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | assign_idx | The index of the initial assignment counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_init_assign_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of initial assignments in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the initial assignment number from. |
-1 in case of error.Requirements: 03.009.02
| int nuxmv_module_get_init_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of initial constraints in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the initial constraint number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_var_decl nuxmv_module_get_input_var | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | var_idx | ||
| ) |
Get the i-th input variable of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | var_idx | The index of the input variable counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_input_var_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of input variables in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the input variable number from. |
-1 in case of error.Requirements: ??
| nuxmv_expr nuxmv_module_get_invar | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | invar_idx | ||
| ) |
Get the i-th invariant constraint of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | invar_idx | The index of the invariant constraint counting from 0. |
false.Requirements: 03.009.02
| nuxmv_assign nuxmv_module_get_invar_assign | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | assign_idx | ||
| ) |
Get the i-th invariant assignment of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | assign_idx | The index of the invariant assignment counting from 0. |
false.Requirements: ??
| int nuxmv_module_get_invar_assign_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of invariant assignments in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the invariant assignment number from. |
-1 in case of error.Requirements: ??
| int nuxmv_module_get_invar_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of invariant constraints in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the invariant constraint number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_expr nuxmv_module_get_justice | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | just_idx | ||
| ) |
Get the i-th justice constraint of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | just_idx | The index of the justice constraint counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_justice_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of justice constraints in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the justice constraint number from. |
-1 in case of error.Requirements: 03.009.02
| const char * nuxmv_module_get_name | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the name of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| nuxmv_assign nuxmv_module_get_next_assign | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | assign_idx | ||
| ) |
Get the i-th next assignment of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | assign_idx | The index of the next assignment counting from 0. |
false.Requirements: ??
| int nuxmv_module_get_next_assign_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of next assignments in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the next assignment number from. |
-1 in case of error.Requirements: ??
| nuxmv_expr nuxmv_module_get_param | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | param_idx | ||
| ) |
Get the i-th parameter of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | param_idx | The index of the parameter counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_param_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of parameters of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_property nuxmv_module_get_property | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | prop_idx | ||
| ) |
Get the i-th property of a module.
| [in] | env | The environment to modify. |
| [in] | module | The module to modify. |
| [in] | prop_idx | The index of the property counting from 0. |
false.Requirements: 03.008
| int nuxmv_module_get_property_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of properties in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the property number from. |
-1 in case of error.Requirements: 03.008
| nuxmv_var_decl nuxmv_module_get_state_var | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | var_idx | ||
| ) |
Get the i-th state variable of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | var_idx | The index of the state variable counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_state_var_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of state variables in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the state variable number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_module nuxmv_module_get_submodule | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | sub_idx | ||
| ) |
Get the i-th submodule of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | sub_idx | The index of the submodule counting from 0. |
false.Requirements: 03.009.02
| const char * nuxmv_module_get_submodule_name | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | sub_idx | ||
| ) |
Get the name of the i-th submodule of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | sub_idx | The index of the submodule counting from 0. |
NULL in case of error.Requirements: 03.009.02
| int nuxmv_module_get_submodule_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of submodules in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_expr nuxmv_module_get_submodule_param | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | sub_idx, | ||
| int | param_idx | ||
| ) |
Get the i-th parameter of a submodule.
| [in] | env | The environment to inspect. |
| [in] | module | The parent module to inspect. |
| [in] | sub_idx | The submodule to extract the parameter number from. |
| [in] | param_idx | The index of the parameter counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_submodule_param_num | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | sub_idx | ||
| ) |
Get the number of parameters in a submodule.
| [in] | env | The environment to inspect. |
| [in] | module | The parent module to inspect. |
| [in] | sub_idx | The submodule to extract the parameter number from. |
-1 in case of error.Requirements: 03.009.02
| nuxmv_expr nuxmv_module_get_trans | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| int | trans_idx | ||
| ) |
Get the i-th transition constraint of a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to inspect. |
| [in] | trans_idx | The index of the transition constraint counting from 0. |
false.Requirements: 03.009.02
| int nuxmv_module_get_trans_num | ( | nuxmv_env | env, |
| nuxmv_module | module | ||
| ) |
Get the number of transition constraints in a module.
| [in] | env | The environment to inspect. |
| [in] | module | The module to extract the transition constraint number from. |
-1 in case of error.Requirements: 03.009.02
| int nuxmv_serialize_module_to_string | ( | nuxmv_env | env, |
| nuxmv_module | module, | ||
| bool | with_submodules, | ||
| nuxmv_serialized_chunk_callback | callback, | ||
| void * | user_data, | ||
| char * | data, | ||
| size_t | data_size | ||
| ) |
Serialize a module to a string in SMV format.
This function converts the given module into a string representation using the SMV format.
The output is written to the provided buffer. When the serialization process fills up the buffer:
data_size is returned;The callback is responsible for handling the data chunk (e.g., copying it elsewhere). If the callback returns false, the process is aborted and the function returns the number of bytes written up to that point.
When the serialization process is completed successfully, the output buffer contains a null-terminated string and the callback is called, if any.
| [in] | env | The environment to inspect. |
| [in] | module | The module to serialize. |
| [in] | with_submodules | Flag indicating whether submodules should be (recursively) serialized. |
| [in] | callback | Optional callback function invoked whenever the buffer is full or the serialization process is completed. |
| [in] | user_data | User-defined context passed to the callback. |
| [out] | data | The buffer where the serialized model will be stored. |
| [in] | data_size | The size of the data buffer. |
data_size, if no callback is provided and the serialized model was truncated;callback, if the callback eventually requests to stop;-1 in case of error.Requirements: 03.002