Debian Codegraph @

test/api/java/Boilerplate.java

raw
1 /******************************************************************************
2 * Top contributors (to current version):
3 * Daniel Larraz
4 *
5 * This file is part of the cvc5 project.
6 *
7 * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
8 * in the top-level source directory and their institutional affiliations.
9 * All rights reserved. See the file COPYING in the top-level source
10 * directory for licensing information.
11 * ****************************************************************************
12 *
13 * A simple start-up/tear-down test for cvc5.
14 *
15 * This simple test just makes sure that the public interface is
16 * minimally functional. It is useful as a template to use for other
17 * system tests.
18 */
19
20 import io.github.cvc5.*;
21
22 public class Boilerplate
23 {
24 public static void main(String[] args)
25 {
26 TermManager tm = new TermManager();
27 Solver slv = new Solver(tm);
28 Result r = slv.checkSatAssuming(tm.mkBoolean(false));
29 if (r.isUnsat())
30 {
31 System.exit(0);
32 }
33 else
34 {
35 System.exit(1);
36 }
37 }
38 }