LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - issue7000.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 18 19 94.7 %
Date: 2026-04-02 10:40:46 Functions: 1 1 100.0 %
Branches: 1 2 50.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 issue #7000.
      11                 :            :  */
      12                 :            : #include <cvc5/cvc5.h>
      13                 :            : 
      14                 :            : #include <cassert>
      15                 :            : 
      16                 :            : using namespace cvc5;
      17                 :            : 
      18                 :          1 : int main(void)
      19                 :            : {
      20                 :          1 :   TermManager tm;
      21                 :          1 :   Solver solver(tm);
      22                 :          1 :   Sort s1 = tm.getIntegerSort();
      23                 :          3 :   Sort s2 = tm.mkFunctionSort({s1}, s1);
      24                 :          1 :   Sort s3 = tm.getRealSort();
      25                 :          1 :   Term t4 = tm.mkPi();
      26                 :          1 :   Term t7 = tm.mkConst(s3, "_x5");
      27                 :          1 :   Term t37 = tm.mkConst(s2, "_x32");
      28                 :          1 :   Term t59 = tm.mkConst(s2, "_x51");
      29                 :          4 :   Term t72 = tm.mkTerm(Kind::EQUAL, {t37, t59});
      30                 :          4 :   Term t74 = tm.mkTerm(Kind::GT, {t4, t7});
      31                 :          6 :   Term query = tm.mkTerm(Kind::AND, {t72, t74, t72, t72});
      32                 :            :   // throws logic exception since logic is not higher order by default
      33                 :            :   try
      34                 :            :   {
      35                 :          2 :     solver.checkSatAssuming(query.notTerm());
      36                 :            :   }
      37         [ -  + ]:          1 :   catch (CVC5ApiException& e)
      38                 :            :   {
      39                 :          1 :     return 0;
      40                 :          1 :   }
      41                 :          0 :   assert(false);
      42                 :          1 : }

Generated by: LCOV version 1.14