spot 2.11.2.dev
convert.hh
1// -*- coding: utf-8 -*-
2// Copyright (C) 2015, 2016, 2020, 2022 Laboratoire de Recherche et
3// Developpement de l'Epita (LRDE).
4//
5// This file is part of Spot, a model checking library.
6//
7// Spot is free software; you can redistribute it and/or modify it
8// under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 3 of the License, or
10// (at your option) any later version.
11//
12// Spot is distributed in the hope that it will be useful, but WITHOUT
13// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15// License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20
21#pragma once
22
23#include <bddx.h>
24#include <unordered_map>
25#include <spot/misc/common.hh>
26#include <spot/twacube/cube.hh>
27#include <spot/twacube/twacube.hh>
28#include <spot/twa/twagraph.hh>
29
30namespace spot
31{
36 std::unordered_map<int, int>& binder);
37
41 std::unordered_map<int, int>& reverse_binder);
42
45 SPOT_API std::vector<std::string>*
46 extract_aps(spot::const_twa_graph_ptr aut,
47 std::unordered_map<int, int>& ap_binder);
48
50 SPOT_API twacube_ptr
51 twa_to_twacube(spot::const_twa_graph_ptr aut);
52
56 SPOT_API spot::twa_graph_ptr
57 twacube_to_twa(spot::twacube_ptr twacube,
58 spot::bdd_dict_ptr d = nullptr);
59
61 SPOT_API bool are_equivalent(const spot::twacube_ptr twacube,
62 const spot::const_twa_graph_ptr twa);
63}
Definition: cube.hh:69
A Transition-based ω-Automaton.
Definition: twa.hh:623
Class for representing a thread-safe twa.
Definition: twacube.hh:123
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:27
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:66
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.
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...
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,...

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.4