ast_to_string method

Z3_string ast_to_string(
  1. Z3_context c,
  2. Z3_ast a
)

\brief Convert the given AST node into a string.

\warning The result buffer is statically allocated by Z3. It will be automatically deallocated when #Z3_del_context is invoked. So, the buffer is invalidated in the next call to \c Z3_ast_to_string.

\sa Z3_pattern_to_string \sa Z3_sort_to_string

def_API('Z3_ast_to_string', STRING, (_in(CONTEXT), _in(AST)))

Implementation

Z3_string ast_to_string(
  Z3_context c,
  Z3_ast a,
) {
  return _ast_to_string(
    c,
    a,
  );
}