mirror of
https://github.com/Z3Prover/z3
synced 2025-08-14 14:55:25 +00:00
cube and clause
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ea032b56c0
commit
005a6d93bb
6 changed files with 119 additions and 15 deletions
|
@ -28,7 +28,7 @@ namespace smt {
|
|||
clause * clause::mk(ast_manager & m, unsigned num_lits, literal * lits, clause_kind k, justification * js,
|
||||
clause_del_eh * del_eh, bool save_atoms, expr * const * bool_var2expr_map) {
|
||||
SASSERT(k == CLS_AUX || js == 0 || !js->in_region());
|
||||
SASSERT(num_lits >= 2);
|
||||
SASSERT(num_lits > 2);
|
||||
unsigned sz = get_obj_size(num_lits, k, save_atoms, del_eh != nullptr, js != nullptr);
|
||||
void * mem = m.get_allocator().allocate(sz);
|
||||
clause * cls = new (mem) clause();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue