3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-13 09:31:14 +00:00

DoC: implement get_size_estimate_bytes()

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2015-02-02 11:28:57 +00:00
parent c0e0b39a1d
commit 2444440edc
6 changed files with 22 additions and 7 deletions

View file

@ -107,6 +107,13 @@ doc& doc_manager::fillX(doc& src) {
m.fillX(src.pos());
return src;
}
unsigned doc_manager::get_size_estimate_bytes(const doc& d) const {
return m.get_size_estimate_bytes(d.pos())
+ d.neg().get_size_estimate_bytes(m)
+ sizeof(doc);
}
bool doc_manager::set_and(doc& dst, doc const& src) {
// (A \ B) & (C \ D) = (A & C) \ (B u D)
if (!m.set_and(dst.pos(), src.pos())) return false;