15#ifndef MCRL2_DATA_SET64_H
16#define MCRL2_DATA_SET64_H
19#include "mcrl2/utilities/exception.h"
20#include "mcrl2/data/basic_sort.h"
21#include "mcrl2/data/function_sort.h"
22#include "mcrl2/data/function_symbol.h"
23#include "mcrl2/data/application.h"
24#include "mcrl2/data/data_equation.h"
25#include "mcrl2/data/standard.h"
26#include "mcrl2/data/forall.h"
27#include "mcrl2/data/container_sort.h"
28#include "mcrl2/data/bool.h"
29#include "mcrl2/data/fset64.h"
65 static core::identifier_string constructor_name = core::identifier_string(
"@set");
66 return constructor_name;
87 return atermpp::down_cast<function_symbol>(e).name() == constructor_name();
121 return is_application(e) && is_constructor_function_symbol(atermpp::down_cast<application>(e).head());
129 function_symbol_vector result;
130 result.push_back(sort_set::constructor(s));
140 function_symbol_vector result;
141 result.push_back(sort_set::constructor(s));
153 implementation_map result;
162 static core::identifier_string set_fset_name = core::identifier_string(
"@setfset");
163 return set_fset_name;
184 return atermpp::down_cast<function_symbol>(e).name() == set_fset_name();
216 return is_application(e) && is_set_fset_function_symbol(atermpp::down_cast<application>(e).head());
224 static core::identifier_string set_comprehension_name = core::identifier_string(
"@setcomp");
225 return set_comprehension_name;
235 return set_comprehension;
246 return atermpp::down_cast<function_symbol>(e).name() == set_comprehension_name();
278 return is_application(e) && is_set_comprehension_function_symbol(atermpp::down_cast<application>(e).head());
286 static core::identifier_string in_name = core::identifier_string(
"in");
308 return f.name() == in_name() && atermpp::down_cast<function_sort>(f.sort()).domain().size() == 2;
342 return is_application(e) && is_in_function_symbol(atermpp::down_cast<application>(e).head());
350 static core::identifier_string complement_name = core::identifier_string(
"!");
351 return complement_name;
372 return atermpp::down_cast<function_symbol>(e).name() == complement_name();
404 return is_application(e) && is_complement_function_symbol(atermpp::down_cast<application>(e).head());
412 static core::identifier_string union_name = core::identifier_string(
"+");
431 throw mcrl2::runtime_error(
"Cannot compute target sort for union_ with domain sorts " + pp(s0) +
", " + pp(s1) +
". ");
447 return f.name() == union_name() && atermpp::down_cast<function_sort>(f.sort()).domain().size() == 2;
481 return is_application(e) && is_union_function_symbol(atermpp::down_cast<application>(e).head());
489 static core::identifier_string intersection_name = core::identifier_string(
"*");
490 return intersection_name;
516 throw mcrl2::runtime_error(
"Cannot compute target sort for intersection with domain sorts " + pp(s0) +
", " + pp(s1) +
". ");
532 return f.name() == intersection_name() && atermpp::down_cast<function_sort>(f.sort()).domain().size() == 2;
566 return is_application(e) && is_intersection_function_symbol(atermpp::down_cast<application>(e).head());
574 static core::identifier_string difference_name = core::identifier_string(
"-");
575 return difference_name;
597 throw mcrl2::runtime_error(
"Cannot compute target sort for difference with domain sorts " + pp(s0) +
", " + pp(s1) +
". ");
613 return f.name() == difference_name() && atermpp::down_cast<function_sort>(f.sort()).domain().size() == 2;
647 return is_application(e) && is_difference_function_symbol(atermpp::down_cast<application>(e).head());
655 static core::identifier_string false_function_name = core::identifier_string(
"@false_");
656 return false_function_name;
666 return false_function;
677 return atermpp::down_cast<function_symbol>(e).name() == false_function_name();
709 return is_application(e) && is_false_function_function_symbol(atermpp::down_cast<application>(e).head());
717 static core::identifier_string true_function_name = core::identifier_string(
"@true_");
718 return true_function_name;
728 return true_function;
739 return atermpp::down_cast<function_symbol>(e).name() == true_function_name();
771 return is_application(e) && is_true_function_function_symbol(atermpp::down_cast<application>(e).head());
779 static core::identifier_string not_function_name = core::identifier_string(
"@not_");
780 return not_function_name;
801 return atermpp::down_cast<function_symbol>(e).name() == not_function_name();
833 return is_application(e) && is_not_function_function_symbol(atermpp::down_cast<application>(e).head());
841 static core::identifier_string and_function_name = core::identifier_string(
"@and_");
842 return and_function_name;
863 return atermpp::down_cast<function_symbol>(e).name() == and_function_name();
897 return is_application(e) && is_and_function_function_symbol(atermpp::down_cast<application>(e).head());
905 static core::identifier_string or_function_name = core::identifier_string(
"@or_");
906 return or_function_name;
927 return atermpp::down_cast<function_symbol>(e).name() == or_function_name();
961 return is_application(e) && is_or_function_function_symbol(atermpp::down_cast<application>(e).head());
969 static core::identifier_string fset_union_name = core::identifier_string(
"@fset_union");
970 return fset_union_name;
991 return atermpp::down_cast<function_symbol>(e).name() == fset_union_name();
1029 return is_application(e) && is_fset_union_function_symbol(atermpp::down_cast<application>(e).head());
1037 static core::identifier_string fset_intersection_name = core::identifier_string(
"@fset_inter");
1038 return fset_intersection_name;
1048 return fset_intersection;
1059 return atermpp::down_cast<function_symbol>(e).name() == fset_intersection_name();
1097 return is_application(e) && is_fset_intersection_function_symbol(atermpp::down_cast<application>(e).head());
1105 function_symbol_vector result;
1106 result.push_back(sort_set::set_fset(s));
1107 result.push_back(sort_set::set_comprehension(s));
1108 result.push_back(sort_set::in(s, s, set_(s)));
1109 result.push_back(sort_set::complement(s));
1110 result.push_back(sort_set::union_(s, set_(s), set_(s)));
1111 result.push_back(sort_set::intersection(s, set_(s), set_(s)));
1112 result.push_back(sort_set::intersection(s, sort_fset::fset(s), set_(s)));
1113 result.push_back(sort_set::intersection(s, set_(s), sort_fset::fset(s)));
1114 result.push_back(sort_set::difference(s, set_(s), set_(s)));
1115 result.push_back(sort_set::difference(s, sort_fset::fset(s), set_(s)));
1116 result.push_back(sort_set::false_function(s));
1117 result.push_back(sort_set::true_function(s));
1118 result.push_back(sort_set::not_function(s));
1119 result.push_back(sort_set::and_function(s));
1120 result.push_back(sort_set::or_function(s));
1121 result.push_back(sort_set::fset_union(s));
1122 result.push_back(sort_set::fset_intersection(s));
1132 function_symbol_vector result=set_generate_functions_code(s);
1133 for(
const function_symbol& f: set_generate_constructors_code(s))
1135 result.push_back(f);
1146 function_symbol_vector result;
1147 result.push_back(sort_set::set_fset(s));
1148 result.push_back(sort_set::set_comprehension(s));
1149 result.push_back(sort_set::in(s, s, set_(s)));
1150 result.push_back(sort_set::complement(s));
1151 result.push_back(sort_set::union_(s, set_(s), set_(s)));
1152 result.push_back(sort_set::intersection(s, set_(s), set_(s)));
1153 result.push_back(sort_set::intersection(s, sort_fset::fset(s), set_(s)));
1154 result.push_back(sort_set::intersection(s, set_(s), sort_fset::fset(s)));
1155 result.push_back(sort_set::difference(s, set_(s), set_(s)));
1156 result.push_back(sort_set::difference(s, sort_fset::fset(s), set_(s)));
1157 result.push_back(sort_set::false_function(s));
1158 result.push_back(sort_set::true_function(s));
1159 result.push_back(sort_set::not_function(s));
1160 result.push_back(sort_set::and_function(s));
1161 result.push_back(sort_set::or_function(s));
1162 result.push_back(sort_set::fset_union(s));
1163 result.push_back(sort_set::fset_intersection(s));
1176 implementation_map result;
1188 return atermpp::down_cast<application>(e)[0];
1200 return atermpp::down_cast<application>(e)[1];
1212 return atermpp::down_cast<application>(e)[0];
1224 return atermpp::down_cast<application>(e)[0];
1236 return atermpp::down_cast<application>(e)[1];
1248 return atermpp::down_cast<application>(e)[2];
1260 return atermpp::down_cast<application>(e)[3];
1279 data_equation_vector result;
1280 result.emplace_back(variable_list({vs}), set_fset(s, vs), constructor(s, false_function(s), vs));
1281 result.emplace_back(variable_list({vf}), sort_set::set_comprehension(s, vf), constructor(s, vf, sort_fset::empty(s)));
1282 result.emplace_back(variable_list({ve, vf, vs}), in(s, ve, constructor(s, vf, vs)), not_equal_to(vf(ve), in(s, ve, vs)));
1283 result.emplace_back(variable_list({vf, vg, vs, vt}), equal_to(constructor(s, vf, vs), constructor(s, vg, vt)), forall(variable_list({vc}), equal_to(equal_to(vf(vc), vg(vc)), equal_to(in(s, vc, vs), in(s, vc, vt)))));
1284 result.emplace_back(variable_list({vx, vy}), less(vx, vy), sort_bool::and_(less_equal(vx, vy), not_equal_to(vx, vy)));
1285 result.emplace_back(variable_list({vx, vy}), less_equal(vx, vy), equal_to(intersection(s, vx, vy), vx));
1286 result.emplace_back(variable_list({vf, vg, vs, vt}), less_total(constructor(s, vf, vs), constructor(s, vg, vt)), sort_bool::or_(less_total(vs, vt), sort_bool::and_(equal_to(vs, vt), less_total(vf, vg))));
1287 result.emplace_back(variable_list({vf, vs}), complement(s, constructor(s, vf, vs)), constructor(s, not_function(s, vf), vs));
1288 result.emplace_back(variable_list({vx}), union_(s, vx, vx), vx);
1289 result.emplace_back(variable_list({vx, vy}), union_(s, vx, union_(s, vx, vy)), union_(s, vx, vy));
1290 result.emplace_back(variable_list({vx, vy}), union_(s, vx, union_(s, vy, vx)), union_(s, vy, vx));
1291 result.emplace_back(variable_list({vx, vy}), union_(s, union_(s, vx, vy), vx), union_(s, vx, vy));
1292 result.emplace_back(variable_list({vx, vy}), union_(s, union_(s, vy, vx), vx), union_(s, vy, vx));
1293 result.emplace_back(variable_list({vf, vg, vs, vt}), union_(s, constructor(s, vf, vs), constructor(s, vg, vt)), constructor(s, or_function(s, vf, vg), fset_union(s, vf, vg, vs, vt)));
1294 result.emplace_back(variable_list({vx}), intersection(s, vx, vx), vx);
1295 result.emplace_back(variable_list({vx, vy}), intersection(s, vx, intersection(s, vx, vy)), intersection(s, vx, vy));
1296 result.emplace_back(variable_list({vx, vy}), intersection(s, vx, intersection(s, vy, vx)), intersection(s, vy, vx));
1297 result.emplace_back(variable_list({vx, vy}), intersection(s, intersection(s, vx, vy), vx), intersection(s, vx, vy));
1298 result.emplace_back(variable_list({vx, vy}), intersection(s, intersection(s, vy, vx), vx), intersection(s, vy, vx));
1299 result.emplace_back(variable_list({vf, vg, vs, vt}), intersection(s, constructor(s, vf, vs), constructor(s, vg, vt)), constructor(s, and_function(s, vf, vg), fset_intersection(s, vf, vg, vs, vt)));
1300 result.emplace_back(variable_list({vx}), intersection(s, sort_fset::empty(s), vx), sort_fset::empty(s));
1301 result.emplace_back(variable_list({vd, vs, vx}), intersection(s, sort_fset::cons_(s, vd, vs), vx), if_(in(s, vd, vx), sort_fset::cons_(s, vd, intersection(s, vs, vx)), intersection(s, vs, vx)));
1302 result.emplace_back(variable_list({vs, vx}), intersection(s, vx, vs), intersection(s, vs, vx));
1303 result.emplace_back(variable_list({vx, vy}), difference(s, vx, vy), intersection(s, vx, complement(s, vy)));
1304 result.emplace_back(variable_list({vs, vx}), difference(s, vs, vx), intersection(s, vs, complement(s, vx)));
1305 result.emplace_back(variable_list({ve}), false_function(s, ve), sort_bool::false_());
1306 result.emplace_back(variable_list({ve}), true_function(s, ve), sort_bool::true_());
1307 result.emplace_back(variable_list(), equal_to(false_function(s), true_function(s)), sort_bool::false_());
1308 result.emplace_back(variable_list(), equal_to(true_function(s), false_function(s)), sort_bool::false_());
1309 result.emplace_back(variable_list({ve, vf}), not_function(s, vf)(ve), sort_bool::not_(vf(ve)));
1310 result.emplace_back(variable_list(), not_function(s, false_function(s)), true_function(s));
1311 result.emplace_back(variable_list(), not_function(s, true_function(s)), false_function(s));
1312 result.emplace_back(variable_list({ve, vf, vg}), and_function(s, vf, vg)(ve), sort_bool::and_(vf(ve), vg(ve)));
1313 result.emplace_back(variable_list({vf}), and_function(s, vf, vf), vf);
1314 result.emplace_back(variable_list({vf}), and_function(s, vf, false_function(s)), false_function(s));
1315 result.emplace_back(variable_list({vf}), and_function(s, false_function(s), vf), false_function(s));
1316 result.emplace_back(variable_list({vf}), and_function(s, vf, true_function(s)), vf);
1317 result.emplace_back(variable_list({vf}), and_function(s, true_function(s), vf), vf);
1318 result.emplace_back(variable_list({vf}), or_function(s, vf, vf), vf);
1319 result.emplace_back(variable_list({vf}), or_function(s, vf, false_function(s)), vf);
1320 result.emplace_back(variable_list({vf}), or_function(s, false_function(s), vf), vf);
1321 result.emplace_back(variable_list({vf}), or_function(s, vf, true_function(s)), true_function(s));
1322 result.emplace_back(variable_list({vf}), or_function(s, true_function(s), vf), true_function(s));
1323 result.emplace_back(variable_list({ve, vf, vg}), or_function(s, vf, vg)(ve), sort_bool::or_(vf(ve), vg(ve)));
1324 result.emplace_back(variable_list({vs, vt}), fset_union(s, false_function(s), false_function(s), vs, vt), union_(s, vs, vt));
1325 result.emplace_back(variable_list({vf, vg}), fset_union(s, vf, vg, sort_fset::empty(s), sort_fset::empty(s)), sort_fset::empty(s));
1326 result.emplace_back(variable_list({vd, vf, vg, vs}), fset_union(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::empty(s)), sort_fset::cinsert(s, vd, sort_bool::not_(vg(vd)), fset_union(s, vf, vg, vs, sort_fset::empty(s))));
1327 result.emplace_back(variable_list({ve, vf, vg, vt}), fset_union(s, vf, vg, sort_fset::empty(s), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, ve, sort_bool::not_(vf(ve)), fset_union(s, vf, vg, sort_fset::empty(s), vt)));
1328 result.emplace_back(variable_list({vd, vf, vg, vs, vt}), fset_union(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, vd, vt)), sort_fset::cinsert(s, vd, equal_to(vf(vd), vg(vd)), fset_union(s, vf, vg, vs, vt)));
1329 result.emplace_back(variable_list({vd, ve, vf, vg, vs, vt}), less_total(vd, ve), fset_union(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, vd, sort_bool::not_(vg(vd)), fset_union(s, vf, vg, vs, sort_fset::cons_(s, ve, vt))));
1330 result.emplace_back(variable_list({vd, ve, vf, vg, vs, vt}), less_total(ve, vd), fset_union(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, ve, sort_bool::not_(vf(ve)), fset_union(s, vf, vg, sort_fset::cons_(s, vd, vs), vt)));
1331 result.emplace_back(variable_list({vf, vg}), fset_intersection(s, vf, vg, sort_fset::empty(s), sort_fset::empty(s)), sort_fset::empty(s));
1332 result.emplace_back(variable_list({vd, vf, vg, vs}), fset_intersection(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::empty(s)), sort_fset::cinsert(s, vd, vg(vd), fset_intersection(s, vf, vg, vs, sort_fset::empty(s))));
1333 result.emplace_back(variable_list({ve, vf, vg, vt}), fset_intersection(s, vf, vg, sort_fset::empty(s), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, ve, vf(ve), fset_intersection(s, vf, vg, sort_fset::empty(s), vt)));
1334 result.emplace_back(variable_list({vd, vf, vg, vs, vt}), fset_intersection(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, vd, vt)), sort_fset::cinsert(s, vd, equal_to(vf(vd), vg(vd)), fset_intersection(s, vf, vg, vs, vt)));
1335 result.emplace_back(variable_list({vd, ve, vf, vg, vs, vt}), less_total(vd, ve), fset_intersection(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, vd, vg(vd), fset_intersection(s, vf, vg, vs, sort_fset::cons_(s, ve, vt))));
1336 result.emplace_back(variable_list({vd, ve, vf, vg, vs, vt}), less_total(ve, vd), fset_intersection(s, vf, vg, sort_fset::cons_(s, vd, vs), sort_fset::cons_(s, ve, vt)), sort_fset::cinsert(s, ve, vf(ve), fset_intersection(s, vf, vg, sort_fset::cons_(s, vd, vs), vt)));
A unordered_map class in which aterms can be stored.
container_sort(const container_type &container_name, const sort_expression &element_sort)
\brief Constructor Z14.
const container_type & container_name() const
container_sort(const atermpp::aterm &term)
application operator()(const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4) const
Apply a data expression to four data expressions.
application operator()(const data_expression &e1, const data_expression &e2) const
Apply a data expression to two data expressions.
sort_expression sort() const
Returns the sort of the data expression.
application operator()(const data_expression &e) const
Apply a data expression to a data expression.
function_symbol(const core::identifier_string &name, const sort_expression &sort)
Constructor.
\brief Container type for sets
set_container()
\brief Default constructor X3.
sort_expression(const sort_expression &) noexcept=default
Move semantics.
sort_expression & operator=(sort_expression &&) noexcept=default
Namespace for system defined sort bool_.
const basic_sort & bool_()
Constructor for sort expression Bool.
Namespace for system defined sort fset.
container_sort fset(const sort_expression &s)
Constructor for sort expression FSet(S)
Namespace for system defined sort set_.
const core::identifier_string & fset_intersection_name()
Generate identifier @fset_inter.
void make_in(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol in.
function_symbol true_function(const sort_expression &s)
Constructor for function symbol @true_.
const core::identifier_string & or_function_name()
Generate identifier @or_.
bool is_set_comprehension_application(const atermpp::aterm &e)
Recogniser for application of @setcomp.
const core::identifier_string & constructor_name()
Generate identifier @set.
implementation_map set_cpp_implementable_mappings(const sort_expression &)
Give all system defined mappings that are to be implemented in C++ code for set_.
application fset_intersection(const sort_expression &s, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Application of function symbol @fset_inter.
bool is_false_function_function_symbol(const atermpp::aterm &e)
Recogniser for function @false_.
bool is_difference_function_symbol(const atermpp::aterm &e)
Recogniser for function -.
bool is_not_function_application(const atermpp::aterm &e)
Recogniser for application of @not_.
bool is_and_function_application(const atermpp::aterm &e)
Recogniser for application of @and_.
void make_or_function(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @or_.
function_symbol_vector set_generate_constructors_and_functions_code(const sort_expression &s)
Give all system defined mappings and constructors for set_.
application or_function(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol @or_.
bool is_fset_intersection_function_symbol(const atermpp::aterm &e)
Recogniser for function @fset_inter.
bool is_set(const sort_expression &e)
Recogniser for sort expression Set(s)
function_symbol or_function(const sort_expression &s)
Constructor for function symbol @or_.
void make_complement(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol !.
bool is_union_application(const atermpp::aterm &e)
Recogniser for application of +.
const core::identifier_string & false_function_name()
Generate identifier @false_.
bool is_in_function_symbol(const atermpp::aterm &e)
Recogniser for function in.
const data_expression & arg4(const data_expression &e)
Function for projecting out argument. arg4 from an application.
bool is_true_function_function_symbol(const atermpp::aterm &e)
Recogniser for function @true_.
bool is_complement_application(const atermpp::aterm &e)
Recogniser for application of !.
bool is_or_function_function_symbol(const atermpp::aterm &e)
Recogniser for function @or_.
function_symbol fset_intersection(const sort_expression &s)
Constructor for function symbol @fset_inter.
const core::identifier_string & set_comprehension_name()
Generate identifier @setcomp.
void make_fset_union(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Make an application of function symbol @fset_union.
bool is_fset_union_application(const atermpp::aterm &e)
Recogniser for application of @fset_union.
bool is_false_function_application(const atermpp::aterm &e)
Recogniser for application of @false_.
const data_expression & left(const data_expression &e)
Function for projecting out argument. left from an application.
bool is_not_function_function_symbol(const atermpp::aterm &e)
Recogniser for function @not_.
function_symbol and_function(const sort_expression &s)
Constructor for function symbol @and_.
bool is_set_comprehension_function_symbol(const atermpp::aterm &e)
Recogniser for function @setcomp.
bool is_in_application(const atermpp::aterm &e)
Recogniser for application of in.
const core::identifier_string & not_function_name()
Generate identifier @not_.
application not_function(const sort_expression &s, const data_expression &arg0)
Application of function symbol @not_.
const core::identifier_string & in_name()
Generate identifier in.
function_symbol_vector set_generate_constructors_code(const sort_expression &s)
Give all system defined constructors for set_.
bool is_fset_intersection_application(const atermpp::aterm &e)
Recogniser for application of @fset_inter.
bool is_difference_application(const atermpp::aterm &e)
Recogniser for application of -.
function_symbol not_function(const sort_expression &s)
Constructor for function symbol @not_.
const data_expression & arg(const data_expression &e)
Function for projecting out argument. arg from an application.
application union_(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol +.
bool is_constructor_application(const atermpp::aterm &e)
Recogniser for application of @set.
const core::identifier_string & fset_union_name()
Generate identifier @fset_union.
bool is_set_fset_application(const atermpp::aterm &e)
Recogniser for application of @setfset.
void make_intersection(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol *.
application difference(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol -.
application complement(const sort_expression &s, const data_expression &arg0)
Application of function symbol !.
const core::identifier_string & complement_name()
Generate identifier !.
function_symbol intersection(const sort_expression &s, const sort_expression &s0, const sort_expression &s1)
application set_fset(const sort_expression &s, const data_expression &arg0)
Application of function symbol @setfset.
const core::identifier_string & and_function_name()
Generate identifier @and_.
application intersection(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol *.
bool is_fset_union_function_symbol(const atermpp::aterm &e)
Recogniser for function @fset_union.
const data_expression & arg2(const data_expression &e)
Function for projecting out argument. arg2 from an application.
function_symbol fset_union(const sort_expression &s)
Constructor for function symbol @fset_union.
void make_and_function(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @and_.
container_sort set_(const sort_expression &s)
Constructor for sort expression Set(S)
bool is_set_fset_function_symbol(const atermpp::aterm &e)
Recogniser for function @setfset.
application set_comprehension(const sort_expression &s, const data_expression &arg0)
Application of function symbol @setcomp.
const core::identifier_string & intersection_name()
Generate identifier *.
void make_fset_intersection(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Make an application of function symbol @fset_inter.
function_symbol constructor(const sort_expression &s)
Constructor for function symbol @set.
const data_expression & arg3(const data_expression &e)
Function for projecting out argument. arg3 from an application.
const data_expression & right(const data_expression &e)
Function for projecting out argument. right from an application.
function_symbol false_function(const sort_expression &s)
Constructor for function symbol @false_.
void make_constructor(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @set.
const core::identifier_string & set_fset_name()
Generate identifier @setfset.
const core::identifier_string & union_name()
Generate identifier +.
bool is_complement_function_symbol(const atermpp::aterm &e)
Recogniser for function !.
function_symbol in(const sort_expression &, const sort_expression &s0, const sort_expression &s1)
function_symbol union_(const sort_expression &s, const sort_expression &s0, const sort_expression &s1)
bool is_constructor_function_symbol(const atermpp::aterm &e)
Recogniser for function @set.
function_symbol_vector set_generate_functions_code(const sort_expression &s)
Give all system defined mappings for set_.
application fset_union(const sort_expression &s, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Application of function symbol @fset_union.
function_symbol_vector set_mCRL2_usable_constructors(const sort_expression &s)
Give all defined constructors which can be used in mCRL2 specs for set_.
const core::identifier_string & difference_name()
Generate identifier -.
void make_set_comprehension(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol @setcomp.
application true_function(const sort_expression &s, const data_expression &arg0)
Application of function symbol @true_.
void make_not_function(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol @not_.
bool is_or_function_application(const atermpp::aterm &e)
Recogniser for application of @or_.
const core::identifier_string & true_function_name()
Generate identifier @true_.
void make_false_function(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol @false_.
void make_true_function(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol @true_.
application false_function(const sort_expression &s, const data_expression &arg0)
Application of function symbol @false_.
function_symbol difference(const sort_expression &s, const sort_expression &s0, const sort_expression &s1)
bool is_union_function_symbol(const atermpp::aterm &e)
Recogniser for function +.
function_symbol complement(const sort_expression &s)
Constructor for function symbol !.
bool is_true_function_application(const atermpp::aterm &e)
Recogniser for application of @true_.
function_symbol set_fset(const sort_expression &s)
Constructor for function symbol @setfset.
void make_difference(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol -.
implementation_map set_cpp_implementable_constructors(const sort_expression &)
Give all system defined constructors which have an implementation in C++ and not in rewrite rules for...
function_symbol set_comprehension(const sort_expression &s)
Constructor for function symbol @setcomp.
application in(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol in.
bool is_intersection_application(const atermpp::aterm &e)
Recogniser for application of *.
data_equation_vector set_generate_equations_code(const sort_expression &s)
Give all system defined equations for set_.
application and_function(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol @and_.
function_symbol_vector set_mCRL2_usable_mappings(const sort_expression &s)
Give all system defined mappings that can be used in mCRL2 specs for set_.
bool is_and_function_function_symbol(const atermpp::aterm &e)
Recogniser for function @and_.
void make_set_fset(data_expression &result, const sort_expression &s, const data_expression &arg0)
Make an application of function symbol @setfset.
void make_union(data_expression &result, const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol +.
bool is_intersection_function_symbol(const atermpp::aterm &e)
Recogniser for function *.
application constructor(const sort_expression &s, const data_expression &arg0, const data_expression &arg1)
Application of function symbol @set.
const data_expression & arg1(const data_expression &e)
Function for projecting out argument. arg1 from an application.
function_sort make_function_sort_(const sort_expression &dom1, const sort_expression &dom2, const sort_expression &dom3, const sort_expression &dom4, const sort_expression &codomain)
Convenience constructor for function sort with domain size 4.
function_sort make_function_sort_(const sort_expression &dom1, const sort_expression &codomain)
Convenience constructor for function sort with domain size 1.
bool is_container_sort(const atermpp::aterm &x)
Returns true if the term t is a container sort.
bool is_function_symbol(const atermpp::aterm &x)
Returns true if the term t is a function symbol.
function_sort make_function_sort_(const sort_expression &dom1, const sort_expression &dom2, const sort_expression &codomain)
Convenience constructor for function sort with domain size 2.