mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
debugging bv
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2328a6e839
commit
6a4261d1af
19 changed files with 271 additions and 133 deletions
|
@ -803,6 +803,8 @@ void cmd_context::insert(symbol const & s, func_decl * f) {
|
|||
#endif
|
||||
func_decls & fs = m_func_decls.insert_if_not_there(s, func_decls());
|
||||
if (!fs.insert(m(), f)) {
|
||||
if (m_allow_duplicate_declarations)
|
||||
return;
|
||||
std::string msg = "invalid declaration, ";
|
||||
msg += f->get_arity() == 0 ? "constant" : "function";
|
||||
msg += " '";
|
||||
|
|
|
@ -192,6 +192,7 @@ protected:
|
|||
bool m_numeral_as_real;
|
||||
bool m_ignore_check; // used by the API to disable check-sat() commands when parsing SMT 2.0 files.
|
||||
bool m_exit_on_error;
|
||||
bool m_allow_duplicate_declarations { false };
|
||||
|
||||
static std::ostringstream g_error_stream;
|
||||
|
||||
|
@ -346,6 +347,7 @@ public:
|
|||
void set_produce_unsat_cores(bool flag);
|
||||
void set_produce_proofs(bool flag);
|
||||
void set_produce_unsat_assumptions(bool flag) { m_produce_unsat_assumptions = flag; }
|
||||
void set_allow_duplicate_declarations() { m_allow_duplicate_declarations = true; }
|
||||
bool produce_assignments() const { return m_produce_assignments; }
|
||||
bool produce_unsat_assumptions() const { return m_produce_unsat_assumptions; }
|
||||
void set_produce_assignments(bool flag) { m_produce_assignments = flag; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue