increase test coverage in preperation for completing fastboolean eval
This commit is contained in:
parent
d8bdab4e6a
commit
dc704a6b13
2 changed files with 16 additions and 6 deletions
|
|
@ -28,11 +28,6 @@ def eval_term(term, x, t):
|
|||
|
||||
|
||||
def get_times(x, tau, lo=None, hi=None):
|
||||
domain = fn.first(x.values()).domain
|
||||
if lo is None or lo is -oo:
|
||||
lo = domain.start()
|
||||
if hi is None or hi is oo:
|
||||
hi = domain.end()
|
||||
end = min(v.domain.end() for v in x.values())
|
||||
hi = hi + tau if hi + tau <= end else end
|
||||
lo = lo + tau if lo + tau <= end else end
|
||||
|
|
@ -104,6 +99,11 @@ def pointwise_satf_(phi):
|
|||
return lambda x, t: bitarray(x[str(phi.id)][tau] for tau in t)
|
||||
|
||||
|
||||
@pointwise_satf.register(stl.Until)
|
||||
def pointwise_satf_until(phi):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
@pointwise_satf.register(type(stl.TOP))
|
||||
def pointwise_satf_top(_):
|
||||
return lambda _, t: bitarray([True] * len(t))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue