mirror of
https://github.com/Z3Prover/z3
synced 2025-07-30 07:53:15 +00:00
ensure solve_eqs is fully disabled when smt.solve_eqs=false, #7743
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a2f17420ff
commit
a6c51df144
2 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,7 @@ Outline of a presumably better scheme:
|
||||||
#include "ast/simplifiers/solve_context_eqs.h"
|
#include "ast/simplifiers/solve_context_eqs.h"
|
||||||
#include "ast/converters/generic_model_converter.h"
|
#include "ast/converters/generic_model_converter.h"
|
||||||
#include "params/tactic_params.hpp"
|
#include "params/tactic_params.hpp"
|
||||||
|
#include "params/smt_params_helper.hpp"
|
||||||
|
|
||||||
|
|
||||||
namespace euf {
|
namespace euf {
|
||||||
|
@ -224,6 +225,9 @@ namespace euf {
|
||||||
|
|
||||||
void solve_eqs::reduce() {
|
void solve_eqs::reduce() {
|
||||||
|
|
||||||
|
if (!m_config.m_enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
m_fmls.freeze_suffix();
|
m_fmls.freeze_suffix();
|
||||||
|
|
||||||
for (extract_eq* ex : m_extract_plugins)
|
for (extract_eq* ex : m_extract_plugins)
|
||||||
|
@ -330,6 +334,8 @@ namespace euf {
|
||||||
for (auto* ex : m_extract_plugins)
|
for (auto* ex : m_extract_plugins)
|
||||||
ex->updt_params(p);
|
ex->updt_params(p);
|
||||||
m_rewriter.updt_params(p);
|
m_rewriter.updt_params(p);
|
||||||
|
smt_params_helper sp(p);
|
||||||
|
m_config.m_enabled = sp.solve_eqs();
|
||||||
}
|
}
|
||||||
|
|
||||||
void solve_eqs::collect_param_descrs(param_descrs& r) {
|
void solve_eqs::collect_param_descrs(param_descrs& r) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ namespace euf {
|
||||||
struct config {
|
struct config {
|
||||||
bool m_context_solve = true;
|
bool m_context_solve = true;
|
||||||
unsigned m_max_occs = UINT_MAX;
|
unsigned m_max_occs = UINT_MAX;
|
||||||
|
bool m_enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
stats m_stats;
|
stats m_stats;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue