added test coverage for f_neg_canonical_form

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-11-14 10:08:40 -08:00
parent 7aed260d5d
commit fd555661a0
3 changed files with 16 additions and 8 deletions

View file

@ -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