mirror of
https://github.com/Z3Prover/z3
synced 2025-10-09 01:11:55 +00:00
adding validation code to doc/udoc
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
54506408f9
commit
1111c0494f
13 changed files with 328 additions and 104 deletions
|
@ -87,10 +87,15 @@ public:
|
|||
bool well_formed(doc const& d) const;
|
||||
bool merge(doc& d, unsigned lo, unsigned length, subset_ints const& equalities, bit_vector const& discard_cols);
|
||||
void set(doc& d, unsigned idx, tbit value);
|
||||
|
||||
void verify_project(ast_manager& m, doc_manager& dstm, bool const* to_delete, doc const& src, doc const& dst);
|
||||
private:
|
||||
unsigned diff_by_012(tbv const& pos, tbv const& neg, unsigned& index);
|
||||
bool merge(doc& d, unsigned idx, subset_ints const& equalities, bit_vector const& discard_cols);
|
||||
bool can_project_neg(tbv const& pos, unsigned n, bool const* to_delete, tbv const& neg);
|
||||
void project_rename(expr_ref& fml, bool const* to_delete);
|
||||
void project_expand(expr_ref& fml, bool const* to_delete);
|
||||
expr_ref to_formula(ast_manager& m, doc const& src);
|
||||
void check_equiv(ast_manager& m, expr* fml1, expr* fml2);
|
||||
};
|
||||
|
||||
|
||||
|
@ -185,7 +190,7 @@ public:
|
|||
}
|
||||
void insert(M& m, union_bvec const& other) {
|
||||
for (unsigned i = 0; i < other.size(); ++i) {
|
||||
insert(m, other[i]);
|
||||
insert(m, &other[i]);
|
||||
}
|
||||
}
|
||||
void intersect(M& m, union_bvec const& other) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue