complete: merge edges going to the sink

* spot/twaalgos/complete.cc: Here.
* tests/python/dualize.py, tests/core/complete.test: Adjust test cases.
This commit is contained in:
Alexandre Duret-Lutz 2017-07-24 16:36:25 +02:00
parent 37f3154f1d
commit 1e9daa73f3
3 changed files with 24 additions and 18 deletions

View file

@ -1,6 +1,6 @@
#! /bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2015, 2016 Laboratoire de Recherche et Développement
# Copyright (C) 2015-2017 Laboratoire de Recherche et Développement
# de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
@ -152,11 +152,9 @@ properties: trans-labels explicit-labels state-acc complete
properties: deterministic
--BODY--
State: 0
[0] 1
[!0] 1
[t] 1
State: 1
[0] 1
[!0] 1
[t] 1
--END--
HOA: v1
States: 3
@ -186,8 +184,7 @@ properties: trans-labels explicit-labels state-acc complete
properties: deterministic
--BODY--
State: 0
[0] 1
[!0] 1
[t] 1
State: 1 {0}
[0] 1
[!0] 1
@ -205,8 +202,7 @@ State: 0
[!0 | 1] 0
[0&!1] 0&1
State: 1 {0}
[0&!1] 1
[!0 | 1] 1
[t] 1
--END--
HOA: v1
States: 2

View file

@ -408,13 +408,11 @@ properties: deterministic
--BODY--
State: 0
[0&1] 1
[0&!1] 2
[!0] 2
[!0 | !1] 2
State: 1 {0}
[t] 1
State: 2
[0] 2
[!0] 2
[t] 2
--END--"""
aut = spot.automaton("""