3
0
Fork 0
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:
Nikolaj Bjorner 2026-03-03 13:10:25 -08:00 committed by GitHub
commit a80652270d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 204 additions and 3 deletions

View file

@ -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;
}