Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
storm-version.h
Go to the documentation of this file.
1#pragma once
2
3#include <sstream>
4#include <string>
5
6namespace storm {
7
10 const static unsigned versionMajor;
11
13 const static unsigned versionMinor;
14
16 const static unsigned versionPatch;
17
19 const static unsigned versionTweak;
20
22 const static bool versionDev;
23
25 const static std::string gitRevisionHash;
26
27 enum class DirtyState {
31 };
32
34 const static DirtyState dirty;
35
37 const static std::string systemName;
38
40 const static std::string systemVersion;
41
43 const static std::string cxxCompiler;
44
46 const static std::string cxxFlags;
47
48 static std::string shortVersionString() {
49 std::stringstream sstream;
50 sstream << versionMajor << "." << versionMinor << "." << versionPatch;
51 if (versionDev) {
52 sstream << "." << versionTweak << " (dev)";
53 }
54 return sstream.str();
55 }
56
57 static std::string longVersionString() {
58 std::stringstream sstream;
59 sstream << "Version " << shortVersionString();
60 if (!gitRevisionHash.empty()) {
61 sstream << " build from revision " << gitRevisionHash;
62 } else {
63 sstream << " built from archive";
64 }
65 switch (dirty) {
67 sstream << " (clean)";
68 break;
70 sstream << " (dirty)";
71 break;
72 default:
73 sstream << " (potentially dirty)";
74 break;
75 }
76 return sstream.str();
77 }
78
79 static std::string buildInfo() {
80 std::stringstream sstream;
81 sstream << "Compiled on " << systemName << " " << systemVersion << " using " << cxxCompiler << " with flags '" << cxxFlags << "'";
82 return sstream.str();
83 }
84};
85} // namespace storm
The contract of a DD backend.
static std::string longVersionString()
@ Unknown
some files were modified
@ Dirty
no files were modified in the checkout
static const unsigned versionPatch
The patch version of Storm.
static const std::string gitRevisionHash
The short hash of the git commit this build is based on.
static const bool versionDev
Flag indicating if the version of Storm is a development version.
static const std::string systemName
The system which has compiled Storm.
static const std::string cxxCompiler
The compiler version that was used to build Storm.
static const DirtyState dirty
Indicates whether files were modified.
static const std::string systemVersion
The system version which has compiled Storm.
static std::string shortVersionString()
static std::string buildInfo()
static const unsigned versionTweak
The development counter of Storm (fourth version component). Zero for released versions.
static const std::string cxxFlags
The flags that were used to build Storm.
static const unsigned versionMajor
The major version of Storm.
static const unsigned versionMinor
The minor version of Storm.