|
nuXmv API 126f6942
API for nuXmv
|
Functions for handling Symbols. More...
Macros | |
| #define | NUXMV_VALID_SYMBOL(symbol) ((symbol).repr != NULL) |
| Valid symbol. | |
Functions | |
| nuxmv_symbol | nuxmv_make_symbol (nuxmv_env env, const char *name) |
| Create a new symbol. | |
| nuxmv_symbol | nuxmv_make_scoped_symbol (nuxmv_env env, const char *name, nuxmv_symbol scope) |
| Create a new symbol with the given name and context. | |
| size_t | nuxmv_symbol_get_id (nuxmv_env env, nuxmv_symbol sym) |
| Get the ID of a symbol. | |
| const char * | nuxmv_symbol_get_name (nuxmv_env env, nuxmv_symbol symbol) |
| Get the name of a symbol. | |
| int | nuxmv_symbol_is_scoped (nuxmv_env env, nuxmv_symbol symbol) |
| Test whether a symbol is scoped. | |
| nuxmv_symbol | nuxmv_symbol_get_scope (nuxmv_env env, nuxmv_symbol symbol) |
| Get the scope of a symbol. | |
Functions for handling Symbols.
| #define NUXMV_VALID_SYMBOL | ( | symbol | ) | ((symbol).repr != NULL) |
Valid symbol.
This macro checks whether symbol is a valid nuxmv_symbol.
| [in] | symbol | The symbol to inspect. |
true if the option is valid, false otherwise. | nuxmv_symbol nuxmv_make_scoped_symbol | ( | nuxmv_env | env, |
| const char * | name, | ||
| nuxmv_symbol | scope | ||
| ) |
Create a new symbol with the given name and context.
| [in] | env | The environment to modify. |
| [in] | name | The name of the scoped symbol as a null-terminated string. |
| [in] | scope | A context the symbol belongs to. |
false.Requirements: 03.001.01
| nuxmv_symbol nuxmv_make_symbol | ( | nuxmv_env | env, |
| const char * | name | ||
| ) |
Create a new symbol.
| [in] | env | The environment to modify. |
| [in] | name | The name of the symbol as a null-terminated string. |
false.Requirements: 03.001.01
| size_t nuxmv_symbol_get_id | ( | nuxmv_env | env, |
| nuxmv_symbol | sym | ||
| ) |
Get the ID of a symbol.
| [in] | env | The environment to inspect. |
| [in] | sym | The symbol to extract the ID from. |
| const char * nuxmv_symbol_get_name | ( | nuxmv_env | env, |
| nuxmv_symbol | symbol | ||
| ) |
Get the name of a symbol.
| [in] | env | The environment to modify. |
| [in] | symbol | The symbol to inspect. |
NULL in case of error.Requirements: 03.001.02
| nuxmv_symbol nuxmv_symbol_get_scope | ( | nuxmv_env | env, |
| nuxmv_symbol | symbol | ||
| ) |
Get the scope of a symbol.
| [in] | env | The environment to modify. |
| [in] | symbol | The scoped symbol to inspect. |
false.Requirements: 03.001.02
| int nuxmv_symbol_is_scoped | ( | nuxmv_env | env, |
| nuxmv_symbol | symbol | ||
| ) |
Test whether a symbol is scoped.
| [in] | env | The environment to modify. |
| [in] | symbol | The symbol to test. |
1 when the symbol belongs to a context, 0 if not, -1 in case of error.Requirements: 03.001.02