|
nuXmv API 126f6942
API for nuXmv
|
Functions for handling Traces. More...

Modules | |
| Trace Getters | |
| Functions for getting information out of a Trace. | |
Macros | |
| #define | NUXMV_VALID_TRACE(trace) ((trace).repr != NULL) |
| Valid trace type. | |
Functions | |
| nuxmv_trace | nuxmv_make_trace_from_string (nuxmv_env env, nuxmv_trace_format fmt, const char *data, nuxmv_model model) |
| Make a trace from string. | |
| int | nuxmv_serialize_trace_to_string (nuxmv_env env, nuxmv_trace trace, nuxmv_trace_format fmt, nuxmv_serialized_chunk_callback callback, void *user_data, char *data, size_t data_size) |
| Serialize a trace to a string. | |
| nuxmv_result | nuxmv_trace_check_property (nuxmv_env env, nuxmv_trace trace, nuxmv_property property, nuxmv_model model, const nuxmv_opt *opts, size_t opt_num) |
| Check a property on a trace. | |
Functions for handling Traces.
| #define NUXMV_VALID_TRACE | ( | trace | ) | ((trace).repr != NULL) |
Valid trace type.
This macro checks whether trace is a valid nuxmv_trace.
| [in] | trace | The trace to inspect. |
true if the option is valid, false otherwise. | nuxmv_trace nuxmv_make_trace_from_string | ( | nuxmv_env | env, |
| nuxmv_trace_format | fmt, | ||
| const char * | data, | ||
| nuxmv_model | model | ||
| ) |
Make a trace from string.
| [in] | env | The environment to modify. |
| [in] | fmt | The format of the input string. |
| [in] | data | A null-terminated string containing the trace data. |
| [in] | model | A model to attach the trace to. |
false.Requirements: 03.005
| int nuxmv_serialize_trace_to_string | ( | nuxmv_env | env, |
| nuxmv_trace | trace, | ||
| nuxmv_trace_format | fmt, | ||
| nuxmv_serialized_chunk_callback | callback, | ||
| void * | user_data, | ||
| char * | data, | ||
| size_t | data_size | ||
| ) |
Serialize a trace to a string.
This function converts the given trace into a string representation using the specified 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] | trace | The trace to serialize. |
| [in] | fmt | The format to use for serialization. |
| [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 trace was truncated;callback, if the callback eventually requests to stop;-1 in case of error.Requirements: 03.007
| nuxmv_result nuxmv_trace_check_property | ( | nuxmv_env | env, |
| nuxmv_trace | trace, | ||
| nuxmv_property | property, | ||
| nuxmv_model | model, | ||
| const nuxmv_opt * | opts, | ||
| size_t | opt_num | ||
| ) |
Check a property on a trace.
| [in] | env | The environment to inspect. |
| [in] | property | The property to check. |
| [in] | trace | A trace to check the property on. |
| [in] | model | A model for the trace. |
| [in] | opts | A list of options for the check. If no list shall be used it is safe to use NULL or the result of malloc(0), provided that opt_num=0. |
| [in] | opt_num | The number of options in the list. If no list shall be passed, use 0 as actual value of opt_num. |
false.Requirements: 02.006