mCRL2
Loading...
Searching...
No Matches
equal_sorts.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_EQUAL_SORTS_H
13#define MCRL2_DATA_DETAIL_EQUAL_SORTS_H
14
16
17namespace mcrl2 {
18
19namespace data {
20
21namespace detail {
22
27inline
29{
30 if (v.size() != w.size())
31 {
32 return false;
33 }
36 for (; i != v.end(); ++i, ++j)
37 {
38 if (!data_spec.equal_sorts(i->sort(), j->sort()))
39 {
40 return false;
41 }
42 }
43 return true;
44}
45
46} // namespace detail
47
48} // namespace data
49
50} // namespace mcrl2
51
52#endif // MCRL2_DATA_DETAIL_EQUAL_SORTS_H
Iterator for term_list.
size_type size() const
Returns the size of the term_list.
Definition aterm_list.h:256
const_iterator end() const
Returns a const_iterator pointing to the end of the term_list.
Definition aterm_list.h:282
const_iterator begin() const
Returns a const_iterator pointing to the beginning of the term_list.
Definition aterm_list.h:275
bool equal_sorts(sort_expression const &s1, sort_expression const &s2) const
Checks whether two sort expressions represent the same sort.
The class data_specification.
bool equal_sorts(const data::variable_list &v, const data::data_expression_list &w, const data::data_specification &data_spec)
Checks if the sorts of the variables/expressions in both lists are equal.
Definition equal_sorts.h:28
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72