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

Method startRound

tools/yulPhaser/ProgramCache.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void ProgramCache::startRound(std::size_t _roundNumber)
94{
95 assert(_roundNumber > m_currentRound);
96 m_currentRound = _roundNumber;
97
98 for (auto pair = m_entries.begin(); pair != m_entries.end();)
99 {
100 assert(pair->second.roundNumber < m_currentRound);
101
102 if (pair->second.roundNumber < m_currentRound - 1)
103 m_entries.erase(pair++);
104 else
105 ++pair;
106 }
107}
108
109void ProgramCache::clear()
110{

Callers 2

cacheStartRoundMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected