22 const symbolt *found_symbol = symbol_table.
lookup(symbol_identifier);
23 INFO(
"Looking for symbol: " +
id2string(symbol_identifier));
24 REQUIRE(found_symbol !=
nullptr);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
const symbolt * lookup(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
const std::string & id2string(const irep_idt &d)
const symbolt & require_symbol_exists(const symbol_tablet &symbol_table, const irep_idt &symbol_identifier)
Verify whether a given identifier is found in the symbol table and return it.
Helper functions for getting symbols from the symbol table during unit tests.