Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Aina Niemetz, Morgan Deters, Mathias Preiner 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2024 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 : : #include <cvc5/cvc5.h> 21 : : 22 : : #include <iostream> 23 : : #include <sstream> 24 : : 25 : : using namespace cvc5; 26 : : using namespace std; 27 : : 28 : 1 : int main() 29 : : { 30 : 2 : TermManager tm; 31 : 2 : Solver slv(tm); 32 : 1 : Result r = slv.checkSatAssuming(tm.mkBoolean(false)); 33 [ + - ]: 1 : return r.isUnsat() ? 0 : 1; 34 : : }