Add new simplification rule

This adds the rule “not not F === F” to the simplification rule tableau.
This commit is contained in:
2018-04-09 23:35:02 +02:00
parent 6d7b91c391
commit 23624007ec
2 changed files with 27 additions and 1 deletions

View File

@@ -103,9 +103,10 @@ TEST_CASE("[hidden predicate elimination] Hidden predicates are correctly elimin
"#show a/1.";
anthem::translate("input", input, context);
// TODO: simplify further
CHECK(output.str() ==
"forall V1 (a(V1) <-> not d(V1))\n"
"forall V2 (d(V2) <-> not not d(V2))\n"
"forall V2 (d(V2) <-> d(V2))\n"
"forall V3 (e(V3) <-> e(V3))\n");
}