Merge pull request #8 from shromonag/master
Modified fastboolean eval to fix initialization randomness
This commit is contained in:
commit
60b2e0a69a
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ def bool_op(stl, conjunction=False):
|
||||||
f = and_ if conjunction else or_
|
f = and_ if conjunction else or_
|
||||||
def sat_comp(x,t):
|
def sat_comp(x,t):
|
||||||
sat = bitarray(len(t))
|
sat = bitarray(len(t))
|
||||||
|
sat.setall(True) if conjunction else sat.setall(False)
|
||||||
for arg in stl.args:
|
for arg in stl.args:
|
||||||
sat = f(pointwise_satf(arg)(x, t), sat)
|
sat = f(pointwise_satf(arg)(x, t), sat)
|
||||||
return sat
|
return sat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue