##
import pytest
-import pycvc5
+import cvc5
import sys
-from pycvc5 import Kind
+from cvc5 import Kind
@pytest.fixture
def solver():
- return pycvc5.Solver()
+ return cvc5.Solver()
def test_recoverable_exception(solver):
def test_supports_floating_point(solver):
- solver.mkRoundingMode(pycvc5.RoundNearestTiesToEven)
+ solver.mkRoundingMode(cvc5.RoundNearestTiesToEven)
def test_get_boolean_sort(solver):
solver.mkArraySort(fpSort, fpSort)
solver.mkArraySort(bvSort, fpSort)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkArraySort(boolSort, boolSort)
dtypeSpec.addConstructor(nil)
solver.mkDatatypeSort(dtypeSpec)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkDatatypeSort(dtypeSpec)
def test_mk_datatype_sorts(solver):
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
dtypeSpec1 = solver.mkDatatypeDecl("list1")
cons1 = solver.mkDatatypeConstructorDecl("cons1")
solver.mkUninterpretedSort("u")],\
funSort2)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkFunctionSort(solver.mkUninterpretedSort("u"),\
solver.getIntegerSort())
# functions as arguments are allowed
solver.mkPredicateSort([solver.getIntegerSort(), funSort])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkPredicateSort([solver.getIntegerSort()])
solver.mkSetSort(solver.getBooleanSort())
solver.mkSetSort(solver.getIntegerSort())
solver.mkSetSort(solver.mkBitVectorSort(4))
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkSetSort(solver.mkBitVectorSort(4))
solver.mkBagSort(solver.getBooleanSort())
solver.mkBagSort(solver.getIntegerSort())
solver.mkBagSort(solver.mkBitVectorSort(4))
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkBagSort(solver.mkBitVectorSort(4))
solver.mkSequenceSort(solver.getBooleanSort())
solver.mkSequenceSort(\
solver.mkSequenceSort(solver.getIntegerSort()))
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkSequenceSort(solver.getIntegerSort())
with pytest.raises(RuntimeError):
solver.mkTupleSort([solver.getIntegerSort(), funSort])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkTupleSort([solver.getIntegerSort()])
solver.mkVar(boolSort, "b")
solver.mkVar(funSort, "")
with pytest.raises(RuntimeError):
- solver.mkVar(pycvc5.Sort(solver))
+ solver.mkVar(cvc5.Sort(solver))
with pytest.raises(RuntimeError):
- solver.mkVar(pycvc5.Sort(solver), "a")
- slv = pycvc5.Solver()
+ solver.mkVar(cvc5.Sort(solver), "a")
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkVar(boolSort, "x")
def test_mk_rounding_mode(solver):
- solver.mkRoundingMode(pycvc5.RoundTowardZero)
+ solver.mkRoundingMode(cvc5.RoundTowardZero)
def test_mk_floating_point(solver):
solver.mkFloatingPoint(3, 5, t1)
with pytest.raises(RuntimeError):
- solver.mkFloatingPoint(0, 5, pycvc5.Term(solver))
+ solver.mkFloatingPoint(0, 5, cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkFloatingPoint(0, 5, t1)
with pytest.raises(RuntimeError):
with pytest.raises(RuntimeError):
solver.mkFloatingPoint(3, 5, t2)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkFloatingPoint(3, 5, t1)
solver.mkEmptySet(solver.mkCardinalityConstraint(si, 3))
with pytest.raises(RuntimeError):
solver.mkEmptySet(solver.mkCardinalityConstraint(su, 0))
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkCardinalityConstraint(su, 3)
def test_mk_empty_set(solver):
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
s = solver.mkSetSort(solver.getBooleanSort())
- solver.mkEmptySet(pycvc5.Sort(solver))
+ solver.mkEmptySet(cvc5.Sort(solver))
solver.mkEmptySet(s)
with pytest.raises(RuntimeError):
solver.mkEmptySet(solver.getBooleanSort())
def test_mk_empty_bag(solver):
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
s = solver.mkBagSort(solver.getBooleanSort())
- solver.mkEmptyBag(pycvc5.Sort(solver))
+ solver.mkEmptyBag(cvc5.Sort(solver))
solver.mkEmptyBag(s)
with pytest.raises(RuntimeError):
solver.mkEmptyBag(solver.getBooleanSort())
def test_mk_empty_sequence(solver):
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
s = solver.mkSequenceSort(solver.getBooleanSort())
solver.mkEmptySequence(s)
solver.mkEmptySequence(solver.getBooleanSort())
def test_mk_sep_nil(solver):
solver.mkSepNil(solver.getBooleanSort())
with pytest.raises(RuntimeError):
- solver.mkSepNil(pycvc5.Sort(solver))
- slv = pycvc5.Solver()
+ solver.mkSepNil(cvc5.Sort(solver))
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkSepNil(solver.getIntegerSort())
a = solver.mkConst(bv32, "a")
b = solver.mkConst(bv32, "b")
v1 = [a, b]
- v2 = [a, pycvc5.Term(solver)]
+ v2 = [a, cvc5.Term(solver)]
v3 = [a, solver.mkTrue()]
v4 = [solver.mkInteger(1), solver.mkInteger(2)]
- v5 = [solver.mkInteger(1), pycvc5.Term(solver)]
+ v5 = [solver.mkInteger(1), cvc5.Term(solver)]
v6 = []
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
# mkTerm(Kind kind) const
solver.mkPi()
# mkTerm(Kind kind, Term child) const
solver.mkTerm(Kind.Not, solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.mkTerm(Kind.Not, pycvc5.Term(solver))
+ solver.mkTerm(Kind.Not, cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkTerm(Kind.Not, a)
with pytest.raises(RuntimeError):
# mkTerm(Kind kind, Term child1, Term child2) const
solver.mkTerm(Kind.Equal, a, b)
with pytest.raises(RuntimeError):
- solver.mkTerm(Kind.Equal, pycvc5.Term(solver), b)
+ solver.mkTerm(Kind.Equal, cvc5.Term(solver), b)
with pytest.raises(RuntimeError):
- solver.mkTerm(Kind.Equal, a, pycvc5.Term(solver))
+ solver.mkTerm(Kind.Equal, a, cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkTerm(Kind.Equal, a, solver.mkTrue())
with pytest.raises(RuntimeError):
# mkTerm(Kind kind, Term child1, Term child2, Term child3) const
solver.mkTerm(Kind.Ite, solver.mkTrue(), solver.mkTrue(), solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.mkTerm(Kind.Ite, pycvc5.Term(solver), solver.mkTrue(),
+ solver.mkTerm(Kind.Ite, cvc5.Term(solver), solver.mkTrue(),
solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.mkTerm(Kind.Ite, solver.mkTrue(), pycvc5.Term(solver),
+ solver.mkTerm(Kind.Ite, solver.mkTrue(), cvc5.Term(solver),
solver.mkTrue())
with pytest.raises(RuntimeError):
solver.mkTerm(Kind.Ite, solver.mkTrue(), solver.mkTrue(),
- pycvc5.Term(solver))
+ cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkTerm(Kind.Ite, solver.mkTrue(), solver.mkTrue(), b)
with pytest.raises(RuntimeError):
a = solver.mkConst(bv32, "a")
b = solver.mkConst(bv32, "b")
v1 = [solver.mkInteger(1), solver.mkInteger(2)]
- v2 = [solver.mkInteger(1), pycvc5.Term(solver)]
+ v2 = [solver.mkInteger(1), cvc5.Term(solver)]
v3 = []
v4 = [solver.mkInteger(5)]
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
# simple operator terms
opterm1 = solver.mkOp(Kind.BVExtract, 2, 1)
with pytest.raises(RuntimeError):
solver.mkTerm(opterm2, a)
with pytest.raises(RuntimeError):
- solver.mkTerm(opterm1, pycvc5.Term(solver))
+ solver.mkTerm(opterm1, cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkTerm(Kind.ApplyConstructor, consTerm1, solver.mkInteger(0))
with pytest.raises(RuntimeError):
with pytest.raises(RuntimeError):
solver.mkTerm(opterm1, a, b)
with pytest.raises(RuntimeError):
- solver.mkTerm(opterm2, solver.mkInteger(1), pycvc5.Term(solver))
+ solver.mkTerm(opterm2, solver.mkInteger(1), cvc5.Term(solver))
with pytest.raises(RuntimeError):
- solver.mkTerm(opterm2, pycvc5.Term(solver), solver.mkInteger(1))
+ solver.mkTerm(opterm2, cvc5.Term(solver), solver.mkInteger(1))
with pytest.raises(RuntimeError):
slv.mkTerm(Kind.ApplyConstructor,\
consTerm1,\
solver.mkTerm(opterm1, a, b, a)
with pytest.raises(RuntimeError):
solver.mkTerm(opterm2, solver.mkInteger(1), solver.mkInteger(1),
- pycvc5.Term(solver))
+ cvc5.Term(solver))
solver.mkTerm(opterm2, v4)
with pytest.raises(RuntimeError):
[solver.mkBitVector(3, "101", 2)])
with pytest.raises(RuntimeError):
solver.mkTuple([solver.getIntegerSort()], [solver.mkReal("5.3")])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkTuple([solver.mkBitVectorSort(3)],
[slv.mkBitVector(3, "101", 2)])
def test_mk_universe_set(solver):
solver.mkUniverseSet(solver.getBooleanSort())
with pytest.raises(RuntimeError):
- solver.mkUniverseSet(pycvc5.Sort(solver))
- slv = pycvc5.Solver()
+ solver.mkUniverseSet(cvc5.Sort(solver))
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkUniverseSet(solver.getBooleanSort())
solver.mkConst(funSort, "f")
solver.mkConst(funSort, "")
with pytest.raises(RuntimeError):
- solver.mkConst(pycvc5.Sort(solver))
+ solver.mkConst(cvc5.Sort(solver))
with pytest.raises(RuntimeError):
- solver.mkConst(pycvc5.Sort(solver), "a")
+ solver.mkConst(cvc5.Sort(solver), "a")
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkConst(boolSort)
solver.mkConstArray(arrSort, zero)
with pytest.raises(RuntimeError):
- solver.mkConstArray(pycvc5.Sort(solver), zero)
+ solver.mkConstArray(cvc5.Sort(solver), zero)
with pytest.raises(RuntimeError):
- solver.mkConstArray(arrSort, pycvc5.Term(solver))
+ solver.mkConstArray(arrSort, cvc5.Term(solver))
with pytest.raises(RuntimeError):
solver.mkConstArray(arrSort, solver.mkBitVector(1, 1))
with pytest.raises(RuntimeError):
solver.mkConstArray(intSort, zero)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
zero2 = slv.mkInteger(0)
arrSort2 = slv.mkArraySort(slv.getIntegerSort(), slv.getIntegerSort())
with pytest.raises(RuntimeError):
solver.declareFun("f4", [bvSort, funSort], bvSort)
with pytest.raises(RuntimeError):
solver.declareFun("f5", [bvSort, bvSort], funSort)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.declareFun("f1", [], bvSort)
# b3 has function sort, which is allowed as an argument
solver.defineFun("fffff", [b1, b3], bvSort, v1)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
bvSort2 = slv.mkBitVectorSort(32)
v12 = slv.mkConst(bvSort2, "v1")
b12 = slv.mkVar(bvSort2, "b1")
with pytest.raises(RuntimeError):
solver.defineFunRec(f3, [b1], v1)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
bvSort2 = slv.mkBitVectorSort(32)
v12 = slv.mkConst(bvSort2, "v1")
b12 = slv.mkVar(bvSort2, "b1")
solver.getValue(summ)
solver.getValue(p_f_y)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.getValue(x)
def test_simplify(solver):
with pytest.raises(RuntimeError):
- solver.simplify(pycvc5.Term(solver))
+ solver.simplify(cvc5.Term(solver))
bvSort = solver.mkBitVectorSort(32)
uSort = solver.mkUninterpretedSort("u")
solver.simplify(x_eq_b)
assert solver.mkTrue() != x_eq_b
assert solver.mkTrue() != solver.simplify(x_eq_b)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.simplify(x)
def test_assert_formula(solver):
solver.assertFormula(solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.assertFormula(pycvc5.Term(solver))
- slv = pycvc5.Solver()
+ solver.assertFormula(cvc5.Term(solver))
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.assertFormula(solver.mkTrue())
solver.checkEntailed(solver.mkTrue())
with pytest.raises(RuntimeError):
solver.checkEntailed(solver.mkTrue())
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkEntailed(solver.mkTrue())
solver.setOption("incremental", "true")
solver.checkEntailed(solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.checkEntailed(pycvc5.Term(solver))
+ solver.checkEntailed(cvc5.Term(solver))
solver.checkEntailed(solver.mkTrue())
solver.checkEntailed(z)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkEntailed(solver.mkTrue())
uToIntSort = solver.mkFunctionSort(uSort, intSort)
intPredSort = solver.mkFunctionSort(intSort, boolSort)
- n = pycvc5.Term(solver)
+ n = cvc5.Term(solver)
# Constants
x = solver.mkConst(uSort, "x")
y = solver.mkConst(uSort, "y")
solver.checkEntailed(n)
with pytest.raises(RuntimeError):
solver.checkEntailed([n, solver.mkTerm(Kind.Distinct, x, y)])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkEntailed(solver.mkTrue())
solver.checkSatAssuming(solver.mkTrue())
with pytest.raises(RuntimeError):
solver.checkSatAssuming(solver.mkTrue())
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkSatAssuming(solver.mkTrue())
solver.setOption("incremental", "true")
solver.checkSatAssuming(solver.mkTrue())
with pytest.raises(RuntimeError):
- solver.checkSatAssuming(pycvc5.Term(solver))
+ solver.checkSatAssuming(cvc5.Term(solver))
solver.checkSatAssuming(solver.mkTrue())
solver.checkSatAssuming(z)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkSatAssuming(solver.mkTrue())
uToIntSort = solver.mkFunctionSort(uSort, intSort)
intPredSort = solver.mkFunctionSort(intSort, boolSort)
- n = pycvc5.Term(solver)
+ n = cvc5.Term(solver)
# Constants
x = solver.mkConst(uSort, "x")
y = solver.mkConst(uSort, "y")
solver.checkSatAssuming(n)
with pytest.raises(RuntimeError):
solver.checkSatAssuming([n, solver.mkTerm(Kind.Distinct, x, y)])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.checkSatAssuming(solver.mkTrue())
def test_mk_sygus_grammar(solver):
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
boolTerm = solver.mkBoolean(True)
boolVar = solver.mkVar(solver.getBooleanSort())
intVar = solver.mkVar(solver.getIntegerSort())
solver.mkSygusGrammar([], [boolTerm])
with pytest.raises(RuntimeError):
solver.mkSygusGrammar([boolTerm], [intVar])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
boolVar2 = slv.mkVar(slv.getBooleanSort())
intVar2 = slv.mkVar(slv.getIntegerSort())
slv.mkSygusGrammar([boolVar2], [intVar2])
boolean = solver.getBooleanSort()
integer = solver.getIntegerSort()
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
x = solver.mkVar(boolean)
start1 = solver.mkVar(boolean)
def test_add_sygus_constraint(solver):
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
boolTerm = solver.mkBoolean(True)
intTerm = solver.mkInteger(1)
with pytest.raises(RuntimeError):
solver.addSygusConstraint(intTerm)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.addSygusConstraint(boolTerm)
boolean = solver.getBooleanSort()
real = solver.getRealSort()
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
intTerm = solver.mkInteger(1)
inv = solver.declareFun("inv", [real], boolean)
with pytest.raises(RuntimeError):
solver.addSygusInvConstraint(inv, pre, trans, trans)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
boolean2 = slv.getBooleanSort()
real2 = slv.getRealSort()
inv22 = slv.declareFun("inv", [real2], boolean2)
solver.setOption("lang", "sygus2")
solver.setOption("incremental", "false")
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
x = solver.mkBoolean(False)
f = solver.synthFun("f", [], solver.getBooleanSort())
with pytest.raises(RuntimeError):
solver.getSynthSolution(x)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.getSynthSolution(f)
solver.assertFormula(solver.mkTerm(Kind.Gt, x, zero))
conj = solver.mkTerm(Kind.Gt, y, zero)
- output = pycvc5.Term(solver)
+ output = cvc5.Term(solver)
assert solver.getAbduct(conj, output)
assert not output.isNull() and output.getSort().isBoolean()
boolean = solver.getBooleanSort()
truen = solver.mkBoolean(True)
start = solver.mkVar(boolean)
- output2 = pycvc5.Term(solver)
+ output2 = cvc5.Term(solver)
g = solver.mkSygusGrammar([], [start])
conj2 = solver.mkTerm(Kind.Gt, x, zero)
g.addRule(start, truen)
y = solver.mkConst(intSort, "y")
solver.assertFormula(solver.mkTerm(Kind.Gt, x, zero))
conj = solver.mkTerm(Kind.Gt, y, zero)
- output = pycvc5.Term(solver)
+ output = cvc5.Term(solver)
with pytest.raises(RuntimeError):
solver.getAbduct(conj, output)
solver.assertFormula(solver.mkTerm(Kind.Gt, x, zero))
conj = solver.mkTerm(Kind.Gt, y, zero)
- output = pycvc5.Term(solver)
+ output = cvc5.Term(solver)
assert solver.getAbduct(conj, output)
- output2 = pycvc5.Term(solver)
+ output2 = cvc5.Term(solver)
assert solver.getAbductNext(output2)
assert output != output2
solver.assertFormula(solver.mkTerm(Kind.Gt, solver.mkTerm(Kind.Plus, x, y), zero))
solver.assertFormula(solver.mkTerm(Kind.Lt, x, zero))
conj = solver.mkTerm(Kind.Or, solver.mkTerm(Kind.Gt, solver.mkTerm(Kind.Plus, y, z), zero), solver.mkTerm(Kind.Lt, z, zero))
- output = pycvc5.Term(solver)
+ output = cvc5.Term(solver)
solver.getInterpolant(conj, output)
assert output.getSort().isBoolean()
solver.assertFormula(solver.mkTerm(Kind.Gt, solver.mkTerm(Kind.Plus, x, y), zero))
solver.assertFormula(solver.mkTerm(Kind.Lt, x, zero))
conj = solver.mkTerm(Kind.Or, solver.mkTerm(Kind.Gt, solver.mkTerm(Kind.Plus, y, z), zero), solver.mkTerm(Kind.Lt, z, zero))
- output = pycvc5.Term(solver)
+ output = cvc5.Term(solver)
solver.getInterpolant(conj, output)
- output2 = pycvc5.Term(solver)
+ output2 = cvc5.Term(solver)
solver.getInterpolantNext(output2)
assert output != output2
# pool should have the same sort
assert p.getSort() == setSort
# cannot pass null sort
- nullSort = pycvc5.Sort(solver)
+ nullSort = cvc5.Sort(solver)
with pytest.raises(RuntimeError):
solver.declarePool("i", nullSort, [])
solver.setOption("lang", "sygus2")
solver.setOption("incremental", "false")
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
x = solver.mkBoolean(False)
f = solver.synthFun("f", [], solver.getBooleanSort())
with pytest.raises(RuntimeError):
solver.getSynthSolutions([x])
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.getSynthSolutions([x])
def test_issue5893(solver):
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
bvsort4 = solver.mkBitVectorSort(4)
bvsort8 = solver.mkBitVectorSort(8)
arrsort = solver.mkArraySort(bvsort4, bvsort8)
solver.mkSygusVar(boolSort, "b")
solver.mkSygusVar(funSort, "")
with pytest.raises(RuntimeError):
- solver.mkSygusVar(pycvc5.Sort(solver))
+ solver.mkSygusVar(cvc5.Sort(solver))
with pytest.raises(RuntimeError):
solver.mkSygusVar(solver.getNullSort(), "a")
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
with pytest.raises(RuntimeError):
slv.mkSygusVar(boolSort)
boolean = solver.getBooleanSort()
integer = solver.getIntegerSort()
- nullTerm = pycvc5.Term(solver)
+ nullTerm = cvc5.Term(solver)
x = solver.mkVar(boolean)
start1 = solver.mkVar(boolean)
solver.synthFun("f4", [], null)
with pytest.raises(RuntimeError):
solver.synthFun("f6", [x], boolean, g2)
- slv = pycvc5.Solver()
+ slv = cvc5.Solver()
x2 = slv.mkVar(slv.getBooleanSort())
slv.synthFun("f1", [x2], slv.getBooleanSort())
with pytest.raises(RuntimeError):