2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2025-01-23 09:54:20 -08:00
|
|
|
* Mudathir Mohamed, Daniel Larraz, Morgan Deters
|
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-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)
|
|
|
|
|
{
|
2024-09-26 16:00:25 -05:00
|
|
|
TermManager tm = new TermManager();
|
|
|
|
|
Solver slv = new Solver(tm);
|
2021-11-03 16:32:10 -05:00
|
|
|
{
|
2024-09-26 16:00:25 -05:00
|
|
|
Term helloworld = tm.mkConst(tm.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
|
|
|
}
|
|
|
|
|
}
|