mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Common: Add chromosomeLengths()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user