示例#1
0
def test_MODS_satisfiable(sentence: nnf.Or):
    if len(sentence.children) > 0:
        assert sentence.satisfiable()
    else:
        assert not sentence.satisfiable()
示例#2
0
def test_hyp(sentence: nnf.Or):
    assume(len(sentence.children) != 0)
    assume(sentence.decomposable())
    assert sentence.satisfiable()
    assert sentence.vars() <= set(range(1, 9))