You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Done with the next v0.3 (#226, #93). The operator == is now available to compare two ASTs. This operator go through an AST and computes a checksum recursively.
As we must keep a bit of logic when we compare two nodes, we have two kinds of hash routines.
hash routine 1
When we don't care about the order. e.g: (add a b c) is equal to (add b c a).
Done with the next v0.3 (#226, #93). The operator
==
is now available to compare two ASTs. This operator go through an AST and computes a checksum recursively.As we must keep a bit of logic when we compare two nodes, we have two kinds of hash routines.
hash routine 1
When we don't care about the order. e.g:
(add a b c)
is equal to(add b c a)
.hash = kind * number_of_childs * (forall child in childs, hash(child))
.e.g with bvadd:
hash routine 2
When the order is important. e.q
(div a b) is not equal to (div b a)
hash = kind * number_of_childs * (forall child in childs, hash(child)^index)
.e.g with bvudiv
The text was updated successfully, but these errors were encountered: