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

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Andrew Reynolds, 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 #567
      14                 :            :  *
      15                 :            :  */
      16                 :            : #include <cvc5/cvc5.h>
      17                 :            : 
      18                 :            : using namespace cvc5;
      19                 :          1 : int main(void)
      20                 :            : {
      21                 :          2 :   TermManager tm;
      22                 :          2 :   Solver solver(tm);
      23                 :          1 :   solver.setOption("incremental", "false");
      24                 :          1 :   solver.setOption("preregister-mode", "lazy");
      25                 :          1 :   solver.setOption("produce-abducts", "true");
      26                 :          1 :   solver.setOption("preprocess-only", "true");
      27                 :          2 :   Sort s0 = tm.mkFloatingPointSort(5, 11);
      28                 :          2 :   Term t1 = tm.mkFloatingPointPosZero(5, 11);
      29                 :          2 :   Op o2 = tm.mkOp(Kind::FLOATINGPOINT_NEG);
      30                 :          4 :   Term t3 = tm.mkTerm(o2, {t1});
      31                 :          4 :   Term t4 = tm.mkTerm(Kind::FLOATINGPOINT_IS_POS, {t3});
      32                 :          2 :   Sort s5 = t4.getSort();
      33                 :          1 :   Term t6 = solver.getAbduct(t4);
      34                 :          1 :   return 0;
      35                 :            : }

Generated by: LCOV version 1.14