make t=0 default in boolean eval
This commit is contained in:
parent
9098cff929
commit
b3bba24336
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ class AST(object):
|
||||||
|
|
||||||
while phi2 != phi:
|
while phi2 != phi:
|
||||||
phi2, phi = phi, AP_lens(phi).modify(update)
|
phi2, phi = phi, AP_lens(phi).modify(update)
|
||||||
# TODO: this is hack to flatten the AST. Fix!
|
|
||||||
return phi
|
return phi
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ def negate_trace(x):
|
||||||
def pointwise_sat(phi, dt=0.1):
|
def pointwise_sat(phi, dt=0.1):
|
||||||
ap_names = [z.id for z in phi.atomic_predicates]
|
ap_names = [z.id for z in phi.atomic_predicates]
|
||||||
|
|
||||||
def _eval_stl(x, t, dt=0.1):
|
def _eval_stl(x, t=0):
|
||||||
evaluated = stl.utils.eval_lineqs(phi, x)
|
evaluated = stl.utils.eval_lineqs(phi, x)
|
||||||
|
|
||||||
evaluated.update(fn.project(x, ap_names))
|
evaluated.update(fn.project(x, ap_names))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue