added tests for edge case andf/orf behavior
This commit is contained in:
parent
58c33f530c
commit
c3d9292db9
2 changed files with 10 additions and 2 deletions
|
|
@ -131,10 +131,10 @@ def until(phi1, phi2, *, lo, hi):
|
|||
return stl.ast.Until(Interval(lo, hi), phi1, phi2)
|
||||
|
||||
def andf(*args):
|
||||
return reduce(op.and_, args, stl.TOP)
|
||||
return reduce(op.and_, args) if args else stl.TOP
|
||||
|
||||
def orf(*args):
|
||||
return reduce(op.or_, args, stl.TOP)
|
||||
return reduce(op.or_, args) if args else stl.TOP
|
||||
|
||||
def implies(x, y):
|
||||
return ~x | y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue