futhark-0.20.8: 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.