2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2024-03-12 09:35:09 -07:00
|
|
|
* Aina Niemetz, Tim King, Mathias Preiner
|
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.
|
|
|
|
|
* ****************************************************************************
|
|
|
|
|
*
|
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()
|
|
|
|
|
{
|
2024-03-08 11:39:13 -08:00
|
|
|
TermManager tm;
|
|
|
|
|
Solver slv(tm);
|
|
|
|
|
Term helloworld = tm.mkConst(tm.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;
|
|
|
|
|
}
|