3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-04 02:39:02 +00:00

edits to seq_nielsen

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-03-30 17:36:27 -07:00
parent 9aceaf3cac
commit 6d2321e6fe
3 changed files with 42 additions and 32 deletions

View file

@ -580,6 +580,10 @@ namespace euf {
return mk(result);
}
bool sgraph::are_unit_distinct(snode* a, snode* b) const {
return a->is_char_or_unit() && b->is_char_or_unit() && m.are_distinct(a->get_expr(), b->get_expr());
}
void sgraph::collect_re_predicates(snode* re, expr_ref_vector& preds) {
if (!re)
return;

View file

@ -124,6 +124,9 @@ namespace euf {
sort* get_str_sort() const { return m_str_sort; }
// return true if a, b are of the same length and distinct
bool are_unit_distinct(snode *a, snode *b) const;
// factory methods for creating snodes with corresponding expressions
snode* mk_var(symbol const& name, sort* s);
snode* mk_char(unsigned ch);