| 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 test of multiple SmtEngines. |
| 14 |
*/ |
| 15 |
|
| 16 |
import io.github.cvc5.*; |
| 17 |
|
| 18 |
public class TwoSolvers |
| 19 |
{ |
| 20 |
public static void main(String[] args) |
| 21 |
{ |
| 22 |
TermManager tm = new TermManager(); |
| 23 |
Solver s1 = new Solver(tm); |
| 24 |
Solver s2 = new Solver(tm); |
| 25 |
|
| 26 |
Result res1 = s1.checkSatAssuming(tm.mkBoolean(false)); |
| 27 |
Result res2 = s2.checkSatAssuming(tm.mkBoolean(false)); |
| 28 |
|
| 29 |
int exitCode = (res1.isUnsat() && res2.isUnsat()) ? 0 : 1; |
| 30 |
System.exit(exitCode); |
| 31 |
} |
| 32 |
} |