File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ class typet;
23
23
24
24
typedef std::unordered_set<irep_idt> find_symbols_sett;
25
25
26
+ // / Add to the set \p dest the sub-expressions of \p src with id ID_symbol or
27
+ // / ID_next_symbol
26
28
void find_symbols (
27
29
const exprt &src,
28
30
find_symbols_sett &dest);
@@ -40,6 +42,8 @@ find_symbols_sett find_symbols(iteratort begin, iteratort end)
40
42
return result;
41
43
}
42
44
45
+ // / Add to the set \p dest the sub-expressions of \p src with id ID_symbol if
46
+ // / \p current is true, and ID_next_symbol if \p next is true
43
47
void find_symbols (
44
48
const exprt &src,
45
49
find_symbols_sett &dest,
@@ -52,12 +56,15 @@ void find_symbols(
52
56
const exprt &src,
53
57
std::set<exprt> &dest);
54
58
59
+ // / Find sub expressions with id ID_symbol
55
60
void find_symbols (
56
61
const exprt &src,
57
62
std::set<symbol_exprt> &dest);
58
63
64
+ // / Find sub expressions with id ID_symbol
59
65
std::set<symbol_exprt> find_symbols (const exprt &src);
60
66
67
+ // / \return true if one of the symbols in \p src is present in \p symbols
61
68
bool has_symbol (
62
69
const exprt &src,
63
70
const find_symbols_sett &symbols);
You can’t perform that action at this time.
0 commit comments