Generalize implication-based simplifications for multops.
And also speedup implication checks for Boolean expressions. * src/ltlvisit/simplify.cc: Improve implication-based rules rules for multops by checking one operand against all the other at once (instead of one by one). Do not break Boolean expressions while performing implication checks. * src/ltlvisit/simplify.hh: Typo. * src/ltltest/reduccmp.test: More tests.
This commit is contained in:
parent
c01909e3ff
commit
df109869eb
3 changed files with 379 additions and 315 deletions
|
|
@ -65,6 +65,11 @@ for x in ../reduccmp ../reductaustr; do
|
|||
run 0 $x 'a | (b U a) | a' '(b U a)'
|
||||
run 0 $x 'a U (b U a)' '(b U a)'
|
||||
|
||||
run 0 $x 'a & c & (b W a)' 'a & c'
|
||||
run 0 $x 'a & d & c & e & f & g & b & (x W (g & f))' 'a&b&c&d&e&f&g'
|
||||
run 0 $x '(F!a & X(!b R a)) | (Ga & X(b U !a))' 'F!a & X(!b R a)'
|
||||
run 0 $x 'd & ((!a & d) | (a & d))' '(!a & d) | (a & d)'
|
||||
|
||||
run 0 $x 'a <-> !a' '0'
|
||||
run 0 $x 'a <-> a' '1'
|
||||
run 0 $x 'a ^ a' '0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue