File tree Expand file tree Collapse file tree 5 files changed +23
-35
lines changed Expand file tree Collapse file tree 5 files changed +23
-35
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,11 @@ void bmc_all_propertiest::report(const cover_goalst &cover_goals)
164
164
<< goal_pair.second .description << " : " ;
165
165
166
166
if (goal_pair.second .status == goalt::statust::SUCCESS)
167
- result () << green () ;
167
+ result () << green;
168
168
else
169
- result () << red () ;
169
+ result () << red;
170
170
171
- result () << goal_pair.second .status_string () << reset () << eom;
171
+ result () << goal_pair.second .status_string () << reset << eom;
172
172
}
173
173
174
174
if (bmc.options .get_bool_option (" trace" ))
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ bmct::run_decision_procedure(prop_convt &prop_conv)
153
153
154
154
void bmct::report_success ()
155
155
{
156
- result () << bold () << " VERIFICATION SUCCESSFUL" << reset () << eom;
156
+ result () << bold << " VERIFICATION SUCCESSFUL" << reset << eom;
157
157
158
158
switch (ui_message_handler.get_ui ())
159
159
{
@@ -180,7 +180,7 @@ void bmct::report_success()
180
180
181
181
void bmct::report_failure ()
182
182
{
183
- result () << bold () << " VERIFICATION FAILED" << reset () << eom;
183
+ result () << bold << " VERIFICATION FAILED" << reset << eom;
184
184
185
185
switch (ui_message_handler.get_ui ())
186
186
{
Original file line number Diff line number Diff line change @@ -232,22 +232,22 @@ bool static_verifier(
232
232
233
233
if (e.is_true ())
234
234
{
235
- m.result () << m.green () << " Success" << m.reset () ;
235
+ m.result () << m.green << " Success" << m.reset ;
236
236
pass++;
237
237
}
238
238
else if (e.is_false ())
239
239
{
240
- m.result () << m.red () << " Failure" << m.reset () << " (if reachable)" ;
240
+ m.result () << m.red << " Failure" << m.reset << " (if reachable)" ;
241
241
fail++;
242
242
}
243
243
else if (domain.is_bottom ())
244
244
{
245
- m.result () << m.green () << " Success" << m.reset () << " (unreachable)" ;
245
+ m.result () << m.green << " Success" << m.reset << " (unreachable)" ;
246
246
pass++;
247
247
}
248
248
else
249
249
{
250
- m.result () << m.yellow () << " Unknown" << m.reset () ;
250
+ m.result () << m.yellow << " Unknown" << m.reset ;
251
251
unknown++;
252
252
}
253
253
@@ -258,11 +258,11 @@ bool static_verifier(
258
258
}
259
259
}
260
260
261
- m.status () << m.bold () << " Summary: "
261
+ m.status () << m.bold << " Summary: "
262
262
<< pass << " pass, "
263
263
<< fail << " fail if reachable, "
264
264
<< unknown << " unknown"
265
- << m.reset () << messaget::eom;
265
+ << m.reset << messaget::eom;
266
266
267
267
return false ;
268
268
}
Original file line number Diff line number Diff line change @@ -71,9 +71,15 @@ messaget::~messaget()
71
71
// Visual studio requires this (empty) static object
72
72
messaget::eomt messaget::eom;
73
73
74
+ const messaget::commandt messaget::reset (0 );
75
+ const messaget::commandt messaget::bold (1 );
74
76
const messaget::commandt messaget::faint (2 );
75
77
const messaget::commandt messaget::italic (3 );
76
78
const messaget::commandt messaget::underline (4 );
79
+ const messaget::commandt messaget::red (31 );
80
+ const messaget::commandt messaget::green (32 );
81
+ const messaget::commandt messaget::yellow (33 );
82
+ const messaget::commandt messaget::blue (34 );
77
83
78
84
// / Parse a (user-)provided string as a verbosity level and set it as the
79
85
// / verbosity of dest.
Original file line number Diff line number Diff line change @@ -303,40 +303,22 @@ class messaget
303
303
304
304
// / return to default formatting,
305
305
// / as defined by the terminal
306
- static commandt reset ()
307
- {
308
- return command (0 );
309
- }
306
+ static const commandt reset;
310
307
311
308
// / render text with red foreground color
312
- static commandt red ()
313
- {
314
- return command (31 );
315
- }
309
+ static const commandt red;
316
310
317
311
// / render text with green foreground color
318
- static commandt green ()
319
- {
320
- return command (32 );
321
- }
312
+ static const commandt green;
322
313
323
314
// / render text with yellow foreground color
324
- static commandt yellow ()
325
- {
326
- return command (33 );
327
- }
315
+ static const commandt yellow;
328
316
329
317
// / render text with blue foreground color
330
- static commandt blue ()
331
- {
332
- return command (34 );
333
- }
318
+ static const commandt blue;
334
319
335
320
// / render text with bold font
336
- static commandt bold ()
337
- {
338
- return command (1 );
339
- }
321
+ static const commandt bold;
340
322
341
323
// / render text with faint font
342
324
static const commandt faint;
You can’t perform that action at this time.
0 commit comments