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

Method declareVariable

libsmtutil/SMTLib2Interface.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void SMTLib2Interface::declareVariable(std::string const& _name, SortPointer const& _sort)
86{
87 smtAssert(_sort);
88 if (_sort->kind == Kind::Function)
89 declareFunction(_name, _sort);
90 else if (!m_context.isDeclared(_name))
91 {
92 m_context.declare(_name, _sort);
93 m_commands.declareVariable(_name, toSmtLibSort(_sort));
94 }
95}
96
97void SMTLib2Interface::declareFunction(std::string const& _name, SortPointer const& _sort)
98{

Callers

nothing calls this directly

Calls 2

isDeclaredMethod · 0.80
declareMethod · 0.45

Tested by

no test coverage detected