2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
|
|
|
|
* Morgan Deters, Tim King, Andres Noetzli
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the cvc5 project.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
|
|
|
|
|
* 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
|
|
|
|
2021-10-22 18:00:06 -05:00
|
|
|
import io.github.cvc5.api.*;
|
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)
|
|
|
|
|
{
|
2021-11-03 16:32:10 -05:00
|
|
|
try (Solver slv = new Solver())
|
|
|
|
|
{
|
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-14 13:29:30 -05:00
|
|
|
System.out.println(
|
|
|
|
|
helloworld + " is " + slv.checkSatAssuming(helloworld));
|
2021-11-03 16:32:10 -05:00
|
|
|
}
|
2012-11-30 23:07:19 +00:00
|
|
|
}
|
|
|
|
|
}
|