LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue644.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 20 20 100.0 %
Date: 2024-10-24 11:38:43 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 #644
      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-interpolants", "true");
      26                 :          1 :   solver.setOption("produce-interpolants", "true");
      27                 :          2 :   Sort s0 = tm.getRoundingModeSort();
      28                 :          2 :   Term t1 = tm.mkConst(s0, "_x0");
      29                 :          4 :   Term t2 = tm.mkTerm(Kind::SET_SINGLETON, {t1});
      30                 :          2 :   Sort s3 = t2.getSort();
      31                 :          2 :   Op o4 = tm.mkOp(Kind::SET_COMPLEMENT);
      32                 :          4 :   Term t5 = tm.mkTerm(o4, {t2});
      33                 :          4 :   Term t6 = tm.mkTerm(Kind::SET_COMPLEMENT, {t5});
      34                 :          2 :   Op o7 = tm.mkOp(Kind::SET_SUBSET);
      35                 :          5 :   Term t8 = tm.mkTerm(o7, {t6, t5});
      36                 :          2 :   Sort s9 = t8.getSort();
      37                 :          1 :   solver.assertFormula(t8);
      38                 :          1 :   Term t10 = solver.getInterpolant(t8);
      39                 :            : 
      40                 :          1 :   return 0;
      41                 :            : }

Generated by: LCOV version 1.14