mirror of
https://github.com/Z3Prover/z3
synced 2026-06-09 10:30:59 +00:00
parent
cd94f8541f
commit
51cbbe0a0e
1 changed files with 4 additions and 1 deletions
|
|
@ -750,7 +750,10 @@ bool array_rewriter::add_store(expr_ref_vector& args, unsigned num_idxs, expr* e
|
||||||
}
|
}
|
||||||
if (is_var(e1) && is_ground(e2)) {
|
if (is_var(e1) && is_ground(e2)) {
|
||||||
unsigned idx = to_var(e1)->get_idx();
|
unsigned idx = to_var(e1)->get_idx();
|
||||||
args[num_idxs - idx - 1] = e2;
|
unsigned nidx = num_idxs - idx - 1;
|
||||||
|
if (args.get(nidx) && args.get(nidx) != e2)
|
||||||
|
return false;
|
||||||
|
args[nidx] = e2;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue