spot 2.12.2
product.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#pragma once
20
21#include <spot/misc/common.hh>
22#include <spot/twa/fwd.hh>
23#include <spot/twaalgos/powerset.hh>
24#include <vector>
25#include <utility>
26
27namespace spot
28{
31 typedef std::vector<std::pair<unsigned, unsigned>> product_states;
32
55 SPOT_API
56 twa_graph_ptr product(const const_twa_graph_ptr& left,
57 const const_twa_graph_ptr& right,
58 const output_aborter* aborter = nullptr);
59
86 SPOT_API
87 twa_graph_ptr product(const const_twa_graph_ptr& left,
88 const const_twa_graph_ptr& right,
89 unsigned left_state,
90 unsigned right_state,
91 const output_aborter* aborter = nullptr);
92
113 SPOT_API
114 twa_graph_ptr product_or(const const_twa_graph_ptr& left,
115 const const_twa_graph_ptr& right);
116
140 SPOT_API
141 twa_graph_ptr product_or(const const_twa_graph_ptr& left,
142 const const_twa_graph_ptr& right,
143 unsigned left_state,
144 unsigned right_state);
145
161 SPOT_API
162 twa_graph_ptr product_xor(const const_twa_graph_ptr& left,
163 const const_twa_graph_ptr& right);
164
182 SPOT_API
183 twa_graph_ptr product_xnor(const const_twa_graph_ptr& left,
184 const const_twa_graph_ptr& right);
185
201 SPOT_API
202 twa_graph_ptr product_susp(const const_twa_graph_ptr& left,
203 const const_twa_graph_ptr& right_susp);
204
222 SPOT_API
223 twa_graph_ptr product_or_susp(const const_twa_graph_ptr& left,
224 const const_twa_graph_ptr& right_susp);
225}
Helper object to specify when an algorithm should abort its construction.
Definition: powerset.hh:44
twa_graph_ptr product_or_susp(const const_twa_graph_ptr &left, const const_twa_graph_ptr &right_susp)
Build the "or" product of an automaton with a suspendable automaton.
twa_graph_ptr product_xor(const const_twa_graph_ptr &left, const const_twa_graph_ptr &right)
XOR two deterministic automata using a synchronous product.
twa_graph_ptr product_xnor(const const_twa_graph_ptr &left, const const_twa_graph_ptr &right)
XNOR two automata using a synchronous product.
twa_graph_ptr product_or(const const_twa_graph_ptr &left, const const_twa_graph_ptr &right)
Sum two automata using a synchronous product.
twa_graph_ptr product_susp(const const_twa_graph_ptr &left, const const_twa_graph_ptr &right_susp)
Build the product of an automaton with a suspendable automaton.
Definition: automata.hh:26
std::vector< std::pair< unsigned, unsigned > > product_states
Automata constructed by product() contain a property named "product-states" with this type.
Definition: product.hh:31

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