diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-02-14 17:09:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 17:09:59 -0600 |
commit | 528e801343c692b0ce8123f8754e069e6523f5dc (patch) | |
tree | 517c86381e7a0535c376d244c830365d04e3aa62 /src/parser/smt2/smt2.cpp | |
parent | 08289dd911aff28110baf0fd815fd912f8b76fd3 (diff) |
Remove quantifiers rewrite rules infrastructure (#3754)
Diffstat (limited to 'src/parser/smt2/smt2.cpp')
-rw-r--r-- | src/parser/smt2/smt2.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp index 3ab3c0eb1..9800cbe91 100644 --- a/src/parser/smt2/smt2.cpp +++ b/src/parser/smt2/smt2.cpp @@ -626,33 +626,6 @@ void Smt2::resetAssertions() { } } -std::unique_ptr<Command> Smt2::assertRewriteRule( - Kind kind, - Expr bvl, - const std::vector<Expr>& triggers, - const std::vector<Expr>& guards, - const std::vector<Expr>& heads, - Expr body) -{ - assert(kind == kind::RR_REWRITE || kind == kind::RR_REDUCTION - || kind == kind::RR_DEDUCTION); - - ExprManager* em = getExprManager(); - - std::vector<Expr> args; - args.push_back(mkAnd(heads)); - args.push_back(body); - - if (!triggers.empty()) - { - args.push_back(em->mkExpr(kind::INST_PATTERN_LIST, triggers)); - } - - Expr rhs = em->mkExpr(kind, args); - Expr rule = em->mkExpr(kind::REWRITE_RULE, bvl, mkAnd(guards), rhs); - return std::unique_ptr<Command>(new AssertCommand(rule, false)); -} - Smt2::SynthFunFactory::SynthFunFactory( Smt2* smt2, const std::string& fun, |