|
nuXmv API 126f6942
API for nuXmv
|
Functions for handling Expression Types. More...
Macros | |
| #define | NUXMV_VALID_EXPR_TYPE(expr_type) ((expr_type).repr != NULL) |
| Valid expression type. | |
Functions for handling Expression Types.
| #define NUXMV_VALID_EXPR_TYPE | ( | expr_type | ) | ((expr_type).repr != NULL) |
Valid expression type.
This macro checks whether type is a valid nuxmv_expr_type.
| [in] | expr_type | The expression type to inspect. |
true if the option is valid, false otherwise. | nuxmv_expr_type nuxmv_array_type_get_element | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the type of the elements of an array type.
| [in] | env | The environment to inspect. |
| [in] | type | The array type to extract the element type from. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_array_type_get_index | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the type of the index of an array type.
| [in] | env | The environment to inspect. |
| [in] | type | The array type to extract the index type from. |
false.Requirements: 03.001.03
| size_t nuxmv_expr_type_get_id | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the ID of a type.
| [in] | env | The environment to inspect. |
| [in] | type | The expression type to extract the ID from. |
| nuxmv_expr_type_tag nuxmv_expr_type_get_tag | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the tag of a type.
| [in] | env | The environment to inspect. |
| [in] | type | The expression type to extract the tag from. |
Requirements: 03.001.03
| nuxmv_expr_type nuxmv_function_type_get_argument | ( | nuxmv_env | env, |
| nuxmv_expr_type | type, | ||
| int | arg_idx | ||
| ) |
Get the i-th argument type of a function type.
| [in] | env | The environment to inspect. |
| [in] | type | The function type to extract the argument type from. |
| [in] | arg_idx | The index of the argument counting from 0. |
false.Requirements: 03.001.03
| int nuxmv_function_type_get_argument_num | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the number of arguments of a function type.
| [in] | env | The environment to inspect. |
| [in] | type | The function type to extract the argument type number from. |
-1 in case of error.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_function_type_get_result | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the type of the result of a function type.
| [in] | env | The environment to inspect. |
| [in] | type | The function type to extract the result type from. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_array_type | ( | nuxmv_env | env, |
| nuxmv_expr_type | idx, | ||
| nuxmv_expr_type | elem | ||
| ) |
Create an array type.
| [in] | env | The environment to modify. |
| [in] | idx | A type for the array index. |
| [in] | elem | A type for the array's elements. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_boolean_type | ( | nuxmv_env | env | ) |
Create a Boolean type.
| [in] | env | The environment to modify. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_enum_type | ( | nuxmv_env | env | ) |
Create an enumerative type whose variants are symbolic tags.
| [in] | env | The environment to modify. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_function_type | ( | nuxmv_env | env, |
| const nuxmv_expr_type * | args, | ||
| size_t | arg_num, | ||
| nuxmv_expr_type | result | ||
| ) |
Create a new (uninterpreted) function type.
| [in] | env | The environment to modify. |
| [in] | args | A list of function's arguments. |
| [in] | arg_num | The number of arguments in the list. |
| [in] | result | The type of the result returned by the function. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_integer_type | ( | nuxmv_env | env | ) |
Create an integer type.
| [in] | env | The environment to modify. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_real_type | ( | nuxmv_env | env | ) |
Create a real type.
| [in] | env | The environment to modify. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_set_type | ( | nuxmv_env | env, |
| nuxmv_expr_type | elem | ||
| ) |
Create a set type.
| [in] | env | The environment to modify. |
| [in] | elem | A type for the elements in the set. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_signed_word_type | ( | nuxmv_env | env, |
| size_t | width | ||
| ) |
Create a signed word type.
| [in] | env | The environment to modify. |
| [in] | width | The number of bits for the word. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_make_unsigned_word_type | ( | nuxmv_env | env, |
| size_t | width | ||
| ) |
Create an unsigned word type.
| [in] | env | The environment to modify. |
| [in] | width | The number of bits for the word. |
false.Requirements: 03.001.03
| nuxmv_expr_type nuxmv_set_type_get_element | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the type of the elements of a set type.
| [in] | env | The environment to inspect. |
| [in] | type | The set type to extract the element type from. |
false.Requirements: 03.001.03
| int nuxmv_word_type_get_width | ( | nuxmv_env | env, |
| nuxmv_expr_type | type | ||
| ) |
Get the width of a (un)signed word type.
| [in] | env | The environment to inspect. |
| [in] | type | The expression type to extract the width from. |
-1 in case of error.Requirements: 03.001.03