LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue306.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 17 17 100.0 %
Date: 2026-04-16 10:42:20 Functions: 1 1 100.0 %
Branches: 0 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 #306
      11                 :            :  *
      12                 :            :  */
      13                 :            : 
      14                 :            : #include <cvc5/cvc5.h>
      15                 :            : 
      16                 :            : using namespace cvc5;
      17                 :            : 
      18                 :          1 : int main(void)
      19                 :            : {
      20                 :          1 :   TermManager tm;
      21                 :          1 :   Solver slv(tm);
      22                 :          1 :   slv.setOption("check-proofs", "true");
      23                 :          1 :   slv.setOption("proof-check", "eager");
      24                 :          1 :   Sort s1 = tm.getBooleanSort();
      25                 :          1 :   Sort s3 = tm.getStringSort();
      26                 :          1 :   Term t1 = tm.mkConst(s3, "_x0");
      27                 :          1 :   Term t3 = tm.mkConst(s1, "_x2");
      28                 :          2 :   Term t11 = tm.mkString("");
      29                 :          1 :   Term t14 = tm.mkConst(s3, "_x11");
      30                 :          5 :   Term t42 = tm.mkTerm(Kind::ITE, {t3, t14, t1});
      31                 :          4 :   Term t58 = tm.mkTerm(Kind::STRING_LEQ, {t14, t11});
      32                 :          4 :   Term t95 = tm.mkTerm(Kind::EQUAL, {t14, t42});
      33                 :          1 :   slv.assertFormula(t95);
      34                 :          1 :   slv.checkSatAssuming({t58});
      35                 :          1 : }

Generated by: LCOV version 1.14