mCRL2
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1// Author(s): Wieger Wesselink
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//
11
12#ifndef MCRL2_DATA_DETAIL_IO_H
13#define MCRL2_DATA_DETAIL_IO_H
14
17
19
20namespace mcrl2 {
21
22namespace data {
23
24namespace detail {
25
26// transforms DataVarId to DataVarIdNoIndex
27// transforms OpId to OpIdNoIndex
29{
31 {
33 }
34 return x;
35}
36
37// transforms DataVarIdNoIndex to DataVarId
38// transforms OpIdNoIndex to OpId
40{
41 if (x.function() == core::detail::function_symbol_DataVarIdNoIndex()) // Obsolete. Remove in say 2025.
42 {
43 const data::variable& y = reinterpret_cast<const data::variable&>(x);
44 return variable(y.name(), y.sort());
45 }
47 {
48 const data::function_symbol& y = reinterpret_cast<const data::function_symbol&>(x);
49 return function_symbol(y.name(), y.sort());
50 }
51 return x;
52}
53
54inline
56{
58}
59
60inline
62{
64}
65
66} // namespace detail
67
68} // namespace data
69
70} // namespace mcrl2
71
72#endif // MCRL2_DATA_DETAIL_IO_H
Algorithms for ATerms.
const_iterator end() const
Returns a const_iterator pointing past the last argument.
Definition aterm.h:172
const_iterator begin() const
Returns an iterator pointing to the first argument.
Definition aterm.h:165
const function_symbol & function() const
Returns the function symbol belonging to an aterm.
Definition aterm.h:144
\brief A function symbol
const core::identifier_string & name() const
const sort_expression & sort() const
\brief A data variable
Definition variable.h:28
const core::identifier_string & name() const
Definition variable.h:38
const sort_expression & sort() const
Definition variable.h:43
add your file description here.
Term bottom_up_replace(Term t, ReplaceFunction r)
Replaces each subterm x of t by r(x). The ReplaceFunction r has the following signature: aterm x; ate...
Definition algorithm.h:276
const atermpp::function_symbol & function_symbol_OpIdNoIndex()
const atermpp::function_symbol & function_symbol_DataVarIdNoIndex()
const atermpp::function_symbol & function_symbol_OpId()
atermpp::aterm add_index(const atermpp::aterm &x)
Definition io.h:55
atermpp::aterm remove_index(const atermpp::aterm &x)
Definition io.h:61
atermpp::aterm remove_index_impl(const atermpp::aterm &x)
Definition io.h:28
atermpp::aterm add_index_impl(const atermpp::aterm &x)
Definition io.h:39
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72