Fix (extraneous) command dumping.
authorMorgan Deters <mdeters@cs.nyu.edu>
Sat, 14 Sep 2013 23:41:53 +0000 (19:41 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 16 Sep 2013 22:54:33 +0000 (18:54 -0400)
src/smt/smt_options_template.cpp

index 228c18adbf1a8a19842dc109507185eb16a2c392..4edd91a8dfd93b89bff5e4f1807b255c9d44bc97 100644 (file)
@@ -77,6 +77,20 @@ CVC4::SExpr SmtEngine::getOption(const std::string& key) const
   NodeManagerScope nms(d_nodeManager);
 
   Trace("smt") << "SMT getOption(" << key << ")" << endl;
+
+  if(key.length() >= 18 &&
+     key.compare(0, 18, "command-verbosity:") == 0) {
+    map<string, Integer>::const_iterator i = d_commandVerbosity.find(key.c_str() + 18);
+    if(i != d_commandVerbosity.end()) {
+      return (*i).second;
+    }
+    i = d_commandVerbosity.find("*");
+    if(i != d_commandVerbosity.end()) {
+      return (*i).second;
+    }
+    return Integer(2);
+  }
+
   if(Dump.isOn("benchmark")) {
     Dump("benchmark") << GetOptionCommand(key);
   }
@@ -108,22 +122,11 @@ CVC4::SExpr SmtEngine::getOption(const std::string& key) const
       result.push_back(v);
     }
     return result;
-  } else if(key.length() >= 18 &&
-            key.compare(0, 18, "command-verbosity:") == 0) {
-    map<string, Integer>::const_iterator i = d_commandVerbosity.find(key.c_str() + 18);
-    if(i != d_commandVerbosity.end()) {
-      return (*i).second;
-    }
-    i = d_commandVerbosity.find("*");
-    if(i != d_commandVerbosity.end()) {
-      return (*i).second;
-    }
-    return Integer(2);
   }
 
   ${smt_getoption_handlers}
 
-#line 127 "${template}"
+#line 130 "${template}"
 
   throw UnrecognizedOptionException(key);
 }