mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 08:15:47 +00:00
breaking change. Enforce append semantics everywhere for parameter updates #5744
Replace semantics doesn't work with assumptions made elsewhere in code. The remedy is to apply append (override) semantics for parameter changes.
This commit is contained in:
parent
e8833f4dac
commit
fc77345bec
53 changed files with 101 additions and 98 deletions
|
@ -199,12 +199,12 @@ void tst_params(cmd_context & ctx) {
|
|||
params_ref p1;
|
||||
params_ref p2;
|
||||
p1.set_uint("val", 100);
|
||||
p2 = p1;
|
||||
p2.append(p1);
|
||||
SASSERT(p2.get_uint("val", 0) == 100);
|
||||
p2.set_uint("val", 200);
|
||||
SASSERT(p2.get_uint("val", 0) == 200);
|
||||
SASSERT(p1.get_uint("val", 0) == 100);
|
||||
p2 = p1;
|
||||
p2.append(p1);
|
||||
SASSERT(p2.get_uint("val", 0) == 100);
|
||||
SASSERT(p1.get_uint("val", 0) == 100);
|
||||
ctx.regular_stream() << "worked" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue