3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 11:35:42 +00:00

Handle mpz shared-self assignment in set

This commit is contained in:
copilot-swe-agent[bot] 2026-07-15 06:06:48 +00:00 committed by GitHub
parent 96128e5b6b
commit 2fd3a28b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -593,7 +593,7 @@ public:
void bitwise_not(unsigned sz, mpz const & a, mpz & c);
void set(mpz & target, mpz const & source) {
if (&target == &source) {
if (&target == &source || (target.has_ptr() && source.has_ptr() && target.ptr() == source.ptr())) {
return;
}
if (is_small(source)) {