increase test coverage in preperation for completing fastboolean eval

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-11-14 20:43:22 -08:00
parent d8bdab4e6a
commit dc704a6b13
2 changed files with 16 additions and 6 deletions

View file

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