MCPcopy Create free account
hub / github.com/argotorg/solidity / createGlobalSymbol

Method createGlobalSymbol

libsolidity/formal/EncodingContext.cpp:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177bool EncodingContext::createGlobalSymbol(std::string const& _name, frontend::Expression const& _expr)
178{
179 solAssert(!knownGlobalSymbol(_name), "");
180 auto result = newSymbolicVariable(*_expr.annotation().type, _name, *this);
181 m_globalContext.emplace(_name, result.second);
182 setUnknownValue(*result.second);
183 return result.first;
184}
185
186bool EncodingContext::knownGlobalSymbol(std::string const& _var) const
187{

Callers 1

defineGlobalVariableMethod · 0.80

Calls 1

newSymbolicVariableFunction · 0.85

Tested by

no test coverage detected