mirror of
https://github.com/Z3Prover/z3
synced 2025-08-13 14:40:55 +00:00
Add GCD test
This commit is contained in:
parent
b7b7970c4a
commit
6506d33b35
3 changed files with 46 additions and 5 deletions
|
@ -65,7 +65,7 @@ protected:
|
|||
|
||||
void set_curr_sort(sort * s) { m_curr_sort = s; }
|
||||
|
||||
expr * const * get_monomials(expr * & t, unsigned & sz) {
|
||||
expr * const * get_monomials(expr * & t, unsigned & sz) const {
|
||||
if (is_add(t)) {
|
||||
sz = to_app(t)->get_num_args();
|
||||
return to_app(t)->get_args();
|
||||
|
@ -86,7 +86,7 @@ protected:
|
|||
bool hoist_multiplication(expr_ref& som);
|
||||
expr* merge_muls(expr* x, expr* y);
|
||||
|
||||
bool is_mul(expr * t, numeral & c, expr * & pp);
|
||||
bool is_mul(expr * t, numeral & c, expr * & pp) const;
|
||||
|
||||
class mon_lt {
|
||||
poly_rewriter& rw;
|
||||
|
@ -124,6 +124,8 @@ public:
|
|||
bool is_var_plus_ground(expr * n, bool & inv, var * & v, expr_ref & t);
|
||||
bool is_zero(expr* e) const;
|
||||
|
||||
bool gcd_test(expr* lhs, expr* rhs) const;
|
||||
|
||||
|
||||
br_status mk_mul_core(unsigned num_args, expr * const * args, expr_ref & result) {
|
||||
SASSERT(num_args > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue