3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-17 00:32:16 +00:00

adding unit test entry point

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-02-22 11:46:47 -08:00
parent d8bb10d37f
commit 748ada2acc
8 changed files with 260 additions and 45 deletions

View file

@ -122,6 +122,10 @@ namespace sat {
void unsat(int constraint_id) { m_unsat_stack.push_back(constraint_id); }
void add_clause(unsigned sz, literal const* c);
void add_cardinality(unsigned sz, literal const* c, unsigned k);
// swap the deleted one with the last one and pop
void sat(int c) {
int last_unsat_constraint = m_unsat_stack.back();