added test coverage for f_neg_canonical_form
This commit is contained in:
parent
7aed260d5d
commit
fd555661a0
3 changed files with 16 additions and 8 deletions
12
stl/ast.py
12
stl/ast.py
|
|
@ -89,6 +89,10 @@ class AST(object):
|
|||
# TODO: this is hack to flatten the AST. Fix!
|
||||
return phi
|
||||
|
||||
def __hash__(self):
|
||||
# TODO: compute hash based on contents
|
||||
return hash(repr(self))
|
||||
|
||||
|
||||
class _Top(AST):
|
||||
__slots__ = ()
|
||||
|
|
@ -96,10 +100,6 @@ class _Top(AST):
|
|||
def __repr__(self):
|
||||
return "⊤"
|
||||
|
||||
def __hash__(self):
|
||||
# TODO: compute hash based on contents
|
||||
return hash(repr(self))
|
||||
|
||||
def __invert__(self):
|
||||
return BOT
|
||||
|
||||
|
|
@ -110,10 +110,6 @@ class _Bot(AST):
|
|||
def __repr__(self):
|
||||
return "⊥"
|
||||
|
||||
def __hash__(self):
|
||||
# TODO: compute hash based on contents
|
||||
return hash(repr(self))
|
||||
|
||||
def __invert__(self):
|
||||
return TOP
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue