LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue399.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 16 100.0 %
Date: 2026-09-07 09:47:18 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 #399
      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 :   Sort s1 = tm.mkUninterpretedSort("_u0");
      24                 :          1 :   Sort s2 = tm.getStringSort();
      25                 :          1 :   Sort _p2 = tm.mkParamSort("_p2");
      26                 :          1 :   Sort _p3 = tm.mkParamSort("_p3");
      27                 :          4 :   DatatypeDecl _dt1 = tm.mkDatatypeDecl("_dt1", {_p2, _p3});
      28                 :          2 :   DatatypeConstructorDecl _cons21 = tm.mkDatatypeConstructorDecl("_cons21");
      29                 :          1 :   _cons21.addSelector("_sel16", _p2);
      30                 :          1 :   _dt1.addConstructor(_cons21);
      31                 :          1 :   Sort s3 = tm.mkDatatypeSort(_dt1);
      32                 :          1 :   Sort s4 = tm.mkBagSort(s2);
      33                 :          1 :   Sort s5 = tm.mkArraySort(s1, s4);
      34                 :          4 :   Sort s9 = s3.instantiate({s4, s4});
      35                 :          1 :   (void)s5.substitute({s4}, {s9});
      36                 :          1 : }

Generated by: LCOV version 1.14