12#ifndef MCRL2_PBES_DETAIL_NORMALIZE_AND_OR_H
13#define MCRL2_PBES_DETAIL_NORMALIZE_AND_OR_H
15#include "mcrl2/pbes/builder.h"
16#include "mcrl2/pbes/join.h"
22template <
typename Derived>
40 std::multiset<pbes_expression> result;
41 utilities::detail::split(expr, std::insert_iterator<std::multiset<pbes_expression> >(result, result.begin()), is_or, left, right);
54 std::multiset<pbes_expression> result;
55 utilities::detail::split(expr, std::insert_iterator<std::multiset<pbes_expression> >(result, result.begin()), is_and, left, right);
63 std::multiset<pbes_expression> s = split_and(x);
64 return join_and(s.begin(), s.end());
68 std::multiset<pbes_expression> s = split_or(x);
69 return join_or(s.begin(), s.end());
78 result = atermpp::down_cast<pbes_expression>(x);
84 super::apply(result, x);
The namespace for accessor functions on pbes expressions.
bool is_or(const atermpp::aterm &x)
bool is_and(const atermpp::aterm &x)
void apply(T &result, const data::data_expression &x)
pbes_expression normalize(const pbes_expression &x)
void apply(T &result, const pbes_expression &x)
std::multiset< pbes_expression > split_or(const pbes_expression &expr)
Splits a disjunction into a sequence of operands Given a pbes expression of the form p1 || p2 || ....
std::multiset< pbes_expression > split_and(const pbes_expression &expr)
Splits a conjunction into a sequence of operands Given a pbes expression of the form p1 && p2 && ....