Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 4
0
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