fpa_get_numeral_sign method

bool fpa_get_numeral_sign(
  1. Z3_context c,
  2. Z3_ast t,
  3. Pointer<Int> sgn
)

\brief Retrieves the sign of a floating-point literal.

\param c logical context \param t a floating-point numeral \param sgn the retrieved sign \returns true if \c t corresponds to a floating point numeral, otherwise invokes exception handler or returns false

Remarks: sets \c sgn to 0 if `t' is positive and to 1 otherwise, except for NaN, which is an invalid argument.

def_API('Z3_fpa_get_numeral_sign', BOOL, (_in(CONTEXT), _in(AST), _out(INT)))

Implementation

bool fpa_get_numeral_sign(
  Z3_context c,
  Z3_ast t,
  ffi.Pointer<ffi.Int> sgn,
) {
  return _fpa_get_numeral_sign(
    c,
    t,
    sgn,
  );
}