Make ReasoningBasedSimplifier available as step.

This commit is contained in:
chriseth
2020-09-15 15:57:59 +02:00
parent 2d7e28769a
commit 9bcc2f1713
3 changed files with 5 additions and 9 deletions
+1 -8
View File
@@ -158,8 +158,7 @@ public:
map<char, string> const& extraOptions = {
{'#', "quit"},
{',', "VarNameCleaner"},
{';', "StackCompressor"},
{'R', "ReasoningBasedSimplifier"}
{';', "StackCompressor"}
};
printUsageBanner(abbreviationMap, extraOptions, 4);
@@ -192,12 +191,6 @@ public:
StackCompressor::run(m_dialect, obj, true, 16);
break;
}
case 'R':
{
ReasoningBasedSimplifier::run(context, *m_ast);
break;
}
default:
cerr << "Unknown option." << endl;
}
+1 -1
View File
@@ -138,7 +138,7 @@ BOOST_AUTO_TEST_CASE(output_operator_should_create_concise_and_unambiguous_strin
BOOST_TEST(chromosome.length() == allSteps.size());
BOOST_TEST(chromosome.optimisationSteps() == allSteps);
BOOST_TEST(toString(chromosome) == "flcCUnDvejsxIOoighTLMNrmVatpud");
BOOST_TEST(toString(chromosome) == "flcCUnDvejsxIOoighTLMNRrmVatpud");
}
BOOST_AUTO_TEST_CASE(optimisationSteps_should_translate_chromosomes_genes_to_optimisation_step_names)