int 
CommandReadTrace(
  int  argc, 
  char** argv 
)
read_trace

See Also show_traces
Defined in traceCmd.c

int 
CommandShowPlugins(
  int  argc, 
  char** argv 
)
Lists out all the available plugins inside the system.

Defined in traceCmd.c

int 
CommandShowTraces(
  int  argc, 
  char** argv 
)
Shows the traces generated in a NuSMV session

See Also pick_state goto_state simulate
Defined in traceCmd.c

TraceIterator_ptr 
TraceIterator_get_next(
  const TraceIterator_ptr  self 
)
This function takes an iterator to a trace and advances it by one.

Defined in Trace.c

boolean 
TraceIterator_is_end(
  const TraceIterator_ptr  self 
)
This function checks if the iterator is at the end of the trace.

Defined in Trace.c

TraceLabel 
TraceLabel_create_from_string(
  char* str 
)
creates the label from the specified string. In case of any error, it returns TRACE_LABEL_INVALID as result.

See Also TraceLabel_create
Defined in TraceLabel.c

TraceLabel 
TraceLabel_create(
  int  trace_id, 
  int  state_id 
)
returns a label for the specified trace and state index.

See Also TraceLabel_create_from_string
Defined in TraceLabel.c

int 
TraceLabel_get_state(
  TraceLabel  self 
)
Returns the state index associated with the TraceLabel.

See Also TraceLabel_get_trace
Defined in TraceLabel.c

int 
TraceLabel_get_trace(
  TraceLabel  self 
)
Returns the trace index associated with the TraceLabel.

See Also TraceLabel_get_state
Defined in TraceLabel.c

TraceManager_ptr 
TraceManager_create(
    
)
Initializes the TraceManager.

Defined in TraceManager.c

void 
TraceManager_destroy(
  TraceManager_ptr  self 
)
Destroys the TraceManager with all the registered traces and plugins

Defined in TraceManager.c

int 
TraceManager_execute_plugin(
  const TraceManager_ptr  self, 
  int  plugin_index, 
  int  trace_index 
)
Execute the given trace using specified plugin.

Defined in TraceManager.c

int 
TraceManager_get_current_trace_number(
  TraceManager_ptr  self 
)
Returns the trace_id of the current trace of the TraceManager.

Defined in TraceManager.c

int 
TraceManager_get_default_plugin(
  TraceManager_ptr  self 
)
Returns the default plugin of the TraceManager.

Defined in TraceManager.c

TraceIterator_ptr 
TraceManager_get_iterator_from_label(
  TraceManager_ptr  self, 
  TraceLabel  label 
)
Returns the traceIterator pointing to the label.

Defined in TraceManager.c

TracePlugin_ptr 
TraceManager_get_plugin_at_index(
  const TraceManager_ptr  self, 
  int  index 
)
Returns the plugin stored at given index

Defined in TraceManager.c

int 
TraceManager_get_plugin_size(
  const TraceManager_ptr  self 
)
This function returns the number of plugins registered with traceManager

Defined in TraceManager.c

int 
TraceManager_get_size(
  const TraceManager_ptr  self 
)
This function returns the number of traces registered with traceManager

Defined in TraceManager.c

Trace_ptr 
TraceManager_get_trace_at_index(
  const TraceManager_ptr  self, 
  int  index 
)
Returns the trace stored at given index

Defined in TraceManager.c

void 
TraceManager_init_plugins(
  TraceManager_ptr  self 
)
Statically registers available plugins

Defined in TraceManager.c

boolean 
TraceManager_is_label_valid(
  TraceManager_ptr  self, 
  TraceLabel  label 
)
Checks if the label is valid label in a registered trace.

Defined in TraceManager.c

int 
TraceManager_register_plugin(
  TraceManager_ptr  self, 
  TracePlugin_ptr  plugin 
)
It registers a plugin with the TraceManager and returns the corresponding index.

Defined in TraceManager.c

int 
TraceManager_register_trace(
  TraceManager_ptr  self, 
  Trace_ptr  trace 
)
It registers a trace with the TraceManager and returns the corresponding index. The given trace can not be previously registered with any Trace Manager.

Defined in TraceManager.c

void 
TraceManager_set_current_trace_number(
  TraceManager_ptr  self, 
  int  trace_id 
)
Sets trace_id as ths current trace of the TraceManager.

Defined in TraceManager.c

void 
TraceManager_set_default_plugin(
  TraceManager_ptr  self, 
  int  plugin_id 
)
Default plugin is the plugin to be used to print a trace by default.

Defined in TraceManager.c

TraceNode_ptr 
TraceNode_create(
    
)
Allocates and initializes a TraceNode.

Defined in TraceNode.c

