27 #include <spot/misc/_config.h> 28 #include <spot/misc/bitset.hh> 29 #include <spot/misc/trival.hh> 42 SPOT_DEPRECATED(
"mark_t no longer relies on unsigned, stop using value_t")
43 typedef unsigned value_t;
63 [[noreturn]]
static void report_too_many_sets();
99 template<
class iterator>
101 mark_t(
const iterator& begin,
const iterator& end)
104 for (iterator i = begin; i != end; ++i)
109 mark_t(std::initializer_list<unsigned> vals)
110 :
mark_t(vals.begin(), vals.end())
114 SPOT_DEPRECATED(
"use brace initialization instead")
135 return SPOT_MAX_ACCSETS;
145 return mark_t(_value_t::mone());
148 size_t hash()
const noexcept
150 std::hash<decltype(id)> h;
154 SPOT_DEPRECATED(
"compare mark_t to mark_t, not to unsigned")
155 bool operator==(
unsigned o)
const 157 SPOT_ASSERT(o == 0
U);
162 SPOT_DEPRECATED(
"compare mark_t to mark_t, not to unsigned")
163 bool operator!=(
unsigned o)
const 165 SPOT_ASSERT(o == 0
U);
170 bool operator==(
mark_t o)
const 175 bool operator!=(
mark_t o)
const 180 bool operator<(
mark_t o)
const 185 bool operator<=(
mark_t o)
const 190 bool operator>(
mark_t o)
const 195 bool operator>=(
mark_t o)
const 200 explicit operator bool()
const 205 bool has(
unsigned u)
const 207 return !!this->operator&(
mark_t({0}) << u);
215 void clear(
unsigned u)
269 #if SPOT_DEBUG || defined(SWIGPYTHON) 270 # define SPOT_WRAP_OP(ins) \ 275 catch (const std::runtime_error& e) \ 277 report_too_many_sets(); \ 280 # define SPOT_WRAP_OP(ins) ins; 282 mark_t operator<<(
unsigned i)
const 284 SPOT_WRAP_OP(
return id << i);
287 mark_t& operator<<=(
unsigned i)
289 SPOT_WRAP_OP(
id <<= i;
return *
this);
292 mark_t operator>>(
unsigned i)
const 294 SPOT_WRAP_OP(
return id >> i);
297 mark_t& operator>>=(
unsigned i)
299 SPOT_WRAP_OP(
id >>= i;
return *
this);
317 auto rm = (~yv) & (yv - 1);
319 auto lm = ~(yv ^ (yv - 1));
320 xv = ((xv & lm) >> 1) | (xv & rm);
330 return !((*this) - m);
337 return *
this != m && this->subset(m);
353 return id.highest()+1;
365 return id.lowest()+1;
390 template<
class iterator>
408 friend std::ostream& operator<<(std::ostream& os,
mark_t m);
410 std::string as_string()
const 412 std::ostringstream os;
420 { Inf, Fin, InfNeg, FinNeg,
And,
Or };
451 struct SPOT_API
acc_code:
public std::vector<acc_word>
453 bool operator==(
const acc_code& other)
const 455 unsigned pos = size();
456 if (other.size() != pos)
460 auto op = (*this)[pos - 1].sub.op;
461 auto sz = (*this)[pos - 1].sub.size;
462 if (other[pos - 1].sub.op !=
op ||
463 other[pos - 1].sub.size != sz)
467 case acc_cond::acc_op::And:
468 case acc_cond::acc_op::Or:
471 case acc_cond::acc_op::Inf:
472 case acc_cond::acc_op::InfNeg:
473 case acc_cond::acc_op::Fin:
474 case acc_cond::acc_op::FinNeg:
476 if (other[pos].mark != (*
this)[pos].mark)
484 bool operator<(
const acc_code& other)
const 486 unsigned pos = size();
487 auto osize = other.size();
494 auto op = (*this)[pos - 1].sub.op;
495 auto oop = other[pos - 1].sub.op;
500 auto sz = (*this)[pos - 1].sub.size;
501 auto osz = other[pos - 1].sub.size;
508 case acc_cond::acc_op::And:
509 case acc_cond::acc_op::Or:
512 case acc_cond::acc_op::Inf:
513 case acc_cond::acc_op::InfNeg:
514 case acc_cond::acc_op::Fin:
515 case acc_cond::acc_op::FinNeg:
518 auto m = (*this)[pos].mark;
519 auto om = other[pos].mark;
531 bool operator>(
const acc_code& other)
const 533 return other < *
this;
536 bool operator<=(
const acc_code& other)
const 538 return !(other < *
this);
541 bool operator>=(
const acc_code& other)
const 543 return !(*
this < other);
546 bool operator!=(
const acc_code& other)
const 548 return !(*
this == other);
559 return s == 0 || ((*this)[s - 1].sub.op == acc_op::Inf
560 && !((*this)[s - 2].mark));
574 && (*this)[s - 1].sub.op == acc_op::Fin && !((*this)[s - 2].mark);
588 res[1].sub.op = acc_op::Fin;
614 res[1].sub.op = acc_op::Fin;
646 res[1].sub.op = acc_op::FinNeg;
653 return fin_neg(
mark_t(vals));
670 res[1].sub.op = acc_op::Inf;
702 res[1].sub.op = acc_op::InfNeg;
709 return inf_neg(
mark_t(vals));
739 m >>= mark_t::max_accsets() - n;
753 m >>= mark_t::max_accsets() - n;
766 res |= inf({2*n - 1}) & fin({2*n - 2});
781 res &= inf({2*n - 1}) | fin({2*n - 2});
799 template<
class Iterator>
804 for (Iterator i = begin; i != end; ++i)
808 for (
unsigned ni = *i; ni > 0; --ni)
810 auto pair = inf(m) & fin({f});
811 std::swap(pair, res);
812 res |= std::move(pair);
823 static acc_code parity(
bool max,
bool odd,
unsigned sets);
841 static acc_code random(
unsigned n,
double reuse = 0.0);
846 if (is_t() || r.
is_f())
851 if (is_f() || r.
is_t())
853 unsigned s = size() - 1;
854 unsigned rs = r.size() - 1;
857 if (((*
this)[s].sub.op == acc_op::Inf
858 && r[rs].sub.op == acc_op::Inf)
859 || ((*
this)[s].sub.op == acc_op::InfNeg
860 && r[rs].sub.op == acc_op::InfNeg))
862 (*this)[s - 1].mark |= r[rs - 1].mark;
874 auto start = &(*this)[s] - (*this)[s].sub.size;
875 auto pos = &(*this)[s] - 1;
879 if (pos->sub.op == acc_op::Inf)
884 pos -= pos->sub.size + 1;
887 else if ((*
this)[s].sub.op == acc_op::Inf)
889 left_inf = &(*this)[s - 1];
892 const acc_word* right_inf =
nullptr;
893 auto right_end = &r.back();
897 auto pos = --right_end;
900 if (pos->sub.op == acc_op::Inf)
905 pos -= pos->sub.size + 1;
908 else if (right_end->sub.op == acc_op::Inf)
910 right_inf = right_end - 1;
914 if (left_inf && right_inf)
916 carry = left_inf->mark;
917 auto pos = left_inf - &(*this)[0];
918 erase(begin() + pos, begin() + pos + 2);
921 insert(end(), &r[0], right_end + 1);
923 (*this)[sz + (right_inf - &r[0])].mark |= carry;
951 if (is_t() || r.
is_f())
953 if (is_f() || r.
is_t())
958 unsigned s = size() - 1;
959 unsigned rs = r.size() - 1;
961 if (((*
this)[s].sub.op == acc_op::Fin
962 && r[rs].sub.op == acc_op::Fin)
963 || ((*
this)[s].sub.op == acc_op::FinNeg
964 && r[rs].sub.op == acc_op::FinNeg))
966 (*this)[s - 1].mark |= r[rs - 1].mark;
978 auto start = &(*this)[s] - (*this)[s].sub.size;
979 auto pos = &(*this)[s] - 1;
983 if (pos->sub.op == acc_op::Fin)
988 pos -= pos->sub.size + 1;
991 else if ((*
this)[s].sub.op == acc_op::Fin)
993 left_fin = &(*this)[s - 1];
996 const acc_word* right_fin =
nullptr;
997 auto right_end = &r.back();
1001 auto pos = --right_end;
1004 if (pos->sub.op == acc_op::Fin)
1006 right_fin = pos - 1;
1009 pos -= pos->sub.size + 1;
1012 else if (right_end->sub.op == acc_op::Fin)
1014 right_fin = right_end - 1;
1018 if (left_fin && right_fin)
1020 carry = left_fin->mark;
1021 auto pos = (left_fin - &(*this)[0]);
1022 this->erase(begin() + pos, begin() + pos + 2);
1025 insert(end(), &r[0], right_end + 1);
1027 (*this)[sz + (right_fin - &r[0])].mark |= carry;
1030 w.sub.size = size();
1058 if (SPOT_UNLIKELY(sets >= mark_t::max_accsets()))
1059 report_too_many_sets();
1062 unsigned pos = size();
1065 switch ((*
this)[pos - 1].sub.op)
1067 case acc_cond::acc_op::And:
1068 case acc_cond::acc_op::Or:
1071 case acc_cond::acc_op::Inf:
1072 case acc_cond::acc_op::InfNeg:
1073 case acc_cond::acc_op::Fin:
1074 case acc_cond::acc_op::FinNeg:
1076 (*this)[pos].mark <<= sets;
1100 bool is_dnf()
const;
1108 bool is_cnf()
const;
1139 std::vector<acc_code> top_disjuncts()
const;
1149 std::vector<acc_code> top_conjuncts()
const;
1180 int fin_one()
const;
1194 std::vector<std::vector<int>>
1195 missing(
mark_t inf,
bool accepting)
const;
1199 bool accepting(
mark_t inf)
const;
1206 bool inf_satisfiable(
mark_t inf)
const;
1220 mark_t always_present)
const;
1232 std::vector<unsigned> symmetries()
const;
1261 std::pair<acc_cond::mark_t, acc_cond::mark_t> used_inf_fin_sets()
const;
1268 to_html(std::ostream& os,
1269 std::function<
void(std::ostream&,
int)>
1270 set_printer =
nullptr)
const;
1277 to_text(std::ostream& os,
1278 std::function<
void(std::ostream&,
int)>
1279 set_printer =
nullptr)
const;
1286 to_latex(std::ostream& os,
1287 std::function<
void(std::ostream&,
int)>
1288 set_printer =
nullptr)
const;
1323 :
std::vector<
acc_word>(other - other->sub.size, other + 1)
1329 friend std::ostream& operator<<(std::ostream& os,
const acc_code& code);
1340 : num_(0
U), all_({}), code_(code)
1343 uses_fin_acceptance_ = check_fin_acceptance();
1351 : num_(0
U), all_({}), code_(code)
1353 add_sets(code.used_sets().max_set());
1354 uses_fin_acceptance_ = check_fin_acceptance();
1359 : num_(o.num_), all_(o.all_), code_(o.code_),
1360 uses_fin_acceptance_(o.uses_fin_acceptance_)
1370 uses_fin_acceptance_ = o.uses_fin_acceptance_;
1384 uses_fin_acceptance_ = check_fin_acceptance();
1399 bool operator==(
const acc_cond& other)
const 1404 bool operator!=(
const acc_cond& other)
const 1406 return !(*
this == other);
1412 return uses_fin_acceptance_;
1418 return code_.is_t();
1427 return num_ == 0 && is_t();
1433 return code_.is_f();
1442 return num_ == 0 && is_f();
1451 unsigned s = code_.size();
1453 s == 2 && code_[1].sub.op == acc_op::Inf && code_[0].mark == all_sets();
1462 return num_ == 1 && is_generalized_co_buchi();
1469 set_acceptance(inf(all_sets()));
1476 set_acceptance(fin(all_sets()));
1485 unsigned s = code_.size();
1486 return (s == 0 && num_ == 0) || (s == 2 && code_[1].sub.op == acc_op::Inf
1487 && code_[0].mark == all_sets());
1496 unsigned s = code_.size();
1498 code_[1].sub.op == acc_op::Fin && code_[0].mark == all_sets());
1512 int is_rabin()
const;
1525 int is_streett()
const;
1550 bool operator==(
rs_pair o)
const 1552 return fin == o.fin && inf == o.inf;
1554 bool operator!=(
rs_pair o)
const 1556 return fin != o.fin || inf != o.inf;
1558 bool operator<(
rs_pair o)
const 1560 return fin < o.fin || (!(o.fin < fin) && inf < o.inf);
1562 bool operator<=(
rs_pair o)
const 1564 return !(o < *
this);
1566 bool operator>(
rs_pair o)
const 1570 bool operator>=(
rs_pair o)
const 1572 return !(*
this < o);
1585 bool is_streett_like(std::vector<rs_pair>& pairs)
const;
1597 bool is_rabin_like(std::vector<rs_pair>& pairs)
const;
1608 bool is_generalized_rabin(std::vector<unsigned>& pairs)
const;
1622 bool is_generalized_streett(std::vector<unsigned>& pairs)
const;
1633 bool is_parity(
bool& max,
bool& odd,
bool equiv =
false)
const;
1641 return is_parity(max, odd);
1647 std::pair<bool, acc_cond::mark_t> unsat_mark()
const 1649 return sat_unsat_mark(
false);
1654 std::pair<bool, acc_cond::mark_t> sat_mark()
const 1656 return sat_unsat_mark(
true);
1660 bool check_fin_acceptance()
const;
1661 std::pair<bool, acc_cond::mark_t> sat_unsat_mark(
bool)
const;
1674 return acc_code::inf(mark);
1679 return inf(
mark_t(vals.begin(), vals.end()));
1701 return acc_code::inf_neg(mark);
1706 return inf_neg(
mark_t(vals.begin(), vals.end()));
1719 return acc_code::fin(mark);
1724 return fin(
mark_t(vals.begin(), vals.end()));
1746 return acc_code::fin_neg(mark);
1751 return fin_neg(
mark_t(vals.begin(), vals.end()));
1765 if (num > mark_t::max_accsets())
1766 report_too_many_sets();
1785 SPOT_ASSERT(u < num_sets());
1808 return code_.accepting(inf);
1818 return code_.inf_satisfiable(inf);
1834 return code_.maybe_accepting(infinitely_often, always_present);
1853 SPOT_DEPRECATED(
"Use operator<< instead.")
1854 std::ostream& format(std::ostream& os,
mark_t m)
const 1862 SPOT_DEPRECATED(
"Use operator<< or mark_t::as_string() instead.")
1863 std::string format(
mark_t m)
const 1865 std::ostringstream os;
1884 template<
class iterator>
1888 for (
unsigned x = 0; x < num_; ++x)
1893 auto all = comp(u |
mark_t({x}));
1896 for (iterator y = begin; y != end; ++y)
1926 return {num_sets(), code_.
remove(rem, missing)};
1936 { num_sets() - (all_sets() & rem).count(), code_.
strip(rem, missing) };
1942 return {num_sets(), code_.
force_inf(m)};
1949 return {num_sets(), code_.
remove(all_sets() - rem,
true)};
1963 std::string name(
const char* fmt =
"alo")
const;
1978 return code_.fin_unit();
1987 return code_.fin_one();
1998 std::vector<acc_cond> top_disjuncts()
const;
2008 std::vector<acc_cond> top_conjuncts()
const;
2019 bool uses_fin_acceptance_ =
false;
2024 typedef std::vector<acc_cond::rs_pair> rs_pairs;
2028 : pairs_(p), view_marks_(m) {}
2054 return !visible(p.inf) && visible(p.fin) ? p.fin
2063 return !visible(p.fin) && visible(p.inf) ? p.inf
2071 for (
const auto& p: pairs_)
2072 if (p.fin.has(mark) && visible(p.fin) && visible(p.inf))
2077 const rs_pairs& pairs()
const 2083 template<
typename filter>
2087 for (
const auto& p: pairs_)
2094 return !!(view_marks_ & v);
2097 const rs_pairs& pairs_;
2103 std::ostream& operator<<(std::ostream& os,
const acc_cond& acc);
2112 typedef unsigned value_type;
2113 typedef const value_type& reference;
2114 typedef const value_type* pointer;
2115 typedef std::ptrdiff_t difference_type;
2116 typedef std::forward_iterator_tag iterator_category;
2138 value_type operator*()
const 2141 return m_.min_set() - 1;
2146 m_.clear(this->
operator*());
2190 struct hash<
spot::acc_cond::mark_t>
static acc_code inf(mark_t m)
Construct a generalized Büchi acceptance.
Definition: acc.hh:665
static constexpr unsigned max_accsets()
The maximum number of acceptance sets supported by this implementation.
Definition: acc.hh:133
Definition: automata.hh:26
unsigned min_set() const
The number of the lowest set used plus one.
Definition: acc.hh:362
mark_t lowest() const
A mark_t where all bits have been removed except the lowest one.
Definition: acc.hh:374
bool is_all() const
Whether the acceptance condition is "all".
Definition: acc.hh:1425
mark_t all_sets() const
Construct a mark_t with all declared sets.
Definition: acc.hh:1799
spot::internal::mark_container sets() const
Returns some iterable object that contains the used sets.
Definition: acc.hh:2181
static acc_code fin(mark_t mark)
Construct a generalized co-Büchi acceptance.
Definition: acc.hh:1717
acc_cond force_inf(mark_t m) const
For all x in m, replaces Fin(x) by false.
Definition: acc.hh:1940
bool is_f() const
Whether the acceptance formula is "f" (false)
Definition: acc.hh:1431
bool is_f() const
Is this the "false" acceptance condition?
Definition: acc.hh:569
bool inf_satisfiable(mark_t inf) const
Assuming that we will visit at least all sets in inf, is there any chance that we will satisfy the co...
Definition: acc.hh:1816
bool is_buchi() const
Whether the acceptance condition is "Büchi".
Definition: acc.hh:1449
unsigned add_sets(unsigned num)
Add more sets to the acceptance condition.
Definition: acc.hh:1759
acc_op
Operators for acceptance formulas.
Definition: acc.hh:419
static acc_code fin_neg(std::initializer_list< unsigned > vals)
Construct a generalized co-Büchi acceptance for complemented sets.
Definition: acc.hh:1749
mark_t mark(unsigned u) const
Build a mark_t with a single set.
Definition: acc.hh:1783
unsigned max_set() const
The number of the highest set used plus one.
Definition: acc.hh:350
bool uses_fin_acceptance() const
Whether the acceptance condition uses Fin terms.
Definition: acc.hh:1410
Rabin/streett pairs used by is_rabin_like and is_streett_like.
Definition: acc.hh:1536
void fill(iterator here) const
Fill a container with the indices of the bits that are set.
Definition: acc.hh:391
const acc_code & get_acceptance() const
Retrieve the acceptance formula.
Definition: acc.hh:1388
static acc_code f()
Construct the "false" acceptance condition.
Definition: acc.hh:583
static acc_code inf(mark_t mark)
Construct a generalized Büchi acceptance.
Definition: acc.hh:1672
mark_t(const iterator &begin, const iterator &end)
Create a mark_t from a range of set numbers.
Definition: acc.hh:101
Definition: bitset.hh:405
acc_cond restrict_to(mark_t rem) const
Restrict an acceptance condition to a subset of set numbers that are occurring at some point...
Definition: acc.hh:1947
bool subset(mark_t m) const
Whether the set of bits represented by *this is a subset of those represented by m.
Definition: acc.hh:328
static acc_code fin(std::initializer_list< unsigned > vals)
Construct a generalized co-Büchi acceptance.
Definition: acc.hh:1722
static mark_t all()
A mark_t with all bits set to one.
Definition: acc.hh:143
acc_code operator<<(unsigned sets) const
Apply a left shift to all mark_t that appear in the condition.
Definition: acc.hh:1087
static acc_code streett(unsigned n)
Build a Streett condition with n pairs.
Definition: acc.hh:776
bool is_generalized_buchi() const
Whether the acceptance condition is "generalized-Büchi".
Definition: acc.hh:1483
void set_acceptance(const acc_code &code)
Change the acceptance formula.
Definition: acc.hh:1381
bool proper_subset(mark_t m) const
Whether the set of bits represented by *this is a proper subset of those represented by m...
Definition: acc.hh:335
static acc_code fin_neg(mark_t mark)
Construct a generalized co-Büchi acceptance for complemented sets.
Definition: acc.hh:1744
acc_code operator|(acc_code &&r) const
Disjunct the current condition with r.
Definition: acc.hh:1036
acc_code(const acc_word *other)
Copy a part of another acceptance formula.
Definition: acc.hh:1322
static acc_code inf_neg(mark_t mark)
Construct a generalized Büchi acceptance for complemented sets.
Definition: acc.hh:1699
acc_cond remove(mark_t rem, bool missing) const
Remove all the acceptance sets in rem.
Definition: acc.hh:1924
mark_t & remove_some(unsigned n)
Remove n bits that where set.
Definition: acc.hh:382
bool is_none() const
Whether the acceptance condition is "none".
Definition: acc.hh:1440
An acceptance condition.
Definition: acc.hh:58
acc_cond strip(mark_t rem, bool missing) const
Remove acceptance sets, and shift set numbers.
Definition: acc.hh:1933
acc_cond & operator=(const acc_cond &o)
Copy an acceptance condition.
Definition: acc.hh:1365
acc_cond(unsigned n_sets=0, const acc_code &code={})
Build an acceptance condition.
Definition: acc.hh:1339
mark_t(std::initializer_list< unsigned > vals)
Create a mark_t from a list of set numbers.
Definition: acc.hh:109
A "node" in an acceptance formulas.
Definition: acc.hh:429
acc_code & operator|=(const acc_code &r)
Disjunct the current condition in place with r.
Definition: acc.hh:949
static acc_code inf(std::initializer_list< unsigned > vals)
Construct a generalized Büchi acceptance.
Definition: acc.hh:675
void set_generalized_co_buchi()
Change the acceptance condition to generalized-co-Büchi, over all declared sets.
Definition: acc.hh:1474
static acc_code fin(std::initializer_list< unsigned > vals)
Construct a generalized co-Büchi acceptance.
Definition: acc.hh:619
int fin_one() const
Return one acceptance set i that appear as Fin(i) in the condition.
Definition: acc.hh:1985
A class implementing Kleene's three-valued logic.
Definition: trival.hh:33
static acc_code buchi()
Build a Büchi acceptance condition.
Definition: acc.hh:716
static acc_code inf_neg(std::initializer_list< unsigned > vals)
Construct a generalized Büchi acceptance for complemented sets.
Definition: acc.hh:1704
acc_code & get_acceptance()
Retrieve the acceptance formula.
Definition: acc.hh:1394
bool is_co_buchi() const
Whether the acceptance condition is "co-Büchi".
Definition: acc.hh:1460
mark_t comp(const mark_t &l) const
Complement a mark_t.
Definition: acc.hh:1793
static acc_code t()
Construct the "true" acceptance condition.
Definition: acc.hh:597
static acc_code cobuchi()
Build a co-Büchi acceptance condition.
Definition: acc.hh:724
unsigned count() const
Number of bits sets.
Definition: acc.hh:341
static acc_code inf_neg(mark_t m)
Construct a generalized Büchi acceptance for complemented sets.
Definition: acc.hh:697
acc_code()
Build an empty acceptance formula.
Definition: acc.hh:1317
bool is_generalized_co_buchi() const
Whether the acceptance condition is "generalized-co-Büchi".
Definition: acc.hh:1494
mark_t fin_unit() const
Find a Fin(i) that is a unit clause.
Definition: acc.hh:1976
op
Operator types.
Definition: formula.hh:64
bool is_parity() const
check is the acceptance condition matches one of the four type of parity acceptance defined in the HO...
Definition: acc.hh:1637
acc_code & operator<<=(unsigned sets)
Apply a left shift to all mark_t that appear in the condition.
Definition: acc.hh:1056
unsigned num_sets() const
The number of sets used in the acceptance condition.
Definition: acc.hh:1872
static acc_code inf(std::initializer_list< unsigned > vals)
Construct a generalized Büchi acceptance.
Definition: acc.hh:1677
static acc_code generalized_buchi(unsigned n)
Build a generalized-Büchi acceptance condition with n sets.
Definition: acc.hh:734
acc_cond(const acc_cond &o)
Copy an acceptance condition.
Definition: acc.hh:1358
acc_code operator|(const acc_code &r) const
Disjunct the current condition with r.
Definition: acc.hh:1044
static acc_code rabin(unsigned n)
Build a Rabin condition with n pairs.
Definition: acc.hh:761
unsigned add_set()
Add a single set to the acceptance condition.
Definition: acc.hh:1777
An acceptance formula.
Definition: acc.hh:451
static acc_code fin(mark_t m)
Construct a generalized co-Büchi acceptance.
Definition: acc.hh:609
static acc_code generalized_rabin(Iterator begin, Iterator end)
Build a generalized Rabin condition.
Definition: acc.hh:800
mark_t useless(iterator begin, iterator end) const
Compute useless acceptance sets given a list of mark_t that occur in an SCC.
Definition: acc.hh:1885
acc_cond(const acc_code &code)
Build an acceptance condition.
Definition: acc.hh:1350
bool accepting(mark_t inf) const
Check whether visiting exactly all sets inf infinitely often satisfies the acceptance condition...
Definition: acc.hh:1806
bool is_t() const
Whether the acceptance formula is "t" (true)
Definition: acc.hh:1416
trival maybe_accepting(mark_t infinitely_often, mark_t always_present) const
Check potential acceptance of an SCC.
Definition: acc.hh:1832
void set_generalized_buchi()
Change the acceptance condition to generalized-Büchi, over all declared sets.
Definition: acc.hh:1467
static acc_code fin_neg(mark_t m)
Construct a generalized co-Büchi acceptance for complemented sets.
Definition: acc.hh:641
An acceptance mark.
Definition: acc.hh:81
static acc_code inf_neg(std::initializer_list< unsigned > vals)
Construct a generalized Büchi acceptance for complemented sets.
Definition: acc.hh:707
static acc_code fin_neg(std::initializer_list< unsigned > vals)
Construct a generalized co-Büchi acceptance for complemented sets.
Definition: acc.hh:651
static acc_code generalized_co_buchi(unsigned n)
Build a generalized-co-Büchi acceptance condition with n sets.
Definition: acc.hh:748
bool is_t() const
Is this the "true" acceptance condition?
Definition: acc.hh:555