mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 04:48:45 +00:00
stubs for spacer-specific API
This commit is contained in:
parent
ffa4957362
commit
1530a39a96
src/muz/base
|
@ -20,6 +20,7 @@ Revision History:
|
|||
#define DL_ENGINE_BASE_H_
|
||||
|
||||
#include "model/model.h"
|
||||
#include "muz/base/dl_util.h"
|
||||
|
||||
namespace datalog {
|
||||
enum DL_ENGINE {
|
||||
|
@ -44,6 +45,9 @@ namespace datalog {
|
|||
virtual ~engine_base() {}
|
||||
|
||||
virtual expr_ref get_answer() = 0;
|
||||
virtual expr_ref get_ground_sat_answer () {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
virtual lbool query(expr* q) = 0;
|
||||
virtual lbool query(unsigned num_rels, func_decl*const* rels) {
|
||||
if (num_rels != 1) return l_undef;
|
||||
|
@ -65,6 +69,9 @@ namespace datalog {
|
|||
}
|
||||
return query(q);
|
||||
}
|
||||
virtual lbool query_from_lvl (expr* q, unsigned lvl) {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
|
||||
virtual void reset_statistics() {}
|
||||
virtual void display_profile(std::ostream& out) {}
|
||||
|
@ -72,18 +79,27 @@ namespace datalog {
|
|||
virtual unsigned get_num_levels(func_decl* pred) {
|
||||
throw default_exception(std::string("get_num_levels is not supported for ") + m_name);
|
||||
}
|
||||
virtual expr_ref get_reachable(func_decl* pred) {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
virtual expr_ref get_cover_delta(int level, func_decl* pred) {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
virtual void add_cover(int level, func_decl* pred, expr* property) {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
virtual void add_invariant (func_decl *pred, expr *property) {
|
||||
throw default_exception(std::string("operation is not supported for ") + m_name);
|
||||
}
|
||||
virtual void display_certificate(std::ostream& out) const {
|
||||
throw default_exception(std::string("certificates are not supported for ") + m_name);
|
||||
}
|
||||
virtual model_ref get_model() {
|
||||
return model_ref(alloc(model, m));
|
||||
}
|
||||
virtual void get_rules_along_trace (rule_ref_vector& rules) {
|
||||
throw default_exception(std::string("get_rules_along_trace is not supported for ") + m_name);
|
||||
}
|
||||
virtual proof_ref get_proof() {
|
||||
return proof_ref(m.mk_asserted(m.mk_true()), m);
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ namespace datalog {
|
|||
~verbose_action();
|
||||
};
|
||||
|
||||
typedef ref_vector<rule, rule_manager> rule_ref_vector;
|
||||
enum PDR_CACHE_MODE {
|
||||
NO_CACHE,
|
||||
HASH_CACHE,
|
||||
|
|
Loading…
Reference in a new issue