mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
reverse the order in nex expressions
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
4daa841116
commit
0f948d7a07
3 changed files with 29 additions and 18 deletions
|
@ -86,11 +86,11 @@ public:
|
|||
bool less_than(lpvar j, lpvar k) const{
|
||||
unsigned wj = (unsigned)m_active_vars_weights[j];
|
||||
unsigned wk = (unsigned)m_active_vars_weights[k];
|
||||
return wj != wk ? wj < wk : j < k;
|
||||
return wj != wk ? wj > wk : j > k;
|
||||
}
|
||||
|
||||
bool less_than_on_nex_pow(const nex_pow & a, const nex_pow& b) const {
|
||||
return (a.pow() < b.pow()) || (a.pow() == b.pow() && lt(a.e(), b.e()));
|
||||
return (a.pow() > b.pow()) || (a.pow() == b.pow() && lt(a.e(), b.e()));
|
||||
}
|
||||
|
||||
void simplify_children_of_mul(vector<nex_pow> & children, rational&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue