2020-02-19 13:54:17 -08:00
|
|
|
#!/usr/bin/env python
|
2021-04-12 12:31:43 -07:00
|
|
|
###############################################################################
|
|
|
|
|
# Top contributors (to current version):
|
2025-01-23 09:54:20 -08:00
|
|
|
# Aina Niemetz, Alex Ozdemir, Makai Mann
|
2021-04-12 12:31:43 -07: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-04-12 12:31:43 -07: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.
|
|
|
|
|
# #############################################################################
|
|
|
|
|
#
|
|
|
|
|
# A very simple example, adapted from helloworld-new.cpp
|
2020-09-22 09:51:56 -07:00
|
|
|
##
|
|
|
|
|
|
2022-02-02 15:45:42 -08:00
|
|
|
import cvc5
|
|
|
|
|
from cvc5 import Kind
|
2020-02-19 13:54:17 -08:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2024-03-14 14:34:58 -07:00
|
|
|
tm = cvc5.TermManager()
|
|
|
|
|
slv = cvc5.Solver(tm)
|
|
|
|
|
helloworld = tm.mkConst(tm.getBooleanSort(), "Hello World!")
|
2022-03-14 13:29:30 -05:00
|
|
|
print(helloworld, "is", slv.checkSatAssuming(helloworld))
|