2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2022-04-05 13:38:57 -07:00
|
|
|
* Aina Niemetz, Tim King, Andrew Reynolds
|
2021-04-12 12:31:43 -07:00
|
|
|
*
|
|
|
|
|
* This file is part of the cvc5 project.
|
|
|
|
|
*
|
2022-04-05 13:38:57 -07:00
|
|
|
* Copyright (c) 2009-2022 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.
|
|
|
|
|
* ****************************************************************************
|
|
|
|
|
*
|
2021-06-15 15:29:08 -03:00
|
|
|
* A very simple cvc5 example.
|
2021-04-12 12:31:43 -07:00
|
|
|
*/
|
2012-11-28 22:59:58 +00:00
|
|
|
|
2021-04-05 19:31:28 -07:00
|
|
|
#include <cvc5/cvc5.h>
|
2014-06-06 16:29:28 -04:00
|
|
|
|
2021-04-05 19:31:28 -07:00
|
|
|
#include <iostream>
|
2014-06-06 16:29:28 -04:00
|
|
|
|
2022-03-29 16:23:01 -07:00
|
|
|
using namespace cvc5;
|
2020-06-23 13:46:02 -07:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
Solver slv;
|
2022-02-24 12:28:58 -06:00
|
|
|
Term helloworld = slv.mkConst(slv.getBooleanSort(), "Hello World!");
|
2022-03-14 13:29:30 -05:00
|
|
|
std::cout << helloworld << " is " << slv.checkSatAssuming(helloworld)
|
2020-03-31 18:12:16 -07:00
|
|
|
<< std::endl;
|
2012-11-28 22:59:58 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|