GCC Code Coverage Report
Directory: . Exec Total Coverage
File: test/unit/theory/theory_arith_pow2_white.cpp Lines: 1 1 100.0 %
Date: 2021-09-10 Branches: 2 4 50.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Yoni Zohar
4
 *
5
 * This file is part of the cvc5 project.
6
 *
7
 * Copyright (c) 2009-2021 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
 * Unit tests for pow2 operator.
14
 */
15
16
#include <iostream>
17
#include <memory>
18
#include <vector>
19
20
#include "test_smt.h"
21
#include "theory/arith/nl/pow2_solver.h"
22
#include "util/rational.h"
23
24
namespace cvc5 {
25
26
using namespace kind;
27
using namespace theory;
28
29
namespace test {
30
31
class TestTheoryWhiteArithPow2 : public TestSmtNoFinishInit
32
{
33
 protected:
34
  void SetUp() override
35
  {
36
    TestSmtNoFinishInit::SetUp();
37
    d_smtEngine->setOption("produce-models", "true");
38
    d_smtEngine->finishInit();
39
    d_true = d_nodeManager->mkConst<bool>(true);
40
    d_one = d_nodeManager->mkConst<Rational>(Rational(1));
41
  }
42
  Node d_true;
43
  Node d_one;
44
};
45
}  // namespace test
46
5
}  // namespace cvc5