2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2022-04-05 13:38:57 -07:00
|
|
|
* Mudathir Mohamed, Morgan Deters, Andrew Reynolds
|
2021-04-12 12:31:43 -07:00
|
|
|
*
|
|
|
|
|
* This file is part of the cvc5 project.
|
|
|
|
|
*
|
2024-03-12 09:35:09 -07:00
|
|
|
* Copyright (c) 2009-2024 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-10-01 18:21:02 -05:00
|
|
|
* A very simple CVC5 tutorial example.
|
2021-04-12 12:31:43 -07:00
|
|
|
*/
|
2012-11-30 23:07:19 +00:00
|
|
|
|
2022-03-30 21:09:03 -07:00
|
|
|
import io.github.cvc5.*;
|
2012-11-30 23:07:19 +00:00
|
|
|
|
2021-10-01 18:21:02 -05:00
|
|
|
public class HelloWorld
|
|
|
|
|
{
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
{
|
2022-10-04 12:06:02 -05:00
|
|
|
Solver slv = new Solver();
|
2021-11-03 16:32:10 -05:00
|
|
|
{
|
2022-02-24 12:28:58 -06:00
|
|
|
Term helloworld = slv.mkConst(slv.getBooleanSort(), "Hello World!");
|
2012-11-30 23:07:19 +00:00
|
|
|
|
2022-03-31 10:17:22 -05:00
|
|
|
System.out.println(helloworld + " is " + slv.checkSatAssuming(helloworld));
|
2021-11-03 16:32:10 -05:00
|
|
|
}
|
2023-10-02 01:20:26 -05:00
|
|
|
Context.deletePointers();
|
2012-11-30 23:07:19 +00:00
|
|
|
}
|
|
|
|
|
}
|