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

Method initFunction

libsolidity/formal/SMTEncoder.cpp:762–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void SMTEncoder::initFunction(FunctionDefinition const& _function)
763{
764 solAssert(m_callStack.empty(), "");
765 solAssert(m_currentContract, "");
766 m_context.pushSolver();
767 m_pathConditions.clear();
768 pushCallStack({&_function, nullptr});
769 m_uninterpretedTerms.clear();
770 createStateVariables(*m_currentContract);
771 createLocalVariables(_function);
772 m_arrayAssignmentHappened = false;
773 clearIndices(m_currentContract, &_function);
774 m_checked = true;
775}
776
777void SMTEncoder::visitAssert(FunctionCall const& _funCall)
778{

Callers

nothing calls this directly

Calls 3

pushSolverMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected