#include "nusmv/shell/cmd/cmd.h"
#include "nusmv/shell/trace/traceCmd.h"
#include "nusmv/core/compile/compile.h"
#include "nusmv/core/utils/StreamMgr.h"
#include "nusmv/core/trace/pkg_trace.h"
#include "nusmv/core/prop/propPkg.h"
#include "nusmv/core/trace/TraceMgr.h"
#include "nusmv/core/trace/TraceOpt.h"
#include "nusmv/core/trace/Trace.h"
#include "nusmv/core/trace/exec/traceExec.h"
#include "nusmv/core/enc/enc.h"
#include "nusmv/core/utils/ucmd.h"
#include "nusmv/core/utils/ustring.h"
#include "nusmv/shell/bmc/bmcCmd.h"
#include "nusmv/core/trace/loaders/TraceLoader.h"
#include "nusmv/core/trace/loaders/TraceXmlLoader.h"
#include "nusmv/core/trace/exec/BaseTraceExecutor.h"
#include "nusmv/core/trace/exec/CompleteTraceExecutor.h"
#include "nusmv/core/trace/exec/PartialTraceExecutor.h"
Defines | |
#define | IS_PARTIAL_EXECUTOR true |
Trace Commands. | |
Functions | |
int | CommandExecutePartialTraces (NuSMVEnv_ptr env, int argc, char **argv) |
int | CommandExecuteTraces (NuSMVEnv_ptr env, int argc, char **argv) |
int | CommandReadTrace (NuSMVEnv_ptr env, int argc, char **argv) |
int | CommandShowPlugins (NuSMVEnv_ptr env, int argc, char **argv) |
int | CommandShowTraces (NuSMVEnv_ptr env, int argc, char **argv) |
void | traceCmd_init (NuSMVEnv_ptr env) |
Module header file for trace shell commands. | |
int | traceCmd_parse_slice (const NuSMVEnv_ptr env, const char *s, int *trace, int *from, int *to) |
Parse and checks whether the argument 's' contains valid types for trace number and state number/slices 'from' and 'to'. |
int CommandExecutePartialTraces | ( | NuSMVEnv_ptr | env, | |
int | argc, | |||
char ** | argv | |||
) |
Command arguments: [-h] [-v] [-r] [-m | -o output-file] -e engine [-a | trace_number]
Executes traces stored in the Trace Manager. If no trace is specified, last registered trace is executed. Traces are not required to be complete. Upon succesful termination, a new complete trace is registered in the Trace Manager.
Command Options:
-v
-a
-r
-m
PAGER
shell variable if defined, else through the UNIX
command "more". -o output-file
output-file
-e engine
trace_number
int CommandExecuteTraces | ( | NuSMVEnv_ptr | env, | |
int | argc, | |||
char ** | argv | |||
) |
Command arguments: [-h] [-v] [-m | -o output-file] -e engine [-a | trace_number]
Executes traces stored in the Trace Manager. If no trace is specified, last registered trace is executed. Traces must be complete in order to perform execution.
Command Options:
-v
-a
-m
PAGER
shell variable if defined, else through the UNIX
command "more". -o output-file
output-file
-e executor
trace_number
int CommandReadTrace | ( | NuSMVEnv_ptr | env, | |
int | argc, | |||
char ** | argv | |||
) |
Command arguments: [-h] | [-i filename] | [-u] [-s] filename
Reads a trace from a specified XML file into the memory.
Command Options:
-h
-i filename
-u
-s
filename
int CommandShowPlugins | ( | NuSMVEnv_ptr | env, | |
int | argc, | |||
char ** | argv | |||
) |
Command arguments: [ [-h] [-n plugin_index| -a]]
CommandDescription [ Sets the default plugin to print traces.
Command Options:
-h
-n plugin_index
-a
]
[EXTRACT_DOC_NOTE: * /]
Sets the default plugin to print traces.
Command Options:
-h
-n plugin_index
-a
int CommandShowTraces | ( | NuSMVEnv_ptr | env, | |
int | argc, | |||
char ** | argv | |||
) |
Command arguments: [ [-h] [-v] [-m | -o output-file] [-A] -t | [-d] -a | trace_number[.from_state[:[to_state]]] ]
Shows the traces currently stored in system memory, if any. By default it shows the last generated trace, if any. A trace number can be specified optionally followed by a slice denoting the steps top be shown. Negative numbers can be used to denote steps in a right-to-left fashion. (i.e. -1 denotes last step, -2 is the previous and so forth.)
Command Options:
-v
-t
-a
-A
-d
-p trace plugin
-m
PAGER
shell variable if defined, else through the UNIX
command "more". -o output-file
output-file
trace_number
from_state
to_state
void traceCmd_init | ( | NuSMVEnv_ptr | env | ) |
int traceCmd_parse_slice | ( | const NuSMVEnv_ptr | env, | |
const char * | s, | |||
int * | trace, | |||
int * | from, | |||
int * | to | |||
) |
Parse and checks whether the argument 's' contains valid types for trace number and state number/slices 'from' and 'to'.
Return 0 iff the parse and checks of the argument 's' (format trace.from:to) contains valid types (integer) for trace number and state number/slices 'from' and 'to'. Moreover, the values for 'trace', 'from', and 'to' are assigned.