Skip to content

Commit

Permalink
Revert to use implies
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 28, 2023
1 parent fc202eb commit c5e7649
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions fault/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ def inside(lhs, rhs):
return Inside(lhs, rhs)


class And(Property):
op_str = "&&"


@Infix
def and_(lhs, rhs):
return And(lhs, rhs)


class GetItemProperty(Property):
def __init__(self, num_cycles):
if isinstance(num_cycles, slice):
Expand Down Expand Up @@ -258,7 +249,7 @@ def compile(self, prop):

def _make_statement(statement, prop, on, disable_iff, compile_guard, name):
if (when_cond := get_when_cond()) is not None:
prop = when_cond | and_ | prop
prop = when_cond | implies | prop

format_args = {}
_compiler = _Compiler(format_args)
Expand Down

0 comments on commit c5e7649

Please sign in to comment.