mirror of
https://github.com/Z3Prover/z3
synced 2025-11-28 16:29:50 +00:00
Use const refs to reduce copying.
These are things that have been found by `clang-tidy`.
This commit is contained in:
parent
5a16d3ef7f
commit
177414c0ee
28 changed files with 62 additions and 62 deletions
|
|
@ -3418,7 +3418,7 @@ expr_ref context::get_constraints (unsigned level)
|
|||
return m_pm.mk_and (constraints);
|
||||
}
|
||||
|
||||
void context::add_constraints (unsigned level, expr_ref c)
|
||||
void context::add_constraints (unsigned level, const expr_ref& c)
|
||||
{
|
||||
if (!c.get()) { return; }
|
||||
if (m.is_true(c)) { return; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue