implement callable interface for evaluating a specification

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-12-16 14:30:27 -08:00
parent 5b7fea3953
commit 80f24cf74b
2 changed files with 12 additions and 7 deletions

View file

@ -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()