Replace implies by =>

This commit is contained in:
Leo Alt committed 2021-05-26 22:12:49 +02:00
1 parent daea5f886d
commit b57b8daf0a
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ CVC4::Expr CVC4Interface::toCVC4Expr(Expression const& _expr)
return arguments[0].andExpr(arguments[1]); return arguments[0].andExpr(arguments[1]);
else if (n == "or") else if (n == "or")
return arguments[0].orExpr(arguments[1]); return arguments[0].orExpr(arguments[1]);
else if (n == "implies") else if (n == "=>")
return m_context.mkExpr(CVC4::kind::IMPLIES, arguments[0], arguments[1]); return m_context.mkExpr(CVC4::kind::IMPLIES, arguments[0], arguments[1]);
else if (n == "=") else if (n == "=")
return m_context.mkExpr(CVC4::kind::EQUAL, arguments[0], arguments[1]); return m_context.mkExpr(CVC4::kind::EQUAL, arguments[0], arguments[1]);
+2 -2
View File
@@ -86,7 +86,7 @@ public:
{"not", 1}, {"not", 1},
{"and", 2}, {"and", 2},
{"or", 2}, {"or", 2},
{"implies", 2}, {"=>", 2},
{"=", 2}, {"=", 2},
{"<", 2}, {"<", 2},
{"<=", 2}, {"<=", 2},
@@ -126,7 +126,7 @@ public:
static Expression implies(Expression _a, Expression _b) static Expression implies(Expression _a, Expression _b)
{ {
return Expression( return Expression(
"implies", "=>",
std::move(_a), std::move(_a),
std::move(_b), std::move(_b),
Kind::Bool Kind::Bool
+1 -1
View File
@@ -189,7 +189,7 @@ z3::expr Z3Interface::toZ3Expr(Expression const& _expr)
return arguments[0] && arguments[1]; return arguments[0] && arguments[1];
else if (n == "or") else if (n == "or")
return arguments[0] || arguments[1]; return arguments[0] || arguments[1];
else if (n == "implies") else if (n == "=>")
return z3::implies(arguments[0], arguments[1]); return z3::implies(arguments[0], arguments[1]);
else if (n == "=") else if (n == "=")
return arguments[0] == arguments[1]; return arguments[0] == arguments[1];