[yul-phaser] Add Chromosome class

This commit is contained in:
cameel
2020-02-05 18:13:30 +01:00
parent 57ab8922cd
commit f6d955db0b
4 changed files with 182 additions and 2 deletions
+3 -2
View File
@@ -15,6 +15,7 @@
along with solidity. If not, see <http://www.gnu.org/licenses/>.
*/
#include <tools/yulPhaser/Chromosome.h>
#include <tools/yulPhaser/Exceptions.h>
#include <tools/yulPhaser/Program.h>
@@ -39,8 +40,8 @@ struct CommandLineParsingResult
void runAlgorithm(string const& _sourcePath)
{
Program::load(_sourcePath);
cout << "Program load successful." << endl;
Program::load(_sourcePath).optimize(Chromosome::makeRandom(15).asSequence());
cout << "Program load and optimization successful." << endl;
}
CommandLineParsingResult parseCommandLine(int argc, char** argv)