Clean the as_bdd() cache after LTL simplification.
Syntactic implication checks may use as_bdd() to compare Boolean formulae. By doing so, they register Boolean variables in an order that is usially detrimental to the LTL translator. The new, clear_as_bdd_cache() function offers a mean to unregister these variables, so that the LTL translator will register them again in the a more natural way. * src/ltlvisit/simplify.hh, src/ltlvisit/simplify.cc (clear_as_bdd_cache): New function. * src/tgbatest/ltl2tgba.cc, wrap/python/ajax/spot.in: Call it.
This commit is contained in:
parent
9633dd6e88
commit
e5a86290cf
4 changed files with 32 additions and 0 deletions
|
|
@ -391,6 +391,8 @@ if dored:
|
|||
f2 = simp.simplify(f)
|
||||
f.destroy()
|
||||
f = f2
|
||||
# This also clears the as_bdd() cache.
|
||||
simp = None
|
||||
|
||||
# Formula manipulation only.
|
||||
if output_type == 'f':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue