3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

fix #5080 assertion is violated on legal input, add an example

This commit is contained in:
Nikolaj Bjorner 2021-03-05 15:00:23 -08:00
parent 957d7bfe35
commit 022a1fd3dd
3 changed files with 62 additions and 3 deletions

View file

@ -51,7 +51,6 @@ namespace pb {
public:
constraint(tag_t t, unsigned id, literal l, unsigned sz, size_t osz, unsigned k):
m_tag(t), m_lit(l), m_size(sz), m_obj_size(osz), m_id(id), m_k(k) {
VERIFY(k < 400000000);
}
sat::ext_constraint_idx cindex() const { return sat::constraint_base::mem2base(this); }
void deallocate(small_object_allocator& a) { a.deallocate(obj_size(), sat::constraint_base::mem2base_ptr(this)); }