mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Add --show-only-top-chromosome and --hide-round options
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <tools/yulPhaser/Population.h>
|
||||
#include <tools/yulPhaser/ProgramCache.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
|
||||
@@ -48,6 +49,8 @@ public:
|
||||
std::optional<size_t> minChromosomeLength = std::nullopt;
|
||||
std::optional<size_t> maxChromosomeLength = std::nullopt;
|
||||
bool showInitialPopulation = false;
|
||||
bool showOnlyTopChromosome = false;
|
||||
bool showRoundInfo = true;
|
||||
};
|
||||
|
||||
AlgorithmRunner(
|
||||
@@ -67,6 +70,9 @@ public:
|
||||
Population const& population() const { return m_population; }
|
||||
|
||||
private:
|
||||
void printRoundSummary(
|
||||
size_t _round
|
||||
) const;
|
||||
void printInitialPopulation() const;
|
||||
void populationAutosave() const;
|
||||
void randomiseDuplicates();
|
||||
|
||||
Reference in New Issue
Block a user