Fix to empty response to (get-assignment).
authorMorgan Deters <mdeters@cs.nyu.edu>
Fri, 17 May 2013 12:43:24 +0000 (08:43 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Fri, 17 May 2013 12:43:24 +0000 (08:43 -0400)
Thanks to David Cok for reporting this issue.

src/smt/smt_engine.cpp

index e49e6fb549bf7ce4eb154b919f828f1b47a3bc70..908ad05e2339e6a75a356c551ca6e4b7541245a8 100644 (file)
@@ -3327,7 +3327,7 @@ CVC4::SExpr SmtEngine::getAssignment() throw(ModalException) {
   }
 
   if(d_assignments == NULL) {
-    return SExpr();
+    return SExpr(vector<SExpr>());
   }
 
   vector<SExpr> sexprs;