mirror of
https://github.com/Z3Prover/z3
synced 2025-06-07 14:43:23 +00:00
working on new parameter framework
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
be5f933201
commit
589f096e6e
36 changed files with 436 additions and 377 deletions
|
@ -57,6 +57,10 @@ struct param_descrs::imp {
|
|||
void erase(symbol const & name) {
|
||||
m_info.erase(name);
|
||||
}
|
||||
|
||||
bool contains(symbol const & name) const {
|
||||
return m_info.contains(name);
|
||||
}
|
||||
|
||||
param_kind get_kind(symbol const & name) const {
|
||||
info i;
|
||||
|
@ -157,6 +161,14 @@ void param_descrs::insert(char const * name, param_kind k, char const * descr, c
|
|||
insert(symbol(name), k, descr, def);
|
||||
}
|
||||
|
||||
bool param_descrs::contains(char const * name) const {
|
||||
return contains(symbol(name));
|
||||
}
|
||||
|
||||
bool param_descrs::contains(symbol const & name) const {
|
||||
return m_imp->contains(name);
|
||||
}
|
||||
|
||||
char const * param_descrs::get_descr(char const * name) const {
|
||||
return get_descr(symbol(name));
|
||||
}
|
||||
|
@ -345,7 +357,7 @@ public:
|
|||
continue;
|
||||
switch (it->second.m_kind) {
|
||||
case CPK_BOOL:
|
||||
out << it->second.m_bool_value;
|
||||
out << (it->second.m_bool_value?"true":"false");
|
||||
return;
|
||||
case CPK_UINT:
|
||||
out << it->second.m_uint_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue