mirror of
https://github.com/Z3Prover/z3
synced 2025-06-08 15:13:23 +00:00
api: avoid copying param_refs whenever possible
This commit is contained in:
parent
d0d06c288a
commit
30fd01b526
5 changed files with 15 additions and 13 deletions
|
@ -230,8 +230,7 @@ extern "C" {
|
|||
param_descrs descrs;
|
||||
to_optimize_ptr(o)->collect_param_descrs(descrs);
|
||||
to_params(p)->m_params.validate(descrs);
|
||||
params_ref pr = to_param_ref(p);
|
||||
to_optimize_ptr(o)->updt_params(pr);
|
||||
to_optimize_ptr(o)->updt_params(to_param_ref(p));
|
||||
Z3_CATCH;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue