예제 #1
0
파일: ivy_interp.py 프로젝트: ZZHGit/ivy
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
예제 #2
0
파일: ivy_interp.py 프로젝트: asyaf/ivy
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
예제 #3
0
파일: ivy_interp.py 프로젝트: jamella/ivy
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
예제 #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