def get_hash_value(context, builder, typ, value):
 sig = typing.signature(types.intp, typ)
 fn = context.get_function(hash, sig)
 h = fn(builder, (value,))
 is_ok = is_hash_used(context, builder, h)
 fallback = ir.Constant(h.type, FALLBACK)
 return builder.select(is_ok, h, fallback)

def get_hash_value ( context , builder , typ , value ) : sig = typing . signature ( types . intp , typ ) fn = context . get_function ( hash , sig ) h = fn ( builder , ( value , ) ) is_ok = is_hash_used ( context , builder , h ) fallback = ir . Constant ( h . type , FALLBACK ) return builder . select ( is_ok , h , fallback )
compute the hash of the given value .