3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 07:45:46 +00:00

saved params work

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-29 17:19:12 -08:00
parent c3055207ed
commit cf28cbab0a
130 changed files with 1469 additions and 948 deletions

View file

@ -16,6 +16,7 @@ Notes:
--*/
#include<sstream>
#include"cmd_context.h"
#include"parametric_cmd.h"
char const * parametric_cmd::get_descr(cmd_context & ctx) const {
@ -37,13 +38,15 @@ cmd_arg_kind parametric_cmd::next_arg_kind(cmd_context & ctx) const {
void parametric_cmd::set_next_arg(cmd_context & ctx, symbol const & s) {
if (m_last == symbol::null) {
m_last = s;
m_last = symbol(smt2_keyword_to_param(s).c_str());
if (pdescrs(ctx).get_kind(m_last.bare_str()) == CPK_INVALID)
throw cmd_exception("invalid keyword argument");
return;
}
m_params.set_sym(m_last.bare_str(), s);
m_last = symbol::null;
else {
m_params.set_sym(m_last.bare_str(), s);
m_last = symbol::null;
}
}
param_descrs const & parametric_cmd::pdescrs(cmd_context & ctx) const {