|
nuXmv API 126f6942
API for nuXmv
|
Functions for handling Variable Types. More...
Macros | |
| #define | NUXMV_VALID_VAR_TYPE(var_type) ((var_type).repr != NULL) |
| Valid variable type. | |
Functions | |
| nuxmv_var_type | nuxmv_make_simple_var_type (nuxmv_env env, nuxmv_expr_type type) |
| Get the variable type corresponding to a type. | |
| nuxmv_var_type | nuxmv_make_var_type_with_domain (nuxmv_env env, const nuxmv_expr *domain, size_t domain_num) |
| Get the variable type corresponding to an enumerative. | |
| nuxmv_var_type | nuxmv_make_var_type_with_integer_range (nuxmv_env env, int min, int max) |
| Returns the var_type corresponding to the selected bounded int type. | |
| nuxmv_var_type | nuxmv_make_var_type_array (nuxmv_env env, nuxmv_var_type idx, nuxmv_var_type elem) |
| Builds an array var_type. | |
| nuxmv_expr_type | nuxmv_var_type_get_expr_type (nuxmv_env env, nuxmv_var_type var_type) |
| Get the expression type corresponding to a variable type. | |
| nuxmv_var_type_tag | nuxmv_var_type_get_tag (nuxmv_env env, nuxmv_var_type var_type) |
| Get the tag of a var_type. | |
| size_t | nuxmv_var_type_get_id (nuxmv_env env, nuxmv_var_type var_type) |
| Get the ID of a var type. | |
| nuxmv_var_type | nuxmv_var_type_array_get_index (nuxmv_env env, nuxmv_var_type var_type) |
| Get the var type of the index of an array var type. | |
| nuxmv_var_type | nuxmv_var_type_array_get_element (nuxmv_env env, nuxmv_var_type var_type) |
| Get the var type of the element of an array var type. | |
| int | nuxmv_var_type_integer_range_get_min (nuxmv_env env, nuxmv_var_type var_type) |
| Get the min value an integer range var type. | |
| int | nuxmv_var_type_integer_range_get_max (nuxmv_env env, nuxmv_var_type var_type) |
| Get the max value an integer range var type. | |
| int | nuxmv_var_type_get_domain_num (nuxmv_env env, nuxmv_var_type var_type) |
| Get the number of elements of a var type with domain. | |
| nuxmv_expr | nuxmv_var_type_get_domain_element (nuxmv_env env, nuxmv_var_type var_type, int elem_idx) |
| Get the domain element at the given index of a var type with domain. | |
Functions for handling Variable Types.
| #define NUXMV_VALID_VAR_TYPE | ( | var_type | ) | ((var_type).repr != NULL) |
Valid variable type.
This macro checks whether var_type is a valid nuxmv_var_type.
| [in] | var_type | The variable type to inspect. |
true if the option is valid, false otherwise. | nuxmv_var_type nuxmv_make_simple_var_type | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the variable type corresponding to a type.
| [in] | env | The environment to inspect. |
| [in] | type | The expression type to inspect. |
Requirements: 03.001.03
| nuxmv_var_type nuxmv_make_var_type_array | ( | nuxmv_env | env, |
| nuxmv_var_type | idx, | ||
| nuxmv_var_type | elem | ||
| ) |
Builds an array var_type.
| [in] | env | The environment to inspect. |
| [in] | idx | The variable type for the array index. |
| [in] | elem | The variable type for the array's elements. |
false.Requirements: ??
| nuxmv_var_type nuxmv_make_var_type_with_domain | ( | nuxmv_env | env, |
| const nuxmv_expr * | domain, | ||
| size_t | domain_num | ||
| ) |
Get the variable type corresponding to an enumerative.
It specifies enumerative values for the variable type.
| [in] | env | The environment to inspect. |
| [in] | domain | The list of identifiers that belongs to the domain. All identifiers shall be of the same type. |
| [in] | domain_num | The number of values in the list. |
false.Requirements: 03.001.03
| nuxmv_var_type nuxmv_make_var_type_with_integer_range | ( | nuxmv_env | env, |
| int | min, | ||
| int | max | ||
| ) |
Returns the var_type corresponding to the selected bounded int type.
It specifies lower and upper bounds for the var_type.
| [in] | env | The environment to inspect. |
| [in] | min | The minimum value in the range, inclusive. |
| [in] | max | The maximum value in the range, inclusive. |
false.Requirements: 03.001.03
| nuxmv_var_type nuxmv_var_type_array_get_element | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the var type of the element of an array var type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The array var type to extract the element type from. |
false.Requirements: 03.001.03
| nuxmv_var_type nuxmv_var_type_array_get_index | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the var type of the index of an array var type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The array var type to extract the index type from. |
false.Requirements: 03.001.03
| nuxmv_expr nuxmv_var_type_get_domain_element | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type, | ||
| int | elem_idx | ||
| ) |
Get the domain element at the given index of a var type with domain.
| [in] | env | The environment to inspect. |
| [in] | var_type | The var type with domain to extract the number of elements from. |
| [in] | elem_idx | The index of the domain element to retrieve. |
false.Requirements: 03.001.03
| int nuxmv_var_type_get_domain_num | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the number of elements of a var type with domain.
| [in] | env | The environment to inspect. |
| [in] | var_type | The var type with domain to extract the number of elements from. |
-1 is returned.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_var_type_get_expr_type | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the expression type corresponding to a variable type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The variable type to inspect. |
| size_t nuxmv_var_type_get_id | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the ID of a var type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The var type to extract the ID from. |
| nuxmv_var_type_tag nuxmv_var_type_get_tag | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the tag of a var_type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The variable type to extract the tag from. |
Requirements: 03.001.03
| int nuxmv_var_type_integer_range_get_max | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the max value an integer range var type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The integer range var type to extract the max value from. |
INT_MIN is returned.Requirements: 03.001.03
| int nuxmv_var_type_integer_range_get_min | ( | nuxmv_env | env, |
| nuxmv_var_type | var_type | ||
| ) |
Get the min value an integer range var type.
| [in] | env | The environment to inspect. |
| [in] | var_type | The integer range var type to extract the min value from. |
INT_MIN is returned.Requirements: 03.001.03