LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue334.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 17 17 100.0 %
Date: 2026-09-09 10:08:49 Functions: 1 1 100.0 %
Branches: 0 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 #334
      11                 :            :  *
      12                 :            :  */
      13                 :            : 
      14                 :            : #include <cvc5/cvc5.h>
      15                 :            : 
      16                 :            : using namespace cvc5;
      17                 :            : 
      18                 :          1 : int main(void)
      19                 :            : {
      20                 :          1 :   TermManager tm;
      21                 :          1 :   Solver slv(tm);
      22                 :          1 :   slv.setOption("produce-unsat-cores", "true");
      23                 :          1 :   slv.setOption("strings-exp", "true");
      24                 :          1 :   Sort s1 = tm.mkBitVectorSort(1);
      25                 :          1 :   Sort s2 = tm.mkFloatingPointSort(8, 24);
      26                 :          2 :   Term val = tm.mkBitVector(32, "10000000110010111010111011000101", 2);
      27                 :          1 :   Term t1 = tm.mkFloatingPoint(8, 24, val);
      28                 :          1 :   Term t2 = tm.mkConst(s1);
      29                 :          3 :   Term t4 = tm.mkTerm(Kind::BITVECTOR_UBV_TO_INT, {t2});
      30                 :          3 :   Term t5 = tm.mkTerm(Kind::STRING_FROM_CODE, {t4});
      31                 :          1 :   Term t6 = slv.simplify(t5);
      32                 :          4 :   Term t7 = tm.mkTerm(Kind::STRING_LEQ, {t5, t6});
      33                 :          1 :   slv.assertFormula(t7);
      34                 :          1 :   slv.simplify(t1);
      35                 :          1 : }

Generated by: LCOV version 1.14