get_ast_hash method

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

\brief Return a hash code for the given AST. The hash code is structural but two different AST objects can map to the same hash. The result of \c Z3_get_ast_id returns an identifier that is unique over the set of live AST objects.

def_API('Z3_get_ast_hash', UINT, (_in(CONTEXT), _in(AST)))

Implementation

int get_ast_hash(
  Z3_context c,
  Z3_ast a,
) {
  return _get_ast_hash(
    c,
    a,
  );
}