示例#1
0
文件: expr.py 项目: cjdrake/pyeda
def Unequal(*xs, simplify=True):
    """Expression inequality operator

    If *simplify* is ``True``, return a simplified expression.
    """
    xs = [Expression.box(x).node for x in xs]
    y = exprnode.not_(exprnode.eq(*xs))
    if simplify:
        y = y.simplify()
    return _expr(y)
示例#2
0
文件: expr.py 项目: bopopescu/cfas
def Unequal(*xs, simplify=True):
    """Expression inequality operator

    If *simplify* is ``True``, return a simplified expression.
    """
    xs = [Expression.box(x).node for x in xs]
    y = exprnode.not_(exprnode.eq(*xs))
    if simplify:
        y = y.simplify()
    return _expr(y)
示例#3
0
文件: expr.py 项目: cjdrake/pyeda
 def eq(self, other):
     """Boolean equal operator."""
     other_node = self.box(other).node
     return _expr(exprnode.eq(self.node, other_node))
示例#4
0
文件: expr.py 项目: bopopescu/cfas
 def eq(self, other):
     """Boolean equal operator."""
     other_node = self.box(other).node
     return _expr(exprnode.eq(self.node, other_node))