Rename the class taa as taa_tgba.
* src/tgba/taa.cc, src/tgba/taa.hh: Rename as ... * src/tgba/taatgba.cc, src/tgba/taatgba.hh: ... these, and rename the class taa as taa_tgba. * src/tgbaalgos/ltl2taa.cc, src/tgbaalgos/ltl2taa.hh, src/tgbaalgos/Makefile.am: Adjust. * src/tgbatest/ltl2tgba.cc, src/tgbatest/Makefile.am: Adjust. * src/tgbatest/taa.test: Rename as ... * src/tgbatest/taatgba.test ... this. * src/tgbatest/taa.cc: Rename as ... * src/tgbatest/taatgba.cc ... this, and adjust.
This commit is contained in:
parent
d362e752d1
commit
f00aa49dc3
9 changed files with 117 additions and 101 deletions
62
src/tgbatest/taatgba.cc
Normal file
62
src/tgbatest/taatgba.cc
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// Copyright (C) 2009 Laboratoire d'Informatique de Paris
|
||||
// 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
|
||||
// Université Pierre et Marie Curie.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
// Spot is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
// License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Spot; see the file COPYING. If not, write to the Free
|
||||
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
// 02111-1307, USA.
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include "misc/hash.hh"
|
||||
#include "ltlenv/defaultenv.hh"
|
||||
#include "ltlast/allnodes.hh"
|
||||
#include "tgbaalgos/dotty.hh"
|
||||
#include "tgba/taatgba.hh"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
spot::bdd_dict* dict = new spot::bdd_dict();
|
||||
|
||||
spot::ltl::default_environment& e =
|
||||
spot::ltl::default_environment::instance();
|
||||
spot::taa_tgba* a = new spot::taa_tgba(dict);
|
||||
|
||||
typedef spot::taa_tgba::transition trans;
|
||||
typedef spot::taa_tgba::state state;
|
||||
typedef spot::taa_tgba::state_set state_set;
|
||||
|
||||
std::string ss1_values[] = { "state 2", "state 3" };
|
||||
std::vector<std::string> ss1_vector(ss1_values, ss1_values + 2);
|
||||
trans* t1 = a->create_transition("state 1", ss1_vector);
|
||||
trans* t2 = a->create_transition("state 2", "state 3");
|
||||
trans* t3 = a->create_transition("state 2", "state 4");
|
||||
|
||||
a->add_condition(t1, e.require("a"));
|
||||
a->add_condition(t2, e.require("b"));
|
||||
a->add_condition(t3, e.require("c"));
|
||||
|
||||
a->set_init_state("state 1");
|
||||
spot::dotty_reachable(std::cout, a);
|
||||
|
||||
delete a;
|
||||
delete dict;
|
||||
assert(spot::ltl::atomic_prop::instance_count() == 0);
|
||||
assert(spot::ltl::unop::instance_count() == 0);
|
||||
assert(spot::ltl::binop::instance_count() == 0);
|
||||
assert(spot::ltl::multop::instance_count() == 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue