Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
CertificateAlgorithm.cpp
Go to the documentation of this file.
2
5
6namespace storm {
7
8std::ostream& operator<<(std::ostream& stream, CertificateAlgorithm const& algorithm) {
9 switch (algorithm) {
11 return stream << "fp-ii";
13 return stream << "fp-smoothii";
15 return stream << "fp-roundii";
17 return stream << "ex-pi";
18 }
19 STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Unknown certificate algorithm.");
20 return stream;
21}
22
24 if (algorithm == "fp-ii") {
26 } else if (algorithm == "fp-smoothii") {
28 } else if (algorithm == "fp-roundii") {
30 } else if (algorithm == "ex-pi") {
32 }
33 STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Unknown certificate algorithm: " << algorithm << ".");
34}
35
36} // namespace storm
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:39
The contract of a DD backend.
std::ostream & operator<<(std::ostream &stream, CertificateAlgorithm const &algorithm)
CertificateAlgorithm
The algorithms that can be used to compute the values underlying a certificate.
@ ExPI
Interval iteration with floating point numbers where lower bounds are rounded towards the sound direc...
@ FpRoundII
Smooth interval iteration with floating point numbers.
@ FpSmoothII
Interval iteration with floating point numbers.
CertificateAlgorithm certificateAlgorithmFromString(std::string const &algorithm)