algebraic_sign method

int algebraic_sign(
  1. Z3_context c,
  2. Z3_ast a
)

\brief Return 1 if \c a is positive, 0 if \c a is zero, and -1 if \c a is negative.

\pre Z3_algebraic_is_value(c, a)

def_API('Z3_algebraic_sign', INT, (_in(CONTEXT), _in(AST)))

Implementation

int algebraic_sign(
  Z3_context c,
  Z3_ast a,
) {
  return _algebraic_sign(
    c,
    a,
  );
}