mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
parent
af5b2a4179
commit
c2595b9bc8
|
@ -559,10 +559,11 @@ unsigned get_node_hash(ast const * n) {
|
||||||
return to_sort(n)->get_name().hash();
|
return to_sort(n)->get_name().hash();
|
||||||
else
|
else
|
||||||
return combine_hash(to_sort(n)->get_name().hash(), to_sort(n)->get_info()->hash());
|
return combine_hash(to_sort(n)->get_name().hash(), to_sort(n)->get_info()->hash());
|
||||||
case AST_FUNC_DECL:
|
case AST_FUNC_DECL: {
|
||||||
|
unsigned h = combine_hash(to_func_decl(n)->get_name().hash(), to_func_decl(n)->get_range()->hash());
|
||||||
return ast_array_hash(to_func_decl(n)->get_domain(), to_func_decl(n)->get_arity(),
|
return ast_array_hash(to_func_decl(n)->get_domain(), to_func_decl(n)->get_arity(),
|
||||||
to_func_decl(n)->get_info() == nullptr ?
|
combine_hash(h, to_func_decl(n)->get_info() == nullptr ? 0 : to_func_decl(n)->get_info()->hash()));
|
||||||
to_func_decl(n)->get_name().hash() : combine_hash(to_func_decl(n)->get_name().hash(), to_func_decl(n)->get_info()->hash()));
|
}
|
||||||
case AST_APP:
|
case AST_APP:
|
||||||
return ast_array_hash(to_app(n)->get_args(),
|
return ast_array_hash(to_app(n)->get_args(),
|
||||||
to_app(n)->get_num_args(),
|
to_app(n)->get_num_args(),
|
||||||
|
|
Loading…
Reference in a new issue