Rewrite xor, =>, and <=> in negative_normal_form().
* src/ltlvisit/simplify.hh, src/ltlvisit/simplify.cc (ltl_simplify::negative_normal_form): Remove the third parameter and always rewrite XOR, =>, and <=>. This avoid problems with the cache, that could have been populated with a different value for this third parameter. * src/ltltest/reduc.cc, src/tgbaalgos/ltl2tgba_fm.cc: Adjust calls to negative_normal_form(). * src/ltltest/nenoform.test: Adjust tests.
This commit is contained in:
parent
b89f86edcf
commit
03fd46a13b
5 changed files with 18 additions and 36 deletions
|
|
@ -75,16 +75,13 @@ namespace spot
|
|||
|
||||
/// Build the negative normal form of formula \a f.
|
||||
/// All negations of the formula are pushed in front of the
|
||||
/// atomic propositions.
|
||||
/// atomic propositions. Operators <=>, =>, xor are all removed
|
||||
/// (calling spot::ltl::unabbreviate_ltl is not needed).
|
||||
///
|
||||
/// \param f The formula to normalize.
|
||||
/// \param negated If \c true, return the negative normal form of
|
||||
/// \c !f
|
||||
/// \param lunabbrev If \c true, also remove Xor, Equiv, and Implies
|
||||
/// operators. (It is faster than calling
|
||||
/// spot::ltl::unabbreviate_ltl first.)
|
||||
formula* negative_normal_form(const formula* f, bool negated = false,
|
||||
bool lunabbrev = false);
|
||||
formula* negative_normal_form(const formula* f, bool negated = false);
|
||||
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue