implement callable interface for evaluating a specification
This commit is contained in:
parent
5b7fea3953
commit
80f24cf74b
2 changed files with 12 additions and 7 deletions
|
|
@ -1,11 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from collections import deque, namedtuple
|
||||
from functools import lru_cache
|
||||
|
||||
import funcy as fn
|
||||
from lenses import lens, bind
|
||||
|
||||
import stl
|
||||
|
||||
|
||||
def flatten_binary(phi, op, dropT, shortT):
|
||||
def f(x):
|
||||
|
|
@ -47,6 +48,9 @@ class AST(object):
|
|||
|
||||
return phi
|
||||
|
||||
def __call__(self, trace, time):
|
||||
return stl.pointwise_sat(self)(trace, time)
|
||||
|
||||
@property
|
||||
def children(self):
|
||||
return tuple()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue