'Add an Automatically Defined Function (ADF) to the set.
:param adfset: PrimitiveSetTyped containing the primitives with which
the ADF can be built.'

def addADF(self, adfset):

    prim = Primitive(adfset.name, adfset.ins, adfset.ret)
    self._add(prim)
    self.prims_count += 1
