LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue587.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 26 26 100.0 %
Date: 2024-12-31 12:36:47 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz, Andrew Reynolds
       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 #587
      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("sygus-core-connective", "true");
      25                 :          1 :   solver.setOption("produce-abducts", "true");
      26                 :          2 :   Sort s0 = tm.getBooleanSort();
      27                 :          2 :   Sort s1 = tm.mkSetSort(s0);
      28                 :          2 :   Sort s2 = tm.mkSetSort(s1);
      29                 :          2 :   Term t3 = tm.mkEmptySet(s2);
      30                 :          2 :   Term t4 = tm.mkConst(s1, "_x2");
      31                 :          2 :   Op o5 = tm.mkOp(Kind::SET_SINGLETON);
      32                 :          4 :   Term t6 = tm.mkTerm(o5, {t3});
      33                 :          2 :   Sort s7 = t6.getSort();
      34                 :          2 :   Op o8 = tm.mkOp(Kind::SET_SINGLETON);
      35                 :          4 :   Term t9 = tm.mkTerm(o5, {t6});
      36                 :          2 :   Sort s10 = t9.getSort();
      37                 :          2 :   Op o11 = tm.mkOp(Kind::SET_MINUS);
      38                 :          5 :   Term t12 = tm.mkTerm(o11, {t9, t9});
      39                 :          2 :   Op o13 = tm.mkOp(Kind::SET_IS_SINGLETON);
      40                 :          4 :   Term t14 = tm.mkTerm(o13, {t12});
      41                 :          1 :   solver.assertFormula(t14);
      42                 :          2 :   Op o15 = tm.mkOp(Kind::SET_MEMBER);
      43                 :          5 :   Term t16 = tm.mkTerm(o15, {t14, t4});
      44                 :          1 :   Term t17 = solver.getAbduct(t16);
      45                 :            : 
      46                 :          1 :   return 0;
      47                 :            : }

Generated by: LCOV version 1.14