add depenedencies + bounds checks
This commit is contained in:
parent
b040a6c425
commit
374b080c42
1 changed files with 2 additions and 2 deletions
|
|
@ -27,14 +27,14 @@ def _(stl):
|
||||||
@pointwise_sat.register(stl.F)
|
@pointwise_sat.register(stl.F)
|
||||||
def _(stl):
|
def _(stl):
|
||||||
lo, hi = stl.interval
|
lo, hi = stl.interval
|
||||||
return lambda x, t: any((pointwise_sat(stl.arg)(x, t + t2)
|
return lambda x, t: any((pointwise_sat(stl.arg)(x, min(t + t2, x.index[-1]))
|
||||||
for t2 in x[lo:hi].index))
|
for t2 in x[lo:hi].index))
|
||||||
|
|
||||||
|
|
||||||
@pointwise_sat.register(stl.G)
|
@pointwise_sat.register(stl.G)
|
||||||
def _(stl):
|
def _(stl):
|
||||||
lo, hi = stl.interval
|
lo, hi = stl.interval
|
||||||
return lambda x, t: all((pointwise_sat(stl.arg)(x, t + t2)
|
return lambda x, t: all((pointwise_sat(stl.arg)(x, min(t + t2, x.index[-1]))
|
||||||
for t2 in x[lo:hi].index))
|
for t2 in x[lo:hi].index))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue