Ejemplo n.º 1
0
def main():
    with open(sys.argv[1]) as cnf_file:
        cnf = load(cnf_file.read())
    result = dpll_satisfiable(cnf)
    print(result)
    return 0
Ejemplo n.º 2
0
def test_f4():
    assert not bool(dpll_satisfiable(load(f4)))
Ejemplo n.º 3
0
def test_f5():
    assert bool(dpll_satisfiable(load(f5)))
Ejemplo n.º 4
0
def test_f2():
    assert bool(dpll_satisfiable(load(f2)))
Ejemplo n.º 5
0
def test_f3():
    assert bool(dpll_satisfiable(load(f3)))
Ejemplo n.º 6
0
def test_f1():
    assert bool(dpll_satisfiable(load(f1)))
Ejemplo n.º 7
0
def test_f1():
    assert bool(dpll_satisfiable(load(f1)))
Ejemplo n.º 8
0
def test_f4():
    # re-enable this when dpll is efficient
    skip('Takes too much time')
    assert not bool(dpll_satisfiable(load(f4)))
Ejemplo n.º 9
0
def test_f3():
    assert bool(dpll_satisfiable(load(f3)))
Ejemplo n.º 10
0
def test_f2():
    assert bool(dpll_satisfiable(load(f2)))
Ejemplo n.º 11
0
def test_f4():
    assert not bool(dpll_satisfiable(load(f4)))
Ejemplo n.º 12
0
def test_f5():
    assert bool(dpll_satisfiable(load(f5)))