Skip to content

Commit fb13b74

Browse files
Petr BauchPetr Bauch
authored andcommitted
Lower-case invariant messages
1 parent 6a24c2c commit fb13b74

File tree

8 files changed

+16
-21
lines changed

8 files changed

+16
-21
lines changed

src/solvers/qbf/qbf_bdd_core.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ qbf_bdd_coret::~qbf_bdd_coret()
8181
tvt qbf_bdd_coret::l_get(literalt a) const
8282
{
8383
UNREACHABLE;
84-
return tvt(false);
8584
}
8685

8786
const std::string qbf_bdd_coret::solver_text()
@@ -126,7 +125,7 @@ propt::resultt qbf_bdd_coret::prop_solve()
126125
{
127126
INVARIANT(
128127
it->type == quantifiert::UNIVERSAL,
129-
"Only handles quantified variables.");
128+
"only handles quantified variables");
130129
#if 0
131130
std::cout << "BDD A: " << var << ", " <<
132131
matrix->nodeCount() << " nodes\n";
@@ -270,16 +269,16 @@ const exprt qbf_bdd_certificatet::f_get(literalt l)
270269
{
271270
quantifiert q;
272271
PRECONDITION_WITH_DIAGNOSTICS(
273-
!find_quantifier(l, q), "No model for unquantified variables.");
272+
!find_quantifier(l, q), "no model for unquantified variables");
274273

275274
// universal?
276275
if(q.type==quantifiert::UNIVERSAL)
277276
{
278-
INVARIANT(l.var_no() != 0, "Input literal wasn't properly initialized.");
277+
INVARIANT(l.var_no() != 0, "input literal wasn't properly initialized");
279278
variable_mapt::const_iterator it=variable_map.find(l.var_no());
280279

281280
INVARIANT(
282-
it != variable_map.end(), "Variable not found in the variable map.");
281+
it != variable_map.end(), "variable not found in the variable map");
283282

284283
const exprt &sym=it->second.first;
285284
unsigned index=it->second.second;
@@ -296,7 +295,7 @@ const exprt qbf_bdd_certificatet::f_get(literalt l)
296295
// skolem functions for existentials
297296
INVARIANT(
298297
q.type == quantifiert::EXISTENTIAL,
299-
"Only quantified literals are supported.");
298+
"only quantified literals are supported");
300299

301300
function_cachet::const_iterator it=function_cache.find(l.var_no());
302301
if(it!=function_cache.end())
@@ -315,7 +314,7 @@ const exprt qbf_bdd_certificatet::f_get(literalt l)
315314

316315
INVARIANT(
317316
model_bdds[l.var_no()] != NULL,
318-
"There must be a model BDD for the literal.");
317+
"there must be a model BDD for the literal");
319318
BDD &model=*model_bdds[l.var_no()];
320319

321320
#if 0

src/solvers/qbf/qbf_quantor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ qbf_quantort::~qbf_quantort()
2323
tvt qbf_quantort::l_get(literalt) const
2424
{
2525
UNREACHABLE;
26-
return tvt::unknown();
2726
}
2827

2928
const std::string qbf_quantort::solver_text()

src/solvers/qbf/qbf_qube.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ qbf_qubet::~qbf_qubet()
2525
tvt qbf_qubet::l_get(literalt) const
2626
{
2727
UNREACHABLE;
28-
return tvt(false);
2928
}
3029

3130
const std::string qbf_qubet::solver_text()

src/solvers/qbf/qbf_skizzo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ qbf_skizzot::~qbf_skizzot()
2525
tvt qbf_skizzot::l_get(literalt) const
2626
{
2727
UNREACHABLE;
28-
return tvt(false);
2928
}
3029

3130
const std::string qbf_skizzot::solver_text()

src/solvers/qbf/qbf_skizzo_core.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool qbf_skizzo_coret::get_certificate(void)
197197

198198
INVARIANT_WITH_DIAGNOSTICS(
199199
line == "# QBM file, 1.3",
200-
"A QBM file has to start with this exact string: ",
200+
"QBM file has to start with this exact string: ",
201201
"# QBM file, 1.3");
202202

203203
while(in)
@@ -217,7 +217,7 @@ bool qbf_skizzo_coret::get_certificate(void)
217217
size_t ob=line.find('[');
218218
std::string n_es=line.substr(ob+1, line.find(']')-ob-1);
219219
n_e=unsafe_string2int(n_es);
220-
INVARIANT(n_e != 0, "There has to be at least one existential variable.");
220+
INVARIANT(n_e != 0, "there has to be at least one existential variable");
221221

222222
e_list.resize(n_e);
223223
std::string e_lists=line.substr(line.find(':')+2);
@@ -227,7 +227,7 @@ bool qbf_skizzo_coret::get_certificate(void)
227227
size_t space=e_lists.find(' ');
228228

229229
int cur=unsafe_string2int(e_lists.substr(0, space));
230-
INVARIANT(cur != 0, "Variable numbering starts with 1.");
230+
INVARIANT(cur != 0, "variable numbering starts with 1");
231231

232232
e_list[i]=cur;
233233
if(cur>e_max)
@@ -236,7 +236,7 @@ bool qbf_skizzo_coret::get_certificate(void)
236236
e_lists=e_lists.substr(space+1);
237237
}
238238

239-
INVARIANT(!result, "Existential mapping from sKizzo missing.");
239+
INVARIANT(!result, "existential mapping from sKizzo missing");
240240

241241
in.close();
242242

@@ -273,8 +273,8 @@ bool qbf_skizzo_coret::get_certificate(void)
273273

274274
INVARIANT(
275275
nroots == 2 * n_e,
276-
"Valid QBM certificate should have twice as much roots as the "
277-
"existential variables.");
276+
"valid QBM certificate should have twice as much roots as the "
277+
"existential variables");
278278

279279
model_bdds.resize(e_max+1, NULL);
280280

src/solvers/qbf/qbf_squolem.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ qbf_squolemt::~qbf_squolemt()
2424
tvt qbf_squolemt::l_get(literalt a) const
2525
{
2626
UNREACHABLE;
27-
return tvt(false);
2827
}
2928

3029
const std::string qbf_squolemt::solver_text()

src/solvers/qbf/qbf_squolem_core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ const exprt qbf_squolem_coret::f_get(literalt l)
190190
if(squolem->isUniversal(l.var_no()))
191191
{
192192
INVARIANT_WITH_DIAGNOSTICS(
193-
l.var_no() != 0, "Unknown variable: ", std::to_string(l.var_no()));
193+
l.var_no() != 0, "unknown variable: ", std::to_string(l.var_no()));
194194
variable_mapt::const_iterator it=variable_map.find(l.var_no());
195195

196196
INVARIANT(
197-
it != variable_map.end(), "Variable not found in the variable map.");
197+
it != variable_map.end(), "variable not found in the variable map");
198198

199199
const exprt &sym=it->second.first;
200200
unsigned index=it->second.second;

src/solvers/qbf/qdimacs_cnf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ void qdimacs_cnft::write_prefix(std::ostream &out) const
3333

3434
INVARIANT_WITH_DIAGNOSTICS(
3535
quantifier.var_no < no_variables(),
36-
"Unknown variable: ",
36+
"unknown variable: ",
3737
std::to_string(quantifier.var_no));
3838
// double quantification?
39-
INVARIANT(!quantified[quantifier.var_no], "No double quantification.");
39+
INVARIANT(!quantified[quantifier.var_no], "no double quantification");
4040
quantified[quantifier.var_no]=true;
4141

4242
switch(quantifier.type)

0 commit comments

Comments
 (0)