LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue435.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 21 21 100.0 %
Date: 2024-09-24 10:47:28 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz, Andres Noetzli
       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 #435.
      14                 :            :  */
      15                 :            : #include <cvc5/cvc5.h>
      16                 :            : 
      17                 :            : using namespace cvc5;
      18                 :            : 
      19                 :          1 : int main(void)
      20                 :            : {
      21                 :          2 :   TermManager tm;
      22                 :          2 :   Solver solver(tm);
      23                 :          1 :   solver.setOption("strings-exp", "true");
      24                 :          2 :   Sort s1 = tm.mkUninterpretedSort("_u0");
      25                 :          2 :   Sort s3 = tm.getBooleanSort();
      26                 :          2 :   Sort _p7 = tm.mkParamSort("_p7");
      27                 :          4 :   DatatypeDecl _dt5 = tm.mkDatatypeDecl("_dt5", {_p7});
      28                 :          3 :   DatatypeConstructorDecl _cons33 = tm.mkDatatypeConstructorDecl("_cons33");
      29                 :          1 :   _cons33.addSelector("_sel31", s1);
      30                 :          1 :   _cons33.addSelector("_sel32", _p7);
      31                 :          1 :   _dt5.addConstructor(_cons33);
      32                 :          4 :   std::vector<Sort> _s6 = tm.mkDatatypeSorts({_dt5});
      33                 :          2 :   Sort s6 = _s6[0];
      34                 :          4 :   Sort s21 = s6.instantiate({s3});
      35                 :          2 :   Sort s42 = tm.mkSequenceSort(s21);
      36                 :          2 :   Term t40 = tm.mkConst(s42, "_x64");
      37                 :          4 :   Term t75 = tm.mkTerm(Kind::SEQ_REV, {t40});
      38                 :          4 :   Term t91 = tm.mkTerm(Kind::SEQ_PREFIX, {t75, t40});
      39                 :          1 :   solver.checkSatAssuming({t91});
      40                 :          1 : }

Generated by: LCOV version 1.14