LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/api/cpp/issues - proj-issue344.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 12 12 100.0 %
Date: 2024-09-24 10:47:28 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz, Yoni Zohar, Mathias Preiner
       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 #345
      14                 :            :  *
      15                 :            :  */
      16                 :            : 
      17                 :            : #include <cvc5/cvc5.h>
      18                 :            : 
      19                 :            : #include <cassert>
      20                 :            : 
      21                 :            : using namespace cvc5;
      22                 :            : 
      23                 :          1 : int main(void)
      24                 :            : {
      25                 :          2 :   TermManager tm;
      26                 :          2 :   Solver slv(tm);
      27                 :          1 :   slv.setOption("solve-bv-as-int", "iand");
      28                 :          2 :   Sort s12 = tm.getIntegerSort();
      29                 :          2 :   Term t13 = tm.mkConst(s12, "_x11");
      30                 :          4 :   Term t25 = tm.mkTerm(tm.mkOp(Kind::INT_TO_BITVECTOR, {4124876294}), {t13});
      31                 :          5 :   Term t66 = tm.mkTerm(Kind::BITVECTOR_ULTBV, {t25, t25});
      32                 :          5 :   Term t154 = tm.mkTerm(Kind::BITVECTOR_SGT, {t66, t66});
      33                 :          6 :   Term query = tm.mkTerm(Kind::AND, {t154, t154, t154, t154});
      34                 :          1 :   slv.checkSatAssuming(query.notTerm());
      35                 :          1 : }

Generated by: LCOV version 1.14