Make array basis term a skolem (avoids crashing in fmf).
authorajreynol <andrew.j.reynolds@gmail.com>
Mon, 15 Jun 2015 08:59:23 +0000 (10:59 +0200)
committerajreynol <andrew.j.reynolds@gmail.com>
Mon, 15 Jun 2015 08:59:23 +0000 (10:59 +0200)
src/theory/quantifiers/term_database.cpp

index 2507209f48d43c3eb9a9ce9ee96404734bbc5ede..eba080a0e24c08b3a44797c8b6bb826e96c43890 100644 (file)
@@ -571,7 +571,7 @@ Node TermDb::getModelBasisTerm( TypeNode tn, int i ){
     Node mbt;
     if( tn.isInteger() || tn.isReal() ){
       mbt = NodeManager::currentNM()->mkConst( Rational( 0 ) );
-    }else if( !tn.isSort() ){
+    }else if( !tn.isArray() && !tn.isSort() ){
       mbt = tn.mkGroundTerm();
     }else{
       if( options::fmfFreshDistConst() || d_type_map[ tn ].empty() ){