diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2017-11-22 14:25:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 14:25:59 -0600 |
commit | 20704741e4609055d61e010b6981c6916d28019a (patch) | |
tree | a8e8beec06083b91c2336e3013538e86eb177a29 /src/parser/smt2/smt2.h | |
parent | 047b8f69db1ab46ad68a2693565066f2a8d40b29 (diff) |
Sygus Lambda Grammars (#1390)
Diffstat (limited to 'src/parser/smt2/smt2.h')
-rw-r--r-- | src/parser/smt2/smt2.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/parser/smt2/smt2.h b/src/parser/smt2/smt2.h index 9614c5524..84c049ce9 100644 --- a/src/parser/smt2/smt2.h +++ b/src/parser/smt2/smt2.h @@ -319,6 +319,19 @@ private: std::map< CVC4::Type, CVC4::Type >& sygus_to_builtin, std::map< CVC4::Type, CVC4::Expr >& sygus_to_builtin_expr ); + /** make sygus bound var list + * + * This is used for converting non-builtin sygus operators to lambda + * expressions. It takes as input a datatype and constructor index (for + * naming) and a vector of type ltypes. + * It appends a bound variable to lvars for each type in ltypes, and returns + * a bound variable list whose children are lvars. + */ + Expr makeSygusBoundVarList(Datatype& dt, + unsigned i, + const std::vector<Type>& ltypes, + std::vector<Expr>& lvars); + void addArithmeticOperators(); void addBitvectorOperators(); |