From c2f8dd9a029279bdab0e0f2028bf44b5b3fb8f57 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Wed, 13 Mar 2024 16:20:51 -0700 Subject: [PATCH] use -> types Signed-off-by: Nikolaj Bjorner --- src/sat/smt/polysat_egraph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sat/smt/polysat_egraph.cpp b/src/sat/smt/polysat_egraph.cpp index 9fe1eb410..6df1d6136 100644 --- a/src/sat/smt/polysat_egraph.cpp +++ b/src/sat/smt/polysat_egraph.cpp @@ -35,7 +35,7 @@ namespace polysat { // walk the egraph starting with pvar for suffix overlaps. void solver::get_bitvector_suffixes(pvar pv, offset_slices& out) { uint_set seen; - std::function consume_slice = [&](euf::enode* n, unsigned offset) { + auto consume_slice = [&](euf::enode* n, unsigned offset) -> bool { if (offset != 0) return false; for (auto sib : euf::enode_class(n)) { @@ -59,7 +59,7 @@ namespace polysat { // walk the egraph starting with pvar for any overlaps. void solver::get_bitvector_sub_slices(pvar pv, offset_slices& out) { uint_set seen; - std::function consume_slice = [&](euf::enode* n, unsigned offset) { + auto consume_slice = [&](euf::enode* n, unsigned offset) -> bool { for (auto sib : euf::enode_class(n)) { auto w = sib->get_th_var(get_id()); if (w == euf::null_theory_var) @@ -81,7 +81,7 @@ namespace polysat { // walk the egraph for bit-vectors that contain pv. void solver::get_bitvector_super_slices(pvar pv, offset_slices& out) { uint_set seen; - std::function consume_slice = [&](euf::enode* n, unsigned offset) { + auto consume_slice = [&](euf::enode* n, unsigned offset) -> bool { for (auto sib : euf::enode_class(n)) { auto w = sib->get_th_var(get_id()); if (w == euf::null_theory_var) @@ -105,7 +105,7 @@ namespace polysat { void solver::get_fixed_bits(pvar pv, fixed_bits_vector& out) { theory_var v = m_pddvar2var[pv]; euf::enode* b = var2enode(v); - std::function consume_slice = [&](euf::enode* n, unsigned offset) { + auto consume_slice = [&](euf::enode* n, unsigned offset) -> bool { auto r = n->get_root(); if (!r->interpreted()) return true;