mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
exposing user propagators over .Net
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3ae781039b
commit
14214c5a07
7 changed files with 296 additions and 18 deletions
|
@ -288,7 +288,7 @@ namespace sat {
|
|||
inline clause_allocator& cls_allocator() { return m_cls_allocator[m_cls_allocator_idx]; }
|
||||
inline clause_allocator const& cls_allocator() const { return m_cls_allocator[m_cls_allocator_idx]; }
|
||||
inline clause * alloc_clause(unsigned num_lits, literal const * lits, bool learned) { return cls_allocator().mk_clause(num_lits, lits, learned); }
|
||||
inline void dealloc_clause(clause* c) { cls_allocator().del_clause(c); }
|
||||
inline void dealloc_clause(clause* c) { cls_allocator().del_clause(c); }
|
||||
struct cmp_activity;
|
||||
void defrag_clauses();
|
||||
bool should_defrag();
|
||||
|
|
|
@ -1190,6 +1190,10 @@ namespace arith {
|
|||
}
|
||||
|
||||
void solver::assign(literal lit, literal_vector const& core, svector<enode_pair> const& eqs, vector<parameter> const& params) {
|
||||
std::cout << "assign: ";
|
||||
for (auto const& p : params)
|
||||
std::cout << p << " ";
|
||||
std::cout << "\n";
|
||||
if (core.size() < small_lemma_size() && eqs.empty()) {
|
||||
m_core2.reset();
|
||||
for (auto const& c : core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue