LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue413.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 18 19 94.7 %
Date: 2026-04-01 10:41:05 Functions: 1 1 100.0 %
Branches: 3 6 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 project issue #413.
      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                 :            : 
      23                 :          1 :   solver.setOption("produce-models", "true");
      24                 :          1 :   solver.setOption("produce-unsat-assumptions", "true");
      25                 :          1 :   solver.setOption("produce-assertions", "true");
      26                 :          1 :   Sort s1 = tm.getStringSort();
      27                 :          1 :   Sort s3 = tm.getIntegerSort();
      28                 :          1 :   Sort s7 = tm.mkArraySort(s1, s3);
      29                 :          1 :   Term t3 = tm.mkConst(s1, "_x2");
      30                 :          1 :   Term t57 = tm.mkVar(s7, "_x38");
      31                 :          4 :   Term t103 = tm.mkTerm(Kind::SELECT, {t57, t3});
      32                 :          1 :   solver.checkSat();
      33                 :            :   try
      34                 :            :   {
      35 [ -  - ][ +  + ]:          5 :     solver.blockModelValues({t103});
      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