Skip to content

Commit 3abe34e

Browse files
Use find_symbol_identifiers in expr2c
Instead of find_symbol_or_nexts. Language front-end should not have to deal with "next symbols".
1 parent 631e1d3 commit 3abe34e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ansi-c/expr2c.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ static std::string clean_identifier(const irep_idt &id)
112112

113113
void expr2ct::get_shorthands(const exprt &expr)
114114
{
115-
find_symbols_sett symbols;
116-
find_symbols_or_nexts(expr, symbols);
115+
const std::unordered_set<irep_idt> symbols = find_symbol_identifiers(expr);
117116

118117
// avoid renaming parameters, if possible
119118
for(const auto &symbol_id : symbols)

0 commit comments

Comments
 (0)