futhark-0.21.3: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.Analysis.PrimExp.Generalize

Description

Generalization (anti-unification) of PrimExps.

Synopsis

Documentation

leastGeneralGeneralization :: Eq v => [(PrimExp v, PrimExp v)] -> PrimExp v -> PrimExp v -> (PrimExp (Ext v), [(PrimExp v, PrimExp v)]) Source #

Generalize two PrimExps of the the same type.