diff options
Diffstat (limited to 'src/parser/smt2/smt2.cpp')
-rw-r--r-- | src/parser/smt2/smt2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp index b693eae5b..6dc29b8fe 100644 --- a/src/parser/smt2/smt2.cpp +++ b/src/parser/smt2/smt2.cpp @@ -1435,6 +1435,10 @@ void Smt2::addSygusConstructorTerm(Datatype& dt, std::map<Expr, Type>& ntsToUnres) const { Trace("parser-sygus2") << "Add sygus cons term " << term << std::endl; + // Ensure that we do type checking here to catch sygus constructors with + // malformed builtin operators. The argument "true" to getType here forces + // a recursive well-typedness check. + term.getType(true); // purify each occurrence of a non-terminal symbol in term, replace by // free variables. These become arguments to constructors. Notice we must do // a tree traversal in this function, since unique paths to the same term |