python: rewrite translate() to deal with unambiguous and sbacc
and make it easier to extend and use. * src/twaalgos/postproc.hh, src/twaalgos/translate.cc, src/twaalgos/translate.hh: Incorporate the Unambiguous option with the other preferences. It's cleaner this way, and the previous setup did not work well with Python. * src/bin/ltl2tgba.cc: Adjust to this change. * wrap/python/spot.py (translate): Rewrite. * wrap/python/tests/automata.ipynb: Adjust existing cases, and add more as well as some comments.
This commit is contained in:
parent
1ef3e5f3ff
commit
19a273929c
6 changed files with 666 additions and 190 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -82,22 +82,12 @@ namespace spot
|
|||
this->postprocessor::set_type(type);
|
||||
}
|
||||
|
||||
typedef postprocessor::output_pref output_pref;
|
||||
enum output_pref_extra { Unambiguous };
|
||||
|
||||
void
|
||||
set_pref(output_pref pref)
|
||||
{
|
||||
this->postprocessor::set_pref(pref);
|
||||
}
|
||||
|
||||
void
|
||||
set_pref(output_pref_extra)
|
||||
{
|
||||
unambiguous_ = true;
|
||||
}
|
||||
|
||||
|
||||
typedef postprocessor::optimization_level optimization_level;
|
||||
|
||||
void
|
||||
|
|
@ -130,7 +120,6 @@ namespace spot
|
|||
int early_susp_;
|
||||
int skel_wdba_;
|
||||
int skel_simul_;
|
||||
bool unambiguous_;
|
||||
};
|
||||
/// @}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue