From 8c467723be3746ed711c609fa6dafb19a5a49e8b Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Thu, 4 Jun 2020 11:31:55 -0500 Subject: Fix abduction with datatypes (#4566) Previously we were treating constructor/selector/tester symbols as arguments to the abduct-to-synthesize. --- src/theory/quantifiers/sygus/sygus_abduct.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/theory/quantifiers') diff --git a/src/theory/quantifiers/sygus/sygus_abduct.cpp b/src/theory/quantifiers/sygus/sygus_abduct.cpp index a58c5d841..22b56eb6b 100644 --- a/src/theory/quantifiers/sygus/sygus_abduct.cpp +++ b/src/theory/quantifiers/sygus/sygus_abduct.cpp @@ -58,6 +58,12 @@ Node SygusAbduct::mkAbductionConjecture(const std::string& name, for (const Node& s : symset) { TypeNode tn = s.getType(); + if (tn.isConstructor() || tn.isSelector() || tn.isTester()) + { + // datatype symbols should be considered interpreted symbols here, not + // (higher-order) variables. + continue; + } // Notice that we allow for non-first class (e.g. function) variables here. // This is applicable to the case where we are doing get-abduct in a logic // with UF. -- cgit v1.2.3