diff options
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r-- | lib/Expr/Expr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 7b680567..695312ef 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -301,6 +301,11 @@ ref<Expr> Expr::createImplies(ref<Expr> hyp, ref<Expr> conc) { return OrExpr::create(Expr::createNot(hyp), conc); } +ref<Expr> Expr::createIff(ref<Expr> e1, ref<Expr> e2) { + return AndExpr::create(Expr::createImplies(e1, e2), + Expr::createImplies(e2, e1)); +} + ref<Expr> Expr::createIsZero(ref<Expr> e) { return EqExpr::create(e, ConstantExpr::create(0, e->getWidth())); } |