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 test of multiple SmtEngines. 11 : : */ 12 : : 13 : : #include <cvc5/c/cvc5.h> 14 : : 15 : 1 : int main() 16 : : { 17 : 1 : Cvc5TermManager* tm = cvc5_term_manager_new(); 18 : 1 : Cvc5* solver1 = cvc5_new(tm); 19 : 1 : Cvc5* solver2 = cvc5_new(tm); 20 : 1 : Cvc5Term assumptions[1] = {cvc5_mk_false(tm)}; 21 : 1 : Cvc5Result res1 = cvc5_check_sat_assuming(solver1, 1, assumptions); 22 : 1 : Cvc5Result res2 = cvc5_check_sat_assuming(solver2, 1, assumptions); 23 [ + - ][ - + ]: 1 : int res = cvc5_result_is_unsat(res1) && cvc5_result_is_unsat(res2) ? 0 : 1; 24 : 1 : cvc5_delete(solver1); 25 : 1 : cvc5_delete(solver2); 26 : 1 : cvc5_term_manager_delete(tm); 27 : 1 : return res; 28 : : }