src/ltlast/constant.hh, src/ltlast/formula.hh, src/ltlast/multop.hh, src/ltlast/unop.hh, src/ltlast/visitor.hh, src/ltlenv/defaultenv.hh, src/ltlenv/environment.hh, src/ltlparse/public.hh, src/ltlvisit/clone.hh, src/ltlvisit/dotty.hh, src/ltlvisit/dump.hh, src/ltlvisit/equals.hh, src/ltlvisit/lunabbrev.hh, src/ltlvisit/nenoform.hh, src/ltlvisit/tunabbrev.hh: Add Doxygen comments. * src/visitor.hh: Do not use const_sel. This clarify the code and helps Doxygen.
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
#ifndef SPOT_LTLVISIT_TUNABBREV_HH
|
|
# define SPOT_LTLVISIT_TUNABBREV_HH
|
|
|
|
#include "ltlast/formula.hh"
|
|
#include "ltlvisit/lunabbrev.hh"
|
|
|
|
namespace spot
|
|
{
|
|
namespace ltl
|
|
{
|
|
/// \brief Clone and rewrite a formula to remove most of the
|
|
/// abbreviated LTL and logical operators.
|
|
///
|
|
/// The rewriting performed on logical operator is
|
|
/// the same as the one done by spot::ltl::unabbreviate_logic_visitor.
|
|
///
|
|
/// This will also rewrite unary operators such as unop::F,
|
|
/// and unop::G, using only binop::U, and binop::R.
|
|
///
|
|
/// This visitor is public, because it's convenient
|
|
/// to derive from it and override some of its methods.
|
|
/// But if you just want the functionality, consider using
|
|
/// spot::ltl::unabbreviate_ltl instead.
|
|
class unabbreviate_ltl_visitor : public unabbreviate_logic_visitor
|
|
{
|
|
typedef unabbreviate_logic_visitor super;
|
|
public:
|
|
unabbreviate_ltl_visitor();
|
|
virtual ~unabbreviate_ltl_visitor();
|
|
|
|
void visit(const unop* uo);
|
|
|
|
formula* recurse(const formula* f);
|
|
};
|
|
|
|
/// \brief Clone and rewrite a formula to remove most of the
|
|
/// abbreviated LTL and logical operators.
|
|
///
|
|
/// The rewriting performed on logical operator is
|
|
/// the same as the one done by spot::ltl::unabbreviate_logic.
|
|
///
|
|
/// This will also rewrite unary operators such as unop::F,
|
|
/// and unop::G, using only binop::U, and binop::R.
|
|
formula* unabbreviate_ltl(const formula* f);
|
|
}
|
|
}
|
|
|
|
#endif // SPOT_LTLVISIT_TUNABBREV_HH
|