Browse Source

Support for conjunction over empty set

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

12
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::stringstream sstr;
sstr << "(and";
for(auto const& c : constraints) {
sstr << " " << c->toSmtlib2(varNames);
if (constraints.empty()) {
sstr << "true";
} else {
sstr << "(and";
for(auto const& c : constraints) {
sstr << " " << c->toSmtlib2(varNames);
}
sstr << ")";
}
sstr << ")";
return sstr.str();
}

Loading…
Cancel
Save