LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - issue5074.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 11 11 100.0 %
Date: 2026-02-26 11:40:56 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 issue #5074
      11                 :            :  */
      12                 :            : 
      13                 :            : #include <cvc5/cvc5.h>
      14                 :            : 
      15                 :            : using namespace cvc5;
      16                 :            : 
      17                 :          1 : int main()
      18                 :            : {
      19                 :          1 :   TermManager tm;
      20                 :          1 :   Solver slv(tm);
      21                 :          2 :   Term c1 = tm.mkConst(tm.getIntegerSort());
      22                 :          3 :   Term t6 = tm.mkTerm(Kind::STRING_FROM_CODE, {c1});
      23                 :          3 :   Term t12 = tm.mkTerm(Kind::STRING_TO_REGEXP, {t6});
      24                 :          5 :   Term t14 = tm.mkTerm(Kind::STRING_REPLACE_RE, {t6, t12, t6});
      25                 :          4 :   Term t16 = tm.mkTerm(Kind::STRING_CONTAINS, {t14, t14});
      26                 :          1 :   slv.checkSatAssuming(t16.notTerm());
      27                 :            : 
      28                 :          1 :   return 0;
      29                 :          1 : }

Generated by: LCOV version 1.14