mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
move std::function initializer to beginning of class
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f6f594e21d
commit
e16acd0965
|
@ -79,7 +79,8 @@ namespace euf {
|
||||||
return reinterpret_cast<size_t>(UNTAG(size_t*, p));
|
return reinterpret_cast<size_t>(UNTAG(size_t*, p));
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_manager& m;
|
std::function<::solver*(void)> m_mk_solver;
|
||||||
|
ast_manager& m;
|
||||||
sat::sat_internalizer& si;
|
sat::sat_internalizer& si;
|
||||||
smt_params m_config;
|
smt_params m_config;
|
||||||
euf::egraph m_egraph;
|
euf::egraph m_egraph;
|
||||||
|
@ -102,7 +103,6 @@ namespace euf {
|
||||||
svector<scope> m_scopes;
|
svector<scope> m_scopes;
|
||||||
scoped_ptr_vector<th_solver> m_solvers;
|
scoped_ptr_vector<th_solver> m_solvers;
|
||||||
ptr_vector<th_solver> m_id2solver;
|
ptr_vector<th_solver> m_id2solver;
|
||||||
std::function<::solver*(void)> m_mk_solver;
|
|
||||||
|
|
||||||
constraint* m_conflict{ nullptr };
|
constraint* m_conflict{ nullptr };
|
||||||
constraint* m_eq{ nullptr };
|
constraint* m_eq{ nullptr };
|
||||||
|
|
|
@ -501,6 +501,8 @@ bool theory_seq::fixed_length(expr* len_e, bool is_zero) {
|
||||||
TRACE("seq", tout << "Fixed: " << mk_bounded_pp(e, m, 2) << " " << lo << "\n";);
|
TRACE("seq", tout << "Fixed: " << mk_bounded_pp(e, m, 2) << " " << lo << "\n";);
|
||||||
literal a = mk_eq(len_e, m_autil.mk_numeral(lo, true), false);
|
literal a = mk_eq(len_e, m_autil.mk_numeral(lo, true), false);
|
||||||
literal b = mk_seq_eq(seq, e);
|
literal b = mk_seq_eq(seq, e);
|
||||||
|
if (ctx.get_assignment(a) == l_false || ctx.get_assignment(b) == l_true)
|
||||||
|
return false;
|
||||||
add_axiom(~a, b);
|
add_axiom(~a, b);
|
||||||
if (!ctx.at_base_level()) {
|
if (!ctx.at_base_level()) {
|
||||||
m_trail_stack.push(push_replay(alloc(replay_fixed_length, m, len_e)));
|
m_trail_stack.push(push_replay(alloc(replay_fixed_length, m, len_e)));
|
||||||
|
|
Loading…
Reference in a new issue