3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 19:45:41 +00:00

Fix mpz self-assignment in set

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

View file

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