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

Method run

tools/yulPhaser/AlgorithmRunner.cpp:31–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace solidity::phaser;
30
31void AlgorithmRunner::run(GeneticAlgorithm& _algorithm)
32{
33 populationAutosave();
34 printInitialPopulation();
35 cacheClear();
36
37 clock_t totalTimeStart = clock();
38 for (size_t round = 0; !m_options.maxRounds.has_value() || round < m_options.maxRounds.value(); ++round)
39 {
40 clock_t roundTimeStart = clock();
41 cacheStartRound(round + 1);
42
43 m_population = _algorithm.runNextRound(m_population);
44 randomiseDuplicates();
45
46 printRoundSummary(round, roundTimeStart, totalTimeStart);
47 printCacheStats();
48 populationAutosave();
49 }
50}
51
52void AlgorithmRunner::printRoundSummary(
53 size_t _round,

Callers 3

parseCommandLineMethod · 0.45
runAlgorithmMethod · 0.45

Calls 2

valueMethod · 0.45
runNextRoundMethod · 0.45

Tested by

no test coverage detected