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

Method resetReferences

libsolidity/formal/SMTEncoder.cpp:2461–2473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2459}
2460
2461void SMTEncoder::resetReferences(VariableDeclaration const& _varDecl)
2462{
2463 m_context.resetVariables([&](VariableDeclaration const& _var) {
2464 if (_var == _varDecl)
2465 return false;
2466
2467 // If both are state variables no need to clear knowledge.
2468 if (_var.isStateVariable() && _varDecl.isStateVariable())
2469 return false;
2470
2471 return sameTypeOrSubtype(_var.type(), _varDecl.type());
2472 });
2473}
2474
2475void SMTEncoder::resetReferences(Type const* _type)
2476{

Callers

nothing calls this directly

Calls 3

resetVariablesMethod · 0.80
isStateVariableMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected