mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
Restore assertion in smt_clause
This commit is contained in:
parent
ef58753ae7
commit
c3edf8c8fa
1 changed files with 3 additions and 4 deletions
|
@ -25,10 +25,10 @@ namespace smt {
|
||||||
\brief Create a new clause.
|
\brief Create a new clause.
|
||||||
bool_var2expr_map is a mapping from bool_var -> expr, it is only used if save_atoms == true.
|
bool_var2expr_map is a mapping from bool_var -> expr, it is only used if save_atoms == true.
|
||||||
*/
|
*/
|
||||||
clause * clause::mk(ast_manager & m, unsigned num_lits, literal * lits, clause_kind k, justification * js,
|
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) {
|
clause_del_eh * del_eh, bool save_atoms, expr * const * bool_var2expr_map) {
|
||||||
SASSERT(k == CLS_AUX || js == 0 || !js->in_region());
|
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);
|
unsigned sz = get_obj_size(num_lits, k, save_atoms, del_eh != nullptr, js != nullptr);
|
||||||
void * mem = m.get_allocator().allocate(sz);
|
void * mem = m.get_allocator().allocate(sz);
|
||||||
clause * cls = new (mem) clause();
|
clause * cls = new (mem) clause();
|
||||||
|
@ -67,7 +67,7 @@ namespace smt {
|
||||||
}});
|
}});
|
||||||
return cls;
|
return cls;
|
||||||
}
|
}
|
||||||
|
|
||||||
void clause::deallocate(ast_manager & m) {
|
void clause::deallocate(ast_manager & m) {
|
||||||
clause_del_eh * del_eh = get_del_eh();
|
clause_del_eh * del_eh = get_del_eh();
|
||||||
if (del_eh)
|
if (del_eh)
|
||||||
|
@ -115,4 +115,3 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue