Storm 1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Statistics.cpp
Go to the documentation of this file.
2
4
5namespace storm {
6namespace modelchecker {
7namespace exploration_detail {
8
9template<typename StateType, typename ValueType>
24
25template<typename StateType, typename ValueType>
30
31template<typename StateType, typename ValueType>
36
37template<typename StateType, typename ValueType>
38void Statistics<StateType, ValueType>::updateMaxPathLength(std::size_t const& currentPathLength) {
39 maxPathLength = std::max(maxPathLength, currentPathLength);
40}
41
42template<typename StateType, typename ValueType>
43void Statistics<StateType, ValueType>::printToStream(std::ostream& out, ExplorationInformation<StateType, ValueType> const& explorationInformation) const {
44 out << "\nExploration statistics:\n";
45 out << "Discovered states: " << explorationInformation.getNumberOfDiscoveredStates() << " (" << numberOfExploredStates << " explored, "
46 << explorationInformation.getNumberOfUnexploredStates() << " unexplored, " << numberOfTargetStates << " target)\n";
47 out << "Exploration steps: " << explorationSteps << '\n';
48 out << "Sampled paths: " << pathsSampled << '\n';
49 out << "Maximal path length: " << maxPathLength << '\n';
50 out << "Precomputations: " << numberOfPrecomputations << '\n';
51 out << "EC detections: " << ecDetections << " (" << failedEcDetections << " failed, " << totalNumberOfEcDetected << " EC(s) detected)\n";
52}
53
54template struct Statistics<uint32_t, double>;
55
56} // namespace exploration_detail
57} // namespace modelchecker
58} // namespace storm
void printToStream(std::ostream &out, ExplorationInformation< StateType, ValueType > const &explorationInformation) const
void updateMaxPathLength(std::size_t const &currentPathLength)