mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Population: Print individuals in a more compact way
This commit is contained in:
parent
10e8d3616c
commit
3f524ccfe5
@ -76,8 +76,7 @@ protected:
|
|||||||
string individualPattern(Individual const& individual) const
|
string individualPattern(Individual const& individual) const
|
||||||
{
|
{
|
||||||
ostringstream output;
|
ostringstream output;
|
||||||
output << "Fitness:" << individual.fitness << ",";
|
output << individual.fitness << individual.chromosome;
|
||||||
output << "optimisations:" << individual.chromosome;
|
|
||||||
return output.str();
|
return output.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,8 +43,7 @@ ostream& operator<<(ostream& _stream, Population const& _population);
|
|||||||
|
|
||||||
ostream& phaser::operator<<(ostream& _stream, Individual const& _individual)
|
ostream& phaser::operator<<(ostream& _stream, Individual const& _individual)
|
||||||
{
|
{
|
||||||
_stream << "Fitness: " << _individual.fitness;
|
_stream << _individual.fitness << " " << _individual.chromosome;
|
||||||
_stream << ", optimisations: " << _individual.chromosome;
|
|
||||||
|
|
||||||
return _stream;
|
return _stream;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user