blob: 59a97c5a2b06bda289318881381a68f7f4a28a08 (
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
|
/********************* */
/*! \file bv_bitblast_mode.cpp
** \verbatim
** Top contributors (to current version):
** Liana Hadarean, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2018 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 Bitblast modes for bit-vector solver.
**
** Bitblast modes for bit-vector solver.
**/
#include "options/bv_bitblast_mode.h"
#include <iostream>
namespace CVC4 {
std::ostream& operator<<(std::ostream& out, theory::bv::BitblastMode mode) {
switch(mode) {
case theory::bv::BITBLAST_MODE_LAZY:
out << "BITBLAST_MODE_LAZY";
break;
case theory::bv::BITBLAST_MODE_EAGER:
out << "BITBLAST_MODE_EAGER";
break;
default:
out << "BitblastMode:UNKNOWN![" << unsigned(mode) << "]";
}
return out;
}
std::ostream& operator<<(std::ostream& out, theory::bv::BvSlicerMode mode) {
switch(mode) {
case theory::bv::BITVECTOR_SLICER_ON:
out << "BITVECTOR_SLICER_ON";
break;
case theory::bv::BITVECTOR_SLICER_OFF:
out << "BITVECTOR_SLICER_OFF";
break;
case theory::bv::BITVECTOR_SLICER_AUTO:
out << "BITVECTOR_SLICER_AUTO";
break;
default:
out << "BvSlicerMode:UNKNOWN![" << unsigned(mode) << "]";
}
return out;
}
std::ostream& operator<<(std::ostream& out, theory::bv::SatSolverMode solver) {
switch(solver) {
case theory::bv::SAT_SOLVER_MINISAT:
out << "SAT_SOLVER_MINISAT";
break;
case theory::bv::SAT_SOLVER_CRYPTOMINISAT:
out << "SAT_SOLVER_CRYPTOMINISAT";
break;
default:
out << "SatSolverMode:UNKNOWN![" << unsigned(solver) << "]";
}
return out;
}
std::ostream& operator<<(std::ostream& out, theory::bv::BvProofFormat format)
{
switch (format)
{
case theory::bv::BITVECTOR_PROOF_ER: out << "BITVECTOR_PROOF_ER"; break;
case theory::bv::BITVECTOR_PROOF_DRAT: out << "BITVECTOR_PROOF_DRAT"; break;
case theory::bv::BITVECTOR_PROOF_LRAT: out << "BITVECTOR_PROOF_LRAT"; break;
default: out << "BvProofFormat:UNKNOWN![" << unsigned(format) << "]";
}
return out;
}
}/* CVC4 namespace */
|