GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/preprocessing/passes/int_to_bv.h Lines: 1 1 100.0 %
Date: 2021-09-16 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Andres Noetzli, Mathias Preiner
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
 * The IntToBV preprocessing pass.
14
 *
15
 * Converts integer operations into bitvector operations. The width of the
16
 * bitvectors is controlled through the `--solve-int-as-bv` command line
17
 * option.
18
 */
19
20
#include "cvc5_private.h"
21
22
#ifndef CVC5__PREPROCESSING__PASSES__INT_TO_BV_H
23
#define CVC5__PREPROCESSING__PASSES__INT_TO_BV_H
24
25
#include "expr/node.h"
26
#include "preprocessing/preprocessing_pass.h"
27
28
namespace cvc5 {
29
namespace preprocessing {
30
namespace passes {
31
32
using NodeMap = std::unordered_map<Node, Node>;
33
34
19878
class IntToBV : public PreprocessingPass
35
{
36
 public:
37
  IntToBV(PreprocessingPassContext* preprocContext);
38
  Node intToBV(TNode n, NodeMap& cache);
39
40
 protected:
41
  PreprocessingPassResult applyInternal(
42
      AssertionPipeline* assertionsToPreprocess) override;
43
};
44
45
}  // namespace passes
46
}  // namespace preprocessing
47
}  // namespace cvc5
48
49
#endif /* CVC5__PREPROCESSING__PASSES__INT_TO_BV_H */