mirror of
https://github.com/Z3Prover/z3
synced 2026-06-02 07:07:52 +00:00
Fix union problem (might not solve all bugs)
This commit is contained in:
parent
4f884e7d9a
commit
9aaf103ca0
1 changed files with 5 additions and 2 deletions
|
|
@ -533,10 +533,13 @@ namespace euf {
|
||||||
// if (allowed_range)
|
// if (allowed_range)
|
||||||
// std::cout << "using " << seq::snode_label_html(allowed_range, m) << std::endl;
|
// std::cout << "using " << seq::snode_label_html(allowed_range, m) << std::endl;
|
||||||
|
|
||||||
|
// If it is a disjunction just take one of the elements
|
||||||
|
while (m_seq.re.is_union(elem_expr)) {
|
||||||
|
elem_expr = to_app(elem_expr)->get_arg(0);
|
||||||
|
}
|
||||||
|
|
||||||
// unwrap str.unit to get the character expression
|
// unwrap str.unit to get the character expression
|
||||||
expr* ch = nullptr;
|
expr* ch = nullptr;
|
||||||
std::cout << elem->get_sort()->get_name() << std::endl;
|
|
||||||
if (m_seq.str.is_unit(elem_expr, ch))
|
if (m_seq.str.is_unit(elem_expr, ch))
|
||||||
elem_expr = ch;
|
elem_expr = ch;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue