[yul-phaser] Common: Add chromosomeLengths()

This commit is contained in:
Kamil Śliwak
2020-02-18 19:38:55 +01:00
parent 837ea96da7
commit 38f79a1761
3 changed files with 30 additions and 0 deletions
+9
View File
@@ -25,6 +25,15 @@ using namespace std;
using namespace solidity;
using namespace solidity::yul;
vector<size_t> phaser::test::chromosomeLengths(Population const& _population)
{
vector<size_t> lengths;
for (auto const& individual: _population.individuals())
lengths.push_back(individual.chromosome.length());
return lengths;
}
map<string, size_t> phaser::test::enumerateOptmisationSteps()
{
map<string, size_t> stepIndices;