summaryrefslogtreecommitdiff
path: root/src/options/bv_bitblast_mode.h
blob: 7243c38e1ebf32dd101776ac42cb17a6d6dc482c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*********************                                                        */
/*! \file bv_bitblast_mode.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Liana Hadarean, Alex Ozdemir, Mathias Preiner
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
 ** in the top-level source directory) and their institutional affiliations.
 ** All rights reserved.  See the file COPYING in the top-level source
 ** directory for licensing information.\endverbatim
 **
 ** \brief Bitblasting modes for bit-vector solver.
 **
 ** Bitblasting modes for bit-vector solver.
 **/

#include "cvc4_private.h"

#ifndef CVC4__THEORY__BV__BITBLAST_MODE_H
#define CVC4__THEORY__BV__BITBLAST_MODE_H

#include <iosfwd>

namespace CVC4 {
namespace theory {
namespace bv {

/** Enumeration of bit-blasting modes */
enum BitblastMode {

  /**
   * Lazy bit-blasting that separates boolean reasoning
   * from term reasoning.
   */
  BITBLAST_MODE_LAZY,

  /**
   * Bit-blast eagerly to the bit-vector SAT solver.
   */
  BITBLAST_MODE_EAGER
};/* enum BitblastMode */

/** Enumeration of bit-vector equality slicer mode */
enum BvSlicerMode {

  /**
   * Force the slicer on. 
   */
  BITVECTOR_SLICER_ON, 

  /**
   * Slicer off. 
   */
  BITVECTOR_SLICER_OFF, 

  /**
   * Auto enable slicer if problem has only equalities.
   */
  BITVECTOR_SLICER_AUTO

};/* enum BvSlicerMode */

/** Enumeration of sat solvers that can be used. */
enum SatSolverMode
{
  SAT_SOLVER_MINISAT,
  SAT_SOLVER_CRYPTOMINISAT,
  SAT_SOLVER_CADICAL,
}; /* enum SatSolver */

/**
 * When the BV solver does eager bitblasting backed by CryptoMiniSat, proofs
 * can be written in a variety of formats.
 */
enum BvProofFormat
{
  /**
   * Write extended resolution proofs.
   */
  BITVECTOR_PROOF_ER,
  /**
   * Write DRAT proofs.
   */
  BITVECTOR_PROOF_DRAT,
  /**
   * Write LRAT proofs.
   */
  BITVECTOR_PROOF_LRAT,
};

/**
 * When the BV solver does eager bit-blasting backed by DRAT-producing SAT solvers, proofs
 * can be written in a variety of formats.
 */
enum BvOptimizeSatProof
{
  /**
   * Do not optimize the SAT proof.
   */
  BITVECTOR_OPTIMIZE_SAT_PROOF_NONE = 0,
  /**
   * Optimize the SAT proof, but do not shrink the formula
   */
  BITVECTOR_OPTIMIZE_SAT_PROOF_PROOF = 1,
  /**
   * Optimize the SAT proof and shrink the formula
   */
  BITVECTOR_OPTIMIZE_SAT_PROOF_FORMULA = 2,
};


}/* CVC4::theory::bv namespace */
}/* CVC4::theory namespace */

std::ostream& operator<<(std::ostream& out, theory::bv::BitblastMode mode);
std::ostream& operator<<(std::ostream& out, theory::bv::BvSlicerMode mode);
std::ostream& operator<<(std::ostream& out, theory::bv::SatSolverMode mode);
std::ostream& operator<<(std::ostream& out, theory::bv::BvProofFormat format);
std::ostream& operator<<(std::ostream& out, theory::bv::BvOptimizeSatProof level);

}/* CVC4 namespace */

#endif /* CVC4__THEORY__BV__BITBLAST_MODE_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback