mCRL2
Loading...
Searching...
No Matches
machine_word.h
Go to the documentation of this file.
1// Author(s): Jeroen Keiren
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9/// \file mcrl2/data/machine_word.h
10/// \brief The standard sort machine_word.
11///
12/// This file was generated from the data sort specification
13/// mcrl2/data/build/machine_word.spec.
14
15#ifndef MCRL2_DATA_MACHINE_WORD_H
16#define MCRL2_DATA_MACHINE_WORD_H
17
18#include "functional" // std::function
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"
27
28/// \brief Namespace for system defined sort machine_word.
29namespace mcrl2::data::sort_machine_word
30{
31
32 inline
33 const core::identifier_string& machine_word_name()
34 {
35 static core::identifier_string machine_word_name = core::identifier_string("@word");
36 return machine_word_name;
37 }
38
39 /// \brief Constructor for sort expression \@word.
40 /// \return Sort expression \@word.
41 inline
43 {
44 static basic_sort machine_word = basic_sort(machine_word_name());
45 return machine_word;
46 }
47
48 /// \brief Recogniser for sort expression \@word
49 /// \param e A sort expression
50 /// \return true iff e == machine_word()
51 inline
53 {
54 if (is_basic_sort(e))
55 {
57 }
58 return false;
59 }
60
61
62 /// \brief Generate identifier \@zero_word.
63 /// \return Identifier \@zero_word.
64 inline
65 const core::identifier_string& zero_word_name()
66 {
67 static core::identifier_string zero_word_name = core::identifier_string("@zero_word");
68 return zero_word_name;
69 }
70
71 /// \brief Constructor for function symbol \@zero_word.
72
73 /// \return Function symbol zero_word.
74 inline
76 {
78 return zero_word;
79 }
80
81 /// \brief Recogniser for function \@zero_word.
82 /// \param e A data expression.
83 /// \return true iff e is the function symbol matching \@zero_word.
84 inline
86 {
88 {
89 return atermpp::down_cast<function_symbol>(e) == zero_word();
90 }
91 return false;
92 }
93
94 /// \brief The data expression of an application of the constant symbol \@zero_word.
95 /// \details This function is to be implemented manually.
96 /// \param[out] result The data expression where the result is stored.
97 /// \post result is the data expression corresponding to an application of \@zero_word.
98 inline
100
101 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
102 inline
104 {
105 assert(is_function_symbol(a));
106 // assert(a==zero_word());
108 }
109
110
111 /// \brief Generate identifier \@succ_word.
112 /// \return Identifier \@succ_word.
113 inline
114 const core::identifier_string& succ_word_name()
115 {
116 static core::identifier_string succ_word_name = core::identifier_string("@succ_word");
117 return succ_word_name;
118 }
119
120 /// \brief Constructor for function symbol \@succ_word.
121
122 /// \return Function symbol succ_word.
123 inline
125 {
127 return succ_word;
128 }
129
130 /// \brief Recogniser for function \@succ_word.
131 /// \param e A data expression.
132 /// \return true iff e is the function symbol matching \@succ_word.
133 inline
135 {
137 {
138 return atermpp::down_cast<function_symbol>(e) == succ_word();
139 }
140 return false;
141 }
142
143 /// \brief Application of function symbol \@succ_word.
144
145 /// \param[in] arg0 A data expression.
146 /// \return Application of \@succ_word to a number of arguments.
147 inline
148 application succ_word(const data_expression& arg0)
149 {
150 return sort_machine_word::succ_word()(arg0);
151 }
152
153 /// \brief Make an application of function symbol \@succ_word.
154 /// \param[out] result The data expression where the \@succ_word expression is put.
155
156 /// \param[in] arg0 A data expression.
157 inline
159 {
160 make_application(result, sort_machine_word::succ_word(),arg0);
161 }
162
163 /// \brief Recogniser for application of \@succ_word.
164 /// \param e A data expression.
165 /// \return true iff e is an application of function symbol succ_word to a
166 /// number of arguments.
167 inline
169 {
170 return is_application(e) && is_succ_word_function_symbol(atermpp::down_cast<application>(e).head());
171 }
172
173 /// \brief The data expression of an application of the function symbol \@succ_word.
174 /// \details This function is to be implemented manually.
175 /// \param[out] result The data expression where the result is stored.
176 /// \param[in] arg0 A data expression.
177 /// \post result is the data expression corresponding to an application of \@succ_word.
178 inline
180
181
182 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
183 inline
185 {
186 assert(is_application(a1));
187 const application& a=atermpp::down_cast<application>(a1);
188 // assert(a.head()==succ_word());
190 }
191
192 /// \brief Give all system defined constructors for machine_word.
193 /// \return All system defined constructors for machine_word.
194 inline
196 {
197 function_symbol_vector result;
198 result.push_back(sort_machine_word::zero_word());
199 result.push_back(sort_machine_word::succ_word());
200
201 return result;
202 }
203 /// \brief Give all defined constructors which can be used in mCRL2 specs for machine_word.
204 /// \return All system defined constructors that can be used in an mCRL2 specification for machine_word.
205 inline
207 {
208 function_symbol_vector result;
209 result.push_back(sort_machine_word::zero_word());
210 result.push_back(sort_machine_word::succ_word());
211
212 return result;
213 }
214 // The typedef is the sort that maps a function symbol to an function that rewrites it as well as a string of a function that can be used to implement it
215 using implementation_map = std::map<function_symbol,std::pair<std::function<void(data_expression&, const data_expression&)>, std::string> >;
216 /// \brief Give all system defined constructors which have an implementation in C++ and not in rewrite rules for machine_word.
217 /// \return All system defined constructors that are to be implemented in C++ for machine_word.
218 inline
220 {
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");
224
225 return result;
226 }
227
228 /// \brief Generate identifier \@one_word.
229 /// \return Identifier \@one_word.
230 inline
231 const core::identifier_string& one_word_name()
232 {
233 static core::identifier_string one_word_name = core::identifier_string("@one_word");
234 return one_word_name;
235 }
236
237 /// \brief Constructor for function symbol \@one_word.
238
239 /// \return Function symbol one_word.
240 inline
242 {
244 return one_word;
245 }
246
247 /// \brief Recogniser for function \@one_word.
248 /// \param e A data expression.
249 /// \return true iff e is the function symbol matching \@one_word.
250 inline
252 {
254 {
255 return atermpp::down_cast<function_symbol>(e) == one_word();
256 }
257 return false;
258 }
259
260 /// \brief The data expression of an application of the constant symbol \@one_word.
261 /// \details This function is to be implemented manually.
262 /// \param[out] result The data expression where the result is stored.
263 /// \post result is the data expression corresponding to an application of \@one_word.
264 inline
266
267 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
268 inline
270 {
271 assert(is_function_symbol(a));
272 // assert(a==one_word());
274 }
275
276
277 /// \brief Generate identifier \@two_word.
278 /// \return Identifier \@two_word.
279 inline
280 const core::identifier_string& two_word_name()
281 {
282 static core::identifier_string two_word_name = core::identifier_string("@two_word");
283 return two_word_name;
284 }
285
286 /// \brief Constructor for function symbol \@two_word.
287
288 /// \return Function symbol two_word.
289 inline
291 {
293 return two_word;
294 }
295
296 /// \brief Recogniser for function \@two_word.
297 /// \param e A data expression.
298 /// \return true iff e is the function symbol matching \@two_word.
299 inline
301 {
303 {
304 return atermpp::down_cast<function_symbol>(e) == two_word();
305 }
306 return false;
307 }
308
309 /// \brief The data expression of an application of the constant symbol \@two_word.
310 /// \details This function is to be implemented manually.
311 /// \param[out] result The data expression where the result is stored.
312 /// \post result is the data expression corresponding to an application of \@two_word.
313 inline
315
316 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
317 inline
319 {
320 assert(is_function_symbol(a));
321 // assert(a==two_word());
323 }
324
325
326 /// \brief Generate identifier \@three_word.
327 /// \return Identifier \@three_word.
328 inline
329 const core::identifier_string& three_word_name()
330 {
331 static core::identifier_string three_word_name = core::identifier_string("@three_word");
332 return three_word_name;
333 }
334
335 /// \brief Constructor for function symbol \@three_word.
336
337 /// \return Function symbol three_word.
338 inline
340 {
342 return three_word;
343 }
344
345 /// \brief Recogniser for function \@three_word.
346 /// \param e A data expression.
347 /// \return true iff e is the function symbol matching \@three_word.
348 inline
350 {
352 {
353 return atermpp::down_cast<function_symbol>(e) == three_word();
354 }
355 return false;
356 }
357
358 /// \brief The data expression of an application of the constant symbol \@three_word.
359 /// \details This function is to be implemented manually.
360 /// \param[out] result The data expression where the result is stored.
361 /// \post result is the data expression corresponding to an application of \@three_word.
362 inline
364
365 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
366 inline
368 {
369 assert(is_function_symbol(a));
370 // assert(a==three_word());
372 }
373
374
375 /// \brief Generate identifier \@four_word.
376 /// \return Identifier \@four_word.
377 inline
378 const core::identifier_string& four_word_name()
379 {
380 static core::identifier_string four_word_name = core::identifier_string("@four_word");
381 return four_word_name;
382 }
383
384 /// \brief Constructor for function symbol \@four_word.
385
386 /// \return Function symbol four_word.
387 inline
389 {
391 return four_word;
392 }
393
394 /// \brief Recogniser for function \@four_word.
395 /// \param e A data expression.
396 /// \return true iff e is the function symbol matching \@four_word.
397 inline
399 {
401 {
402 return atermpp::down_cast<function_symbol>(e) == four_word();
403 }
404 return false;
405 }
406
407 /// \brief The data expression of an application of the constant symbol \@four_word.
408 /// \details This function is to be implemented manually.
409 /// \param[out] result The data expression where the result is stored.
410 /// \post result is the data expression corresponding to an application of \@four_word.
411 inline
413
414 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
415 inline
417 {
418 assert(is_function_symbol(a));
419 // assert(a==four_word());
421 }
422
423
424 /// \brief Generate identifier \@max_word.
425 /// \return Identifier \@max_word.
426 inline
427 const core::identifier_string& max_word_name()
428 {
429 static core::identifier_string max_word_name = core::identifier_string("@max_word");
430 return max_word_name;
431 }
432
433 /// \brief Constructor for function symbol \@max_word.
434
435 /// \return Function symbol max_word.
436 inline
438 {
440 return max_word;
441 }
442
443 /// \brief Recogniser for function \@max_word.
444 /// \param e A data expression.
445 /// \return true iff e is the function symbol matching \@max_word.
446 inline
448 {
450 {
451 return atermpp::down_cast<function_symbol>(e) == max_word();
452 }
453 return false;
454 }
455
456 /// \brief The data expression of an application of the constant symbol \@max_word.
457 /// \details This function is to be implemented manually.
458 /// \param[out] result The data expression where the result is stored.
459 /// \post result is the data expression corresponding to an application of \@max_word.
460 inline
462
463 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
464 inline
466 {
467 assert(is_function_symbol(a));
468 // assert(a==max_word());
470 }
471
472
473 /// \brief Generate identifier \@equals_zero_word.
474 /// \return Identifier \@equals_zero_word.
475 inline
476 const core::identifier_string& equals_zero_word_name()
477 {
478 static core::identifier_string equals_zero_word_name = core::identifier_string("@equals_zero_word");
479 return equals_zero_word_name;
480 }
481
482 /// \brief Constructor for function symbol \@equals_zero_word.
483
484 /// \return Function symbol equals_zero_word.
485 inline
487 {
489 return equals_zero_word;
490 }
491
492 /// \brief Recogniser for function \@equals_zero_word.
493 /// \param e A data expression.
494 /// \return true iff e is the function symbol matching \@equals_zero_word.
495 inline
497 {
499 {
500 return atermpp::down_cast<function_symbol>(e) == equals_zero_word();
501 }
502 return false;
503 }
504
505 /// \brief Application of function symbol \@equals_zero_word.
506
507 /// \param[in] arg0 A data expression.
508 /// \return Application of \@equals_zero_word to a number of arguments.
509 inline
510 application equals_zero_word(const data_expression& arg0)
511 {
512 return sort_machine_word::equals_zero_word()(arg0);
513 }
514
515 /// \brief Make an application of function symbol \@equals_zero_word.
516 /// \param[out] result The data expression where the \@equals_zero_word expression is put.
517
518 /// \param[in] arg0 A data expression.
519 inline
521 {
522 make_application(result, sort_machine_word::equals_zero_word(),arg0);
523 }
524
525 /// \brief Recogniser for application of \@equals_zero_word.
526 /// \param e A data expression.
527 /// \return true iff e is an application of function symbol equals_zero_word to a
528 /// number of arguments.
529 inline
531 {
532 return is_application(e) && is_equals_zero_word_function_symbol(atermpp::down_cast<application>(e).head());
533 }
534
535 /// \brief The data expression of an application of the function symbol \@equals_zero_word.
536 /// \details This function is to be implemented manually.
537 /// \param[out] result The data expression where the result is stored.
538 /// \param[in] arg0 A data expression.
539 /// \post result is the data expression corresponding to an application of \@equals_zero_word.
540 inline
542
543
544 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
545 inline
547 {
548 assert(is_application(a1));
549 const application& a=atermpp::down_cast<application>(a1);
550 // assert(a.head()==equals_zero_word());
552 }
553
554
555 /// \brief Generate identifier \@not_equals_zero_word.
556 /// \return Identifier \@not_equals_zero_word.
557 inline
558 const core::identifier_string& not_equals_zero_word_name()
559 {
560 static core::identifier_string not_equals_zero_word_name = core::identifier_string("@not_equals_zero_word");
561 return not_equals_zero_word_name;
562 }
563
564 /// \brief Constructor for function symbol \@not_equals_zero_word.
565
566 /// \return Function symbol not_equals_zero_word.
567 inline
569 {
571 return not_equals_zero_word;
572 }
573
574 /// \brief Recogniser for function \@not_equals_zero_word.
575 /// \param e A data expression.
576 /// \return true iff e is the function symbol matching \@not_equals_zero_word.
577 inline
579 {
581 {
582 return atermpp::down_cast<function_symbol>(e) == not_equals_zero_word();
583 }
584 return false;
585 }
586
587 /// \brief Application of function symbol \@not_equals_zero_word.
588
589 /// \param[in] arg0 A data expression.
590 /// \return Application of \@not_equals_zero_word to a number of arguments.
591 inline
592 application not_equals_zero_word(const data_expression& arg0)
593 {
594 return sort_machine_word::not_equals_zero_word()(arg0);
595 }
596
597 /// \brief Make an application of function symbol \@not_equals_zero_word.
598 /// \param[out] result The data expression where the \@not_equals_zero_word expression is put.
599
600 /// \param[in] arg0 A data expression.
601 inline
603 {
604 make_application(result, sort_machine_word::not_equals_zero_word(),arg0);
605 }
606
607 /// \brief Recogniser for application of \@not_equals_zero_word.
608 /// \param e A data expression.
609 /// \return true iff e is an application of function symbol not_equals_zero_word to a
610 /// number of arguments.
611 inline
613 {
614 return is_application(e) && is_not_equals_zero_word_function_symbol(atermpp::down_cast<application>(e).head());
615 }
616
617 /// \brief The data expression of an application of the function symbol \@not_equals_zero_word.
618 /// \details This function is to be implemented manually.
619 /// \param[out] result The data expression where the result is stored.
620 /// \param[in] arg0 A data expression.
621 /// \post result is the data expression corresponding to an application of \@not_equals_zero_word.
622 inline
624
625
626 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
627 inline
629 {
630 assert(is_application(a1));
631 const application& a=atermpp::down_cast<application>(a1);
632 // assert(a.head()==not_equals_zero_word());
634 }
635
636
637 /// \brief Generate identifier \@equals_one_word.
638 /// \return Identifier \@equals_one_word.
639 inline
640 const core::identifier_string& equals_one_word_name()
641 {
642 static core::identifier_string equals_one_word_name = core::identifier_string("@equals_one_word");
643 return equals_one_word_name;
644 }
645
646 /// \brief Constructor for function symbol \@equals_one_word.
647
648 /// \return Function symbol equals_one_word.
649 inline
651 {
653 return equals_one_word;
654 }
655
656 /// \brief Recogniser for function \@equals_one_word.
657 /// \param e A data expression.
658 /// \return true iff e is the function symbol matching \@equals_one_word.
659 inline
661 {
663 {
664 return atermpp::down_cast<function_symbol>(e) == equals_one_word();
665 }
666 return false;
667 }
668
669 /// \brief Application of function symbol \@equals_one_word.
670
671 /// \param[in] arg0 A data expression.
672 /// \return Application of \@equals_one_word to a number of arguments.
673 inline
674 application equals_one_word(const data_expression& arg0)
675 {
676 return sort_machine_word::equals_one_word()(arg0);
677 }
678
679 /// \brief Make an application of function symbol \@equals_one_word.
680 /// \param[out] result The data expression where the \@equals_one_word expression is put.
681
682 /// \param[in] arg0 A data expression.
683 inline
685 {
686 make_application(result, sort_machine_word::equals_one_word(),arg0);
687 }
688
689 /// \brief Recogniser for application of \@equals_one_word.
690 /// \param e A data expression.
691 /// \return true iff e is an application of function symbol equals_one_word to a
692 /// number of arguments.
693 inline
695 {
696 return is_application(e) && is_equals_one_word_function_symbol(atermpp::down_cast<application>(e).head());
697 }
698
699 /// \brief The data expression of an application of the function symbol \@equals_one_word.
700 /// \details This function is to be implemented manually.
701 /// \param[out] result The data expression where the result is stored.
702 /// \param[in] arg0 A data expression.
703 /// \post result is the data expression corresponding to an application of \@equals_one_word.
704 inline
706
707
708 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
709 inline
711 {
712 assert(is_application(a1));
713 const application& a=atermpp::down_cast<application>(a1);
714 // assert(a.head()==equals_one_word());
716 }
717
718
719 /// \brief Generate identifier \@equals_max_word.
720 /// \return Identifier \@equals_max_word.
721 inline
722 const core::identifier_string& equals_max_word_name()
723 {
724 static core::identifier_string equals_max_word_name = core::identifier_string("@equals_max_word");
725 return equals_max_word_name;
726 }
727
728 /// \brief Constructor for function symbol \@equals_max_word.
729
730 /// \return Function symbol equals_max_word.
731 inline
733 {
735 return equals_max_word;
736 }
737
738 /// \brief Recogniser for function \@equals_max_word.
739 /// \param e A data expression.
740 /// \return true iff e is the function symbol matching \@equals_max_word.
741 inline
743 {
745 {
746 return atermpp::down_cast<function_symbol>(e) == equals_max_word();
747 }
748 return false;
749 }
750
751 /// \brief Application of function symbol \@equals_max_word.
752
753 /// \param[in] arg0 A data expression.
754 /// \return Application of \@equals_max_word to a number of arguments.
755 inline
756 application equals_max_word(const data_expression& arg0)
757 {
758 return sort_machine_word::equals_max_word()(arg0);
759 }
760
761 /// \brief Make an application of function symbol \@equals_max_word.
762 /// \param[out] result The data expression where the \@equals_max_word expression is put.
763
764 /// \param[in] arg0 A data expression.
765 inline
767 {
768 make_application(result, sort_machine_word::equals_max_word(),arg0);
769 }
770
771 /// \brief Recogniser for application of \@equals_max_word.
772 /// \param e A data expression.
773 /// \return true iff e is an application of function symbol equals_max_word to a
774 /// number of arguments.
775 inline
777 {
778 return is_application(e) && is_equals_max_word_function_symbol(atermpp::down_cast<application>(e).head());
779 }
780
781 /// \brief The data expression of an application of the function symbol \@equals_max_word.
782 /// \details This function is to be implemented manually.
783 /// \param[out] result The data expression where the result is stored.
784 /// \param[in] arg0 A data expression.
785 /// \post result is the data expression corresponding to an application of \@equals_max_word.
786 inline
788
789
790 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
791 inline
793 {
794 assert(is_application(a1));
795 const application& a=atermpp::down_cast<application>(a1);
796 // assert(a.head()==equals_max_word());
798 }
799
800
801 /// \brief Generate identifier \@add_word.
802 /// \return Identifier \@add_word.
803 inline
804 const core::identifier_string& add_word_name()
805 {
806 static core::identifier_string add_word_name = core::identifier_string("@add_word");
807 return add_word_name;
808 }
809
810 /// \brief Constructor for function symbol \@add_word.
811
812 /// \return Function symbol add_word.
813 inline
815 {
817 return add_word;
818 }
819
820 /// \brief Recogniser for function \@add_word.
821 /// \param e A data expression.
822 /// \return true iff e is the function symbol matching \@add_word.
823 inline
825 {
827 {
828 return atermpp::down_cast<function_symbol>(e) == add_word();
829 }
830 return false;
831 }
832
833 /// \brief Application of function symbol \@add_word.
834
835 /// \param[in] arg0 A data expression.
836 /// \param[in] arg1 A data expression.
837 /// \return Application of \@add_word to a number of arguments.
838 inline
839 application add_word(const data_expression& arg0, const data_expression& arg1)
840 {
841 return sort_machine_word::add_word()(arg0, arg1);
842 }
843
844 /// \brief Make an application of function symbol \@add_word.
845 /// \param[out] result The data expression where the \@add_word expression is put.
846
847 /// \param[in] arg0 A data expression.
848 /// \param[in] arg1 A data expression.
849 inline
850 void make_add_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
851 {
852 make_application(result, sort_machine_word::add_word(),arg0, arg1);
853 }
854
855 /// \brief Recogniser for application of \@add_word.
856 /// \param e A data expression.
857 /// \return true iff e is an application of function symbol add_word to a
858 /// number of arguments.
859 inline
861 {
862 return is_application(e) && is_add_word_function_symbol(atermpp::down_cast<application>(e).head());
863 }
864
865 /// \brief The data expression of an application of the function symbol \@add_word.
866 /// \details This function is to be implemented manually.
867 /// \param[out] result The data expression where the result is stored.
868 /// \param[in] arg0 A data expression.
869 /// \param[in] arg1 A data expression.
870 /// \post result is the data expression corresponding to an application of \@add_word.
871 inline
873
874
875 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
876 inline
878 {
879 assert(is_application(a1));
880 const application& a=atermpp::down_cast<application>(a1);
881 // assert(a.head()==add_word());
883 }
884
885
886 /// \brief Generate identifier \@add_with_carry_word.
887 /// \return Identifier \@add_with_carry_word.
888 inline
889 const core::identifier_string& add_with_carry_word_name()
890 {
891 static core::identifier_string add_with_carry_word_name = core::identifier_string("@add_with_carry_word");
892 return add_with_carry_word_name;
893 }
894
895 /// \brief Constructor for function symbol \@add_with_carry_word.
896
897 /// \return Function symbol add_with_carry_word.
898 inline
900 {
902 return add_with_carry_word;
903 }
904
905 /// \brief Recogniser for function \@add_with_carry_word.
906 /// \param e A data expression.
907 /// \return true iff e is the function symbol matching \@add_with_carry_word.
908 inline
910 {
912 {
913 return atermpp::down_cast<function_symbol>(e) == add_with_carry_word();
914 }
915 return false;
916 }
917
918 /// \brief Application of function symbol \@add_with_carry_word.
919
920 /// \param[in] arg0 A data expression.
921 /// \param[in] arg1 A data expression.
922 /// \return Application of \@add_with_carry_word to a number of arguments.
923 inline
924 application add_with_carry_word(const data_expression& arg0, const data_expression& arg1)
925 {
926 return sort_machine_word::add_with_carry_word()(arg0, arg1);
927 }
928
929 /// \brief Make an application of function symbol \@add_with_carry_word.
930 /// \param[out] result The data expression where the \@add_with_carry_word expression is put.
931
932 /// \param[in] arg0 A data expression.
933 /// \param[in] arg1 A data expression.
934 inline
936 {
937 make_application(result, sort_machine_word::add_with_carry_word(),arg0, arg1);
938 }
939
940 /// \brief Recogniser for application of \@add_with_carry_word.
941 /// \param e A data expression.
942 /// \return true iff e is an application of function symbol add_with_carry_word to a
943 /// number of arguments.
944 inline
946 {
947 return is_application(e) && is_add_with_carry_word_function_symbol(atermpp::down_cast<application>(e).head());
948 }
949
950 /// \brief The data expression of an application of the function symbol \@add_with_carry_word.
951 /// \details This function is to be implemented manually.
952 /// \param[out] result The data expression where the result is stored.
953 /// \param[in] arg0 A data expression.
954 /// \param[in] arg1 A data expression.
955 /// \post result is the data expression corresponding to an application of \@add_with_carry_word.
956 inline
958
959
960 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
961 inline
963 {
964 assert(is_application(a1));
965 const application& a=atermpp::down_cast<application>(a1);
966 // assert(a.head()==add_with_carry_word());
968 }
969
970
971 /// \brief Generate identifier \@add_overflow_word.
972 /// \return Identifier \@add_overflow_word.
973 inline
974 const core::identifier_string& add_overflow_word_name()
975 {
976 static core::identifier_string add_overflow_word_name = core::identifier_string("@add_overflow_word");
977 return add_overflow_word_name;
978 }
979
980 /// \brief Constructor for function symbol \@add_overflow_word.
981
982 /// \return Function symbol add_overflow_word.
983 inline
985 {
987 return add_overflow_word;
988 }
989
990 /// \brief Recogniser for function \@add_overflow_word.
991 /// \param e A data expression.
992 /// \return true iff e is the function symbol matching \@add_overflow_word.
993 inline
995 {
997 {
998 return atermpp::down_cast<function_symbol>(e) == add_overflow_word();
999 }
1000 return false;
1001 }
1002
1003 /// \brief Application of function symbol \@add_overflow_word.
1004
1005 /// \param[in] arg0 A data expression.
1006 /// \param[in] arg1 A data expression.
1007 /// \return Application of \@add_overflow_word to a number of arguments.
1008 inline
1009 application add_overflow_word(const data_expression& arg0, const data_expression& arg1)
1010 {
1011 return sort_machine_word::add_overflow_word()(arg0, arg1);
1012 }
1013
1014 /// \brief Make an application of function symbol \@add_overflow_word.
1015 /// \param[out] result The data expression where the \@add_overflow_word expression is put.
1016
1017 /// \param[in] arg0 A data expression.
1018 /// \param[in] arg1 A data expression.
1019 inline
1021 {
1022 make_application(result, sort_machine_word::add_overflow_word(),arg0, arg1);
1023 }
1024
1025 /// \brief Recogniser for application of \@add_overflow_word.
1026 /// \param e A data expression.
1027 /// \return true iff e is an application of function symbol add_overflow_word to a
1028 /// number of arguments.
1029 inline
1031 {
1032 return is_application(e) && is_add_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1033 }
1034
1035 /// \brief The data expression of an application of the function symbol \@add_overflow_word.
1036 /// \details This function is to be implemented manually.
1037 /// \param[out] result The data expression where the result is stored.
1038 /// \param[in] arg0 A data expression.
1039 /// \param[in] arg1 A data expression.
1040 /// \post result is the data expression corresponding to an application of \@add_overflow_word.
1041 inline
1043
1044
1045 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1046 inline
1048 {
1049 assert(is_application(a1));
1050 const application& a=atermpp::down_cast<application>(a1);
1051 // assert(a.head()==add_overflow_word());
1053 }
1054
1055
1056 /// \brief Generate identifier \@add_with_carry_overflow_word.
1057 /// \return Identifier \@add_with_carry_overflow_word.
1058 inline
1059 const core::identifier_string& add_with_carry_overflow_word_name()
1060 {
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;
1063 }
1064
1065 /// \brief Constructor for function symbol \@add_with_carry_overflow_word.
1066
1067 /// \return Function symbol add_with_carry_overflow_word.
1068 inline
1070 {
1072 return add_with_carry_overflow_word;
1073 }
1074
1075 /// \brief Recogniser for function \@add_with_carry_overflow_word.
1076 /// \param e A data expression.
1077 /// \return true iff e is the function symbol matching \@add_with_carry_overflow_word.
1078 inline
1080 {
1082 {
1083 return atermpp::down_cast<function_symbol>(e) == add_with_carry_overflow_word();
1084 }
1085 return false;
1086 }
1087
1088 /// \brief Application of function symbol \@add_with_carry_overflow_word.
1089
1090 /// \param[in] arg0 A data expression.
1091 /// \param[in] arg1 A data expression.
1092 /// \return Application of \@add_with_carry_overflow_word to a number of arguments.
1093 inline
1095 {
1096 return sort_machine_word::add_with_carry_overflow_word()(arg0, arg1);
1097 }
1098
1099 /// \brief Make an application of function symbol \@add_with_carry_overflow_word.
1100 /// \param[out] result The data expression where the \@add_with_carry_overflow_word expression is put.
1101
1102 /// \param[in] arg0 A data expression.
1103 /// \param[in] arg1 A data expression.
1104 inline
1106 {
1107 make_application(result, sort_machine_word::add_with_carry_overflow_word(),arg0, arg1);
1108 }
1109
1110 /// \brief Recogniser for application of \@add_with_carry_overflow_word.
1111 /// \param e A data expression.
1112 /// \return true iff e is an application of function symbol add_with_carry_overflow_word to a
1113 /// number of arguments.
1114 inline
1116 {
1117 return is_application(e) && is_add_with_carry_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1118 }
1119
1120 /// \brief The data expression of an application of the function symbol \@add_with_carry_overflow_word.
1121 /// \details This function is to be implemented manually.
1122 /// \param[out] result The data expression where the result is stored.
1123 /// \param[in] arg0 A data expression.
1124 /// \param[in] arg1 A data expression.
1125 /// \post result is the data expression corresponding to an application of \@add_with_carry_overflow_word.
1126 inline
1128
1129
1130 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1131 inline
1133 {
1134 assert(is_application(a1));
1135 const application& a=atermpp::down_cast<application>(a1);
1136 // assert(a.head()==add_with_carry_overflow_word());
1138 }
1139
1140
1141 /// \brief Generate identifier \@times_word.
1142 /// \return Identifier \@times_word.
1143 inline
1144 const core::identifier_string& times_word_name()
1145 {
1146 static core::identifier_string times_word_name = core::identifier_string("@times_word");
1147 return times_word_name;
1148 }
1149
1150 /// \brief Constructor for function symbol \@times_word.
1151
1152 /// \return Function symbol times_word.
1153 inline
1155 {
1157 return times_word;
1158 }
1159
1160 /// \brief Recogniser for function \@times_word.
1161 /// \param e A data expression.
1162 /// \return true iff e is the function symbol matching \@times_word.
1163 inline
1165 {
1167 {
1168 return atermpp::down_cast<function_symbol>(e) == times_word();
1169 }
1170 return false;
1171 }
1172
1173 /// \brief Application of function symbol \@times_word.
1174
1175 /// \param[in] arg0 A data expression.
1176 /// \param[in] arg1 A data expression.
1177 /// \return Application of \@times_word to a number of arguments.
1178 inline
1179 application times_word(const data_expression& arg0, const data_expression& arg1)
1180 {
1181 return sort_machine_word::times_word()(arg0, arg1);
1182 }
1183
1184 /// \brief Make an application of function symbol \@times_word.
1185 /// \param[out] result The data expression where the \@times_word expression is put.
1186
1187 /// \param[in] arg0 A data expression.
1188 /// \param[in] arg1 A data expression.
1189 inline
1190 void make_times_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
1191 {
1192 make_application(result, sort_machine_word::times_word(),arg0, arg1);
1193 }
1194
1195 /// \brief Recogniser for application of \@times_word.
1196 /// \param e A data expression.
1197 /// \return true iff e is an application of function symbol times_word to a
1198 /// number of arguments.
1199 inline
1201 {
1202 return is_application(e) && is_times_word_function_symbol(atermpp::down_cast<application>(e).head());
1203 }
1204
1205 /// \brief The data expression of an application of the function symbol \@times_word.
1206 /// \details This function is to be implemented manually.
1207 /// \param[out] result The data expression where the result is stored.
1208 /// \param[in] arg0 A data expression.
1209 /// \param[in] arg1 A data expression.
1210 /// \post result is the data expression corresponding to an application of \@times_word.
1211 inline
1213
1214
1215 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1216 inline
1218 {
1219 assert(is_application(a1));
1220 const application& a=atermpp::down_cast<application>(a1);
1221 // assert(a.head()==times_word());
1223 }
1224
1225
1226 /// \brief Generate identifier \@times_with_carry_word.
1227 /// \return Identifier \@times_with_carry_word.
1228 inline
1229 const core::identifier_string& times_with_carry_word_name()
1230 {
1231 static core::identifier_string times_with_carry_word_name = core::identifier_string("@times_with_carry_word");
1232 return times_with_carry_word_name;
1233 }
1234
1235 /// \brief Constructor for function symbol \@times_with_carry_word.
1236
1237 /// \return Function symbol times_with_carry_word.
1238 inline
1240 {
1242 return times_with_carry_word;
1243 }
1244
1245 /// \brief Recogniser for function \@times_with_carry_word.
1246 /// \param e A data expression.
1247 /// \return true iff e is the function symbol matching \@times_with_carry_word.
1248 inline
1250 {
1252 {
1253 return atermpp::down_cast<function_symbol>(e) == times_with_carry_word();
1254 }
1255 return false;
1256 }
1257
1258 /// \brief Application of function symbol \@times_with_carry_word.
1259
1260 /// \param[in] arg0 A data expression.
1261 /// \param[in] arg1 A data expression.
1262 /// \param[in] arg2 A data expression.
1263 /// \return Application of \@times_with_carry_word to a number of arguments.
1264 inline
1265 application times_with_carry_word(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
1266 {
1267 return sort_machine_word::times_with_carry_word()(arg0, arg1, arg2);
1268 }
1269
1270 /// \brief Make an application of function symbol \@times_with_carry_word.
1271 /// \param[out] result The data expression where the \@times_with_carry_word expression is put.
1272
1273 /// \param[in] arg0 A data expression.
1274 /// \param[in] arg1 A data expression.
1275 /// \param[in] arg2 A data expression.
1276 inline
1278 {
1279 make_application(result, sort_machine_word::times_with_carry_word(),arg0, arg1, arg2);
1280 }
1281
1282 /// \brief Recogniser for application of \@times_with_carry_word.
1283 /// \param e A data expression.
1284 /// \return true iff e is an application of function symbol times_with_carry_word to a
1285 /// number of arguments.
1286 inline
1288 {
1289 return is_application(e) && is_times_with_carry_word_function_symbol(atermpp::down_cast<application>(e).head());
1290 }
1291
1292 /// \brief The data expression of an application of the function symbol \@times_with_carry_word.
1293 /// \details This function is to be implemented manually.
1294 /// \param[out] result The data expression where the result is stored.
1295 /// \param[in] arg0 A data expression.
1296 /// \param[in] arg1 A data expression.
1297 /// \param[in] arg2 A data expression.
1298 /// \post result is the data expression corresponding to an application of \@times_with_carry_word.
1299 inline
1301
1302
1303 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1304 inline
1306 {
1307 assert(is_application(a1));
1308 const application& a=atermpp::down_cast<application>(a1);
1309 // assert(a.head()==times_with_carry_word());
1311 }
1312
1313
1314 /// \brief Generate identifier \@times_overflow_word.
1315 /// \return Identifier \@times_overflow_word.
1316 inline
1317 const core::identifier_string& times_overflow_word_name()
1318 {
1319 static core::identifier_string times_overflow_word_name = core::identifier_string("@times_overflow_word");
1320 return times_overflow_word_name;
1321 }
1322
1323 /// \brief Constructor for function symbol \@times_overflow_word.
1324
1325 /// \return Function symbol times_overflow_word.
1326 inline
1328 {
1330 return times_overflow_word;
1331 }
1332
1333 /// \brief Recogniser for function \@times_overflow_word.
1334 /// \param e A data expression.
1335 /// \return true iff e is the function symbol matching \@times_overflow_word.
1336 inline
1338 {
1340 {
1341 return atermpp::down_cast<function_symbol>(e) == times_overflow_word();
1342 }
1343 return false;
1344 }
1345
1346 /// \brief Application of function symbol \@times_overflow_word.
1347
1348 /// \param[in] arg0 A data expression.
1349 /// \param[in] arg1 A data expression.
1350 /// \return Application of \@times_overflow_word to a number of arguments.
1351 inline
1352 application times_overflow_word(const data_expression& arg0, const data_expression& arg1)
1353 {
1354 return sort_machine_word::times_overflow_word()(arg0, arg1);
1355 }
1356
1357 /// \brief Make an application of function symbol \@times_overflow_word.
1358 /// \param[out] result The data expression where the \@times_overflow_word expression is put.
1359
1360 /// \param[in] arg0 A data expression.
1361 /// \param[in] arg1 A data expression.
1362 inline
1364 {
1365 make_application(result, sort_machine_word::times_overflow_word(),arg0, arg1);
1366 }
1367
1368 /// \brief Recogniser for application of \@times_overflow_word.
1369 /// \param e A data expression.
1370 /// \return true iff e is an application of function symbol times_overflow_word to a
1371 /// number of arguments.
1372 inline
1374 {
1375 return is_application(e) && is_times_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1376 }
1377
1378 /// \brief The data expression of an application of the function symbol \@times_overflow_word.
1379 /// \details This function is to be implemented manually.
1380 /// \param[out] result The data expression where the result is stored.
1381 /// \param[in] arg0 A data expression.
1382 /// \param[in] arg1 A data expression.
1383 /// \post result is the data expression corresponding to an application of \@times_overflow_word.
1384 inline
1386
1387
1388 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1389 inline
1391 {
1392 assert(is_application(a1));
1393 const application& a=atermpp::down_cast<application>(a1);
1394 // assert(a.head()==times_overflow_word());
1396 }
1397
1398
1399 /// \brief Generate identifier \@times_with_carry_overflow_word.
1400 /// \return Identifier \@times_with_carry_overflow_word.
1401 inline
1402 const core::identifier_string& times_with_carry_overflow_word_name()
1403 {
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;
1406 }
1407
1408 /// \brief Constructor for function symbol \@times_with_carry_overflow_word.
1409
1410 /// \return Function symbol times_with_carry_overflow_word.
1411 inline
1413 {
1415 return times_with_carry_overflow_word;
1416 }
1417
1418 /// \brief Recogniser for function \@times_with_carry_overflow_word.
1419 /// \param e A data expression.
1420 /// \return true iff e is the function symbol matching \@times_with_carry_overflow_word.
1421 inline
1423 {
1425 {
1426 return atermpp::down_cast<function_symbol>(e) == times_with_carry_overflow_word();
1427 }
1428 return false;
1429 }
1430
1431 /// \brief Application of function symbol \@times_with_carry_overflow_word.
1432
1433 /// \param[in] arg0 A data expression.
1434 /// \param[in] arg1 A data expression.
1435 /// \param[in] arg2 A data expression.
1436 /// \return Application of \@times_with_carry_overflow_word to a number of arguments.
1437 inline
1438 application times_with_carry_overflow_word(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
1439 {
1440 return sort_machine_word::times_with_carry_overflow_word()(arg0, arg1, arg2);
1441 }
1442
1443 /// \brief Make an application of function symbol \@times_with_carry_overflow_word.
1444 /// \param[out] result The data expression where the \@times_with_carry_overflow_word expression is put.
1445
1446 /// \param[in] arg0 A data expression.
1447 /// \param[in] arg1 A data expression.
1448 /// \param[in] arg2 A data expression.
1449 inline
1451 {
1452 make_application(result, sort_machine_word::times_with_carry_overflow_word(),arg0, arg1, arg2);
1453 }
1454
1455 /// \brief Recogniser for application of \@times_with_carry_overflow_word.
1456 /// \param e A data expression.
1457 /// \return true iff e is an application of function symbol times_with_carry_overflow_word to a
1458 /// number of arguments.
1459 inline
1461 {
1462 return is_application(e) && is_times_with_carry_overflow_word_function_symbol(atermpp::down_cast<application>(e).head());
1463 }
1464
1465 /// \brief The data expression of an application of the function symbol \@times_with_carry_overflow_word.
1466 /// \details This function is to be implemented manually.
1467 /// \param[out] result The data expression where the result is stored.
1468 /// \param[in] arg0 A data expression.
1469 /// \param[in] arg1 A data expression.
1470 /// \param[in] arg2 A data expression.
1471 /// \post result is the data expression corresponding to an application of \@times_with_carry_overflow_word.
1472 inline
1474
1475
1476 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1477 inline
1479 {
1480 assert(is_application(a1));
1481 const application& a=atermpp::down_cast<application>(a1);
1482 // assert(a.head()==times_with_carry_overflow_word());
1484 }
1485
1486
1487 /// \brief Generate identifier \@minus_word.
1488 /// \return Identifier \@minus_word.
1489 inline
1490 const core::identifier_string& minus_word_name()
1491 {
1492 static core::identifier_string minus_word_name = core::identifier_string("@minus_word");
1493 return minus_word_name;
1494 }
1495
1496 /// \brief Constructor for function symbol \@minus_word.
1497
1498 /// \return Function symbol minus_word.
1499 inline
1501 {
1503 return minus_word;
1504 }
1505
1506 /// \brief Recogniser for function \@minus_word.
1507 /// \param e A data expression.
1508 /// \return true iff e is the function symbol matching \@minus_word.
1509 inline
1511 {
1513 {
1514 return atermpp::down_cast<function_symbol>(e) == minus_word();
1515 }
1516 return false;
1517 }
1518
1519 /// \brief Application of function symbol \@minus_word.
1520
1521 /// \param[in] arg0 A data expression.
1522 /// \param[in] arg1 A data expression.
1523 /// \return Application of \@minus_word to a number of arguments.
1524 inline
1525 application minus_word(const data_expression& arg0, const data_expression& arg1)
1526 {
1527 return sort_machine_word::minus_word()(arg0, arg1);
1528 }
1529
1530 /// \brief Make an application of function symbol \@minus_word.
1531 /// \param[out] result The data expression where the \@minus_word expression is put.
1532
1533 /// \param[in] arg0 A data expression.
1534 /// \param[in] arg1 A data expression.
1535 inline
1536 void make_minus_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
1537 {
1538 make_application(result, sort_machine_word::minus_word(),arg0, arg1);
1539 }
1540
1541 /// \brief Recogniser for application of \@minus_word.
1542 /// \param e A data expression.
1543 /// \return true iff e is an application of function symbol minus_word to a
1544 /// number of arguments.
1545 inline
1547 {
1548 return is_application(e) && is_minus_word_function_symbol(atermpp::down_cast<application>(e).head());
1549 }
1550
1551 /// \brief The data expression of an application of the function symbol \@minus_word.
1552 /// \details This function is to be implemented manually.
1553 /// \param[out] result The data expression where the result is stored.
1554 /// \param[in] arg0 A data expression.
1555 /// \param[in] arg1 A data expression.
1556 /// \post result is the data expression corresponding to an application of \@minus_word.
1557 inline
1559
1560
1561 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1562 inline
1564 {
1565 assert(is_application(a1));
1566 const application& a=atermpp::down_cast<application>(a1);
1567 // assert(a.head()==minus_word());
1569 }
1570
1571
1572 /// \brief Generate identifier \@monus_word.
1573 /// \return Identifier \@monus_word.
1574 inline
1575 const core::identifier_string& monus_word_name()
1576 {
1577 static core::identifier_string monus_word_name = core::identifier_string("@monus_word");
1578 return monus_word_name;
1579 }
1580
1581 /// \brief Constructor for function symbol \@monus_word.
1582
1583 /// \return Function symbol monus_word.
1584 inline
1586 {
1588 return monus_word;
1589 }
1590
1591 /// \brief Recogniser for function \@monus_word.
1592 /// \param e A data expression.
1593 /// \return true iff e is the function symbol matching \@monus_word.
1594 inline
1596 {
1598 {
1599 return atermpp::down_cast<function_symbol>(e) == monus_word();
1600 }
1601 return false;
1602 }
1603
1604 /// \brief Application of function symbol \@monus_word.
1605
1606 /// \param[in] arg0 A data expression.
1607 /// \param[in] arg1 A data expression.
1608 /// \return Application of \@monus_word to a number of arguments.
1609 inline
1610 application monus_word(const data_expression& arg0, const data_expression& arg1)
1611 {
1612 return sort_machine_word::monus_word()(arg0, arg1);
1613 }
1614
1615 /// \brief Make an application of function symbol \@monus_word.
1616 /// \param[out] result The data expression where the \@monus_word expression is put.
1617
1618 /// \param[in] arg0 A data expression.
1619 /// \param[in] arg1 A data expression.
1620 inline
1621 void make_monus_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
1622 {
1623 make_application(result, sort_machine_word::monus_word(),arg0, arg1);
1624 }
1625
1626 /// \brief Recogniser for application of \@monus_word.
1627 /// \param e A data expression.
1628 /// \return true iff e is an application of function symbol monus_word to a
1629 /// number of arguments.
1630 inline
1632 {
1633 return is_application(e) && is_monus_word_function_symbol(atermpp::down_cast<application>(e).head());
1634 }
1635
1636 /// \brief The data expression of an application of the function symbol \@monus_word.
1637 /// \details This function is to be implemented manually.
1638 /// \param[out] result The data expression where the result is stored.
1639 /// \param[in] arg0 A data expression.
1640 /// \param[in] arg1 A data expression.
1641 /// \post result is the data expression corresponding to an application of \@monus_word.
1642 inline
1644
1645
1646 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1647 inline
1649 {
1650 assert(is_application(a1));
1651 const application& a=atermpp::down_cast<application>(a1);
1652 // assert(a.head()==monus_word());
1654 }
1655
1656
1657 /// \brief Generate identifier \@div_word.
1658 /// \return Identifier \@div_word.
1659 inline
1660 const core::identifier_string& div_word_name()
1661 {
1662 static core::identifier_string div_word_name = core::identifier_string("@div_word");
1663 return div_word_name;
1664 }
1665
1666 /// \brief Constructor for function symbol \@div_word.
1667
1668 /// \return Function symbol div_word.
1669 inline
1671 {
1673 return div_word;
1674 }
1675
1676 /// \brief Recogniser for function \@div_word.
1677 /// \param e A data expression.
1678 /// \return true iff e is the function symbol matching \@div_word.
1679 inline
1681 {
1683 {
1684 return atermpp::down_cast<function_symbol>(e) == div_word();
1685 }
1686 return false;
1687 }
1688
1689 /// \brief Application of function symbol \@div_word.
1690
1691 /// \param[in] arg0 A data expression.
1692 /// \param[in] arg1 A data expression.
1693 /// \return Application of \@div_word to a number of arguments.
1694 inline
1695 application div_word(const data_expression& arg0, const data_expression& arg1)
1696 {
1697 return sort_machine_word::div_word()(arg0, arg1);
1698 }
1699
1700 /// \brief Make an application of function symbol \@div_word.
1701 /// \param[out] result The data expression where the \@div_word expression is put.
1702
1703 /// \param[in] arg0 A data expression.
1704 /// \param[in] arg1 A data expression.
1705 inline
1706 void make_div_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
1707 {
1708 make_application(result, sort_machine_word::div_word(),arg0, arg1);
1709 }
1710
1711 /// \brief Recogniser for application of \@div_word.
1712 /// \param e A data expression.
1713 /// \return true iff e is an application of function symbol div_word to a
1714 /// number of arguments.
1715 inline
1717 {
1718 return is_application(e) && is_div_word_function_symbol(atermpp::down_cast<application>(e).head());
1719 }
1720
1721 /// \brief The data expression of an application of the function symbol \@div_word.
1722 /// \details This function is to be implemented manually.
1723 /// \param[out] result The data expression where the result is stored.
1724 /// \param[in] arg0 A data expression.
1725 /// \param[in] arg1 A data expression.
1726 /// \post result is the data expression corresponding to an application of \@div_word.
1727 inline
1728 void div_word_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1);
1729
1730
1731 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1732 inline
1734 {
1735 assert(is_application(a1));
1736 const application& a=atermpp::down_cast<application>(a1);
1737 // assert(a.head()==div_word());
1738 div_word_manual_implementation(result, a[0], a[1]);
1739 }
1740
1741
1742 /// \brief Generate identifier \@mod_word.
1743 /// \return Identifier \@mod_word.
1744 inline
1745 const core::identifier_string& mod_word_name()
1746 {
1747 static core::identifier_string mod_word_name = core::identifier_string("@mod_word");
1748 return mod_word_name;
1749 }
1750
1751 /// \brief Constructor for function symbol \@mod_word.
1752
1753 /// \return Function symbol mod_word.
1754 inline
1756 {
1758 return mod_word;
1759 }
1760
1761 /// \brief Recogniser for function \@mod_word.
1762 /// \param e A data expression.
1763 /// \return true iff e is the function symbol matching \@mod_word.
1764 inline
1766 {
1768 {
1769 return atermpp::down_cast<function_symbol>(e) == mod_word();
1770 }
1771 return false;
1772 }
1773
1774 /// \brief Application of function symbol \@mod_word.
1775
1776 /// \param[in] arg0 A data expression.
1777 /// \param[in] arg1 A data expression.
1778 /// \return Application of \@mod_word to a number of arguments.
1779 inline
1780 application mod_word(const data_expression& arg0, const data_expression& arg1)
1781 {
1782 return sort_machine_word::mod_word()(arg0, arg1);
1783 }
1784
1785 /// \brief Make an application of function symbol \@mod_word.
1786 /// \param[out] result The data expression where the \@mod_word expression is put.
1787
1788 /// \param[in] arg0 A data expression.
1789 /// \param[in] arg1 A data expression.
1790 inline
1791 void make_mod_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
1792 {
1793 make_application(result, sort_machine_word::mod_word(),arg0, arg1);
1794 }
1795
1796 /// \brief Recogniser for application of \@mod_word.
1797 /// \param e A data expression.
1798 /// \return true iff e is an application of function symbol mod_word to a
1799 /// number of arguments.
1800 inline
1802 {
1803 return is_application(e) && is_mod_word_function_symbol(atermpp::down_cast<application>(e).head());
1804 }
1805
1806 /// \brief The data expression of an application of the function symbol \@mod_word.
1807 /// \details This function is to be implemented manually.
1808 /// \param[out] result The data expression where the result is stored.
1809 /// \param[in] arg0 A data expression.
1810 /// \param[in] arg1 A data expression.
1811 /// \post result is the data expression corresponding to an application of \@mod_word.
1812 inline
1813 void mod_word_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1);
1814
1815
1816 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1817 inline
1819 {
1820 assert(is_application(a1));
1821 const application& a=atermpp::down_cast<application>(a1);
1822 // assert(a.head()==mod_word());
1823 mod_word_manual_implementation(result, a[0], a[1]);
1824 }
1825
1826
1827 /// \brief Generate identifier \@sqrt_word.
1828 /// \return Identifier \@sqrt_word.
1829 inline
1830 const core::identifier_string& sqrt_word_name()
1831 {
1832 static core::identifier_string sqrt_word_name = core::identifier_string("@sqrt_word");
1833 return sqrt_word_name;
1834 }
1835
1836 /// \brief Constructor for function symbol \@sqrt_word.
1837
1838 /// \return Function symbol sqrt_word.
1839 inline
1841 {
1843 return sqrt_word;
1844 }
1845
1846 /// \brief Recogniser for function \@sqrt_word.
1847 /// \param e A data expression.
1848 /// \return true iff e is the function symbol matching \@sqrt_word.
1849 inline
1851 {
1853 {
1854 return atermpp::down_cast<function_symbol>(e) == sqrt_word();
1855 }
1856 return false;
1857 }
1858
1859 /// \brief Application of function symbol \@sqrt_word.
1860
1861 /// \param[in] arg0 A data expression.
1862 /// \return Application of \@sqrt_word to a number of arguments.
1863 inline
1864 application sqrt_word(const data_expression& arg0)
1865 {
1866 return sort_machine_word::sqrt_word()(arg0);
1867 }
1868
1869 /// \brief Make an application of function symbol \@sqrt_word.
1870 /// \param[out] result The data expression where the \@sqrt_word expression is put.
1871
1872 /// \param[in] arg0 A data expression.
1873 inline
1875 {
1876 make_application(result, sort_machine_word::sqrt_word(),arg0);
1877 }
1878
1879 /// \brief Recogniser for application of \@sqrt_word.
1880 /// \param e A data expression.
1881 /// \return true iff e is an application of function symbol sqrt_word to a
1882 /// number of arguments.
1883 inline
1885 {
1886 return is_application(e) && is_sqrt_word_function_symbol(atermpp::down_cast<application>(e).head());
1887 }
1888
1889 /// \brief The data expression of an application of the function symbol \@sqrt_word.
1890 /// \details This function is to be implemented manually.
1891 /// \param[out] result The data expression where the result is stored.
1892 /// \param[in] arg0 A data expression.
1893 /// \post result is the data expression corresponding to an application of \@sqrt_word.
1894 inline
1896
1897
1898 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1899 inline
1901 {
1902 assert(is_application(a1));
1903 const application& a=atermpp::down_cast<application>(a1);
1904 // assert(a.head()==sqrt_word());
1906 }
1907
1908
1909 /// \brief Generate identifier \@div_doubleword.
1910 /// \return Identifier \@div_doubleword.
1911 inline
1912 const core::identifier_string& div_doubleword_name()
1913 {
1914 static core::identifier_string div_doubleword_name = core::identifier_string("@div_doubleword");
1915 return div_doubleword_name;
1916 }
1917
1918 /// \brief Constructor for function symbol \@div_doubleword.
1919
1920 /// \return Function symbol div_doubleword.
1921 inline
1923 {
1925 return div_doubleword;
1926 }
1927
1928 /// \brief Recogniser for function \@div_doubleword.
1929 /// \param e A data expression.
1930 /// \return true iff e is the function symbol matching \@div_doubleword.
1931 inline
1933 {
1935 {
1936 return atermpp::down_cast<function_symbol>(e) == div_doubleword();
1937 }
1938 return false;
1939 }
1940
1941 /// \brief Application of function symbol \@div_doubleword.
1942
1943 /// \param[in] arg0 A data expression.
1944 /// \param[in] arg1 A data expression.
1945 /// \param[in] arg2 A data expression.
1946 /// \return Application of \@div_doubleword to a number of arguments.
1947 inline
1948 application div_doubleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
1949 {
1950 return sort_machine_word::div_doubleword()(arg0, arg1, arg2);
1951 }
1952
1953 /// \brief Make an application of function symbol \@div_doubleword.
1954 /// \param[out] result The data expression where the \@div_doubleword expression is put.
1955
1956 /// \param[in] arg0 A data expression.
1957 /// \param[in] arg1 A data expression.
1958 /// \param[in] arg2 A data expression.
1959 inline
1960 void make_div_doubleword(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
1961 {
1962 make_application(result, sort_machine_word::div_doubleword(),arg0, arg1, arg2);
1963 }
1964
1965 /// \brief Recogniser for application of \@div_doubleword.
1966 /// \param e A data expression.
1967 /// \return true iff e is an application of function symbol div_doubleword to a
1968 /// number of arguments.
1969 inline
1971 {
1972 return is_application(e) && is_div_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
1973 }
1974
1975 /// \brief The data expression of an application of the function symbol \@div_doubleword.
1976 /// \details This function is to be implemented manually.
1977 /// \param[out] result The data expression where the result is stored.
1978 /// \param[in] arg0 A data expression.
1979 /// \param[in] arg1 A data expression.
1980 /// \param[in] arg2 A data expression.
1981 /// \post result is the data expression corresponding to an application of \@div_doubleword.
1982 inline
1983 void div_doubleword_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2);
1984
1985
1986 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
1987 inline
1989 {
1990 assert(is_application(a1));
1991 const application& a=atermpp::down_cast<application>(a1);
1992 // assert(a.head()==div_doubleword());
1993 div_doubleword_manual_implementation(result, a[0], a[1], a[2]);
1994 }
1995
1996
1997 /// \brief Generate identifier \@div_double_doubleword.
1998 /// \return Identifier \@div_double_doubleword.
1999 inline
2000 const core::identifier_string& div_double_doubleword_name()
2001 {
2002 static core::identifier_string div_double_doubleword_name = core::identifier_string("@div_double_doubleword");
2003 return div_double_doubleword_name;
2004 }
2005
2006 /// \brief Constructor for function symbol \@div_double_doubleword.
2007
2008 /// \return Function symbol div_double_doubleword.
2009 inline
2011 {
2013 return div_double_doubleword;
2014 }
2015
2016 /// \brief Recogniser for function \@div_double_doubleword.
2017 /// \param e A data expression.
2018 /// \return true iff e is the function symbol matching \@div_double_doubleword.
2019 inline
2021 {
2023 {
2024 return atermpp::down_cast<function_symbol>(e) == div_double_doubleword();
2025 }
2026 return false;
2027 }
2028
2029 /// \brief Application of function symbol \@div_double_doubleword.
2030
2031 /// \param[in] arg0 A data expression.
2032 /// \param[in] arg1 A data expression.
2033 /// \param[in] arg2 A data expression.
2034 /// \param[in] arg3 A data expression.
2035 /// \return Application of \@div_double_doubleword to a number of arguments.
2036 inline
2037 application div_double_doubleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3)
2038 {
2039 return sort_machine_word::div_double_doubleword()(arg0, arg1, arg2, arg3);
2040 }
2041
2042 /// \brief Make an application of function symbol \@div_double_doubleword.
2043 /// \param[out] result The data expression where the \@div_double_doubleword expression is put.
2044
2045 /// \param[in] arg0 A data expression.
2046 /// \param[in] arg1 A data expression.
2047 /// \param[in] arg2 A data expression.
2048 /// \param[in] arg3 A data expression.
2049 inline
2050 void make_div_double_doubleword(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3)
2051 {
2052 make_application(result, sort_machine_word::div_double_doubleword(),arg0, arg1, arg2, arg3);
2053 }
2054
2055 /// \brief Recogniser for application of \@div_double_doubleword.
2056 /// \param e A data expression.
2057 /// \return true iff e is an application of function symbol div_double_doubleword to a
2058 /// number of arguments.
2059 inline
2061 {
2062 return is_application(e) && is_div_double_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2063 }
2064
2065 /// \brief The data expression of an application of the function symbol \@div_double_doubleword.
2066 /// \details This function is to be implemented manually.
2067 /// \param[out] result The data expression where the result is stored.
2068 /// \param[in] arg0 A data expression.
2069 /// \param[in] arg1 A data expression.
2070 /// \param[in] arg2 A data expression.
2071 /// \param[in] arg3 A data expression.
2072 /// \post result is the data expression corresponding to an application of \@div_double_doubleword.
2073 inline
2075
2076
2077 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2078 inline
2080 {
2081 assert(is_application(a1));
2082 const application& a=atermpp::down_cast<application>(a1);
2083 // assert(a.head()==div_double_doubleword());
2084 div_double_doubleword_manual_implementation(result, a[0], a[1], a[2], a[3]);
2085 }
2086
2087
2088 /// \brief Generate identifier \@div_triple_doubleword.
2089 /// \return Identifier \@div_triple_doubleword.
2090 inline
2091 const core::identifier_string& div_triple_doubleword_name()
2092 {
2093 static core::identifier_string div_triple_doubleword_name = core::identifier_string("@div_triple_doubleword");
2094 return div_triple_doubleword_name;
2095 }
2096
2097 /// \brief Constructor for function symbol \@div_triple_doubleword.
2098
2099 /// \return Function symbol div_triple_doubleword.
2100 inline
2102 {
2104 return div_triple_doubleword;
2105 }
2106
2107 /// \brief Recogniser for function \@div_triple_doubleword.
2108 /// \param e A data expression.
2109 /// \return true iff e is the function symbol matching \@div_triple_doubleword.
2110 inline
2112 {
2114 {
2115 return atermpp::down_cast<function_symbol>(e) == div_triple_doubleword();
2116 }
2117 return false;
2118 }
2119
2120 /// \brief Application of function symbol \@div_triple_doubleword.
2121
2122 /// \param[in] arg0 A data expression.
2123 /// \param[in] arg1 A data expression.
2124 /// \param[in] arg2 A data expression.
2125 /// \param[in] arg3 A data expression.
2126 /// \param[in] arg4 A data expression.
2127 /// \return Application of \@div_triple_doubleword to a number of arguments.
2128 inline
2129 application div_triple_doubleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3, const data_expression& arg4)
2130 {
2131 return sort_machine_word::div_triple_doubleword()(arg0, arg1, arg2, arg3, arg4);
2132 }
2133
2134 /// \brief Make an application of function symbol \@div_triple_doubleword.
2135 /// \param[out] result The data expression where the \@div_triple_doubleword expression is put.
2136
2137 /// \param[in] arg0 A data expression.
2138 /// \param[in] arg1 A data expression.
2139 /// \param[in] arg2 A data expression.
2140 /// \param[in] arg3 A data expression.
2141 /// \param[in] arg4 A data expression.
2142 inline
2143 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)
2144 {
2145 make_application(result, sort_machine_word::div_triple_doubleword(),arg0, arg1, arg2, arg3, arg4);
2146 }
2147
2148 /// \brief Recogniser for application of \@div_triple_doubleword.
2149 /// \param e A data expression.
2150 /// \return true iff e is an application of function symbol div_triple_doubleword to a
2151 /// number of arguments.
2152 inline
2154 {
2155 return is_application(e) && is_div_triple_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2156 }
2157
2158 /// \brief The data expression of an application of the function symbol \@div_triple_doubleword.
2159 /// \details This function is to be implemented manually.
2160 /// \param[out] result The data expression where the result is stored.
2161 /// \param[in] arg0 A data expression.
2162 /// \param[in] arg1 A data expression.
2163 /// \param[in] arg2 A data expression.
2164 /// \param[in] arg3 A data expression.
2165 /// \param[in] arg4 A data expression.
2166 /// \post result is the data expression corresponding to an application of \@div_triple_doubleword.
2167 inline
2168 void div_triple_doubleword_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3, const data_expression& arg4);
2169
2170
2171 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2172 inline
2174 {
2175 assert(is_application(a1));
2176 const application& a=atermpp::down_cast<application>(a1);
2177 // assert(a.head()==div_triple_doubleword());
2178 div_triple_doubleword_manual_implementation(result, a[0], a[1], a[2], a[3], a[4]);
2179 }
2180
2181
2182 /// \brief Generate identifier \@mod_doubleword.
2183 /// \return Identifier \@mod_doubleword.
2184 inline
2185 const core::identifier_string& mod_doubleword_name()
2186 {
2187 static core::identifier_string mod_doubleword_name = core::identifier_string("@mod_doubleword");
2188 return mod_doubleword_name;
2189 }
2190
2191 /// \brief Constructor for function symbol \@mod_doubleword.
2192
2193 /// \return Function symbol mod_doubleword.
2194 inline
2196 {
2198 return mod_doubleword;
2199 }
2200
2201 /// \brief Recogniser for function \@mod_doubleword.
2202 /// \param e A data expression.
2203 /// \return true iff e is the function symbol matching \@mod_doubleword.
2204 inline
2206 {
2208 {
2209 return atermpp::down_cast<function_symbol>(e) == mod_doubleword();
2210 }
2211 return false;
2212 }
2213
2214 /// \brief Application of function symbol \@mod_doubleword.
2215
2216 /// \param[in] arg0 A data expression.
2217 /// \param[in] arg1 A data expression.
2218 /// \param[in] arg2 A data expression.
2219 /// \return Application of \@mod_doubleword to a number of arguments.
2220 inline
2221 application mod_doubleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
2222 {
2223 return sort_machine_word::mod_doubleword()(arg0, arg1, arg2);
2224 }
2225
2226 /// \brief Make an application of function symbol \@mod_doubleword.
2227 /// \param[out] result The data expression where the \@mod_doubleword expression is put.
2228
2229 /// \param[in] arg0 A data expression.
2230 /// \param[in] arg1 A data expression.
2231 /// \param[in] arg2 A data expression.
2232 inline
2233 void make_mod_doubleword(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
2234 {
2235 make_application(result, sort_machine_word::mod_doubleword(),arg0, arg1, arg2);
2236 }
2237
2238 /// \brief Recogniser for application of \@mod_doubleword.
2239 /// \param e A data expression.
2240 /// \return true iff e is an application of function symbol mod_doubleword to a
2241 /// number of arguments.
2242 inline
2244 {
2245 return is_application(e) && is_mod_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2246 }
2247
2248 /// \brief The data expression of an application of the function symbol \@mod_doubleword.
2249 /// \details This function is to be implemented manually.
2250 /// \param[out] result The data expression where the result is stored.
2251 /// \param[in] arg0 A data expression.
2252 /// \param[in] arg1 A data expression.
2253 /// \param[in] arg2 A data expression.
2254 /// \post result is the data expression corresponding to an application of \@mod_doubleword.
2255 inline
2256 void mod_doubleword_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2);
2257
2258
2259 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2260 inline
2262 {
2263 assert(is_application(a1));
2264 const application& a=atermpp::down_cast<application>(a1);
2265 // assert(a.head()==mod_doubleword());
2266 mod_doubleword_manual_implementation(result, a[0], a[1], a[2]);
2267 }
2268
2269
2270 /// \brief Generate identifier \@sqrt_doubleword.
2271 /// \return Identifier \@sqrt_doubleword.
2272 inline
2273 const core::identifier_string& sqrt_doubleword_name()
2274 {
2275 static core::identifier_string sqrt_doubleword_name = core::identifier_string("@sqrt_doubleword");
2276 return sqrt_doubleword_name;
2277 }
2278
2279 /// \brief Constructor for function symbol \@sqrt_doubleword.
2280
2281 /// \return Function symbol sqrt_doubleword.
2282 inline
2284 {
2286 return sqrt_doubleword;
2287 }
2288
2289 /// \brief Recogniser for function \@sqrt_doubleword.
2290 /// \param e A data expression.
2291 /// \return true iff e is the function symbol matching \@sqrt_doubleword.
2292 inline
2294 {
2296 {
2297 return atermpp::down_cast<function_symbol>(e) == sqrt_doubleword();
2298 }
2299 return false;
2300 }
2301
2302 /// \brief Application of function symbol \@sqrt_doubleword.
2303
2304 /// \param[in] arg0 A data expression.
2305 /// \param[in] arg1 A data expression.
2306 /// \return Application of \@sqrt_doubleword to a number of arguments.
2307 inline
2308 application sqrt_doubleword(const data_expression& arg0, const data_expression& arg1)
2309 {
2310 return sort_machine_word::sqrt_doubleword()(arg0, arg1);
2311 }
2312
2313 /// \brief Make an application of function symbol \@sqrt_doubleword.
2314 /// \param[out] result The data expression where the \@sqrt_doubleword expression is put.
2315
2316 /// \param[in] arg0 A data expression.
2317 /// \param[in] arg1 A data expression.
2318 inline
2320 {
2321 make_application(result, sort_machine_word::sqrt_doubleword(),arg0, arg1);
2322 }
2323
2324 /// \brief Recogniser for application of \@sqrt_doubleword.
2325 /// \param e A data expression.
2326 /// \return true iff e is an application of function symbol sqrt_doubleword to a
2327 /// number of arguments.
2328 inline
2330 {
2331 return is_application(e) && is_sqrt_doubleword_function_symbol(atermpp::down_cast<application>(e).head());
2332 }
2333
2334 /// \brief The data expression of an application of the function symbol \@sqrt_doubleword.
2335 /// \details This function is to be implemented manually.
2336 /// \param[out] result The data expression where the result is stored.
2337 /// \param[in] arg0 A data expression.
2338 /// \param[in] arg1 A data expression.
2339 /// \post result is the data expression corresponding to an application of \@sqrt_doubleword.
2340 inline
2342
2343
2344 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2345 inline
2347 {
2348 assert(is_application(a1));
2349 const application& a=atermpp::down_cast<application>(a1);
2350 // assert(a.head()==sqrt_doubleword());
2352 }
2353
2354
2355 /// \brief Generate identifier \@sqrt_tripleword.
2356 /// \return Identifier \@sqrt_tripleword.
2357 inline
2358 const core::identifier_string& sqrt_tripleword_name()
2359 {
2360 static core::identifier_string sqrt_tripleword_name = core::identifier_string("@sqrt_tripleword");
2361 return sqrt_tripleword_name;
2362 }
2363
2364 /// \brief Constructor for function symbol \@sqrt_tripleword.
2365
2366 /// \return Function symbol sqrt_tripleword.
2367 inline
2369 {
2371 return sqrt_tripleword;
2372 }
2373
2374 /// \brief Recogniser for function \@sqrt_tripleword.
2375 /// \param e A data expression.
2376 /// \return true iff e is the function symbol matching \@sqrt_tripleword.
2377 inline
2379 {
2381 {
2382 return atermpp::down_cast<function_symbol>(e) == sqrt_tripleword();
2383 }
2384 return false;
2385 }
2386
2387 /// \brief Application of function symbol \@sqrt_tripleword.
2388
2389 /// \param[in] arg0 A data expression.
2390 /// \param[in] arg1 A data expression.
2391 /// \param[in] arg2 A data expression.
2392 /// \return Application of \@sqrt_tripleword to a number of arguments.
2393 inline
2394 application sqrt_tripleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
2395 {
2396 return sort_machine_word::sqrt_tripleword()(arg0, arg1, arg2);
2397 }
2398
2399 /// \brief Make an application of function symbol \@sqrt_tripleword.
2400 /// \param[out] result The data expression where the \@sqrt_tripleword expression is put.
2401
2402 /// \param[in] arg0 A data expression.
2403 /// \param[in] arg1 A data expression.
2404 /// \param[in] arg2 A data expression.
2405 inline
2406 void make_sqrt_tripleword(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
2407 {
2408 make_application(result, sort_machine_word::sqrt_tripleword(),arg0, arg1, arg2);
2409 }
2410
2411 /// \brief Recogniser for application of \@sqrt_tripleword.
2412 /// \param e A data expression.
2413 /// \return true iff e is an application of function symbol sqrt_tripleword to a
2414 /// number of arguments.
2415 inline
2417 {
2418 return is_application(e) && is_sqrt_tripleword_function_symbol(atermpp::down_cast<application>(e).head());
2419 }
2420
2421 /// \brief The data expression of an application of the function symbol \@sqrt_tripleword.
2422 /// \details This function is to be implemented manually.
2423 /// \param[out] result The data expression where the result is stored.
2424 /// \param[in] arg0 A data expression.
2425 /// \param[in] arg1 A data expression.
2426 /// \param[in] arg2 A data expression.
2427 /// \post result is the data expression corresponding to an application of \@sqrt_tripleword.
2428 inline
2430
2431
2432 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2433 inline
2435 {
2436 assert(is_application(a1));
2437 const application& a=atermpp::down_cast<application>(a1);
2438 // assert(a.head()==sqrt_tripleword());
2439 sqrt_tripleword_manual_implementation(result, a[0], a[1], a[2]);
2440 }
2441
2442
2443 /// \brief Generate identifier \@sqrt_tripleword_overflow.
2444 /// \return Identifier \@sqrt_tripleword_overflow.
2445 inline
2446 const core::identifier_string& sqrt_tripleword_overflow_name()
2447 {
2448 static core::identifier_string sqrt_tripleword_overflow_name = core::identifier_string("@sqrt_tripleword_overflow");
2449 return sqrt_tripleword_overflow_name;
2450 }
2451
2452 /// \brief Constructor for function symbol \@sqrt_tripleword_overflow.
2453
2454 /// \return Function symbol sqrt_tripleword_overflow.
2455 inline
2457 {
2459 return sqrt_tripleword_overflow;
2460 }
2461
2462 /// \brief Recogniser for function \@sqrt_tripleword_overflow.
2463 /// \param e A data expression.
2464 /// \return true iff e is the function symbol matching \@sqrt_tripleword_overflow.
2465 inline
2467 {
2469 {
2470 return atermpp::down_cast<function_symbol>(e) == sqrt_tripleword_overflow();
2471 }
2472 return false;
2473 }
2474
2475 /// \brief Application of function symbol \@sqrt_tripleword_overflow.
2476
2477 /// \param[in] arg0 A data expression.
2478 /// \param[in] arg1 A data expression.
2479 /// \param[in] arg2 A data expression.
2480 /// \return Application of \@sqrt_tripleword_overflow to a number of arguments.
2481 inline
2482 application sqrt_tripleword_overflow(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2)
2483 {
2484 return sort_machine_word::sqrt_tripleword_overflow()(arg0, arg1, arg2);
2485 }
2486
2487 /// \brief Make an application of function symbol \@sqrt_tripleword_overflow.
2488 /// \param[out] result The data expression where the \@sqrt_tripleword_overflow expression is put.
2489
2490 /// \param[in] arg0 A data expression.
2491 /// \param[in] arg1 A data expression.
2492 /// \param[in] arg2 A data expression.
2493 inline
2495 {
2496 make_application(result, sort_machine_word::sqrt_tripleword_overflow(),arg0, arg1, arg2);
2497 }
2498
2499 /// \brief Recogniser for application of \@sqrt_tripleword_overflow.
2500 /// \param e A data expression.
2501 /// \return true iff e is an application of function symbol sqrt_tripleword_overflow to a
2502 /// number of arguments.
2503 inline
2505 {
2506 return is_application(e) && is_sqrt_tripleword_overflow_function_symbol(atermpp::down_cast<application>(e).head());
2507 }
2508
2509 /// \brief The data expression of an application of the function symbol \@sqrt_tripleword_overflow.
2510 /// \details This function is to be implemented manually.
2511 /// \param[out] result The data expression where the result is stored.
2512 /// \param[in] arg0 A data expression.
2513 /// \param[in] arg1 A data expression.
2514 /// \param[in] arg2 A data expression.
2515 /// \post result is the data expression corresponding to an application of \@sqrt_tripleword_overflow.
2516 inline
2518
2519
2520 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2521 inline
2523 {
2524 assert(is_application(a1));
2525 const application& a=atermpp::down_cast<application>(a1);
2526 // assert(a.head()==sqrt_tripleword_overflow());
2528 }
2529
2530
2531 /// \brief Generate identifier \@sqrt_quadrupleword.
2532 /// \return Identifier \@sqrt_quadrupleword.
2533 inline
2534 const core::identifier_string& sqrt_quadrupleword_name()
2535 {
2536 static core::identifier_string sqrt_quadrupleword_name = core::identifier_string("@sqrt_quadrupleword");
2537 return sqrt_quadrupleword_name;
2538 }
2539
2540 /// \brief Constructor for function symbol \@sqrt_quadrupleword.
2541
2542 /// \return Function symbol sqrt_quadrupleword.
2543 inline
2545 {
2547 return sqrt_quadrupleword;
2548 }
2549
2550 /// \brief Recogniser for function \@sqrt_quadrupleword.
2551 /// \param e A data expression.
2552 /// \return true iff e is the function symbol matching \@sqrt_quadrupleword.
2553 inline
2555 {
2557 {
2558 return atermpp::down_cast<function_symbol>(e) == sqrt_quadrupleword();
2559 }
2560 return false;
2561 }
2562
2563 /// \brief Application of function symbol \@sqrt_quadrupleword.
2564
2565 /// \param[in] arg0 A data expression.
2566 /// \param[in] arg1 A data expression.
2567 /// \param[in] arg2 A data expression.
2568 /// \param[in] arg3 A data expression.
2569 /// \return Application of \@sqrt_quadrupleword to a number of arguments.
2570 inline
2571 application sqrt_quadrupleword(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3)
2572 {
2573 return sort_machine_word::sqrt_quadrupleword()(arg0, arg1, arg2, arg3);
2574 }
2575
2576 /// \brief Make an application of function symbol \@sqrt_quadrupleword.
2577 /// \param[out] result The data expression where the \@sqrt_quadrupleword expression is put.
2578
2579 /// \param[in] arg0 A data expression.
2580 /// \param[in] arg1 A data expression.
2581 /// \param[in] arg2 A data expression.
2582 /// \param[in] arg3 A data expression.
2583 inline
2584 void make_sqrt_quadrupleword(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3)
2585 {
2586 make_application(result, sort_machine_word::sqrt_quadrupleword(),arg0, arg1, arg2, arg3);
2587 }
2588
2589 /// \brief Recogniser for application of \@sqrt_quadrupleword.
2590 /// \param e A data expression.
2591 /// \return true iff e is an application of function symbol sqrt_quadrupleword to a
2592 /// number of arguments.
2593 inline
2595 {
2596 return is_application(e) && is_sqrt_quadrupleword_function_symbol(atermpp::down_cast<application>(e).head());
2597 }
2598
2599 /// \brief The data expression of an application of the function symbol \@sqrt_quadrupleword.
2600 /// \details This function is to be implemented manually.
2601 /// \param[out] result The data expression where the result is stored.
2602 /// \param[in] arg0 A data expression.
2603 /// \param[in] arg1 A data expression.
2604 /// \param[in] arg2 A data expression.
2605 /// \param[in] arg3 A data expression.
2606 /// \post result is the data expression corresponding to an application of \@sqrt_quadrupleword.
2607 inline
2608 void sqrt_quadrupleword_manual_implementation(data_expression& result, const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3);
2609
2610
2611 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2612 inline
2614 {
2615 assert(is_application(a1));
2616 const application& a=atermpp::down_cast<application>(a1);
2617 // assert(a.head()==sqrt_quadrupleword());
2618 sqrt_quadrupleword_manual_implementation(result, a[0], a[1], a[2], a[3]);
2619 }
2620
2621
2622 /// \brief Generate identifier \@sqrt_quadrupleword_overflow.
2623 /// \return Identifier \@sqrt_quadrupleword_overflow.
2624 inline
2625 const core::identifier_string& sqrt_quadrupleword_overflow_name()
2626 {
2627 static core::identifier_string sqrt_quadrupleword_overflow_name = core::identifier_string("@sqrt_quadrupleword_overflow");
2628 return sqrt_quadrupleword_overflow_name;
2629 }
2630
2631 /// \brief Constructor for function symbol \@sqrt_quadrupleword_overflow.
2632
2633 /// \return Function symbol sqrt_quadrupleword_overflow.
2634 inline
2636 {
2638 return sqrt_quadrupleword_overflow;
2639 }
2640
2641 /// \brief Recogniser for function \@sqrt_quadrupleword_overflow.
2642 /// \param e A data expression.
2643 /// \return true iff e is the function symbol matching \@sqrt_quadrupleword_overflow.
2644 inline
2646 {
2648 {
2649 return atermpp::down_cast<function_symbol>(e) == sqrt_quadrupleword_overflow();
2650 }
2651 return false;
2652 }
2653
2654 /// \brief Application of function symbol \@sqrt_quadrupleword_overflow.
2655
2656 /// \param[in] arg0 A data expression.
2657 /// \param[in] arg1 A data expression.
2658 /// \param[in] arg2 A data expression.
2659 /// \param[in] arg3 A data expression.
2660 /// \return Application of \@sqrt_quadrupleword_overflow to a number of arguments.
2661 inline
2662 application sqrt_quadrupleword_overflow(const data_expression& arg0, const data_expression& arg1, const data_expression& arg2, const data_expression& arg3)
2663 {
2664 return sort_machine_word::sqrt_quadrupleword_overflow()(arg0, arg1, arg2, arg3);
2665 }
2666
2667 /// \brief Make an application of function symbol \@sqrt_quadrupleword_overflow.
2668 /// \param[out] result The data expression where the \@sqrt_quadrupleword_overflow expression is put.
2669
2670 /// \param[in] arg0 A data expression.
2671 /// \param[in] arg1 A data expression.
2672 /// \param[in] arg2 A data expression.
2673 /// \param[in] arg3 A data expression.
2674 inline
2676 {
2677 make_application(result, sort_machine_word::sqrt_quadrupleword_overflow(),arg0, arg1, arg2, arg3);
2678 }
2679
2680 /// \brief Recogniser for application of \@sqrt_quadrupleword_overflow.
2681 /// \param e A data expression.
2682 /// \return true iff e is an application of function symbol sqrt_quadrupleword_overflow to a
2683 /// number of arguments.
2684 inline
2686 {
2687 return is_application(e) && is_sqrt_quadrupleword_overflow_function_symbol(atermpp::down_cast<application>(e).head());
2688 }
2689
2690 /// \brief The data expression of an application of the function symbol \@sqrt_quadrupleword_overflow.
2691 /// \details This function is to be implemented manually.
2692 /// \param[out] result The data expression where the result is stored.
2693 /// \param[in] arg0 A data expression.
2694 /// \param[in] arg1 A data expression.
2695 /// \param[in] arg2 A data expression.
2696 /// \param[in] arg3 A data expression.
2697 /// \post result is the data expression corresponding to an application of \@sqrt_quadrupleword_overflow.
2698 inline
2700
2701
2702 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2703 inline
2705 {
2706 assert(is_application(a1));
2707 const application& a=atermpp::down_cast<application>(a1);
2708 // assert(a.head()==sqrt_quadrupleword_overflow());
2710 }
2711
2712
2713 /// \brief Generate identifier \@pred_word.
2714 /// \return Identifier \@pred_word.
2715 inline
2716 const core::identifier_string& pred_word_name()
2717 {
2718 static core::identifier_string pred_word_name = core::identifier_string("@pred_word");
2719 return pred_word_name;
2720 }
2721
2722 /// \brief Constructor for function symbol \@pred_word.
2723
2724 /// \return Function symbol pred_word.
2725 inline
2727 {
2729 return pred_word;
2730 }
2731
2732 /// \brief Recogniser for function \@pred_word.
2733 /// \param e A data expression.
2734 /// \return true iff e is the function symbol matching \@pred_word.
2735 inline
2737 {
2739 {
2740 return atermpp::down_cast<function_symbol>(e) == pred_word();
2741 }
2742 return false;
2743 }
2744
2745 /// \brief Application of function symbol \@pred_word.
2746
2747 /// \param[in] arg0 A data expression.
2748 /// \return Application of \@pred_word to a number of arguments.
2749 inline
2750 application pred_word(const data_expression& arg0)
2751 {
2752 return sort_machine_word::pred_word()(arg0);
2753 }
2754
2755 /// \brief Make an application of function symbol \@pred_word.
2756 /// \param[out] result The data expression where the \@pred_word expression is put.
2757
2758 /// \param[in] arg0 A data expression.
2759 inline
2761 {
2762 make_application(result, sort_machine_word::pred_word(),arg0);
2763 }
2764
2765 /// \brief Recogniser for application of \@pred_word.
2766 /// \param e A data expression.
2767 /// \return true iff e is an application of function symbol pred_word to a
2768 /// number of arguments.
2769 inline
2771 {
2772 return is_application(e) && is_pred_word_function_symbol(atermpp::down_cast<application>(e).head());
2773 }
2774
2775 /// \brief The data expression of an application of the function symbol \@pred_word.
2776 /// \details This function is to be implemented manually.
2777 /// \param[out] result The data expression where the result is stored.
2778 /// \param[in] arg0 A data expression.
2779 /// \post result is the data expression corresponding to an application of \@pred_word.
2780 inline
2782
2783
2784 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2785 inline
2787 {
2788 assert(is_application(a1));
2789 const application& a=atermpp::down_cast<application>(a1);
2790 // assert(a.head()==pred_word());
2792 }
2793
2794
2795 /// \brief Generate identifier \@equal.
2796 /// \return Identifier \@equal.
2797 inline
2798 const core::identifier_string& equal_word_name()
2799 {
2800 static core::identifier_string equal_word_name = core::identifier_string("@equal");
2801 return equal_word_name;
2802 }
2803
2804 /// \brief Constructor for function symbol \@equal.
2805
2806 /// \return Function symbol equal_word.
2807 inline
2809 {
2811 return equal_word;
2812 }
2813
2814 /// \brief Recogniser for function \@equal.
2815 /// \param e A data expression.
2816 /// \return true iff e is the function symbol matching \@equal.
2817 inline
2819 {
2821 {
2822 return atermpp::down_cast<function_symbol>(e) == equal_word();
2823 }
2824 return false;
2825 }
2826
2827 /// \brief Application of function symbol \@equal.
2828
2829 /// \param[in] arg0 A data expression.
2830 /// \param[in] arg1 A data expression.
2831 /// \return Application of \@equal to a number of arguments.
2832 inline
2833 application equal_word(const data_expression& arg0, const data_expression& arg1)
2834 {
2835 return sort_machine_word::equal_word()(arg0, arg1);
2836 }
2837
2838 /// \brief Make an application of function symbol \@equal.
2839 /// \param[out] result The data expression where the \@equal expression is put.
2840
2841 /// \param[in] arg0 A data expression.
2842 /// \param[in] arg1 A data expression.
2843 inline
2844 void make_equal_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
2845 {
2846 make_application(result, sort_machine_word::equal_word(),arg0, arg1);
2847 }
2848
2849 /// \brief Recogniser for application of \@equal.
2850 /// \param e A data expression.
2851 /// \return true iff e is an application of function symbol equal_word to a
2852 /// number of arguments.
2853 inline
2855 {
2856 return is_application(e) && is_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
2857 }
2858
2859 /// \brief The data expression of an application of the function symbol \@equal.
2860 /// \details This function is to be implemented manually.
2861 /// \param[out] result The data expression where the result is stored.
2862 /// \param[in] arg0 A data expression.
2863 /// \param[in] arg1 A data expression.
2864 /// \post result is the data expression corresponding to an application of \@equal.
2865 inline
2867
2868
2869 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2870 inline
2872 {
2873 assert(is_application(a1));
2874 const application& a=atermpp::down_cast<application>(a1);
2875 // assert(a.head()==equal_word());
2877 }
2878
2879
2880 /// \brief Generate identifier \@not_equal.
2881 /// \return Identifier \@not_equal.
2882 inline
2883 const core::identifier_string& not_equal_word_name()
2884 {
2885 static core::identifier_string not_equal_word_name = core::identifier_string("@not_equal");
2886 return not_equal_word_name;
2887 }
2888
2889 /// \brief Constructor for function symbol \@not_equal.
2890
2891 /// \return Function symbol not_equal_word.
2892 inline
2894 {
2896 return not_equal_word;
2897 }
2898
2899 /// \brief Recogniser for function \@not_equal.
2900 /// \param e A data expression.
2901 /// \return true iff e is the function symbol matching \@not_equal.
2902 inline
2904 {
2906 {
2907 return atermpp::down_cast<function_symbol>(e) == not_equal_word();
2908 }
2909 return false;
2910 }
2911
2912 /// \brief Application of function symbol \@not_equal.
2913
2914 /// \param[in] arg0 A data expression.
2915 /// \param[in] arg1 A data expression.
2916 /// \return Application of \@not_equal to a number of arguments.
2917 inline
2918 application not_equal_word(const data_expression& arg0, const data_expression& arg1)
2919 {
2920 return sort_machine_word::not_equal_word()(arg0, arg1);
2921 }
2922
2923 /// \brief Make an application of function symbol \@not_equal.
2924 /// \param[out] result The data expression where the \@not_equal expression is put.
2925
2926 /// \param[in] arg0 A data expression.
2927 /// \param[in] arg1 A data expression.
2928 inline
2930 {
2931 make_application(result, sort_machine_word::not_equal_word(),arg0, arg1);
2932 }
2933
2934 /// \brief Recogniser for application of \@not_equal.
2935 /// \param e A data expression.
2936 /// \return true iff e is an application of function symbol not_equal_word to a
2937 /// number of arguments.
2938 inline
2940 {
2941 return is_application(e) && is_not_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
2942 }
2943
2944 /// \brief The data expression of an application of the function symbol \@not_equal.
2945 /// \details This function is to be implemented manually.
2946 /// \param[out] result The data expression where the result is stored.
2947 /// \param[in] arg0 A data expression.
2948 /// \param[in] arg1 A data expression.
2949 /// \post result is the data expression corresponding to an application of \@not_equal.
2950 inline
2952
2953
2954 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
2955 inline
2957 {
2958 assert(is_application(a1));
2959 const application& a=atermpp::down_cast<application>(a1);
2960 // assert(a.head()==not_equal_word());
2962 }
2963
2964
2965 /// \brief Generate identifier \@less.
2966 /// \return Identifier \@less.
2967 inline
2968 const core::identifier_string& less_word_name()
2969 {
2970 static core::identifier_string less_word_name = core::identifier_string("@less");
2971 return less_word_name;
2972 }
2973
2974 /// \brief Constructor for function symbol \@less.
2975
2976 /// \return Function symbol less_word.
2977 inline
2979 {
2981 return less_word;
2982 }
2983
2984 /// \brief Recogniser for function \@less.
2985 /// \param e A data expression.
2986 /// \return true iff e is the function symbol matching \@less.
2987 inline
2989 {
2991 {
2992 return atermpp::down_cast<function_symbol>(e) == less_word();
2993 }
2994 return false;
2995 }
2996
2997 /// \brief Application of function symbol \@less.
2998
2999 /// \param[in] arg0 A data expression.
3000 /// \param[in] arg1 A data expression.
3001 /// \return Application of \@less to a number of arguments.
3002 inline
3003 application less_word(const data_expression& arg0, const data_expression& arg1)
3004 {
3005 return sort_machine_word::less_word()(arg0, arg1);
3006 }
3007
3008 /// \brief Make an application of function symbol \@less.
3009 /// \param[out] result The data expression where the \@less expression is put.
3010
3011 /// \param[in] arg0 A data expression.
3012 /// \param[in] arg1 A data expression.
3013 inline
3014 void make_less_word(data_expression& result, const data_expression& arg0, const data_expression& arg1)
3015 {
3016 make_application(result, sort_machine_word::less_word(),arg0, arg1);
3017 }
3018
3019 /// \brief Recogniser for application of \@less.
3020 /// \param e A data expression.
3021 /// \return true iff e is an application of function symbol less_word to a
3022 /// number of arguments.
3023 inline
3025 {
3026 return is_application(e) && is_less_word_function_symbol(atermpp::down_cast<application>(e).head());
3027 }
3028
3029 /// \brief The data expression of an application of the function symbol \@less.
3030 /// \details This function is to be implemented manually.
3031 /// \param[out] result The data expression where the result is stored.
3032 /// \param[in] arg0 A data expression.
3033 /// \param[in] arg1 A data expression.
3034 /// \post result is the data expression corresponding to an application of \@less.
3035 inline
3037
3038
3039 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3040 inline
3042 {
3043 assert(is_application(a1));
3044 const application& a=atermpp::down_cast<application>(a1);
3045 // assert(a.head()==less_word());
3047 }
3048
3049
3050 /// \brief Generate identifier \@less_equal.
3051 /// \return Identifier \@less_equal.
3052 inline
3053 const core::identifier_string& less_equal_word_name()
3054 {
3055 static core::identifier_string less_equal_word_name = core::identifier_string("@less_equal");
3056 return less_equal_word_name;
3057 }
3058
3059 /// \brief Constructor for function symbol \@less_equal.
3060
3061 /// \return Function symbol less_equal_word.
3062 inline
3064 {
3066 return less_equal_word;
3067 }
3068
3069 /// \brief Recogniser for function \@less_equal.
3070 /// \param e A data expression.
3071 /// \return true iff e is the function symbol matching \@less_equal.
3072 inline
3074 {
3076 {
3077 return atermpp::down_cast<function_symbol>(e) == less_equal_word();
3078 }
3079 return false;
3080 }
3081
3082 /// \brief Application of function symbol \@less_equal.
3083
3084 /// \param[in] arg0 A data expression.
3085 /// \param[in] arg1 A data expression.
3086 /// \return Application of \@less_equal to a number of arguments.
3087 inline
3088 application less_equal_word(const data_expression& arg0, const data_expression& arg1)
3089 {
3090 return sort_machine_word::less_equal_word()(arg0, arg1);
3091 }
3092
3093 /// \brief Make an application of function symbol \@less_equal.
3094 /// \param[out] result The data expression where the \@less_equal expression is put.
3095
3096 /// \param[in] arg0 A data expression.
3097 /// \param[in] arg1 A data expression.
3098 inline
3100 {
3101 make_application(result, sort_machine_word::less_equal_word(),arg0, arg1);
3102 }
3103
3104 /// \brief Recogniser for application of \@less_equal.
3105 /// \param e A data expression.
3106 /// \return true iff e is an application of function symbol less_equal_word to a
3107 /// number of arguments.
3108 inline
3110 {
3111 return is_application(e) && is_less_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
3112 }
3113
3114 /// \brief The data expression of an application of the function symbol \@less_equal.
3115 /// \details This function is to be implemented manually.
3116 /// \param[out] result The data expression where the result is stored.
3117 /// \param[in] arg0 A data expression.
3118 /// \param[in] arg1 A data expression.
3119 /// \post result is the data expression corresponding to an application of \@less_equal.
3120 inline
3122
3123
3124 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3125 inline
3127 {
3128 assert(is_application(a1));
3129 const application& a=atermpp::down_cast<application>(a1);
3130 // assert(a.head()==less_equal_word());
3132 }
3133
3134
3135 /// \brief Generate identifier \@greater.
3136 /// \return Identifier \@greater.
3137 inline
3138 const core::identifier_string& greater_word_name()
3139 {
3140 static core::identifier_string greater_word_name = core::identifier_string("@greater");
3141 return greater_word_name;
3142 }
3143
3144 /// \brief Constructor for function symbol \@greater.
3145
3146 /// \return Function symbol greater_word.
3147 inline
3149 {
3151 return greater_word;
3152 }
3153
3154 /// \brief Recogniser for function \@greater.
3155 /// \param e A data expression.
3156 /// \return true iff e is the function symbol matching \@greater.
3157 inline
3159 {
3161 {
3162 return atermpp::down_cast<function_symbol>(e) == greater_word();
3163 }
3164 return false;
3165 }
3166
3167 /// \brief Application of function symbol \@greater.
3168
3169 /// \param[in] arg0 A data expression.
3170 /// \param[in] arg1 A data expression.
3171 /// \return Application of \@greater to a number of arguments.
3172 inline
3173 application greater_word(const data_expression& arg0, const data_expression& arg1)
3174 {
3175 return sort_machine_word::greater_word()(arg0, arg1);
3176 }
3177
3178 /// \brief Make an application of function symbol \@greater.
3179 /// \param[out] result The data expression where the \@greater expression is put.
3180
3181 /// \param[in] arg0 A data expression.
3182 /// \param[in] arg1 A data expression.
3183 inline
3185 {
3186 make_application(result, sort_machine_word::greater_word(),arg0, arg1);
3187 }
3188
3189 /// \brief Recogniser for application of \@greater.
3190 /// \param e A data expression.
3191 /// \return true iff e is an application of function symbol greater_word to a
3192 /// number of arguments.
3193 inline
3195 {
3196 return is_application(e) && is_greater_word_function_symbol(atermpp::down_cast<application>(e).head());
3197 }
3198
3199 /// \brief The data expression of an application of the function symbol \@greater.
3200 /// \details This function is to be implemented manually.
3201 /// \param[out] result The data expression where the result is stored.
3202 /// \param[in] arg0 A data expression.
3203 /// \param[in] arg1 A data expression.
3204 /// \post result is the data expression corresponding to an application of \@greater.
3205 inline
3207
3208
3209 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3210 inline
3212 {
3213 assert(is_application(a1));
3214 const application& a=atermpp::down_cast<application>(a1);
3215 // assert(a.head()==greater_word());
3217 }
3218
3219
3220 /// \brief Generate identifier \@greater_equal.
3221 /// \return Identifier \@greater_equal.
3222 inline
3223 const core::identifier_string& greater_equal_word_name()
3224 {
3225 static core::identifier_string greater_equal_word_name = core::identifier_string("@greater_equal");
3226 return greater_equal_word_name;
3227 }
3228
3229 /// \brief Constructor for function symbol \@greater_equal.
3230
3231 /// \return Function symbol greater_equal_word.
3232 inline
3234 {
3236 return greater_equal_word;
3237 }
3238
3239 /// \brief Recogniser for function \@greater_equal.
3240 /// \param e A data expression.
3241 /// \return true iff e is the function symbol matching \@greater_equal.
3242 inline
3244 {
3246 {
3247 return atermpp::down_cast<function_symbol>(e) == greater_equal_word();
3248 }
3249 return false;
3250 }
3251
3252 /// \brief Application of function symbol \@greater_equal.
3253
3254 /// \param[in] arg0 A data expression.
3255 /// \param[in] arg1 A data expression.
3256 /// \return Application of \@greater_equal to a number of arguments.
3257 inline
3258 application greater_equal_word(const data_expression& arg0, const data_expression& arg1)
3259 {
3260 return sort_machine_word::greater_equal_word()(arg0, arg1);
3261 }
3262
3263 /// \brief Make an application of function symbol \@greater_equal.
3264 /// \param[out] result The data expression where the \@greater_equal expression is put.
3265
3266 /// \param[in] arg0 A data expression.
3267 /// \param[in] arg1 A data expression.
3268 inline
3270 {
3271 make_application(result, sort_machine_word::greater_equal_word(),arg0, arg1);
3272 }
3273
3274 /// \brief Recogniser for application of \@greater_equal.
3275 /// \param e A data expression.
3276 /// \return true iff e is an application of function symbol greater_equal_word to a
3277 /// number of arguments.
3278 inline
3280 {
3281 return is_application(e) && is_greater_equal_word_function_symbol(atermpp::down_cast<application>(e).head());
3282 }
3283
3284 /// \brief The data expression of an application of the function symbol \@greater_equal.
3285 /// \details This function is to be implemented manually.
3286 /// \param[out] result The data expression where the result is stored.
3287 /// \param[in] arg0 A data expression.
3288 /// \param[in] arg1 A data expression.
3289 /// \post result is the data expression corresponding to an application of \@greater_equal.
3290 inline
3292
3293
3294 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3295 inline
3297 {
3298 assert(is_application(a1));
3299 const application& a=atermpp::down_cast<application>(a1);
3300 // assert(a.head()==greater_equal_word());
3302 }
3303
3304
3305 /// \brief Generate identifier \@rightmost_bit.
3306 /// \return Identifier \@rightmost_bit.
3307 inline
3308 const core::identifier_string& rightmost_bit_name()
3309 {
3310 static core::identifier_string rightmost_bit_name = core::identifier_string("@rightmost_bit");
3311 return rightmost_bit_name;
3312 }
3313
3314 /// \brief Constructor for function symbol \@rightmost_bit.
3315
3316 /// \return Function symbol rightmost_bit.
3317 inline
3319 {
3321 return rightmost_bit;
3322 }
3323
3324 /// \brief Recogniser for function \@rightmost_bit.
3325 /// \param e A data expression.
3326 /// \return true iff e is the function symbol matching \@rightmost_bit.
3327 inline
3329 {
3331 {
3332 return atermpp::down_cast<function_symbol>(e) == rightmost_bit();
3333 }
3334 return false;
3335 }
3336
3337 /// \brief Application of function symbol \@rightmost_bit.
3338
3339 /// \param[in] arg0 A data expression.
3340 /// \return Application of \@rightmost_bit to a number of arguments.
3341 inline
3342 application rightmost_bit(const data_expression& arg0)
3343 {
3344 return sort_machine_word::rightmost_bit()(arg0);
3345 }
3346
3347 /// \brief Make an application of function symbol \@rightmost_bit.
3348 /// \param[out] result The data expression where the \@rightmost_bit expression is put.
3349
3350 /// \param[in] arg0 A data expression.
3351 inline
3353 {
3354 make_application(result, sort_machine_word::rightmost_bit(),arg0);
3355 }
3356
3357 /// \brief Recogniser for application of \@rightmost_bit.
3358 /// \param e A data expression.
3359 /// \return true iff e is an application of function symbol rightmost_bit to a
3360 /// number of arguments.
3361 inline
3363 {
3364 return is_application(e) && is_rightmost_bit_function_symbol(atermpp::down_cast<application>(e).head());
3365 }
3366
3367 /// \brief The data expression of an application of the function symbol \@rightmost_bit.
3368 /// \details This function is to be implemented manually.
3369 /// \param[out] result The data expression where the result is stored.
3370 /// \param[in] arg0 A data expression.
3371 /// \post result is the data expression corresponding to an application of \@rightmost_bit.
3372 inline
3374
3375
3376 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3377 inline
3379 {
3380 assert(is_application(a1));
3381 const application& a=atermpp::down_cast<application>(a1);
3382 // assert(a.head()==rightmost_bit());
3384 }
3385
3386
3387 /// \brief Generate identifier \@shift_right.
3388 /// \return Identifier \@shift_right.
3389 inline
3390 const core::identifier_string& shift_right_name()
3391 {
3392 static core::identifier_string shift_right_name = core::identifier_string("@shift_right");
3393 return shift_right_name;
3394 }
3395
3396 /// \brief Constructor for function symbol \@shift_right.
3397
3398 /// \return Function symbol shift_right.
3399 inline
3401 {
3403 return shift_right;
3404 }
3405
3406 /// \brief Recogniser for function \@shift_right.
3407 /// \param e A data expression.
3408 /// \return true iff e is the function symbol matching \@shift_right.
3409 inline
3411 {
3413 {
3414 return atermpp::down_cast<function_symbol>(e) == shift_right();
3415 }
3416 return false;
3417 }
3418
3419 /// \brief Application of function symbol \@shift_right.
3420
3421 /// \param[in] arg0 A data expression.
3422 /// \param[in] arg1 A data expression.
3423 /// \return Application of \@shift_right to a number of arguments.
3424 inline
3425 application shift_right(const data_expression& arg0, const data_expression& arg1)
3426 {
3427 return sort_machine_word::shift_right()(arg0, arg1);
3428 }
3429
3430 /// \brief Make an application of function symbol \@shift_right.
3431 /// \param[out] result The data expression where the \@shift_right expression is put.
3432
3433 /// \param[in] arg0 A data expression.
3434 /// \param[in] arg1 A data expression.
3435 inline
3436 void make_shift_right(data_expression& result, const data_expression& arg0, const data_expression& arg1)
3437 {
3438 make_application(result, sort_machine_word::shift_right(),arg0, arg1);
3439 }
3440
3441 /// \brief Recogniser for application of \@shift_right.
3442 /// \param e A data expression.
3443 /// \return true iff e is an application of function symbol shift_right to a
3444 /// number of arguments.
3445 inline
3447 {
3448 return is_application(e) && is_shift_right_function_symbol(atermpp::down_cast<application>(e).head());
3449 }
3450
3451 /// \brief The data expression of an application of the function symbol \@shift_right.
3452 /// \details This function is to be implemented manually.
3453 /// \param[out] result The data expression where the result is stored.
3454 /// \param[in] arg0 A data expression.
3455 /// \param[in] arg1 A data expression.
3456 /// \post result is the data expression corresponding to an application of \@shift_right.
3457 inline
3459
3460
3461 /// \brief Application of a function that is user defined instead of by rewrite rules. It does not have sort parameters.
3462 inline
3464 {
3465 assert(is_application(a1));
3466 const application& a=atermpp::down_cast<application>(a1);
3467 // assert(a.head()==shift_right());
3469 }
3470
3471 /// \brief Give all system defined mappings for machine_word
3472 /// \return All system defined mappings for machine_word
3473 inline
3475 {
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());
3517 return result;
3518 }
3519
3520 /// \brief Give all system defined mappings and constructors for machine_word
3521 /// \return All system defined mappings for machine_word
3522 inline
3524 {
3525 function_symbol_vector result=machine_word_generate_functions_code();
3526 for(const function_symbol& f: machine_word_generate_constructors_code())
3527 {
3528 result.push_back(f);
3529 }
3530 return result;
3531 }
3532
3533 /// \brief Give all system defined mappings that can be used in mCRL2 specs for machine_word
3534 /// \return All system defined mappings for that can be used in mCRL2 specificationis machine_word
3535 inline
3537 {
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());
3579 return result;
3580 }
3581
3582
3583 // The typedef is the sort that maps a function symbol to an function that rewrites it as well as a string of a function that can be used to implement it
3584 using implementation_map = std::map<function_symbol,std::pair<std::function<void(data_expression&, const data_expression&)>, std::string> >;
3585 /// \brief Give all system defined mappings that are to be implemented in C++ code for machine_word
3586 /// \return A mapping from C++ implementable function symbols to system defined mappings implemented in C++ code for machine_word
3587 inline
3589 {
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");
3631 return result;
3632 }
3633 ///\brief Function for projecting out argument.
3634 /// arg from an application.
3635 /// \param e A data expression.
3636 /// \pre arg is defined for e.
3637 /// \return The argument of e that corresponds to arg.
3638 inline
3640 {
3642 return atermpp::down_cast<application>(e)[0];
3643 }
3644
3645 ///\brief Function for projecting out argument.
3646 /// left from an application.
3647 /// \param e A data expression.
3648 /// \pre left is defined for e.
3649 /// \return The argument of e that corresponds to left.
3650 inline
3652 {
3654 return atermpp::down_cast<application>(e)[0];
3655 }
3656
3657 ///\brief Function for projecting out argument.
3658 /// right from an application.
3659 /// \param e A data expression.
3660 /// \pre right is defined for e.
3661 /// \return The argument of e that corresponds to right.
3662 inline
3664 {
3666 return atermpp::down_cast<application>(e)[1];
3667 }
3668
3669 ///\brief Function for projecting out argument.
3670 /// arg1 from an application.
3671 /// \param e A data expression.
3672 /// \pre arg1 is defined for e.
3673 /// \return The argument of e that corresponds to arg1.
3674 inline
3676 {
3678 return atermpp::down_cast<application>(e)[0];
3679 }
3680
3681 ///\brief Function for projecting out argument.
3682 /// arg2 from an application.
3683 /// \param e A data expression.
3684 /// \pre arg2 is defined for e.
3685 /// \return The argument of e that corresponds to arg2.
3686 inline
3688 {
3690 return atermpp::down_cast<application>(e)[1];
3691 }
3692
3693 ///\brief Function for projecting out argument.
3694 /// arg3 from an application.
3695 /// \param e A data expression.
3696 /// \pre arg3 is defined for e.
3697 /// \return The argument of e that corresponds to arg3.
3698 inline
3700 {
3702 return atermpp::down_cast<application>(e)[2];
3703 }
3704
3705 ///\brief Function for projecting out argument.
3706 /// arg4 from an application.
3707 /// \param e A data expression.
3708 /// \pre arg4 is defined for e.
3709 /// \return The argument of e that corresponds to arg4.
3710 inline
3712 {
3714 return atermpp::down_cast<application>(e)[3];
3715 }
3716
3717 ///\brief Function for projecting out argument.
3718 /// arg5 from an application.
3719 /// \param e A data expression.
3720 /// \pre arg5 is defined for e.
3721 /// \return The argument of e that corresponds to arg5.
3722 inline
3724 {
3726 return atermpp::down_cast<application>(e)[4];
3727 }
3728
3729 /// \brief Give all system defined equations for machine_word
3730 /// \return All system defined equations for sort machine_word
3731 inline
3733 {
3734 variable vw1("w1",machine_word());
3735 variable vw2("w2",machine_word());
3736
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));
3741 return result;
3742 }
3743
3744} // namespace mcrl2::data::sort_machine_word
3745
3746#include "mcrl2/data/detail/machine_word.h" // This file contains the manual implementations of rewrite functions.
3747#endif // MCRL2_DATA_MACHINE_WORD_H
A unordered_map class in which aterms can be stored.
\brief A basic sort
Definition basic_sort.h:25
basic_sort(const core::identifier_string &name)
\brief Constructor Z14.
Definition basic_sort.h:41
basic_sort(const atermpp::aterm &term)
Definition basic_sort.h:34
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.
\brief A function symbol
function_symbol(const core::identifier_string &name, const sort_expression &sort)
Constructor.
\brief A machine number
\brief A sort expression
\brief A data variable
Definition variable.h:25
Namespace for system defined sort bool_.
Definition bool.h:29
const basic_sort & bool_()
Constructor for sort expression Bool.
Definition bool.h:41
const function_symbol & false_()
Constructor for function symbol false.
Definition bool.h:106
const function_symbol & true_()
Constructor for function symbol true.
Definition bool.h:74
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.