LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue600.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 24 24 100.0 %
Date: 2024-11-17 12:40:58 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Andrew Reynolds, Aina Niemetz
       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 #600
      14                 :            :  *
      15                 :            :  */
      16                 :            : #include <cvc5/cvc5.h>
      17                 :            : 
      18                 :            : using namespace cvc5;
      19                 :          1 : int main(void)
      20                 :            : {
      21                 :          2 :   TermManager tm;
      22                 :          2 :   Solver solver(tm);
      23                 :          1 :   solver.setOption("incremental", "false");
      24                 :          1 :   solver.setOption("sets-exp", "true");
      25                 :          1 :   solver.setOption("check-abducts", "true");
      26                 :          1 :   solver.setOption("produce-abducts", "true");
      27                 :          2 :   Sort s0 = tm.mkUninterpretedSort("_u0");
      28                 :          2 :   Sort s1 = tm.getRoundingModeSort();
      29                 :          2 :   Sort s2 = tm.mkSetSort(s1);
      30                 :          2 :   Term t3 = tm.mkVar(s2, "_x1");
      31                 :          2 :   Term t4 = tm.mkConst(s2, "_x2");
      32                 :          2 :   Term t5 = tm.mkVar(s0, "_x4");
      33                 :          2 :   Term t6 = tm.mkVar(s1, "_x5");
      34                 :          4 :   Term t7 = tm.mkTerm(Kind::SET_IS_SINGLETON, {t4});
      35                 :          2 :   Sort s8 = t7.getSort();
      36                 :          6 :   Term t9 = tm.mkTerm(Kind::VARIABLE_LIST, {t6, t5, t3});
      37                 :          2 :   Sort s10 = t9.getSort();
      38                 :          6 :   Term t11 = tm.mkTerm(Kind::SET_COMPREHENSION, {t9, t7, t7});
      39                 :          2 :   Sort s12 = t11.getSort();
      40                 :          4 :   Term t13 = tm.mkTerm(Kind::SET_CHOOSE, {t11});
      41                 :          1 :   solver.assertFormula(t13);
      42                 :          1 :   Term t14 = solver.getAbduct(t13);
      43                 :            : 
      44                 :          1 :   return 0;
      45                 :            : }

Generated by: LCOV version 1.14