mirror of
https://github.com/Z3Prover/z3
synced 2026-07-24 07:52:33 +00:00
Handle mpz shared-self assignment in set
This commit is contained in:
parent
96128e5b6b
commit
2fd3a28b58
1 changed files with 1 additions and 1 deletions
|
|
@ -593,7 +593,7 @@ public:
|
||||||
void bitwise_not(unsigned sz, mpz const & a, mpz & c);
|
void bitwise_not(unsigned sz, mpz const & a, mpz & c);
|
||||||
|
|
||||||
void set(mpz & target, mpz const & source) {
|
void set(mpz & target, mpz const & source) {
|
||||||
if (&target == &source) {
|
if (&target == &source || (target.has_ptr() && source.has_ptr() && target.ptr() == source.ptr())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (is_small(source)) {
|
if (is_small(source)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue