Browse Source

Convert acceptance formula into disjunctive normal form

tempestpy_adaptions
hannah 4 years ago
committed by Stefan Pranger
parent
commit
1fe30f7d78
  1. 8
      src/storm/automata/LTL2DeterministicAutomaton.cpp

8
src/storm/automata/LTL2DeterministicAutomaton.cpp

@ -11,6 +11,9 @@
#include "spot/tl/parse.hh"
#include "spot/twaalgos/translate.hh"
#include "spot/twaalgos/hoa.hh"
#include "spot/twaalgos/totgba.hh"
#include "spot/twaalgos/toparity.hh"
#include "spot/twa/acc.hh"
#endif
namespace storm {
@ -36,6 +39,11 @@ namespace storm {
STORM_LOG_INFO("Construct deterministic automaton for "<< spotFormula);
auto aut = trans.run(spotFormula);
// TODO necessary for MDP LTL-MC
if(!(aut->get_acceptance().is_dnf())){
aut->set_acceptance(aut->get_acceptance().to_dnf());
}
std::stringstream autStream;
// Print reachable states in HOA format, implicit edges (i), state-based acceptance (s)
spot::print_hoa(autStream, aut, "is");

Loading…
Cancel
Save