2022-04-05 13:38:57 -07:00
|
|
|
###############################################################################
|
2021-12-01 03:38:45 +02:00
|
|
|
# Top contributors (to current version):
|
2025-01-23 09:54:20 -08:00
|
|
|
# Aina Niemetz, Andrew Reynolds, Alex Ozdemir
|
2021-12-01 03:38:45 +02:00
|
|
|
#
|
|
|
|
|
# This file is part of the cvc5 project.
|
|
|
|
|
#
|
2025-01-23 09:54:20 -08:00
|
|
|
# Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
|
2021-12-01 03:38:45 +02:00
|
|
|
# in the top-level source directory and their institutional affiliations.
|
|
|
|
|
# All rights reserved. See the file COPYING in the top-level source
|
|
|
|
|
# directory for licensing information.
|
2022-04-05 13:38:57 -07:00
|
|
|
# #############################################################################
|
2021-12-01 03:38:45 +02:00
|
|
|
#
|
|
|
|
|
# A simple test of multiple SmtEngines.
|
|
|
|
|
##
|
|
|
|
|
|
2022-02-02 15:45:42 -08:00
|
|
|
import cvc5
|
2021-12-01 03:38:45 +02:00
|
|
|
|
2024-03-14 14:34:58 -07:00
|
|
|
tm = cvc5.TermManager()
|
|
|
|
|
s1 = cvc5.Solver(tm)
|
|
|
|
|
s2 = cvc5.Solver(tm)
|
|
|
|
|
r1 = s1.checkSatAssuming(tm.mkBoolean(False))
|
|
|
|
|
r2 = s2.checkSatAssuming(tm.mkBoolean(False))
|
2022-03-14 13:29:30 -05:00
|
|
|
assert r1.isUnsat() and r2.isUnsat()
|