mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
produce error message for cores with optimization. Issue #825
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
99b7c26e9f
commit
0ab2067b69
|
@ -169,6 +169,11 @@ namespace opt {
|
|||
r.append(m_labels);
|
||||
}
|
||||
|
||||
void context::get_unsat_core(ptr_vector<expr> & r) {
|
||||
throw default_exception("Unsat cores are not supported with optimization");
|
||||
}
|
||||
|
||||
|
||||
void context::set_hard_constraints(ptr_vector<expr>& fmls) {
|
||||
if (m_scoped_state.set(fmls)) {
|
||||
clear_state();
|
||||
|
|
|
@ -190,7 +190,7 @@ namespace opt {
|
|||
virtual void collect_statistics(statistics& stats) const;
|
||||
virtual proof* get_proof() { return 0; }
|
||||
virtual void get_labels(svector<symbol> & r);
|
||||
virtual void get_unsat_core(ptr_vector<expr> & r) {}
|
||||
virtual void get_unsat_core(ptr_vector<expr> & r);
|
||||
virtual std::string reason_unknown() const;
|
||||
virtual void set_reason_unknown(char const* msg) { m_unknown = msg; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue