mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
port grobner: fix the sum from row creation
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
809647ec2f
commit
4651eb7042
5 changed files with 55 additions and 32 deletions
|
@ -672,12 +672,12 @@ void nex_creator::sort_join_sum(ptr_vector<nex> & children) {
|
|||
|
||||
TRACE("nla_cn_details", for (auto & p : map ) { tout << "(" << *p.first << ", " << p.second << ") ";});
|
||||
children.clear();
|
||||
if (common_scalar) {
|
||||
children.push_back(common_scalar);
|
||||
}
|
||||
for (auto& p : map) {
|
||||
process_map_pair(p.first, p.second, children, existing_nex);
|
||||
}
|
||||
if (common_scalar) {
|
||||
children.push_back(common_scalar);
|
||||
}
|
||||
TRACE("nla_cn_details", for (auto & p : map ) { tout << "(" << *p.first << ", " << p.second << ") ";});
|
||||
}
|
||||
|
||||
|
@ -856,7 +856,7 @@ void nex_creator::process_map_pair(nex *e, const rational& coeff, ptr_vector<nex
|
|||
}
|
||||
|
||||
bool nex_creator::is_simplified(const nex *e) const
|
||||
{
|
||||
{
|
||||
if (e->is_mul())
|
||||
return mul_is_simplified(to_mul(e));
|
||||
if (e->is_sum())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue