LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue421.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 16 100.0 %
Date: 2026-04-02 10:40:46 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 #421
      11                 :            :  *
      12                 :            :  */
      13                 :            : 
      14                 :            : #include <cvc5/cvc5.h>
      15                 :            : 
      16                 :            : #include <cassert>
      17                 :            : 
      18                 :            : using namespace cvc5;
      19                 :            : 
      20                 :          1 : int main(void)
      21                 :            : {
      22                 :          1 :   TermManager tm;
      23                 :          1 :   Solver slv(tm);
      24                 :          1 :   slv.setLogic("QF_ALL");
      25                 :          1 :   Sort s1 = tm.mkBitVectorSort(4);
      26                 :          1 :   Sort s4 = tm.getRealSort();
      27                 :          1 :   Sort s5 = tm.mkSequenceSort(s1);
      28                 :          1 :   Term t8 = tm.mkConst(s5, "_x49");
      29                 :          1 :   Term t10 = tm.mkConst(s4, "_x51");
      30                 :          3 :   Term t65 = tm.mkTerm(Kind::SEQ_REV, {t8});
      31                 :          3 :   Term t69 = tm.mkTerm(Kind::TANGENT, {t10});
      32                 :          4 :   Term t77 = tm.mkTerm(Kind::LEQ, {t69, t10});
      33                 :          4 :   Term t128 = tm.mkTerm(Kind::SEQ_PREFIX, {t65, t8});
      34                 :          1 :   slv.assertFormula({t77});
      35                 :          1 :   slv.checkSatAssuming(t128.notTerm());
      36                 :          1 : }

Generated by: LCOV version 1.14