Python API: Add support for sequences (#4757)
[cvc5.git] / examples / api / helloworld.cpp
1 /********************* */
2 /*! \file helloworld.cpp
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Aina Niemetz
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2020 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.\endverbatim
11 **
12 ** \brief A very simple CVC4 example
13 **
14 ** A very simple CVC4 tutorial example.
15 **/
16
17 #include <iostream>
18
19 #include <cvc4/api/cvc4cpp.h>
20
21 using namespace CVC4::api;
22
23 int main()
24 {
25 Solver slv;
26 Term helloworld = slv.mkVar(slv.getBooleanSort(), "Hello World!");
27 std::cout << helloworld << " is " << slv.checkEntailed(helloworld)
28 << std::endl;
29 return 0;
30 }