27 #include <spot/misc/common.hh>
63 std::vector<std::string>
name;
79 os <<
"bloemen_ec";
break;
81 os <<
"bloemen_scc";
break;
85 os <<
"deadlock";
break;
87 os <<
"reachability";
break;
89 os <<
"swarming";
break;
100 os <<
"deadlock";
break;
102 os <<
"empty";
break;
104 os <<
"failure";
break;
106 os <<
"no_deadlock";
break;
108 os <<
"not_empty";
break;
110 os <<
"success";
break;
118 for (
unsigned i = 0; i < es.
name.size(); ++i)
120 os <<
"---- Thread number:\t" << i <<
'\n'
121 <<
" - Algorithm:\t\t" << es.
name[i] <<
'\n'
122 <<
" - Walltime (ms):\t" << es.
walltime[i] <<
'\n'
123 <<
" - States:\t\t" << es.
states[i] <<
'\n'
124 <<
" - Transitions:\t" << es.
transitions[i] <<
'\n'
125 <<
" - Result:\t\t" << es.
value[i] <<
'\n'
126 <<
" - SCCs:\t\t" << es.
sccs[i] <<
'\n';
128 os <<
"CSV: tid,algorithm,walltime,states,transitions,"
129 "sccs,result,finisher\n"
130 <<
"@th_" << i <<
',' << es.
name[i] <<
',' << es.
walltime[i] <<
','
169 throw std::runtime_error(
"Unable to compare these elements!");
Definition: automata.hh:26
mc_algorithm
The list of parallel model-checking algorithms available.
Definition: mc.hh:39
@ CNDFS
Evangelista.12.atva emptiness check.
@ REACHABILITY
Only perform a reachability algorithm.
@ SWARMING
Holzmann.11.ieee applied to renault.13.lpar.
@ DEADLOCK
Check whether there is a deadlock.
@ BLOEMEN_SCC
Bloemen.16.ppopp SCC computation.
@ BLOEMEN_EC
Bloemen.16.hvc emptiness check.
mc_rvalue
Return value of a parallel model-checking algorithm.
Definition: mc.hh:50
@ NOT_EMPTY
The product is not empty.
@ NO_DEADLOCK
No deadlock has been found.
@ FAILURE
The algorithm finished abnormally.
@ DEADLOCK
A deadlock has been found.
@ EMPTY
The product is empty.
@ SUCCESS
The algorithm finished normally.
std::ostream & operator<<(std::ostream &os, const mc_algorithm &ma)
Print an mc_algorithm value to a stream.
Definition: mc.hh:74
const mc_rvalue operator|(const mc_rvalue &lhs, const mc_rvalue &rhs)
This function helps to find the output value from a set of threads that may have different values.
Definition: mc.hh:140
This structure contains, for each thread, the collected information during the traversal.
Definition: mc.hh:62
std::vector< mc_rvalue > value
The return status.
Definition: mc.hh:68
std::vector< unsigned > walltime
Walltime for this thread in ms.
Definition: mc.hh:64
std::vector< bool > finisher
Is it the finisher thread?
Definition: mc.hh:69
std::vector< int > sccs
Number of SCCs or -1.
Definition: mc.hh:67
std::vector< unsigned > states
Number of states visited.
Definition: mc.hh:65
std::vector< unsigned > transitions
Number of transitions visited.
Definition: mc.hh:66
std::vector< std::string > name
The name of the algorithm used.
Definition: mc.hh:63
std::string trace
The output trace.
Definition: mc.hh:70