working on the encoding for rsLTL, testing functionality

This commit is contained in:
Artur Meski
2017-03-05 12:58:24 +01:00
parent 12fee678f6
commit 827568e174
5 changed files with 36 additions and 5 deletions

View File

@@ -1,2 +1,3 @@
from logics.rsltl import Formula_rsLTL
from logics.rsltl import BagDescription
from logics.rsltl import Encoder_rsLTL

View File

@@ -133,7 +133,6 @@ class Formula_rsLTL(object):
return Formula_rsLTL(rsLTL_form_type.l_not, L_oper = self)
class Encoder_rsLTL(object):
"""Class for encoding rsLTL formulae for a given smt_checker instance"""
@@ -145,7 +144,7 @@ class Encoder_rsLTL(object):
def encode_bag(self, bag_formula, level, context=False):
if bag_formula.f_type == BagDesc_oper.entity:
entity_id = self.rs.get_entity_id(self.entity)
entity_id = self.rs.get_entity_id(bag_formula.entity)
if context:
return self.v_ctx[level][entity_id]
else: