Browse Source

Support for conjunction over empty set

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
e8a950d9d7
  1. 4
      src/storm-dft/modelchecker/dft/DFTASFChecker.cpp

4
src/storm-dft/modelchecker/dft/DFTASFChecker.cpp

@ -107,11 +107,15 @@ namespace storm {
std::string toSmtlib2(std::vector<std::string> const& varNames) const override { std::string toSmtlib2(std::vector<std::string> const& varNames) const override {
std::stringstream sstr; std::stringstream sstr;
if (constraints.empty()) {
sstr << "true";
} else {
sstr << "(and"; sstr << "(and";
for(auto const& c : constraints) { for(auto const& c : constraints) {
sstr << " " << c->toSmtlib2(varNames); sstr << " " << c->toSmtlib2(varNames);
} }
sstr << ")"; sstr << ")";
}
return sstr.str(); return sstr.str();
} }

Loading…
Cancel
Save