Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Certificate.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <string>
5#include <type_traits>
9
10namespace storm {
11
12namespace storage {
13class BitVector;
14}
15
16namespace models {
17template<typename ValueType>
18class Model;
19}
20
21namespace modelchecker {
22
26template<typename ValueType>
27inline constexpr bool SupportsCertificates = std::is_same_v<ValueType, double> || std::is_same_v<ValueType, storm::RationalNumber>;
28
34template<typename ValueType>
36 public:
37 virtual ~Certificate() = default;
38 virtual bool checkValidity(storm::models::Model<ValueType> const& model) const = 0;
39 virtual storm::json<ValueType> toJson() const = 0;
40 virtual std::string summaryString(storm::storage::BitVector const& relevantStates) const = 0;
41 virtual std::unique_ptr<Certificate<ValueType>> clone() const = 0;
42
43 protected:
44 Certificate(CertificateKind kind) : kind(kind) {}
45
46 private:
47 CertificateKind const kind;
48};
49
50} // namespace modelchecker
51} // namespace storm
Certificate(CertificateKind kind)
Definition Certificate.h:44
virtual bool checkValidity(storm::models::Model< ValueType > const &model) const =0
virtual storm::json< ValueType > toJson() const =0
virtual std::unique_ptr< Certificate< ValueType > > clone() const =0
virtual std::string summaryString(storm::storage::BitVector const &relevantStates) const =0
A bit vector that is internally represented as a vector of 64-bit values.
Definition BitVector.h:16
constexpr bool SupportsCertificates
Certificates can be computed for models with these value types.
Definition Certificate.h:27
The contract of a DD backend.
nlohmann::basic_json< std::map, std::vector, std::string, bool, int64_t, uint64_t, ValueType > json
Definition JsonForward.h:11