15#ifndef MCRL2_DATA_MACHINE_WORD_H
16#define MCRL2_DATA_MACHINE_WORD_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/bool.h"
35 static core::identifier_string machine_word_name = core::identifier_string(
"@word");
36 return machine_word_name;
67 static core::identifier_string zero_word_name = core::identifier_string(
"@zero_word");
68 return zero_word_name;
89 return atermpp::down_cast<function_symbol>(e) == zero_word();
116 static core::identifier_string succ_word_name = core::identifier_string(
"@succ_word");
117 return succ_word_name;
138 return atermpp::down_cast<function_symbol>(e) == succ_word();
160 make_application(result, sort_machine_word
::succ_word(),arg0);
170 return is_application(e) && is_succ_word_function_symbol(atermpp::down_cast<application>(e).head());
187 const application& a=atermpp::down_cast<application>(a1);
197 function_symbol_vector result;
198 result.push_back(sort_machine_word::zero_word());
199 result.push_back(sort_machine_word::succ_word());
208 function_symbol_vector result;
209 result.push_back(sort_machine_word::zero_word());
210 result.push_back(sort_machine_word::succ_word());
215 using implementation_map = std::map<function_symbol,std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string> >;
221 implementation_map result;
222 result[sort_machine_word::zero_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::zero_word_application,
"sort_machine_word::zero_word_manual_implementation");
223 result[sort_machine_word::succ_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::succ_word_application,
"sort_machine_word::succ_word_manual_implementation");
233 static core::identifier_string one_word_name = core::identifier_string(
"@one_word");
234 return one_word_name;
255 return atermpp::down_cast<function_symbol>(e) == one_word();
282 static core::identifier_string two_word_name = core::identifier_string(
"@two_word");
283 return two_word_name;
304 return atermpp::down_cast<function_symbol>(e) == two_word();
331 static core::identifier_string three_word_name = core::identifier_string(
"@three_word");
332 return three_word_name;
353 return atermpp::down_cast<function_symbol>(e) == three_word();
380 static core::identifier_string four_word_name = core::identifier_string(
"@four_word");
381 return four_word_name;
402 return atermpp::down_cast<function_symbol>(e) == four_word();
429 static core::identifier_string max_word_name = core::identifier_string(
"@max_word");
430 return max_word_name;
451 return atermpp::down_cast<function_symbol>(e) == max_word();
478 static core::identifier_string equals_zero_word_name = core::identifier_string(
"@equals_zero_word");
479 return equals_zero_word_name;
489 return equals_zero_word;
500 return atermpp::down_cast<function_symbol>(e) == equals_zero_word();
532 return is_application(e) && is_equals_zero_word_function_symbol(atermpp::down_cast<application>(e).head());
549 const application& a=atermpp::down_cast<application>(a1);
560 static core::identifier_string not_equals_zero_word_name = core::identifier_string(
"@not_equals_zero_word");
561 return not_equals_zero_word_name;
571 return not_equals_zero_word;
582 return atermpp::down_cast<function_symbol>(e) == not_equals_zero_word();
614 return is_application(e) && is_not_equals_zero_word_function_symbol(atermpp::down_cast<application>(e).head());
631 const application& a=atermpp::down_cast<application>(a1);
642 static core::identifier_string equals_one_word_name = core::identifier_string(
"@equals_one_word");
643 return equals_one_word_name;
653 return equals_one_word;
664 return atermpp::down_cast<function_symbol>(e) == equals_one_word();
696 return is_application(e) && is_equals_one_word_function_symbol(atermpp::down_cast<application>(e).head());
713 const application& a=atermpp::down_cast<application>(a1);
724 static core::identifier_string equals_max_word_name = core::identifier_string(
"@equals_max_word");
725 return equals_max_word_name;
735 return equals_max_word;
746 return atermpp::down_cast<function_symbol>(e) == equals_max_word();
778 return is_application(e) && is_equals_max_word_function_symbol(atermpp::down_cast<application>(e).head());
795 const application& a=atermpp::down_cast<application>(a1);
806 static core::identifier_string add_word_name = core::identifier_string(
"@add_word");
807 return add_word_name;
828 return atermpp::down_cast<function_symbol>(e) == add_word();
852 make_application(result, sort_machine_word
::add_word(),arg0, arg1);
862 return is_application(e) && is_add_word_function_symbol(atermpp::down_cast<application>(e).head());
880 const application& a=atermpp::down_cast<application>(a1);
891 static core::identifier_string add_with_carry_word_name = core::identifier_string(
"@add_with_carry_word");
892 return add_with_carry_word_name;
902 return add_with_carry_word;
913 return atermpp::down_cast<function_symbol>(e) == add_with_carry_word();
947 return is_application(e) && is_add_with_carry_word_function_symbol(atermpp::down_cast<application>(e).head());
965 const application& a=atermpp::down_cast<application>(a1);
976 static core::identifier_string add_overflow_word_name = core::identifier_string(
"@add_overflow_word");
977 return add_overflow_word_name;
987 return add_overflow_word;
998 return atermpp::down_cast<function_symbol>(e) == add_overflow_word();
1032 return is_application(e) && is_add_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1050 const application& a=atermpp::down_cast<application>(a1);
1061 static core::identifier_string add_with_carry_overflow_word_name = core::identifier_string(
"@add_with_carry_overflow_word");
1062 return add_with_carry_overflow_word_name;
1072 return add_with_carry_overflow_word;
1083 return atermpp::down_cast<function_symbol>(e) == add_with_carry_overflow_word();
1117 return is_application(e) && is_add_with_carry_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1135 const application& a=atermpp::down_cast<application>(a1);
1146 static core::identifier_string times_word_name = core::identifier_string(
"@times_word");
1147 return times_word_name;
1168 return atermpp::down_cast<function_symbol>(e) == times_word();
1192 make_application(result, sort_machine_word
::times_word(),arg0, arg1);
1202 return is_application(e) && is_times_word_function_symbol(atermpp::down_cast<application>(e).head());
1220 const application& a=atermpp::down_cast<application>(a1);
1231 static core::identifier_string times_with_carry_word_name = core::identifier_string(
"@times_with_carry_word");
1232 return times_with_carry_word_name;
1242 return times_with_carry_word;
1253 return atermpp::down_cast<function_symbol>(e) == times_with_carry_word();
1289 return is_application(e) && is_times_with_carry_word_function_symbol(atermpp::down_cast<application>(e).head());
1308 const application& a=atermpp::down_cast<application>(a1);
1319 static core::identifier_string times_overflow_word_name = core::identifier_string(
"@times_overflow_word");
1320 return times_overflow_word_name;
1330 return times_overflow_word;
1341 return atermpp::down_cast<function_symbol>(e) == times_overflow_word();
1375 return is_application(e) && is_times_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1393 const application& a=atermpp::down_cast<application>(a1);
1404 static core::identifier_string times_with_carry_overflow_word_name = core::identifier_string(
"@times_with_carry_overflow_word");
1405 return times_with_carry_overflow_word_name;
1415 return times_with_carry_overflow_word;
1426 return atermpp::down_cast<function_symbol>(e) == times_with_carry_overflow_word();
1462 return is_application(e) && is_times_with_carry_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1481 const application& a=atermpp::down_cast<application>(a1);
1492 static core::identifier_string minus_word_name = core::identifier_string(
"@minus_word");
1493 return minus_word_name;
1514 return atermpp::down_cast<function_symbol>(e) == minus_word();
1538 make_application(result, sort_machine_word
::minus_word(),arg0, arg1);
1548 return is_application(e) && is_minus_word_function_symbol(atermpp::down_cast<application>(e).head());
1566 const application& a=atermpp::down_cast<application>(a1);
1577 static core::identifier_string monus_word_name = core::identifier_string(
"@monus_word");
1578 return monus_word_name;
1599 return atermpp::down_cast<function_symbol>(e) == monus_word();
1623 make_application(result, sort_machine_word
::monus_word(),arg0, arg1);
1633 return is_application(e) && is_monus_word_function_symbol(atermpp::down_cast<application>(e).head());
1651 const application& a=atermpp::down_cast<application>(a1);
1662 static core::identifier_string div_word_name = core::identifier_string(
"@div_word");
1663 return div_word_name;
1684 return atermpp::down_cast<function_symbol>(e) == div_word();
1708 make_application(result, sort_machine_word
::div_word(),arg0, arg1);
1718 return is_application(e) && is_div_word_function_symbol(atermpp::down_cast<application>(e).head());
1736 const application& a=atermpp::down_cast<application>(a1);
1747 static core::identifier_string mod_word_name = core::identifier_string(
"@mod_word");
1748 return mod_word_name;
1769 return atermpp::down_cast<function_symbol>(e) == mod_word();
1793 make_application(result, sort_machine_word
::mod_word(),arg0, arg1);
1803 return is_application(e) && is_mod_word_function_symbol(atermpp::down_cast<application>(e).head());
1821 const application& a=atermpp::down_cast<application>(a1);
1832 static core::identifier_string sqrt_word_name = core::identifier_string(
"@sqrt_word");
1833 return sqrt_word_name;
1854 return atermpp::down_cast<function_symbol>(e) == sqrt_word();
1876 make_application(result, sort_machine_word
::sqrt_word(),arg0);
1886 return is_application(e) && is_sqrt_word_function_symbol(atermpp::down_cast<application>(e).head());
1903 const application& a=atermpp::down_cast<application>(a1);
1914 static core::identifier_string div_doubleword_name = core::identifier_string(
"@div_doubleword");
1915 return div_doubleword_name;
1925 return div_doubleword;
1936 return atermpp::down_cast<function_symbol>(e) == div_doubleword();
1972 return is_application(e) && is_div_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
1991 const application& a=atermpp::down_cast<application>(a1);
2002 static core::identifier_string div_double_doubleword_name = core::identifier_string(
"@div_double_doubleword");
2003 return div_double_doubleword_name;
2013 return div_double_doubleword;
2024 return atermpp::down_cast<function_symbol>(e) == div_double_doubleword();
2062 return is_application(e) && is_div_double_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2082 const application& a=atermpp::down_cast<application>(a1);
2093 static core::identifier_string div_triple_doubleword_name = core::identifier_string(
"@div_triple_doubleword");
2094 return div_triple_doubleword_name;
2104 return div_triple_doubleword;
2115 return atermpp::down_cast<function_symbol>(e) == div_triple_doubleword();
2155 return is_application(e) && is_div_triple_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2176 const application& a=atermpp::down_cast<application>(a1);
2187 static core::identifier_string mod_doubleword_name = core::identifier_string(
"@mod_doubleword");
2188 return mod_doubleword_name;
2198 return mod_doubleword;
2209 return atermpp::down_cast<function_symbol>(e) == mod_doubleword();
2245 return is_application(e) && is_mod_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2264 const application& a=atermpp::down_cast<application>(a1);
2275 static core::identifier_string sqrt_doubleword_name = core::identifier_string(
"@sqrt_doubleword");
2276 return sqrt_doubleword_name;
2286 return sqrt_doubleword;
2297 return atermpp::down_cast<function_symbol>(e) == sqrt_doubleword();
2331 return is_application(e) && is_sqrt_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2349 const application& a=atermpp::down_cast<application>(a1);
2360 static core::identifier_string sqrt_tripleword_name = core::identifier_string(
"@sqrt_tripleword");
2361 return sqrt_tripleword_name;
2371 return sqrt_tripleword;
2382 return atermpp::down_cast<function_symbol>(e) == sqrt_tripleword();
2418 return is_application(e) && is_sqrt_tripleword_function_symbol(atermpp::down_cast<application>(e).head());
2437 const application& a=atermpp::down_cast<application>(a1);
2448 static core::identifier_string sqrt_tripleword_overflow_name = core::identifier_string(
"@sqrt_tripleword_overflow");
2449 return sqrt_tripleword_overflow_name;
2459 return sqrt_tripleword_overflow;
2470 return atermpp::down_cast<function_symbol>(e) == sqrt_tripleword_overflow();
2506 return is_application(e) && is_sqrt_tripleword_overflow_function_symbol(atermpp::down_cast<application>(e).head());
2525 const application& a=atermpp::down_cast<application>(a1);
2536 static core::identifier_string sqrt_quadrupleword_name = core::identifier_string(
"@sqrt_quadrupleword");
2537 return sqrt_quadrupleword_name;
2547 return sqrt_quadrupleword;
2558 return atermpp::down_cast<function_symbol>(e) == sqrt_quadrupleword();
2596 return is_application(e) && is_sqrt_quadrupleword_function_symbol(atermpp::down_cast<application>(e).head());
2616 const application& a=atermpp::down_cast<application>(a1);
2627 static core::identifier_string sqrt_quadrupleword_overflow_name = core::identifier_string(
"@sqrt_quadrupleword_overflow");
2628 return sqrt_quadrupleword_overflow_name;
2638 return sqrt_quadrupleword_overflow;
2649 return atermpp::down_cast<function_symbol>(e) == sqrt_quadrupleword_overflow();
2687 return is_application(e) && is_sqrt_quadrupleword_overflow_function_symbol(atermpp::down_cast<application>(e).head());
2707 const application& a=atermpp::down_cast<application>(a1);
2718 static core::identifier_string pred_word_name = core::identifier_string(
"@pred_word");
2719 return pred_word_name;
2740 return atermpp::down_cast<function_symbol>(e) == pred_word();
2762 make_application(result, sort_machine_word
::pred_word(),arg0);
2772 return is_application(e) && is_pred_word_function_symbol(atermpp::down_cast<application>(e).head());
2789 const application& a=atermpp::down_cast<application>(a1);
2800 static core::identifier_string equal_word_name = core::identifier_string(
"@equal");
2801 return equal_word_name;
2822 return atermpp::down_cast<function_symbol>(e) == equal_word();
2846 make_application(result, sort_machine_word
::equal_word(),arg0, arg1);
2856 return is_application(e) && is_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
2874 const application& a=atermpp::down_cast<application>(a1);
2885 static core::identifier_string not_equal_word_name = core::identifier_string(
"@not_equal");
2886 return not_equal_word_name;
2896 return not_equal_word;
2907 return atermpp::down_cast<function_symbol>(e) == not_equal_word();
2941 return is_application(e) && is_not_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
2959 const application& a=atermpp::down_cast<application>(a1);
2970 static core::identifier_string less_word_name = core::identifier_string(
"@less");
2971 return less_word_name;
2992 return atermpp::down_cast<function_symbol>(e) == less_word();
3016 make_application(result, sort_machine_word
::less_word(),arg0, arg1);
3026 return is_application(e) && is_less_word_function_symbol(atermpp::down_cast<application>(e).head());
3044 const application& a=atermpp::down_cast<application>(a1);
3055 static core::identifier_string less_equal_word_name = core::identifier_string(
"@less_equal");
3056 return less_equal_word_name;
3066 return less_equal_word;
3077 return atermpp::down_cast<function_symbol>(e) == less_equal_word();
3111 return is_application(e) && is_less_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
3129 const application& a=atermpp::down_cast<application>(a1);
3140 static core::identifier_string greater_word_name = core::identifier_string(
"@greater");
3141 return greater_word_name;
3151 return greater_word;
3162 return atermpp::down_cast<function_symbol>(e) == greater_word();
3196 return is_application(e) && is_greater_word_function_symbol(atermpp::down_cast<application>(e).head());
3214 const application& a=atermpp::down_cast<application>(a1);
3225 static core::identifier_string greater_equal_word_name = core::identifier_string(
"@greater_equal");
3226 return greater_equal_word_name;
3236 return greater_equal_word;
3247 return atermpp::down_cast<function_symbol>(e) == greater_equal_word();
3281 return is_application(e) && is_greater_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
3299 const application& a=atermpp::down_cast<application>(a1);
3310 static core::identifier_string rightmost_bit_name = core::identifier_string(
"@rightmost_bit");
3311 return rightmost_bit_name;
3321 return rightmost_bit;
3332 return atermpp::down_cast<function_symbol>(e) == rightmost_bit();
3364 return is_application(e) && is_rightmost_bit_function_symbol(atermpp::down_cast<application>(e).head());
3381 const application& a=atermpp::down_cast<application>(a1);
3392 static core::identifier_string shift_right_name = core::identifier_string(
"@shift_right");
3393 return shift_right_name;
3414 return atermpp::down_cast<function_symbol>(e) == shift_right();
3438 make_application(result, sort_machine_word
::shift_right(),arg0, arg1);
3448 return is_application(e) && is_shift_right_function_symbol(atermpp::down_cast<application>(e).head());
3466 const application& a=atermpp::down_cast<application>(a1);
3476 function_symbol_vector result;
3477 result.push_back(sort_machine_word::one_word());
3478 result.push_back(sort_machine_word::two_word());
3479 result.push_back(sort_machine_word::three_word());
3480 result.push_back(sort_machine_word::four_word());
3481 result.push_back(sort_machine_word::max_word());
3482 result.push_back(sort_machine_word::equals_zero_word());
3483 result.push_back(sort_machine_word::not_equals_zero_word());
3484 result.push_back(sort_machine_word::equals_one_word());
3485 result.push_back(sort_machine_word::equals_max_word());
3486 result.push_back(sort_machine_word::add_word());
3487 result.push_back(sort_machine_word::add_with_carry_word());
3488 result.push_back(sort_machine_word::add_overflow_word());
3489 result.push_back(sort_machine_word::add_with_carry_overflow_word());
3490 result.push_back(sort_machine_word::times_word());
3491 result.push_back(sort_machine_word::times_with_carry_word());
3492 result.push_back(sort_machine_word::times_overflow_word());
3493 result.push_back(sort_machine_word::times_with_carry_overflow_word());
3494 result.push_back(sort_machine_word::minus_word());
3495 result.push_back(sort_machine_word::monus_word());
3496 result.push_back(sort_machine_word::div_word());
3497 result.push_back(sort_machine_word::mod_word());
3498 result.push_back(sort_machine_word::sqrt_word());
3499 result.push_back(sort_machine_word::div_doubleword());
3500 result.push_back(sort_machine_word::div_double_doubleword());
3501 result.push_back(sort_machine_word::div_triple_doubleword());
3502 result.push_back(sort_machine_word::mod_doubleword());
3503 result.push_back(sort_machine_word::sqrt_doubleword());
3504 result.push_back(sort_machine_word::sqrt_tripleword());
3505 result.push_back(sort_machine_word::sqrt_tripleword_overflow());
3506 result.push_back(sort_machine_word::sqrt_quadrupleword());
3507 result.push_back(sort_machine_word::sqrt_quadrupleword_overflow());
3508 result.push_back(sort_machine_word::pred_word());
3509 result.push_back(sort_machine_word::equal_word());
3510 result.push_back(sort_machine_word::not_equal_word());
3511 result.push_back(sort_machine_word::less_word());
3512 result.push_back(sort_machine_word::less_equal_word());
3513 result.push_back(sort_machine_word::greater_word());
3514 result.push_back(sort_machine_word::greater_equal_word());
3515 result.push_back(sort_machine_word::rightmost_bit());
3516 result.push_back(sort_machine_word::shift_right());
3525 function_symbol_vector result=machine_word_generate_functions_code();
3526 for(
const function_symbol& f: machine_word_generate_constructors_code())
3528 result.push_back(f);
3538 function_symbol_vector result;
3539 result.push_back(sort_machine_word::one_word());
3540 result.push_back(sort_machine_word::two_word());
3541 result.push_back(sort_machine_word::three_word());
3542 result.push_back(sort_machine_word::four_word());
3543 result.push_back(sort_machine_word::max_word());
3544 result.push_back(sort_machine_word::equals_zero_word());
3545 result.push_back(sort_machine_word::not_equals_zero_word());
3546 result.push_back(sort_machine_word::equals_one_word());
3547 result.push_back(sort_machine_word::equals_max_word());
3548 result.push_back(sort_machine_word::add_word());
3549 result.push_back(sort_machine_word::add_with_carry_word());
3550 result.push_back(sort_machine_word::add_overflow_word());
3551 result.push_back(sort_machine_word::add_with_carry_overflow_word());
3552 result.push_back(sort_machine_word::times_word());
3553 result.push_back(sort_machine_word::times_with_carry_word());
3554 result.push_back(sort_machine_word::times_overflow_word());
3555 result.push_back(sort_machine_word::times_with_carry_overflow_word());
3556 result.push_back(sort_machine_word::minus_word());
3557 result.push_back(sort_machine_word::monus_word());
3558 result.push_back(sort_machine_word::div_word());
3559 result.push_back(sort_machine_word::mod_word());
3560 result.push_back(sort_machine_word::sqrt_word());
3561 result.push_back(sort_machine_word::div_doubleword());
3562 result.push_back(sort_machine_word::div_double_doubleword());
3563 result.push_back(sort_machine_word::div_triple_doubleword());
3564 result.push_back(sort_machine_word::mod_doubleword());
3565 result.push_back(sort_machine_word::sqrt_doubleword());
3566 result.push_back(sort_machine_word::sqrt_tripleword());
3567 result.push_back(sort_machine_word::sqrt_tripleword_overflow());
3568 result.push_back(sort_machine_word::sqrt_quadrupleword());
3569 result.push_back(sort_machine_word::sqrt_quadrupleword_overflow());
3570 result.push_back(sort_machine_word::pred_word());
3571 result.push_back(sort_machine_word::equal_word());
3572 result.push_back(sort_machine_word::not_equal_word());
3573 result.push_back(sort_machine_word::less_word());
3574 result.push_back(sort_machine_word::less_equal_word());
3575 result.push_back(sort_machine_word::greater_word());
3576 result.push_back(sort_machine_word::greater_equal_word());
3577 result.push_back(sort_machine_word::rightmost_bit());
3578 result.push_back(sort_machine_word::shift_right());
3584 using implementation_map = std::map<function_symbol,std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string> >;
3590 implementation_map result;
3591 result[sort_machine_word::one_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::one_word_application,
"sort_machine_word::one_word_manual_implementation");
3592 result[sort_machine_word::two_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::two_word_application,
"sort_machine_word::two_word_manual_implementation");
3593 result[sort_machine_word::three_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::three_word_application,
"sort_machine_word::three_word_manual_implementation");
3594 result[sort_machine_word::four_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::four_word_application,
"sort_machine_word::four_word_manual_implementation");
3595 result[sort_machine_word::max_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::max_word_application,
"sort_machine_word::max_word_manual_implementation");
3596 result[sort_machine_word::equals_zero_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::equals_zero_word_application,
"sort_machine_word::equals_zero_word_manual_implementation");
3597 result[sort_machine_word::not_equals_zero_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::not_equals_zero_word_application,
"sort_machine_word::not_equals_zero_word_manual_implementation");
3598 result[sort_machine_word::equals_one_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::equals_one_word_application,
"sort_machine_word::equals_one_word_manual_implementation");
3599 result[sort_machine_word::equals_max_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::equals_max_word_application,
"sort_machine_word::equals_max_word_manual_implementation");
3600 result[sort_machine_word::add_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::add_word_application,
"sort_machine_word::add_word_manual_implementation");
3601 result[sort_machine_word::add_with_carry_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::add_with_carry_word_application,
"sort_machine_word::add_with_carry_word_manual_implementation");
3602 result[sort_machine_word::add_overflow_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::add_overflow_word_application,
"sort_machine_word::add_overflow_word_manual_implementation");
3603 result[sort_machine_word::add_with_carry_overflow_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::add_with_carry_overflow_word_application,
"sort_machine_word::add_with_carry_overflow_word_manual_implementation");
3604 result[sort_machine_word::times_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::times_word_application,
"sort_machine_word::times_word_manual_implementation");
3605 result[sort_machine_word::times_with_carry_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::times_with_carry_word_application,
"sort_machine_word::times_with_carry_word_manual_implementation");
3606 result[sort_machine_word::times_overflow_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::times_overflow_word_application,
"sort_machine_word::times_overflow_word_manual_implementation");
3607 result[sort_machine_word::times_with_carry_overflow_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::times_with_carry_overflow_word_application,
"sort_machine_word::times_with_carry_overflow_word_manual_implementation");
3608 result[sort_machine_word::minus_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::minus_word_application,
"sort_machine_word::minus_word_manual_implementation");
3609 result[sort_machine_word::monus_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::monus_word_application,
"sort_machine_word::monus_word_manual_implementation");
3610 result[sort_machine_word::div_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::div_word_application,
"sort_machine_word::div_word_manual_implementation");
3611 result[sort_machine_word::mod_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::mod_word_application,
"sort_machine_word::mod_word_manual_implementation");
3612 result[sort_machine_word::sqrt_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_word_application,
"sort_machine_word::sqrt_word_manual_implementation");
3613 result[sort_machine_word::div_doubleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::div_doubleword_application,
"sort_machine_word::div_doubleword_manual_implementation");
3614 result[sort_machine_word::div_double_doubleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::div_double_doubleword_application,
"sort_machine_word::div_double_doubleword_manual_implementation");
3615 result[sort_machine_word::div_triple_doubleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::div_triple_doubleword_application,
"sort_machine_word::div_triple_doubleword_manual_implementation");
3616 result[sort_machine_word::mod_doubleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::mod_doubleword_application,
"sort_machine_word::mod_doubleword_manual_implementation");
3617 result[sort_machine_word::sqrt_doubleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_doubleword_application,
"sort_machine_word::sqrt_doubleword_manual_implementation");
3618 result[sort_machine_word::sqrt_tripleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_tripleword_application,
"sort_machine_word::sqrt_tripleword_manual_implementation");
3619 result[sort_machine_word::sqrt_tripleword_overflow()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_tripleword_overflow_application,
"sort_machine_word::sqrt_tripleword_overflow_manual_implementation");
3620 result[sort_machine_word::sqrt_quadrupleword()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_quadrupleword_application,
"sort_machine_word::sqrt_quadrupleword_manual_implementation");
3621 result[sort_machine_word::sqrt_quadrupleword_overflow()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::sqrt_quadrupleword_overflow_application,
"sort_machine_word::sqrt_quadrupleword_overflow_manual_implementation");
3622 result[sort_machine_word::pred_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::pred_word_application,
"sort_machine_word::pred_word_manual_implementation");
3623 result[sort_machine_word::equal_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::equal_word_application,
"sort_machine_word::equal_word_manual_implementation");
3624 result[sort_machine_word::not_equal_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::not_equal_word_application,
"sort_machine_word::not_equal_word_manual_implementation");
3625 result[sort_machine_word::less_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::less_word_application,
"sort_machine_word::less_word_manual_implementation");
3626 result[sort_machine_word::less_equal_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::less_equal_word_application,
"sort_machine_word::less_equal_word_manual_implementation");
3627 result[sort_machine_word::greater_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::greater_word_application,
"sort_machine_word::greater_word_manual_implementation");
3628 result[sort_machine_word::greater_equal_word()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::greater_equal_word_application,
"sort_machine_word::greater_equal_word_manual_implementation");
3629 result[sort_machine_word::rightmost_bit()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::rightmost_bit_application,
"sort_machine_word::rightmost_bit_manual_implementation");
3630 result[sort_machine_word::shift_right()]=std::pair<std::function<
void(data_expression&,
const data_expression&)>, std::string>(sort_machine_word::shift_right_application,
"sort_machine_word::shift_right_manual_implementation");
3642 return atermpp::down_cast<application>(e)[0];
3654 return atermpp::down_cast<application>(e)[0];
3666 return atermpp::down_cast<application>(e)[1];
3678 return atermpp::down_cast<application>(e)[0];
3690 return atermpp::down_cast<application>(e)[1];
3702 return atermpp::down_cast<application>(e)[2];
3714 return atermpp::down_cast<application>(e)[3];
3726 return atermpp::down_cast<application>(e)[4];
3737 data_equation_vector result;
3738 result.emplace_back(variable_list({vw1, vw2}), equal_to(vw1, vw2), equal_word(vw1, vw2));
3739 result.emplace_back(variable_list({vw1, vw2}), less(vw1, vw2), less_word(vw1, vw2));
3740 result.emplace_back(variable_list({vw1, vw2}), less_equal(vw1, vw2), less_equal_word(vw1, vw2));
3746#include "mcrl2/data/detail/machine_word.h"
A unordered_map class in which aterms can be stored.
basic_sort(const core::identifier_string &name)
\brief Constructor Z14.
basic_sort(const atermpp::aterm &term)
data_expression & operator=(const data_expression &) noexcept=default
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 data_expression &e3) const
Apply a data expression to three data expressions.
application operator()(const data_expression &e1, const data_expression &e2) const
Apply a data expression to two data expressions.
application operator()(const data_expression &e) const
Apply a data expression to a data expression.
application operator()(const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4, const data_expression &e5) const
Apply a data expression to five data expressions.
function_symbol(const core::identifier_string &name, const sort_expression &sort)
Constructor.
Namespace for system defined sort bool_.
const basic_sort & bool_()
Constructor for sort expression Bool.
const function_symbol & false_()
Constructor for function symbol false.
const function_symbol & true_()
Constructor for function symbol true.
std::size_t sqrt_quadrupleword_overflow(const std::size_t n1, const std::size_t n2, const std::size_t n3, const std::size_t n4)
const machine_number & four_word()
std::size_t times_with_carry_overflow_word(const std::size_t n1, const std::size_t n2, const std::size_t n3)
std::size_t shift_right(const data_expression &e1, const std::size_t n)
std::size_t sqrt_tripleword(const std::size_t n1, const std::size_t n2, const std::size_t n3)
bool equals_zero_word(const std::size_t n)
std::size_t div_word(const std::size_t n1, const std::size_t n2)
std::size_t succ_word(const std::size_t n)
bool less_word(const std::size_t n1, const std::size_t n2)
std::size_t div_doubleword(const std::size_t n1, const std::size_t n2, const std::size_t n3)
std::size_t pred_word(const std::size_t n)
std::size_t add_word(const std::size_t n1, const std::size_t n2)
const machine_number & one_word()
std::size_t mod_doubleword(const std::size_t n1, const std::size_t n2, const std::size_t n3)
bool equals_max_word(const std::size_t n)
std::size_t sqrt_word(const std::size_t n)
std::size_t times_overflow_word(const std::size_t n1, const std::size_t n2)
const machine_number & max_word()
bool equal_word(const std::size_t n1, const std::size_t n2)
std::size_t times_word(const std::size_t n1, const std::size_t n2)
bool add_overflow_word(const std::size_t n1, const std::size_t n2)
std::size_t monus_word(const std::size_t n1, const std::size_t n2)
std::size_t div_double_doubleword(const std::size_t n1, const std::size_t n2, const std::size_t n3, const std::size_t n4)
bool add_with_carry_overflow_word(const std::size_t n1, const std::size_t n2)
std::size_t minus_word(const std::size_t n1, const std::size_t n2)
Performs minus modulo the largest std::size_t.
std::size_t add_with_carry_word(const std::size_t n1, const std::size_t n2)
const machine_number & three_word()
bool less_equal_word(const std::size_t n1, const std::size_t n2)
bool equals_one_word(const std::size_t n)
std::size_t mod_double_doubleword(const std::size_t n1, const std::size_t n2, const std::size_t n3, const std::size_t n4)
std::size_t mod_word(const std::size_t n1, const std::size_t n2)
std::size_t div_triple_doubleword(const std::size_t n1, const std::size_t n2, const std::size_t n3, const std::size_t n4, const std::size_t n5)
const machine_number & two_word()
std::size_t sqrt_doubleword(const std::size_t n1, const std::size_t n2)
std::size_t sqrt_tripleword_overflow(const std::size_t n1, const std::size_t n2, const std::size_t n3)
std::size_t times_with_carry_word(const std::size_t n1, const std::size_t n2, const std::size_t n3)
const machine_number & zero_word()
void rightmost_bit(data_expression &result, const std::size_t n)
std::size_t sqrt_quadrupleword(const std::size_t n1, const std::size_t n2, const std::size_t n3, const std::size_t n4)
Namespace for system defined sort machine_word.
void make_add_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @add_word.
application div_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @div_word.
void equals_max_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void max_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void make_not_equals_zero_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @not_equals_zero_word.
bool is_equals_zero_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @equals_zero_word.
void sqrt_quadrupleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_zero_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @zero_word.
const function_symbol & sqrt_word()
Constructor for function symbol @sqrt_word.
const core::identifier_string & equal_word_name()
Generate identifier @equal.
bool is_mod_doubleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @mod_doubleword.
const core::identifier_string & sqrt_doubleword_name()
Generate identifier @sqrt_doubleword.
bool is_add_word_application(const atermpp::aterm &e)
Recogniser for application of @add_word.
void times_with_carry_overflow_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
The result of multiplying two words and adding a third divided by the maximal representable machine w...
void succ_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
application times_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @times_word.
void sqrt_tripleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
Calculates the least significant word of the square root of base*(base*e1+e2)+e3.
bool is_equal_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @equal.
void sqrt_tripleword_overflow_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
implementation_map machine_word_cpp_implementable_mappings()
Give all system defined mappings that are to be implemented in C++ code for machine_word.
void pred_word_manual_implementation(data_expression &result, const data_expression &e)
The predecessor function on a machine numbers, that wraps around.
bool is_div_doubleword_application(const atermpp::aterm &e)
Recogniser for application of @div_doubleword.
application sqrt_tripleword_overflow(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @sqrt_tripleword_overflow.
void make_mod_doubleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @mod_doubleword.
bool is_div_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @div_word.
void equals_one_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void add_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of adding two words modulo the maximal representable machine word plus 1.
void make_rightmost_bit(data_expression &result, const data_expression &arg0)
Make an application of function symbol @rightmost_bit.
void two_word_manual_implementation(data_expression &result)
The machine number representing 2.
bool is_not_equals_zero_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @not_equals_zero_word.
void equals_zero_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_equals_one_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @equals_one_word.
bool is_equals_one_word_application(const atermpp::aterm &e)
Recogniser for application of @equals_one_word.
const function_symbol & add_word()
Constructor for function symbol @add_word.
const core::identifier_string & minus_word_name()
Generate identifier @minus_word.
void make_div_doubleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @div_doubleword.
void make_add_overflow_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @add_overflow_word.
const core::identifier_string & one_word_name()
Generate identifier @one_word.
const function_symbol & not_equal_word()
Constructor for function symbol @not_equal.
void shift_right_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The machine word shifted one position to the right.
function_symbol_vector machine_word_mCRL2_usable_mappings()
Give all system defined mappings that can be used in mCRL2 specs for machine_word.
const function_symbol & div_double_doubleword()
Constructor for function symbol @div_double_doubleword.
void make_succ_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @succ_word.
bool is_equal_word_application(const atermpp::aterm &e)
Recogniser for application of @equal.
const core::identifier_string & sqrt_quadrupleword_overflow_name()
Generate identifier @sqrt_quadrupleword_overflow.
const core::identifier_string & less_word_name()
Generate identifier @less.
bool is_max_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @max_word.
bool is_succ_word_application(const atermpp::aterm &e)
Recogniser for application of @succ_word.
bool is_times_with_carry_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @times_with_carry_word.
void mod_doubleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & rightmost_bit_name()
Generate identifier @rightmost_bit.
const core::identifier_string & div_word_name()
Generate identifier @div_word.
const core::identifier_string & sqrt_quadrupleword_name()
Generate identifier @sqrt_quadrupleword.
bool is_add_with_carry_overflow_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @add_with_carry_overflow_word.
void times_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of multiplying two words modulo the maximal representable machine word plus 1.
bool is_sqrt_doubleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_doubleword.
void make_times_with_carry_overflow_word(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @times_with_carry_overflow_word.
bool is_greater_equal_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @greater_equal.
void make_equals_zero_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @equals_zero_word.
bool is_four_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @four_word.
bool is_not_equal_word_application(const atermpp::aterm &e)
Recogniser for application of @not_equal.
const function_symbol & div_word()
Constructor for function symbol @div_word.
void equals_zero_word_manual_implementation(data_expression &result, const data_expression &e)
Checks whether the argument is equal to 0.
void make_monus_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @monus_word.
bool is_sqrt_quadrupleword_overflow_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_quadrupleword_overflow.
bool is_mod_doubleword_application(const atermpp::aterm &e)
Recogniser for application of @mod_doubleword.
bool is_add_with_carry_overflow_word_application(const atermpp::aterm &e)
Recogniser for application of @add_with_carry_overflow_word.
void div_triple_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4, const data_expression &e5)
Calculates (base*(base*e1 + e2)+e3) div (base*e4 + e5).
const function_symbol & pred_word()
Constructor for function symbol @pred_word.
const core::identifier_string & zero_word_name()
Generate identifier @zero_word.
void not_equal_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_greater_equal_word_application(const atermpp::aterm &e)
Recogniser for application of @greater_equal.
const function_symbol & equals_max_word()
Constructor for function symbol @equals_max_word.
const core::identifier_string & equals_max_word_name()
Generate identifier @equals_max_word.
const function_symbol & greater_word()
Constructor for function symbol @greater.
const core::identifier_string & equals_zero_word_name()
Generate identifier @equals_zero_word.
const core::identifier_string & greater_equal_word_name()
Generate identifier @greater_equal.
void times_overflow_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & add_word_name()
Generate identifier @add_word.
const function_symbol & equals_one_word()
Constructor for function symbol @equals_one_word.
function_symbol_vector machine_word_generate_functions_code()
Give all system defined mappings for machine_word.
void zero_word_manual_implementation(data_expression &result)
The machine number representing 0.
const function_symbol & mod_word()
Constructor for function symbol @mod_word.
const function_symbol & div_doubleword()
Constructor for function symbol @div_doubleword.
const function_symbol & succ_word()
Constructor for function symbol @succ_word.
application div_double_doubleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Application of function symbol @div_double_doubleword.
const core::identifier_string & pred_word_name()
Generate identifier @pred_word.
bool is_shift_right_application(const atermpp::aterm &e)
Recogniser for application of @shift_right.
bool is_greater_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @greater.
bool is_sqrt_doubleword_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_doubleword.
const core::identifier_string & less_equal_word_name()
Generate identifier @less_equal.
bool is_times_overflow_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @times_overflow_word.
void times_with_carry_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
The result of multiplying two words and adding the third modulo the maximal representable machine wor...
bool is_div_triple_doubleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @div_triple_doubleword.
bool is_div_double_doubleword_application(const atermpp::aterm &e)
Recogniser for application of @div_double_doubleword.
const function_symbol & sqrt_quadrupleword_overflow()
Constructor for function symbol @sqrt_quadrupleword_overflow.
const function_symbol & less_word()
Constructor for function symbol @less.
bool is_less_word_application(const atermpp::aterm &e)
Recogniser for application of @less.
const core::identifier_string & monus_word_name()
Generate identifier @monus_word.
bool is_div_doubleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @div_doubleword.
void make_less_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @less.
application add_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @add_word.
const basic_sort & machine_word()
Constructor for sort expression @word.
bool is_two_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @two_word.
application not_equal_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @not_equal.
void make_sqrt_quadrupleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Make an application of function symbol @sqrt_quadrupleword.
void three_word_manual_implementation(data_expression &result)
The machine number representing 3.
const core::identifier_string & sqrt_word_name()
Generate identifier @sqrt_word.
bool is_minus_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @minus_word.
const function_symbol & add_with_carry_word()
Constructor for function symbol @add_with_carry_word.
application div_triple_doubleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3, const data_expression &arg4)
Application of function symbol @div_triple_doubleword.
void make_greater_equal_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @greater_equal.
void times_overflow_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of multiplying two words divided by the maximal representable machine word plus 1.
const function_symbol & four_word()
Constructor for function symbol @four_word.
void make_sqrt_quadrupleword_overflow(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Make an application of function symbol @sqrt_quadrupleword_overflow.
void sqrt_quadrupleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4)
Calculates the least significant word of the square root of base*(base*(base*e1+e2)+e3)+e4.
bool is_times_with_carry_overflow_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @times_with_carry_overflow_word.
const function_symbol & monus_word()
Constructor for function symbol @monus_word.
application sqrt_quadrupleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Application of function symbol @sqrt_quadrupleword.
void make_add_with_carry_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @add_with_carry_word.
bool is_sqrt_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_word.
application sqrt_quadrupleword_overflow(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Application of function symbol @sqrt_quadrupleword_overflow.
bool is_succ_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @succ_word.
void add_overflow_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & div_triple_doubleword_name()
Generate identifier @div_triple_doubleword.
void sqrt_tripleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void make_add_with_carry_overflow_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @add_with_carry_overflow_word.
function_symbol_vector machine_word_generate_constructors_code()
Give all system defined constructors for machine_word.
application monus_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @monus_word.
bool is_add_with_carry_word_application(const atermpp::aterm &e)
Recogniser for application of @add_with_carry_word.
application sqrt_word(const data_expression &arg0)
Application of function symbol @sqrt_word.
void one_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
application greater_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @greater.
void mod_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
application mod_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @mod_word.
void not_equal_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The non equality function on two machine words.
const core::identifier_string & three_word_name()
Generate identifier @three_word.
void equal_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & mod_word_name()
Generate identifier @mod_word.
const data_expression & arg3(const data_expression &e)
Function for projecting out argument. arg3 from an application.
const core::identifier_string & sqrt_tripleword_name()
Generate identifier @sqrt_tripleword.
void make_div_double_doubleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3)
Make an application of function symbol @div_double_doubleword.
void make_sqrt_tripleword_overflow(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @sqrt_tripleword_overflow.
void make_minus_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @minus_word.
const function_symbol & sqrt_tripleword_overflow()
Constructor for function symbol @sqrt_tripleword_overflow.
const core::identifier_string & mod_doubleword_name()
Generate identifier @mod_doubleword.
const function_symbol & sqrt_quadrupleword()
Constructor for function symbol @sqrt_quadrupleword.
void shift_right_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void div_triple_doubleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void less_equal_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The less than or equal function on two machine words.
const function_symbol & equals_zero_word()
Constructor for function symbol @equals_zero_word.
const function_symbol & minus_word()
Constructor for function symbol @minus_word.
void div_double_doubleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_three_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @three_word.
application sqrt_tripleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @sqrt_tripleword.
void monus_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const data_expression & arg1(const data_expression &e)
Function for projecting out argument. arg1 from an application.
bool is_sqrt_quadrupleword_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_quadrupleword.
bool is_one_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @one_word.
const data_expression & arg4(const data_expression &e)
Function for projecting out argument. arg4 from an application.
void three_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const data_expression & arg5(const data_expression &e)
Function for projecting out argument. arg5 from an application.
application equals_zero_word(const data_expression &arg0)
Application of function symbol @equals_zero_word.
bool is_sqrt_tripleword_overflow_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_tripleword_overflow.
const function_symbol & one_word()
Constructor for function symbol @one_word.
void make_times_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @times_word.
const core::identifier_string & greater_word_name()
Generate identifier @greater.
const core::identifier_string & two_word_name()
Generate identifier @two_word.
const function_symbol & max_word()
Constructor for function symbol @max_word.
bool is_monus_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @monus_word.
const function_symbol & greater_equal_word()
Constructor for function symbol @greater_equal.
bool is_pred_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @pred_word.
const function_symbol & add_with_carry_overflow_word()
Constructor for function symbol @add_with_carry_overflow_word.
const function_symbol & times_with_carry_word()
Constructor for function symbol @times_with_carry_word.
void sqrt_tripleword_overflow_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
Calculates the most significant word of the square root of base*(base*e1+e2)+e3.
bool is_add_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @add_word.
void sqrt_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & times_word_name()
Generate identifier @times_word.
void make_shift_right(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @shift_right.
void add_with_carry_overflow_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void make_div_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @div_word.
bool is_monus_word_application(const atermpp::aterm &e)
Recogniser for application of @monus_word.
void make_greater_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @greater.
application times_with_carry_word(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @times_with_carry_word.
void sqrt_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The square root of base*e1+e2 rounded down.
const core::identifier_string & times_overflow_word_name()
Generate identifier @times_overflow_word.
void not_equals_zero_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_shift_right_function_symbol(const atermpp::aterm &e)
Recogniser for function @shift_right.
void make_equals_one_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @equals_one_word.
void make_less_equal_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @less_equal.
void four_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
application succ_word(const data_expression &arg0)
Application of function symbol @succ_word.
const function_symbol & three_word()
Constructor for function symbol @three_word.
void greater_equal_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The greater than or equal function on two machine words.
bool is_less_equal_word_application(const atermpp::aterm &e)
Recogniser for application of @less_equal.
void greater_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const function_symbol & times_with_carry_overflow_word()
Constructor for function symbol @times_with_carry_overflow_word.
application equals_one_word(const data_expression &arg0)
Application of function symbol @equals_one_word.
void less_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void make_sqrt_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @sqrt_word.
application add_overflow_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @add_overflow_word.
const data_expression & right(const data_expression &e)
Function for projecting out argument. right from an application.
application shift_right(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @shift_right.
application times_overflow_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @times_overflow_word.
application not_equals_zero_word(const data_expression &arg0)
Application of function symbol @not_equals_zero_word.
bool is_div_word_application(const atermpp::aterm &e)
Recogniser for application of @div_word.
const core::identifier_string & add_with_carry_overflow_word_name()
Generate identifier @add_with_carry_overflow_word.
void div_double_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4)
Calculates (base*e1 + e2) div (base*e3 + e4).
const function_symbol & div_triple_doubleword()
Constructor for function symbol @div_triple_doubleword.
bool is_not_equal_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @not_equal.
void make_div_triple_doubleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2, const data_expression &arg3, const data_expression &arg4)
Make an application of function symbol @div_triple_doubleword.
void equals_one_word_manual_implementation(data_expression &result, const data_expression &e)
Checks whether the argument is equal to 1.
bool is_sqrt_quadrupleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_quadrupleword.
application minus_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @minus_word.
void make_times_overflow_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @times_overflow_word.
const function_symbol & times_overflow_word()
Constructor for function symbol @times_overflow_word.
bool is_times_with_carry_overflow_word_application(const atermpp::aterm &e)
Recogniser for application of @times_with_carry_overflow_word.
application less_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @less.
void sqrt_quadrupleword_overflow_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void times_with_carry_overflow_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void div_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
Calculates (base*e1 + e2) div e3.
void mod_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
Calculates e1 modulo e2.
const core::identifier_string & times_with_carry_word_name()
Generate identifier @times_with_carry_word.
const function_symbol & zero_word()
Constructor for function symbol @zero_word.
void greater_equal_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void sqrt_quadrupleword_overflow_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4)
Calculates the most significant word of the square root of base*(base*(base*e1+e2)+e3)+e4.
void rightmost_bit_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & succ_word_name()
Generate identifier @succ_word.
void times_with_carry_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_less_equal_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @less_equal.
application pred_word(const data_expression &arg0)
Application of function symbol @pred_word.
bool is_times_overflow_word_application(const atermpp::aterm &e)
Recogniser for application of @times_overflow_word.
bool is_sqrt_tripleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @sqrt_tripleword.
void not_equals_zero_word_manual_implementation(data_expression &result, const data_expression &e)
Checks whether the argument is not equal to 0.
void less_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The less than function on two machine words.
const core::identifier_string & not_equals_zero_word_name()
Generate identifier @not_equals_zero_word.
const core::identifier_string & add_with_carry_word_name()
Generate identifier @add_with_carry_word.
void minus_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_times_word_application(const atermpp::aterm &e)
Recogniser for application of @times_word.
bool is_not_equals_zero_word_application(const atermpp::aterm &e)
Recogniser for application of @not_equals_zero_word.
void make_pred_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @pred_word.
const core::identifier_string & add_overflow_word_name()
Generate identifier @add_overflow_word.
void make_equal_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @equal.
application times_with_carry_overflow_word(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @times_with_carry_overflow_word.
bool is_add_overflow_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @add_overflow_word.
bool is_rightmost_bit_application(const atermpp::aterm &e)
Recogniser for application of @rightmost_bit.
bool is_sqrt_quadrupleword_overflow_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_quadrupleword_overflow.
const core::identifier_string & div_doubleword_name()
Generate identifier @div_doubleword.
bool is_add_with_carry_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @add_with_carry_word.
application equal_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @equal.
void max_word_manual_implementation(data_expression &result)
The largest representable machine number.
bool is_less_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @less.
application mod_doubleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @mod_doubleword.
const function_symbol & not_equals_zero_word()
Constructor for function symbol @not_equals_zero_word.
const function_symbol & equal_word()
Constructor for function symbol @equal.
bool is_machine_word(const sort_expression &e)
Recogniser for sort expression @word.
const core::identifier_string & not_equal_word_name()
Generate identifier @not_equal.
const function_symbol & mod_doubleword()
Constructor for function symbol @mod_doubleword.
void add_with_carry_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of adding two words plus 1 modulo the maximal representable machine word plus 1.
application sqrt_doubleword(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @sqrt_doubleword.
application greater_equal_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @greater_equal.
const function_symbol & sqrt_tripleword()
Constructor for function symbol @sqrt_tripleword.
application rightmost_bit(const data_expression &arg0)
Application of function symbol @rightmost_bit.
void make_times_with_carry_word(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @times_with_carry_word.
bool is_times_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @times_word.
void times_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const function_symbol & rightmost_bit()
Constructor for function symbol @rightmost_bit.
void sqrt_doubleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & sqrt_tripleword_overflow_name()
Generate identifier @sqrt_tripleword_overflow.
application equals_max_word(const data_expression &arg0)
Application of function symbol @equals_max_word.
application add_with_carry_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @add_with_carry_word.
bool is_pred_word_application(const atermpp::aterm &e)
Recogniser for application of @pred_word.
void one_word_manual_implementation(data_expression &result)
The machine number representing 1.
void make_sqrt_tripleword(data_expression &result, const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Make an application of function symbol @sqrt_tripleword.
const data_expression & arg(const data_expression &e)
Function for projecting out argument. arg from an application.
const data_expression & left(const data_expression &e)
Function for projecting out argument. left from an application.
const function_symbol & less_equal_word()
Constructor for function symbol @less_equal.
void div_doubleword_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void equal_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The equality function on two machine words.
bool is_equals_max_word_application(const atermpp::aterm &e)
Recogniser for application of @equals_max_word.
bool is_greater_word_application(const atermpp::aterm &e)
Recogniser for application of @greater.
bool is_sqrt_word_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_word.
void four_word_manual_implementation(data_expression &result)
The machine number representing 4.
bool is_sqrt_tripleword_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_tripleword.
bool is_equals_max_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @equals_max_word.
void minus_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of subtracting two words modulo the maximal representable machine word plus 1.
void succ_word_manual_implementation(data_expression &result, const data_expression &e)
The successor function on a machine numbers, that wraps around.
implementation_map machine_word_cpp_implementable_constructors()
Give all system defined constructors which have an implementation in C++ and not in rewrite rules for...
void equals_max_word_manual_implementation(data_expression &result, const data_expression &e)
Checks whether the argument is equal to the largest 64 bit number.
void mod_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3)
Calculates (base*e1 + e2) mod e3. The result fits in one word.
bool is_add_overflow_word_application(const atermpp::aterm &e)
Recogniser for application of @add_overflow_word.
void add_with_carry_overflow_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
An indication whether an overflow occurs when e1 and e2 are added.
void pred_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void add_overflow_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
An indication whether an overflow occurs when e1 and e2 are added.
data_equation_vector machine_word_generate_equations_code()
Give all system defined equations for machine_word.
const core::identifier_string & machine_word_name()
application less_equal_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @less_equal.
const core::identifier_string & four_word_name()
Generate identifier @four_word.
void mod_double_doubleword_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2, const data_expression &e3, const data_expression &e4)
Calculates (base*e1 + e2) mod (base*e3 + e4).
application add_with_carry_overflow_word(const data_expression &arg0, const data_expression &arg1)
Application of function symbol @add_with_carry_overflow_word.
void sqrt_word_manual_implementation(data_expression &result, const data_expression &e)
The square root of e, rounded down to a machine word.
void div_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const function_symbol & times_word()
Constructor for function symbol @times_word.
void zero_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_equals_zero_word_application(const atermpp::aterm &e)
Recogniser for application of @equals_zero_word.
void add_with_carry_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
const core::identifier_string & shift_right_name()
Generate identifier @shift_right.
const core::identifier_string & div_double_doubleword_name()
Generate identifier @div_double_doubleword.
const core::identifier_string & max_word_name()
Generate identifier @max_word.
const core::identifier_string & equals_one_word_name()
Generate identifier @equals_one_word.
bool is_minus_word_application(const atermpp::aterm &e)
Recogniser for application of @minus_word.
function_symbol_vector machine_word_generate_constructors_and_functions_code()
Give all system defined mappings and constructors for machine_word.
bool is_div_double_doubleword_function_symbol(const atermpp::aterm &e)
Recogniser for function @div_double_doubleword.
function_symbol_vector machine_word_mCRL2_usable_constructors()
Give all defined constructors which can be used in mCRL2 specs for machine_word.
bool is_rightmost_bit_function_symbol(const atermpp::aterm &e)
Recogniser for function @rightmost_bit.
void rightmost_bit_manual_implementation(data_expression &result, const data_expression &e)
The right most bit of a machine number.
void two_word_application(data_expression &result, const data_expression &a)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
void greater_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The greater than function on two machine words.
bool is_mod_word_application(const atermpp::aterm &e)
Recogniser for application of @mod_word.
bool is_sqrt_tripleword_overflow_application(const atermpp::aterm &e)
Recogniser for application of @sqrt_tripleword_overflow.
void make_sqrt_doubleword(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @sqrt_doubleword.
const data_expression & arg2(const data_expression &e)
Function for projecting out argument. arg2 from an application.
const function_symbol & sqrt_doubleword()
Constructor for function symbol @sqrt_doubleword.
const core::identifier_string & times_with_carry_overflow_word_name()
Generate identifier @times_with_carry_overflow_word.
void div_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
Calculates the division of the first word by the second.
void make_equals_max_word(data_expression &result, const data_expression &arg0)
Make an application of function symbol @equals_max_word.
bool is_times_with_carry_word_application(const atermpp::aterm &e)
Recogniser for application of @times_with_carry_word.
void make_mod_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @mod_word.
void less_equal_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_mod_word_function_symbol(const atermpp::aterm &e)
Recogniser for function @mod_word.
void add_word_application(data_expression &result, const data_expression &a1)
Application of a function that is user defined instead of by rewrite rules. It does not have sort par...
bool is_div_triple_doubleword_application(const atermpp::aterm &e)
Recogniser for application of @div_triple_doubleword.
application div_doubleword(const data_expression &arg0, const data_expression &arg1, const data_expression &arg2)
Application of function symbol @div_doubleword.
const function_symbol & shift_right()
Constructor for function symbol @shift_right.
const function_symbol & two_word()
Constructor for function symbol @two_word.
void monus_word_manual_implementation(data_expression &result, const data_expression &e1, const data_expression &e2)
The result of subtracting two words. If the result is negative 0 is returned.
const function_symbol & add_overflow_word()
Constructor for function symbol @add_overflow_word.
void make_not_equal_word(data_expression &result, const data_expression &arg0, const data_expression &arg1)
Make an application of function symbol @not_equal.
bool is_application(const data_expression &t)
Returns true if the term t is 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_function_symbol(const atermpp::aterm &x)
Returns true if the term t is a function symbol.
bool is_basic_sort(const atermpp::aterm &x)
Returns true if the term t is a basic sort.
function_sort make_function_sort_(const sort_expression &dom1, const sort_expression &dom2, const sort_expression &dom3, const sort_expression &codomain)
Convenience constructor for function sort with domain size 3.
bool is_machine_number(const atermpp::aterm &x)
Returns true if the term t is a machine_number.
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.
function_sort make_function_sort_(const sort_expression &dom1, const sort_expression &dom2, const sort_expression &dom3, const sort_expression &dom4, const sort_expression &dom5, const sort_expression &codomain)
Convenience constructor for function sort with domain size 5.