spot  2.12.1
convert.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) by the Spot authors, see the AUTHORS file for details.
3 //
4 // This file is part of Spot, a model checking library.
5 //
6 // Spot is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // Spot is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 
20 #pragma once
21 
22 #include <bddx.h>
23 #include <unordered_map>
24 #include <spot/misc/common.hh>
25 #include <spot/twacube/cube.hh>
26 #include <spot/twacube/twacube.hh>
27 #include <spot/twa/twagraph.hh>
28 
29 namespace spot
30 {
35  std::unordered_map<int, int>& binder);
36 
39  SPOT_API bdd cube_to_bdd(spot::cube cube, const cubeset& cubeset,
40  std::unordered_map<int, int>& reverse_binder);
41 
44  SPOT_API std::vector<std::string>*
45  extract_aps(spot::const_twa_graph_ptr aut,
46  std::unordered_map<int, int>& ap_binder);
47 
49  SPOT_API twacube_ptr
50  twa_to_twacube(spot::const_twa_graph_ptr aut);
51 
55  SPOT_API spot::twa_graph_ptr
56  twacube_to_twa(spot::twacube_ptr twacube,
57  spot::bdd_dict_ptr d = nullptr);
58 
60  SPOT_API bool are_equivalent(const spot::twacube_ptr twacube,
61  const spot::const_twa_graph_ptr twa);
62 }
Definition: cube.hh:68
A Transition-based ω-Automaton.
Definition: twa.hh:619
Class for representing a thread-safe twa.
Definition: twacube.hh:122
bool are_equivalent(const_twa_graph_ptr left, const_twa_graph_ptr right)
Test if the language of left is equivalent to that of right.
Definition: automata.hh:26
bdd cube_to_bdd(spot::cube cube, const cubeset &cubeset, std::unordered_map< int, int > &reverse_binder)
Transform a cube cube into bdd using the map that bind cube indexes to bdd indexes.
unsigned * cube
A cube is only a set of bits in memory.
Definition: cube.hh:65
spot::cube satone_to_cube(bdd one, cubeset &cubeset, std::unordered_map< int, int > &binder)
Transform one truth assignment represented as a BDD into a cube cube passed in parameter....
twacube_ptr twa_to_twacube(spot::const_twa_graph_ptr aut)
Convert a twa into a twacube.
std::vector< std::string > * extract_aps(spot::const_twa_graph_ptr aut, std::unordered_map< int, int > &ap_binder)
Extract the atomic propositions from the automaton. This method also fill the binder,...
spot::twa_graph_ptr twacube_to_twa(spot::twacube_ptr twacube, spot::bdd_dict_ptr d=nullptr)
Convert a twacube into a twa. When d is specified, the BDD_dict in parameter is used rather than crea...

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1