mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
there are some different sources for the performance regression illustrated by the example. The mitigations will be enabled separately: - m_bv_to_propagate is too expensive - lp_bound_propagator misses equalities in two different ways: - it resets row checks after backtracking even though they could still propagate - it misses equalities for fixed rows when the fixed constant value does not correspond to a fixed variable. FYI @levnach
36 lines
937 B
C++
36 lines
937 B
C++
/*++
|
|
Copyright (c) 2017 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
<name>
|
|
|
|
Abstract:
|
|
|
|
<abstract>
|
|
|
|
Author:
|
|
|
|
Lev Nachmanson (levnach)
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
#include <memory>
|
|
#include "util/vector.h"
|
|
#include "smt/params/smt_params_helper.hpp"
|
|
#include "math/lp/lp_settings_def.h"
|
|
template bool lp::vectors_are_equal<double>(vector<double> const&, vector<double> const&);
|
|
template bool lp::vectors_are_equal<lp::mpq>(vector<lp::mpq > const&, vector<lp::mpq> const&);
|
|
|
|
void lp::lp_settings::updt_params(params_ref const& _p) {
|
|
smt_params_helper p(_p);
|
|
m_enable_hnf = p.arith_enable_hnf();
|
|
m_propagate_eqs = p.arith_propagate_eqs();
|
|
print_statistics = p.arith_print_stats();
|
|
m_print_external_var_name = p.arith_print_ext_var_names();
|
|
report_frequency = p.arith_rep_freq();
|
|
m_simplex_strategy = static_cast<lp::simplex_strategy_enum>(p.arith_simplex_strategy());
|
|
m_nlsat_delay = p.arith_nl_delay();
|
|
}
|