get_sort method

Z3_sort get_sort(
  1. Z3_context c,
  2. Z3_ast a
)

\brief Return the sort of an AST node.

The AST node must be a constant, application, numeral, bound variable, or quantifier.

def_API('Z3_get_sort', SORT, (_in(CONTEXT), _in(AST)))

Implementation

Z3_sort get_sort(
  Z3_context c,
  Z3_ast a,
) {
  return _get_sort(
    c,
    a,
  );
}