start addeding atomic propositions

This commit is contained in:
Marcell Vazquez-Chanlatte 2016-11-04 14:45:30 -07:00
parent 4c46db7f71
commit c46e325cf8
4 changed files with 21 additions and 2 deletions

View file

@ -5,6 +5,7 @@ from functools import singledispatch
import operator as op
import numpy as np
import sympy as smp
from lenses import lens
import stl.ast
@ -52,6 +53,11 @@ op_lookup = {
}
@pointwise_sat.register(stl.AtomicPred)
def _(stl):
return lambda x, t: x[term.id][t]
@pointwise_sat.register(stl.LinEq)
def _(stl):
op = op_lookup[stl.op]