ltl2tgba_fm: fix setting of unambiguous property

Report from Joachim Klein.

* spot/twaalgos/ltl2tgba_fm.cc: Set the property, do not read it.
* tests/core/unambig.test: Add a test.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2016-01-26 19:32:26 +01:00
parent a3c2691632
commit c968e7b856
3 changed files with 14 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2013, 2015 Laboratoire de Recherche et Developpement
# de l'Epita
# Copyright (C) 2013, 2015, 2016 Laboratoire de Recherche et
# Developpement de l'Epita
#
# This file is part of Spot, a model checking library.
#
@ -187,6 +187,12 @@ State: 2
--END--
EOF
# Thus should be marked as unambiguous. Report from Joachim Klein.
ltl2tgba --lbt-input -B -U -x wdba-minimize=0 "U p0 & p1 X ! p0" |
grep 'properties:.*unambiguous'
# Make sure we preserve the "unambiguous" property if it is given.
run 0 $autfilt -H --is-unambiguous input >output