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
|
|
@ -202,7 +202,7 @@ main(int argc, char** argv)
|
|||
spot::ltl::formula* ftmp1;
|
||||
|
||||
ftmp1 = f1;
|
||||
f1 = simp->negative_normal_form(f1, false, true);
|
||||
f1 = simp->negative_normal_form(f1, false);
|
||||
ftmp1->destroy();
|
||||
|
||||
int length_f1_before = spot::ltl::length(f1);
|
||||
|
|
@ -219,7 +219,7 @@ main(int argc, char** argv)
|
|||
if (f2)
|
||||
{
|
||||
ftmp1 = f2;
|
||||
f2 = simp->negative_normal_form(f2, false, true);
|
||||
f2 = simp->negative_normal_form(f2, false);
|
||||
ftmp1->destroy();
|
||||
f2s = spot::ltl::to_string(f2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue