def concrete_post(update, state, expr = None): """ Apply an update concretely (compute concrete post). ". """ cons = compose_state_action(state.value,update,check=context.check) res = new_state(cons,domain = state.domain,expr=expr) # record the pre-state and update for future analysis res.pred = state res.update = update return res
def concrete_post(update, state, expr=None): """ Apply an update concretely (compute concrete post). ". """ cons = compose_state_action(state.value, update, check=context.check) res = new_state(cons, domain=state.domain, expr=expr) # record the pre-state and update for future analysis res.pred = state res.update = update return res
def concrete_post(update, state, expr = None): """ Apply an update concretely (compute concrete post). ". """ # TODO: axioms could change as scope changes axioms = state.domain.background_theory(state.in_scope) # print "concrete post: axioms = {}".format(axioms) cons = compose_state_action(state.value,axioms,update,check=context.check) res = new_state(cons,domain = state.domain,expr=expr) # record the pre-state and update for future analysis res.pred = state res.update = update return res