LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue423.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 16 100.0 %
Date: 2024-12-27 12:35:59 Functions: 1 1 100.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   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 #423.
      14                 :            :  */
      15                 :            : #include <cvc5/cvc5.h>
      16                 :            : 
      17                 :            : using namespace cvc5;
      18                 :            : 
      19                 :          1 : int main(void)
      20                 :            : {
      21                 :          2 :   TermManager tm;
      22                 :          2 :   Solver solver(tm);
      23                 :            : 
      24                 :          1 :   solver.setOption("produce-models", "true");
      25                 :          1 :   solver.setOption("produce-difficulty", "true");
      26                 :          2 :   Sort s2 = tm.getRealSort();
      27                 :          2 :   Sort s3 = tm.mkSequenceSort(s2);
      28                 :          2 :   Term t2;
      29                 :            :   {
      30                 :          1 :     t2 = tm.mkEmptySequence(s3.getSequenceElementSort());
      31                 :            :   }
      32                 :          3 :   Term t22 = tm.mkReal("119605652059157009");
      33                 :          4 :   Term t32 = tm.mkTerm(Kind::SEQ_UNIT, {t22});
      34                 :          5 :   Term t43 = tm.mkTerm(Kind::SEQ_CONCAT, {t2, t32});
      35                 :          4 :   Term t51 = tm.mkTerm(Kind::DISTINCT, {t32, t32});
      36                 :          1 :   solver.checkSat();
      37 [ +  + ][ -  - ]:          3 :   solver.blockModelValues({t51, t43});
      38                 :          1 : }

Generated by: LCOV version 1.14