mirror of
https://github.com/Z3Prover/z3
synced 2026-03-22 04:28:50 +00:00
Merge branch 'c3' into copilot/fix-reconcat-classification
This commit is contained in:
commit
a80652270d
3 changed files with 204 additions and 3 deletions
|
|
@ -470,13 +470,17 @@ namespace euf {
|
|||
}
|
||||
|
||||
snode* sgraph::drop_left(snode* n, unsigned count) {
|
||||
for (unsigned i = 0; i < count && !n->is_empty(); ++i)
|
||||
if (count == 0 || n->is_empty()) return n;
|
||||
if (count >= n->length()) return mk_empty();
|
||||
for (unsigned i = 0; i < count; ++i)
|
||||
n = drop_first(n);
|
||||
return n;
|
||||
}
|
||||
|
||||
snode* sgraph::drop_right(snode* n, unsigned count) {
|
||||
for (unsigned i = 0; i < count && !n->is_empty(); ++i)
|
||||
if (count == 0 || n->is_empty()) return n;
|
||||
if (count >= n->length()) return mk_empty();
|
||||
for (unsigned i = 0; i < count; ++i)
|
||||
n = drop_last(n);
|
||||
return n;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue