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>
Mon, 20 May 2013 20:53:37 +0000 (16:53 -0400)
Thanks to David Cok for reporting this issue.

src/smt/smt_engine.cpp

index 0bfc6e63453f38296955855f64d8567676bf9c2b..284f39d5448bd09f2f4b8abea7a989cb68a0b7fd 100644 (file)
@@ -3313,7 +3313,7 @@ CVC4::SExpr SmtEngine::getAssignment() throw(ModalException) {
   }
 
   if(d_assignments == NULL) {
-    return SExpr();
+    return SExpr(vector<SExpr>());
   }
 
   vector<SExpr> sexprs;