diff --git a/tools/yulPhaser/FitnessMetrics.h b/tools/yulPhaser/FitnessMetrics.h index 7fac5f080..95608e89b 100644 --- a/tools/yulPhaser/FitnessMetrics.h +++ b/tools/yulPhaser/FitnessMetrics.h @@ -57,6 +57,9 @@ public: m_program(std::move(_program)), m_repetitionCount(_repetitionCount) {} + Program const& program() const { return m_program; } + size_t repetitionCount() const { return m_repetitionCount; } + size_t evaluate(Chromosome const& _chromosome) const override; private: diff --git a/tools/yulPhaser/GeneticAlgorithms.h b/tools/yulPhaser/GeneticAlgorithms.h index b9ccb4302..a2a7484d6 100644 --- a/tools/yulPhaser/GeneticAlgorithms.h +++ b/tools/yulPhaser/GeneticAlgorithms.h @@ -81,6 +81,8 @@ public: assert(_options.isValid()); } + Options const& options() const { return m_options; } + Population runNextRound(Population _population) override; private: @@ -129,6 +131,8 @@ public: assert(_options.isValid()); } + Options const& options() const { return m_options; } + Population runNextRound(Population _population) override; private: