mirror of
https://github.com/Z3Prover/z3
synced 2025-06-29 01:18:45 +00:00
remove 2 unneeded lambda captures
This commit is contained in:
parent
6f24123f0c
commit
2f5c0a6985
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ expr_ref var_subst::operator()(expr * n, unsigned num_args, expr * const * args)
|
||||||
rep(n, result);
|
rep(n, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
if (is_app(n) && all_of(*to_app(n), [&](expr* arg) { return is_ground(arg) || is_var(arg); })) {
|
if (is_app(n) && all_of(*to_app(n), [](expr* arg) { return is_ground(arg) || is_var(arg); })) {
|
||||||
ptr_buffer<expr> new_args;
|
ptr_buffer<expr> new_args;
|
||||||
for (auto arg : *to_app(n)) {
|
for (auto arg : *to_app(n)) {
|
||||||
if (is_ground(arg))
|
if (is_ground(arg))
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace qembp {
|
||||||
|
|
||||||
SASSERT(num == accessors->size());
|
SASSERT(num == accessors->size());
|
||||||
// -- all accessors must have exactly one argument
|
// -- all accessors must have exactly one argument
|
||||||
if (any_of(*accessors, [&](const func_decl* acc) { return acc->get_arity() != 1; })) {
|
if (any_of(*accessors, [](const func_decl* acc) { return acc->get_arity() != 1; })) {
|
||||||
return BR_FAILED;
|
return BR_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue