Updated fast boolean
This commit is contained in:
parent
5756362b3c
commit
6f20a4811c
1 changed files with 3 additions and 5 deletions
|
|
@ -23,10 +23,9 @@ def _(stl):
|
||||||
def _(stl):
|
def _(stl):
|
||||||
def sat_comp(x,t):
|
def sat_comp(x,t):
|
||||||
sat = bitarray(len(t))
|
sat = bitarray(len(t))
|
||||||
sat.setall('True')
|
|
||||||
for arg in stl.args:
|
for arg in stl.args:
|
||||||
sat = pointwise_satf(arg)(x, t) & sat
|
sat = ~pointwise_satf(arg)(x, t) | ~sat
|
||||||
return sat
|
return ~sat
|
||||||
return sat_comp
|
return sat_comp
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -49,8 +48,7 @@ def _(stl):
|
||||||
sat = bitarray()
|
sat = bitarray()
|
||||||
for tau in t:
|
for tau in t:
|
||||||
tau_t = [min(tau + t2, x.index[-1]) for t2 in x[lo:hi].index]
|
tau_t = [min(tau + t2, x.index[-1]) for t2 in x[lo:hi].index]
|
||||||
point_sat = pointwise_satf(stl.arg)(x, tau_t)
|
sat.append((~(pointwise_satf(stl.arg)(x, tau_t))).count() == 0)
|
||||||
sat.append(point_sat.count() == point_sat.length())
|
|
||||||
return sat
|
return sat
|
||||||
return sat_comp
|
return sat_comp
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue