mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +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.
|
||||
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) {
|
||||
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();
|
||||
|
@ -67,7 +67,7 @@ namespace smt {
|
|||
}});
|
||||
return cls;
|
||||
}
|
||||
|
||||
|
||||
void clause::deallocate(ast_manager & m) {
|
||||
clause_del_eh * del_eh = get_del_eh();
|
||||
if (del_eh)
|
||||
|
@ -115,4 +115,3 @@ namespace smt {
|
|||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue