Debian Codegraph @

test/api/python/two_solvers.py

raw
1 ###############################################################################
2 # Top contributors (to current version):
3 # Aina Niemetz, Andrew Reynolds, Alex Ozdemir
4 #
5 # This file is part of the cvc5 project.
6 #
7 # Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
8 # in the top-level source directory and their institutional affiliations.
9 # All rights reserved. See the file COPYING in the top-level source
10 # directory for licensing information.
11 # #############################################################################
12 #
13 # A simple test of multiple SmtEngines.
14 ##
15
16 import cvc5
17
18 tm = cvc5.TermManager()
19 s1 = cvc5.Solver(tm)
20 s2 = cvc5.Solver(tm)
21 r1 = s1.checkSatAssuming(tm.mkBoolean(False))
22 r2 = s2.checkSatAssuming(tm.mkBoolean(False))
23 assert r1.isUnsat() and r2.isUnsat()