ltlfilt: add a --define option

* src/bin/ltlfilt.cc: Implement it.
* src/bin/common_output.cc, src/bin/common_output.hh: export the
stream_formula function.
* src/ltltest/ltlfilt.test: Test it.
* src/ltlvisit/relabel.hh: Make it possible to clear the
relabeling map.
* NEWS, doc/org/ltlfilt.org: Mention --define.
This commit is contained in:
Alexandre Duret-Lutz 2015-04-22 13:54:06 +02:00
parent 65a729ab3d
commit 8248072057
7 changed files with 159 additions and 5 deletions

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2012, 2013 Laboratoire de Recherche et
// Copyright (C) 2012, 2013, 2015 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
@ -33,10 +33,17 @@ namespace spot
const formula*,
ptr_hash<formula>>
{
~relabeling_map()
void clear()
{
for (iterator i = begin(); i != end(); ++i)
i->second->destroy();
this->std::unordered_map<const formula*,
const formula*, ptr_hash<formula>>::clear();
}
~relabeling_map()
{
clear();
}
};