Esempio n. 1
0
def false_properties(reporter=None):
    axioms = im.background_theory()
    props = [x for x in im.module.labeled_props if not x.temporal]
    subgoalmap = dict((x.id, y) for x, y in im.module.subgoals)
    aas = ([islvr.Assume(axioms)] +
           [(islvr.Assume if prop.id in subgoalmap else islvr.Assert)(
               formula_to_clauses(prop.formula), prop) for prop in props])
    truths = islvr.check_sequence(aas, reporter)
    return [c for c, t in zip(props, truths[1:]) if not t]
Esempio n. 2
0
def false_properties(reporter= None):
    axioms = im.background_theory()
    props = [x for x in im.module.labeled_props if not x.temporal]
    subgoalmap = dict((x.id,y) for x,y in im.module.subgoals)
    aas = ([islvr.Assume(axioms)]
           + [(islvr.Assume if prop.id in subgoalmap else islvr.Assert)
              (formula_to_clauses(prop.formula),prop) for prop in props])
    truths = islvr.check_sequence(aas,reporter)
    return [c for c,t in zip(props,truths[1:]) if not t]