mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
use m_rm_table.to_refine() when applying tangent lemma
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
1507f54fe3
commit
8018e27643
2 changed files with 4 additions and 6 deletions
|
@ -301,7 +301,7 @@ static void parse_cmd_line_args(int argc, char ** argv) {
|
||||||
|
|
||||||
|
|
||||||
int STD_CALL main(int argc, char ** argv) {
|
int STD_CALL main(int argc, char ** argv) {
|
||||||
#ifdef DUMP_ARGS
|
#ifdef DUMP_ARGS_
|
||||||
std::cout << "args are: ";
|
std::cout << "args are: ";
|
||||||
for (int i = 0; i < argc; i++)
|
for (int i = 0; i < argc; i++)
|
||||||
std::cout << argv[i] <<" ";
|
std::cout << argv[i] <<" ";
|
||||||
|
|
|
@ -2554,10 +2554,9 @@ struct solver::imp {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool find_bfc_to_refine(bfc& bf, lpvar &j, rational& sign, const rooted_mon*& rm_found){
|
bool find_bfc_to_refine(bfc& bf, lpvar &j, rational& sign, const rooted_mon*& rm_found){
|
||||||
// todo : run on m_rm_table.to_refine()
|
for (unsigned i: m_rm_table.to_refine()) {
|
||||||
for (const auto& rm : m_rm_table.vec()) {
|
const auto& rm = m_rm_table.vec()[i];
|
||||||
if (check_monomial(m_monomials[rm.orig_index()]))
|
SASSERT (!check_monomial(m_monomials[rm.orig_index()]));
|
||||||
continue;
|
|
||||||
rm_found = &rm;
|
rm_found = &rm;
|
||||||
if (find_bfc_on_monomial(rm, bf)) {
|
if (find_bfc_on_monomial(rm, bf)) {
|
||||||
j = m_monomials[rm.orig_index()].var();
|
j = m_monomials[rm.orig_index()].var();
|
||||||
|
@ -2567,7 +2566,6 @@ struct solver::imp {
|
||||||
print_bfc(bf, tout);
|
print_bfc(bf, tout);
|
||||||
tout << ", product = " << vvr(rm) << ", but should be =" << vvr(bf.m_x)*vvr(bf.m_y);
|
tout << ", product = " << vvr(rm) << ", but should be =" << vvr(bf.m_x)*vvr(bf.m_y);
|
||||||
tout << ", j == "; print_var(j, tout) << "\n";);
|
tout << ", j == "; print_var(j, tout) << "\n";);
|
||||||
rm_found = &rm;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue