|
nuXmv API 126f6942
API for nuXmv
|
Functions for handling Simulations. More...
Macros | |
| #define | NUXMV_VALID_SIMULATION(simulation) ((simulation).repr != NULL) |
| Valid simulation. | |
| #define | NUXMV_MAKE_SIMULATION_CONSTRAINT( simple_constraint_, trans_constraint_, trace_, trace_start_, ltl_formula_) |
| Helper macro to construct a simulation constraint. | |
Functions | |
| nuxmv_simulation | nuxmv_create_simulation (nuxmv_env env, nuxmv_model model, nuxmv_simulation_constraint constraint, const nuxmv_opt *opts, size_t opt_num) |
| Create a new simulation for a model. | |
| nuxmv_status_code | nuxmv_destroy_simulation (nuxmv_env env, nuxmv_simulation simulation) |
| Destroy a simulation. | |
| nuxmv_status_code | nuxmv_extend_simulation (nuxmv_env env, nuxmv_simulation simulation, size_t k, nuxmv_simulation_constraint constraint) |
| Extend the simulation by k steps. | |
| nuxmv_result | nuxmv_simulation_get_result (nuxmv_env env, nuxmv_simulation simulation) |
| Get the result out of a simulation. | |
Functions for handling Simulations.
| #define NUXMV_MAKE_SIMULATION_CONSTRAINT | ( | simple_constraint_, | |
| trans_constraint_, | |||
| trace_, | |||
| trace_start_, | |||
| ltl_formula_ | |||
| ) |
Helper macro to construct a simulation constraint.
| [in] | simple_constraint_ | An nuxmv_expr. |
| [in] | trans_constraint_ | An nuxmv_expr. |
| [in] | trace_ | An nuxmv_trace. |
| [in] | trace_start_ | An integer representing the starting step of the trace. |
| [in] | ltl_formula_ | An nuxmv_expr. |
| #define NUXMV_VALID_SIMULATION | ( | simulation | ) | ((simulation).repr != NULL) |
Valid simulation.
This macro checks whether simulation is a valid nuxmv_simulation.
| [in] | simulation | The simulation to inspect. |
true if the option is valid, false otherwise. | nuxmv_simulation nuxmv_create_simulation | ( | nuxmv_env | env, |
| nuxmv_model | model, | ||
| nuxmv_simulation_constraint | constraint, | ||
| const nuxmv_opt * | opts, | ||
| size_t | opt_num | ||
| ) |
Create a new simulation for a model.
When no longer needed, the simulation can be freed using nuxmv_destroy_simulation().
| [in] | env | The environment to modify. |
| [in] | model | The model to simulate. |
| [in] | constraint | The constraint to apply to the simulation. |
| [in] | opts | A list of options to apply. 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.002
| nuxmv_status_code nuxmv_destroy_simulation | ( | nuxmv_env | env, |
| nuxmv_simulation | simulation | ||
| ) |
Destroy a simulation.
With this function, the user notifies the environment that the selected simulation is no more needed.
| [in] | env | The environment to modify. |
| [in] | simulation | A simulation to destroy. |
NUXMV_SUCCESS if the simulation was destroyed, NUXMV_FAILURE in case of error.Requirements: 02.002
| nuxmv_status_code nuxmv_extend_simulation | ( | nuxmv_env | env, |
| nuxmv_simulation | simulation, | ||
| size_t | k, | ||
| nuxmv_simulation_constraint | constraint | ||
| ) |
Extend the simulation by k steps.
| [in] | env | The environment to modify. |
| [in,out] | simulation | The simulation to extend. |
| [in] | k | The number of steps to extend the simulation by. |
| [in] | constraint | The constraint to apply to the simulation. |
NUXMV_SUCCESS if the simulation was extended, NUXMV_FAILURE in case of error.Requirements: 02.002
| nuxmv_result nuxmv_simulation_get_result | ( | nuxmv_env | env, |
| nuxmv_simulation | simulation | ||
| ) |
Get the result out of a simulation.
| [in] | env | The environment to modify. |
| [in] | simulation | The simulation to inspect. |
false.Requirements: 02.002