unification flags behave like flags

This commit is contained in:
Mirek Kratochvil 2023-02-26 22:17:38 +01:00
parent 0092723895
commit 1521c628a0

View file

@ -242,10 +242,12 @@ unify (Number a) (Number b)
unify (Struct a) VoidRef = do unify (Struct a) VoidRef = do
uNext uNext
cur . gol %= (replicate (arity a) (U VoidRef) ++) cur . gol %= (replicate (arity a) (U VoidRef) ++)
cur . unis += arity a
continue continue
unify VoidRef (Struct a) = do unify VoidRef (Struct a) = do
uNext uNext
cur . hed %= (replicate (arity a) (U VoidRef) ++) cur . hed %= (replicate (arity a) (U VoidRef) ++)
cur . unis += arity a
continue continue
unify (Struct a) (Struct b) unify (Struct a) (Struct b)
| a == b = do | a == b = do