3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +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

@ -79,6 +79,14 @@ public:
void display(std::ostream & out) const;
void validate(param_descrs const & p) const;
/*
\brief Display the value of the given parameter.
It displays 'default' if k is not in the parameter set.
*/
void display(std::ostream & out, char const * k);
void display(std::ostream & out, symbol const & k);
};
inline std::ostream & operator<<(std::ostream & out, params_ref const & ref) {
@ -92,13 +100,14 @@ class param_descrs {
public:
param_descrs();
~param_descrs();
void copy(param_descrs & other);
void insert(char const * name, param_kind k, char const * descr);
void insert(symbol const & name, param_kind k, char const * descr);
void erase(char const * name);
void erase(symbol const & name);
param_kind get_kind(char const * name) const;
param_kind get_kind(symbol const & name) const;
void display(std::ostream & out, unsigned indent = 0) const;
void display(std::ostream & out, unsigned indent = 0, bool smt2_style=false) const;
unsigned size() const;
symbol get_param_name(unsigned idx) const;
};