void 
TraceNode_destroy(
  TraceNode_ptr  self, 
  DdManager* dd 
)
The "TraceNode" class dectructor.

Defined in TraceNode.c

BddInputs 
TraceNode_get_input(
  const TraceNode_ptr  self 
)
returned BDD will be referenced

Side Effects Returned BDD will be referenced.

Defined in TraceNode.c

BddStates 
TraceNode_get_state(
  const TraceNode_ptr  self 
)
returned BDD will be referenced

Side Effects returned BDD will be referenced

Defined in TraceNode.c

void 
TraceNode_set_input(
  TraceNode_ptr  self, 
  DdManager* dd, 
  BddInputs  inp_i 
)
Given BDD will be referenced.

Side Effects Given BDD will be referenced.

Defined in TraceNode.c

void 
TraceNode_set_state(
  TraceNode_ptr  self, 
  DdManager* dd, 
  BddStates  state_i 
)
Given BDD will be referenced.

Side Effects Given BDD will be referenced.

Defined in TraceNode.c

int 
TracePkg_get_default_trace_plugin(
    
)
Returns the trace plugin currently selected as default

Defined in traceCmd.c

boolean 
TracePkg_set_default_trace_plugin(
  int  dp 
)
Returns true if an error occurred

Defined in traceCmd.c

TraceType 
TraceType_from_string(
  const char* str 
)
Returns a TraceType object from the given string.

Defined in Trace.c

const char* 
TraceType_to_string(
  const TraceType  self 
)
Returns a string corresponding to a TraceType.

Defined in Trace.c

void 
Trace_append_from_list_input_state(
  Trace_ptr  self, 
  node_ptr  path 
)
All the BDDs inside the list /"path/" are referenced. So that caller of this function can safely destroy the list. The first element of the list is supposed to be the initial state, and will be skipped since it is supposed to be already set in the Trace

Defined in Trace.c

void 
Trace_append_from_list_state(
  Trace_ptr  self, 
  node_ptr  path 
)
All the BDDs inside the list /"path/" are referenced. So that caller of this function can safely destroy the list. The first element of the list is supposed to be the initial state, and will be skipped since it is supposed to be already set in the Trace

Defined in Trace.c

void 
Trace_append(
  Trace_ptr  self, 
  BddInputs  inp_i, 
  BddStates  state_i 
)
This function takes next input "inp_i" and the next state "state_i" and appends it to the "self". The BDDs state_i and inp_i would be referenced.

Defined in Trace.c

TraceIterator_ptr 
Trace_begin(
  const Trace_ptr  self 
)
Returns an iterator to iterate the "self".

Defined in Trace.c

Trace_ptr 
Trace_copy_prefix_until_iterator(
  const Trace_ptr  self, 
  const TraceIterator_ptr  until_here 
)
Copies "self" to "other".

Defined in Trace.c

Trace_ptr 
Trace_copy(
  const Trace_ptr  self 
)
Copy constructor.

Defined in Trace.c

Trace_ptr 
Trace_create_from_state_input_list(
  BddEnc_ptr  enc, 
  const char* desc, 
  const TraceType  type, 
  node_ptr  path 
)
Trace constructor. It takes a list of states and construct a trace out of it. path is a sequence of "states (inputs states)*"

Defined in Trace.c

Trace_ptr 
Trace_create_from_state_list(
  BddEnc_ptr  enc, 
  const char* desc, 
  const TraceType  type, 
  node_ptr  path 
)
Trace constructor. It takes a list of states and construct a trace out of it (all the inputs are bdd_one)

Defined in Trace.c

Trace_ptr 
Trace_create(
  BddEnc_ptr  enc, 
  const char* desc, 
  const TraceType  type, 
  BddStates  start_state 
)
Allocates and initializes a trace. As arguments this function takes pointer to the DdManager "dd", description of the trace "desc", type of the Trace "type" and initial state of the trace "start_state". It returns a pointer to the allocated Trace object. /"start state/" bdd is referenced by this function.

See Also Trace_destroy
Defined in Trace.c

void 
Trace_destroy(
  Trace_ptr  self 
)
This function destroys the trace and all the trace node instances inside it. In order to destroy a trace directly, it should not be registered with TraceManager because in that case it's ownership is with TraceManager and only that can destroy it.

See Also Trace_create
Defined in Trace.c

array_t* 
Trace_get_all_loopbacks(
  const Trace_ptr  self 
)
This function returns an array of TraceNodes containing pointers to the TraceNodes which have same state as the last one.

Defined in Trace.c

const char* 
Trace_get_desc(
  const Trace_ptr  self 
)
Returned string must not be freed.

Defined in Trace.c

BddEnc_ptr 
Trace_get_enc(
  Trace_ptr  self 
)
Returns the bdd encoder associated with the trace.

Defined in Trace.c

int 
Trace_get_id(
  const Trace_ptr  self 
)
This ID correspond to the index of the trace inside the trace manager. If the trace is not registeres with the trace manager, this ID would be TRACE_UNREGISTERED.

Defined in Trace.c

TraceIterator_ptr 
Trace_get_iterator(
  const Trace_ptr  self, 
  const TraceNode_ptr  node 
)
Returns an iterator pointing to the given trace-node of the "self".

Defined in Trace.c

TraceNode_ptr 
Trace_get_ith_node(
  const Trace_ptr  self, 
  int  i 
)
The ownership of the returned node is not transfered to the caller. Caller must not free the returned TraceNode object.

Defined in Trace.c

BddStates 
Trace_get_ith_state(
  const Trace_ptr  self, 
  int  i 
)
returned BDD is referenced. Please note that initial state is 0th state.

Defined in Trace.c

TraceNode_ptr 
Trace_get_last_node(
  const Trace_ptr  self 
)
The ownership of the returned object is not transfered to the caller of this function. It means that caller of this function must not free the returned traceNode.

Defined in Trace.c

int 
Trace_get_length(
  const Trace_ptr  self 
)
Returns the length of the trace.

Defined in Trace.c

TraceNode_ptr 
Trace_get_loopback(
  const Trace_ptr  self 
)
It returns a pointer to the first trace node having same state as the last one. It returns NULL otherwise. The ownership of the returned traceNode object is not transferred to the caller. Caller must not free the returned object.

Defined in Trace.c

TraceNode_ptr 
Trace_get_node(
  const Trace_ptr  self, 
  const TraceIterator_ptr  iter 
)
The ownership of the returned node is not transfered to the caller. Caller must not free the returned TraceNode object.

Defined in Trace.c

TraceType 
Trace_get_type(
  const Trace_ptr  self 
)
Returns the type of the trace.

Defined in Trace.c

boolean 
Trace_is_equal(
  const Trace_ptr  self, 
  const Trace_ptr  other 
)
Returns true if they are equal, false otherwise.

Defined in Trace.c

boolean 
Trace_is_registered(
  const Trace_ptr  self 
)
Checks whether trace is registered with the trace manager.

Defined in Trace.c

boolean 
Trace_is_valid(
  Trace_ptr  self 
)
This function checks the validity of a trace by checking if the starting state of the trace is initial state and consecutive states are related by transition relation.

Defined in Trace.c

void 
Trace_set_ID(
  Trace_ptr  self, 
  int  ID 
)
TraceManager uses this function to assign a unique identifier ID to each registered trace. ONLY TraceManager and Trace should use this function.

Defined in Trace.c

void 
Trace_set_desc(
  Trace_ptr  self, 
  const char* desc 
)
It allocates the memory for the description string. So the ownership of the passed desc string remains with the caller.

Defined in Trace.c

void 
Trace_set_start_state(
  Trace_ptr  self, 
  BddStates  s 
)
Sets the start state of the Trace.

Defined in Trace.c

void 
Trace_set_type(
  Trace_ptr  self, 
  const TraceType  type 
)
Set the type of the trace.

Defined in Trace.c

void 
Trace_unregister(
  Trace_ptr  self 
)
Only TraceManager should access this function. This function resets the Trace ID to TRACE_UNREGISTERED (-1).

Defined in Trace.c

static int 
UsageReadTrace(
    
)
UsageReadTrace

Defined in traceCmd.c

static int 
UsageShowPlugins(
    
)
UsageShowPlugins

Defined in traceCmd.c

static int 
UsageShowTraces(
    
)
UsageShowTraces

Defined in traceCmd.c

TraceNode_ptr 
trace_node_get_next(
  const TraceNode_ptr  self 
)
returns the value of the next pointer.

Defined in TraceNode.c

TraceNode_ptr 
trace_node_get_prev(
  const TraceNode_ptr  self 
)
returns the value of the prev pointer.

Defined in TraceNode.c

boolean 
trace_node_is_first(
  const TraceNode_ptr  self 
)
Checks whether it is the first node.

Defined in TraceNode.c

boolean 
trace_node_is_last(
  const TraceNode_ptr  self 
)
Checks whether it is the last node.

Defined in TraceNode.c

void 
trace_node_set_next(
  TraceNode_ptr  self, 
  TraceNode_ptr  next 
)
Sets the value of the next pointer to "next".

Defined in TraceNode.c

void 
trace_node_set_prev(
  TraceNode_ptr  self, 
  TraceNode_ptr  prev 
)
Sets the value of the prev pointer to "prev"

Defined in TraceNode.c

Last updated on 2004/06/23 10h:27