LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue308.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 11 11 100.0 %
Date: 2026-03-04 11:41:08 Functions: 1 1 100.0 %
Branches: 1 2 50.0 %

           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                 :            :  * Test for project issue #308.
      11                 :            :  */
      12                 :            : #include <cvc5/cvc5.h>
      13                 :            : 
      14                 :            : #include <cassert>
      15                 :            : 
      16                 :            : using namespace cvc5;
      17                 :            : 
      18                 :          1 : int main(void)
      19                 :            : {
      20                 :          1 :   TermManager tm;
      21                 :          1 :   Solver solver(tm);
      22                 :          1 :   solver.setOption("check-proofs", "true");
      23                 :          1 :   Sort s1 = tm.getBooleanSort();
      24                 :          1 :   Term t1 = tm.mkConst(s1, "_x0");
      25                 :          4 :   Term t2 = tm.mkTerm(Kind::XOR, {t1, t1});
      26                 :          1 :   solver.checkSatAssuming({t2});
      27                 :          1 :   auto unsat_core = solver.getUnsatCore();
      28         [ -  + ]:          1 :   assert(!unsat_core.empty());
      29                 :          1 : }

Generated by: LCOV version 1.14