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

Function functionBodySort

libsolidity/formal/PredicateSort.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92SortPointer functionBodySort(FunctionDefinition const& _function, ContractDefinition const* _contract, SymbolicState& _state)
93{
94 auto fSort = std::dynamic_pointer_cast<FunctionSort>(functionSort(_function, _contract, _state));
95 solAssert(fSort, "");
96
97 auto smtSort = [](auto _var) { return smt::smtSortAbstractFunction(*_var->type()); };
98 return std::make_shared<FunctionSort>(
99 fSort->domain + applyMap(SMTEncoder::localVariablesIncludingModifiers(_function, _contract), smtSort),
100 SortProvider::boolSort
101 );
102}
103
104SortPointer arity0FunctionSort()
105{

Callers 1

sortMethod · 0.85

Calls 4

functionSortFunction · 0.85
smtSortAbstractFunctionFunction · 0.85
applyMapFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected