10
10
#ifndef CPROVER_UTIL_FIND_SYMBOLS_H
11
11
#define CPROVER_UTIL_FIND_SYMBOLS_H
12
12
13
- #include " deprecate.h"
14
13
#include " irep.h"
15
14
16
15
#include < algorithm>
@@ -31,29 +30,10 @@ bool has_symbol_expr(
31
30
const irep_idt &identifier,
32
31
bool include_bound_symbols);
33
32
34
- DEPRECATED (SINCE(2022 , 3 , 14 , " use find_symbols" ))
35
- // / Add to the set \p dest the sub-expressions of \p src with id ID_symbol or
36
- // / ID_next_symbol
37
- void find_symbols_or_nexts(const exprt &src, find_symbols_sett &dest);
38
-
39
33
// / Add to the set \p dest the sub-expressions of \p src with id ID_symbol, for
40
34
// / both free and bound variables.
41
35
void find_symbols (const exprt &src, find_symbols_sett &dest);
42
36
43
- // / \return set of sub-expressions of the expressions contained in the range
44
- // / defined by \p begin and \p end which have id ID_symbol or ID_next_symbol
45
- template <typename iteratort>
46
- DEPRECATED (SINCE(2022 , 3 , 14 , " use find_symbols and a local iteration" ))
47
- find_symbols_sett find_symbols_or_nexts(iteratort begin, iteratort end)
48
- {
49
- static_assert (
50
- std::is_base_of<exprt, typename iteratort::value_type>::value,
51
- " find_symbols takes exprt iterators as arguments" );
52
- find_symbols_sett result;
53
- std::for_each (begin, end, [&](const exprt &e) { find_symbols (e, result); });
54
- return result;
55
- }
56
-
57
37
// / Find sub expressions with id ID_symbol, considering both free and bound
58
38
// / variables.
59
39
void find_symbols (
@@ -78,12 +58,6 @@ inline find_symbols_sett find_symbol_identifiers(const exprt &src)
78
58
return identifiers;
79
59
}
80
60
81
- DEPRECATED (SINCE(2022 , 3 , 14 , " use has_symbol_expr(exprt, irep_idt, bool)" ))
82
- // / \return true if one of the symbols in \p src is present in \p symbols
83
- bool has_symbol(
84
- const exprt &src,
85
- const find_symbols_sett &symbols);
86
-
87
61
// / Collect all type tags contained in \p src and add them to \p dest.
88
62
void find_type_symbols (
89
63
const typet &src,
0 commit comments