simplify: rewrite GF(a & Fb) as G(Fa & Fb)
This addresses part of #35, and is just a generalization of the rules
from 646c5170 for #263 (hence, no new documentation).
* spot/tl/simplify.cc: Implement this.
* tests/core/reduccmp.test: Add test cases.
* tests/core/stutter-tgba.test: Adjust to expect smaller automata.
This commit is contained in:
parent
e8527d5ae9
commit
6cd6802ace
3 changed files with 64 additions and 28 deletions
|
|
@ -302,8 +302,10 @@ GFa M b, GFa & b
|
|||
|
||||
G(a & XFb), G(a & Fb)
|
||||
G(a & XF(b & XFc & Fd)), G(a & Fb & Fc & Fd)
|
||||
GF(a & XF(b & Fc)), G(Fa & Fb & Fc)
|
||||
F(a | XGb), F(a | Gb)
|
||||
F(a | XG(b | XGc | Gd)), F(a | Gb | Gc | Gd)
|
||||
FG(a | XG(b | Gc)), F(Ga | Gb | Gc)
|
||||
|
||||
Fa|Xb|GFc, Fa | X(b|GFc)
|
||||
Fa|GFc, F(a|GFc)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2014, 2015, 2016 Laboratoire de Recherche et
|
||||
# Copyright (C) 2014-2017 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -29,13 +29,13 @@ $ltl2tgba '!FG(a | Xa | G!a)' -H | $autfilt -H --destut > pos.hoa
|
|||
$ltl2tgba 'FG(a | Xa | G!a)' -H | $autfilt -H --destut > neg.hoa
|
||||
$autfilt pos.hoa --product neg.hoa -H > prod.hoa
|
||||
$autfilt --is-empty prod.hoa -q && exit 1
|
||||
$autfilt --states=10 prod.hoa -q
|
||||
$autfilt --states=7 prod.hoa -q
|
||||
|
||||
$ltl2tgba '!FG(a | Xa | G!a)' -H | $autfilt -H --instut > pos.hoa
|
||||
$ltl2tgba 'FG(a | Xa | G!a)' -H | $autfilt -H --instut > neg.hoa
|
||||
$autfilt pos.hoa --product neg.hoa -H > prod.hoa
|
||||
$autfilt --is-empty prod.hoa -q && exit 1
|
||||
$autfilt --states=12 prod.hoa -q
|
||||
$autfilt --states=9 prod.hoa -q
|
||||
|
||||
|
||||
# Check for issue #7.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue