forked from jurajmajor/ltl3tela
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alternating.hpp
43 lines (33 loc) · 1.4 KB
/
alternating.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
Copyright (c) 2016 Juraj Major
This file is part of LTL3TELA.
LTL3TELA 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 3 of the License, or
(at your option) any later version.
LTL3TELA 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 LTL3TELA. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ALTERNATING_H
#define ALTERNATING_H
#include "utils.hpp"
#include "automaton.hpp"
#include <spot/tl/parse.hh>
#include <spot/twa/formula2bdd.hh>
#include <spot/twa/twagraph.hh>
#include <iostream>
#include <map>
#include <set>
// registers atomic proposition from a state formula
void register_ap_from_boolean_formula(SLAA* slaa, spot::formula f);
// checks whether U-formula f is mergeable
bool is_mergeable(SLAA* slaa, spot::formula f);
// converts an LTL formula to self-loop alternating automaton
SLAA* make_alternating(spot::formula f, spot::bdd_dict_ptr dict = nullptr);
// helper function for LTL to automata translation
unsigned make_alternating_recursive(SLAA* slaa, spot::formula f);
#endif