LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/c - two_solvers.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 12 12 100.0 %
Date: 2024-09-19 10:47:20 Functions: 1 1 100.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz
       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 test of multiple SmtEngines.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include <cvc5/c/cvc5.h>
      17                 :            : 
      18                 :          1 : int main()
      19                 :            : {
      20                 :          1 :   Cvc5TermManager* tm = cvc5_term_manager_new();
      21                 :          1 :   Cvc5* solver1 = cvc5_new(tm);
      22                 :          1 :   Cvc5* solver2 = cvc5_new(tm);
      23                 :          1 :   Cvc5Term assumptions[1] = {cvc5_mk_false(tm)};
      24                 :          1 :   Cvc5Result res1 = cvc5_check_sat_assuming(solver1, 1, assumptions);
      25                 :          1 :   Cvc5Result res2 = cvc5_check_sat_assuming(solver2, 1, assumptions);
      26 [ +  - ][ -  + ]:          1 :   int res = cvc5_result_is_unsat(res1) && cvc5_result_is_unsat(res2) ? 0 : 1;
      27                 :          1 :   cvc5_delete(solver1);
      28                 :          1 :   cvc5_delete(solver2);
      29                 :          1 :   cvc5_term_manager_delete(tm);
      30                 :          1 :   return res;
      31                 :            : }

Generated by: LCOV version 1.14