Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * A simple start-up/tear-down test for cvc5. 11 : : * 12 : : * This simple test just makes sure that the public interface is 13 : : * minimally functional. It is useful as a template to use for other 14 : : * system tests. 15 : : */ 16 : : 17 : : #include <cvc5/cvc5.h> 18 : : 19 : : #include <iostream> 20 : : #include <sstream> 21 : : 22 : : using namespace cvc5; 23 : : using namespace std; 24 : : 25 : 1 : int main() 26 : : { 27 : 1 : TermManager tm; 28 : 1 : Solver slv(tm); 29 : 1 : Result r = slv.checkSatAssuming(tm.mkBoolean(false)); 30 [ + - ]: 1 : return r.isUnsat() ? 0 : 1; 31 : 1 : }