Similar to variant_sha1/2,
but using a non-cryptographic hash and produces an integer result like term_hash/2.
This version does deal with attributed variables, processing them as
normal variables. This hash is primarily intended to speedup finding
variant terms in a set of terms.
cyclic terms result in an exception.
Tag confusing pages with doc-needs-help|Tags are associated to your profile if you are logged in