summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/sygus
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-07-19 12:39:07 -0400
committerGitHub <noreply@github.com>2019-07-19 12:39:07 -0400
commit7de5f26ca35f6b3b11dc8a7465f7a15e5d0d2e50 (patch)
treea0c0cd831361d7e872618fc9e8739f63db9760bb /src/theory/quantifiers/sygus
parent9fa66413709fbdb1a02f8986d0c332934523b110 (diff)
Fixes for sygus with datatypes (#3103)
Diffstat (limited to 'src/theory/quantifiers/sygus')
-rw-r--r--src/theory/quantifiers/sygus/term_database_sygus.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theory/quantifiers/sygus/term_database_sygus.cpp b/src/theory/quantifiers/sygus/term_database_sygus.cpp
index 01d08dad8..af8c93e45 100644
--- a/src/theory/quantifiers/sygus/term_database_sygus.cpp
+++ b/src/theory/quantifiers/sygus/term_database_sygus.cpp
@@ -874,8 +874,13 @@ void TermDbSygus::computeMinTypeDepthInternal( TypeNode root_tn, TypeNode tn, un
// do not recurse to non-datatype types
return;
}
+ const Datatype& dt = tn.getDatatype();
+ if( !dt.isSygus() )
+ {
+ // do not recurse to non-sygus datatype types
+ return;
+ }
d_min_type_depth[root_tn][tn] = type_depth;
- const Datatype& dt = ((DatatypeType)(tn).toType()).getDatatype();
//compute for connected types
for( unsigned i=0; i<dt.getNumConstructors(); i++ ){
for( unsigned j=0; j<dt[i].getNumArgs(); j++ ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback