LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue440.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 11 12 91.7 %
Date: 2024-09-03 11:49:51 Functions: 1 1 100.0 %
Branches: 0 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                 :            :  * Test for project issue #440.
      14                 :            :  */
      15                 :            : #include <cvc5/cvc5.h>
      16                 :            : 
      17                 :            : #include <cassert>
      18                 :            : 
      19                 :            : using namespace cvc5;
      20                 :            : 
      21                 :          1 : int main(void)
      22                 :            : {
      23                 :          2 :   TermManager tm;
      24                 :          2 :   Solver solver(tm);
      25                 :            : 
      26                 :          1 :   solver.setLogic("QF_ALL");
      27                 :          1 :   solver.setOption("global-negate", "true");
      28                 :          1 :   solver.setOption("produce-unsat-cores", "true");
      29                 :          2 :   Term t9 = tm.mkBoolean(true);
      30                 :          4 :   Term t109 = tm.mkTerm(Kind::NOT, {t9});
      31                 :            :   // should throw an option exception
      32                 :            :   try
      33                 :            :   {
      34                 :          1 :     solver.checkSatAssuming({t109});
      35                 :            :   }
      36                 :          1 :   catch (CVC5ApiException& e)
      37                 :            :   {
      38                 :          1 :     return 0;
      39                 :            :   }
      40                 :          0 :   assert(false);
      41                 :            : }

Generated by: LCOV version 1.14