@@ -151,10 +151,10 @@ void twols_parse_optionst::get_command_line_options(optionst &options)
151
151
else
152
152
options.set_option (" std-invariants" , false );
153
153
154
- if (cmdline.isset (" no-propagation" ))
155
- options.set_option (" constant-propagation" , false );
156
- else
154
+ if (cmdline.isset (" constant-propagation" ))
157
155
options.set_option (" constant-propagation" , true );
156
+ else
157
+ options.set_option (" constant-propagation" , false );
158
158
159
159
// magic error label
160
160
if (cmdline.isset (" error-label" ))
@@ -633,7 +633,7 @@ int twols_parse_optionst::doit()
633
633
// do actual analysis
634
634
switch ((*checker)(goto_model))
635
635
{
636
- case property_checkert::PASS:
636
+ case property_checkert::resultt:: PASS:
637
637
if (report_assertions)
638
638
report_properties (options, goto_model, checker->property_map );
639
639
report_success ();
@@ -642,7 +642,7 @@ int twols_parse_optionst::doit()
642
642
retval=0 ;
643
643
break ;
644
644
645
- case property_checkert::FAIL:
645
+ case property_checkert::resultt:: FAIL:
646
646
{
647
647
if (report_assertions)
648
648
report_properties (options, goto_model, checker->property_map );
@@ -651,7 +651,7 @@ int twols_parse_optionst::doit()
651
651
bool trace_valid=false ;
652
652
for (const auto &p : checker->property_map )
653
653
{
654
- if (p.second .result !=property_checkert::FAIL)
654
+ if (p.second .result !=property_checkert::resultt:: FAIL)
655
655
continue ;
656
656
657
657
if (options.get_bool_option (" trace" ))
@@ -681,7 +681,7 @@ int twols_parse_optionst::doit()
681
681
retval=10 ;
682
682
break ;
683
683
}
684
- case property_checkert::UNKNOWN:
684
+ case property_checkert::resultt:: UNKNOWN:
685
685
if (report_assertions)
686
686
report_properties (options, goto_model, checker->property_map );
687
687
retval=5 ;
@@ -963,7 +963,7 @@ bool twols_parse_optionst::get_goto_program(
963
963
964
964
language->set_message_handler (get_message_handler ());
965
965
966
- status (" Parsing" , filename) ;
966
+ status () << " Parsing" << filename << eom ;
967
967
968
968
if (language->parse (infile, filename))
969
969
{
@@ -1049,6 +1049,7 @@ bool twols_parse_optionst::process_goto_program(
1049
1049
{
1050
1050
status () << " Function Pointer Removal" << eom;
1051
1051
remove_function_pointers (
1052
+ get_message_handler (),
1052
1053
goto_model,
1053
1054
cmdline.isset (" pointer-check" ));
1054
1055
@@ -1062,7 +1063,7 @@ bool twols_parse_optionst::process_goto_program(
1062
1063
1063
1064
// remove inlined functions
1064
1065
Forall_goto_functions (f_it, goto_model.goto_functions )
1065
- if (f_it->first !=ID__start &&
1066
+ if (f_it->first !=goto_functionst::entry_point () &&
1066
1067
f_it->second .body .instructions .size ()<=2 *(limit/2 ))
1067
1068
{
1068
1069
f_it->second .body .clear ();
@@ -1285,10 +1286,10 @@ void twols_parse_optionst::report_properties(
1285
1286
#endif
1286
1287
1287
1288
if (!options.get_bool_option (" all-properties" ) &&
1288
- it->second .result !=property_checkert::FAIL)
1289
+ it->second .result !=property_checkert::resultt:: FAIL)
1289
1290
continue ;
1290
1291
1291
- if (get_ui ()==ui_message_handlert::XML_UI)
1292
+ if (get_ui ()==ui_message_handlert::uit:: XML_UI)
1292
1293
{
1293
1294
xmlt xml_result (" result" );
1294
1295
xml_result.set_attribute (" property" , id2string (it->first ));
@@ -1307,10 +1308,10 @@ void twols_parse_optionst::report_properties(
1307
1308
}
1308
1309
1309
1310
if (options.get_bool_option (" trace" ) &&
1310
- it->second .result ==property_checkert::FAIL)
1311
+ it->second .result ==property_checkert::resultt:: FAIL)
1311
1312
show_counterexample (goto_model, it->second .error_trace );
1312
1313
if (cmdline.isset (" json-cex" ) &&
1313
- it->second .result ==property_checkert::FAIL)
1314
+ it->second .result ==property_checkert::resultt:: FAIL)
1314
1315
output_json_cex (
1315
1316
options,
1316
1317
goto_model,
@@ -1330,9 +1331,9 @@ void twols_parse_optionst::report_properties(
1330
1331
it!=property_map.end ();
1331
1332
it++)
1332
1333
{
1333
- if (it->second .result ==property_checkert::UNKNOWN)
1334
+ if (it->second .result ==property_checkert::resultt:: UNKNOWN)
1334
1335
unknown++;
1335
- if (it->second .result ==property_checkert::FAIL)
1336
+ if (it->second .result ==property_checkert::resultt:: FAIL)
1336
1337
failed++;
1337
1338
}
1338
1339
@@ -1351,10 +1352,10 @@ void twols_parse_optionst::report_success()
1351
1352
1352
1353
switch (get_ui ())
1353
1354
{
1354
- case ui_message_handlert::PLAIN:
1355
+ case ui_message_handlert::uit:: PLAIN:
1355
1356
break ;
1356
1357
1357
- case ui_message_handlert::XML_UI:
1358
+ case ui_message_handlert::uit:: XML_UI:
1358
1359
{
1359
1360
xmlt xml (" cprover-status" );
1360
1361
xml.data =" SUCCESS" ;
@@ -1376,12 +1377,12 @@ void twols_parse_optionst::show_counterexample(
1376
1377
1377
1378
switch (get_ui ())
1378
1379
{
1379
- case ui_message_handlert::PLAIN:
1380
+ case ui_message_handlert::uit:: PLAIN:
1380
1381
std::cout << std::endl << " Counterexample:" << std::endl;
1381
1382
show_goto_trace (std::cout, ns, error_trace);
1382
1383
break ;
1383
1384
1384
- case ui_message_handlert::XML_UI:
1385
+ case ui_message_handlert::uit:: XML_UI:
1385
1386
{
1386
1387
xmlt xml;
1387
1388
convert (ns, error_trace, xml);
@@ -1401,7 +1402,7 @@ void twols_parse_optionst::output_graphml_cex(
1401
1402
{
1402
1403
for (const auto &p : summary_checker.property_map )
1403
1404
{
1404
- if (p.second .result !=property_checkert::FAIL)
1405
+ if (p.second .result !=property_checkert::resultt:: FAIL)
1405
1406
continue ;
1406
1407
1407
1408
const namespacet ns (goto_model.symbol_table );
@@ -1475,10 +1476,10 @@ void twols_parse_optionst::report_failure()
1475
1476
1476
1477
switch (get_ui ())
1477
1478
{
1478
- case ui_message_handlert::PLAIN:
1479
+ case ui_message_handlert::uit:: PLAIN:
1479
1480
break ;
1480
1481
1481
- case ui_message_handlert::XML_UI:
1482
+ case ui_message_handlert::uit:: XML_UI:
1482
1483
{
1483
1484
xmlt xml (" cprover-status" );
1484
1485
xml.data =" FAILURE" ;
@@ -1498,10 +1499,10 @@ void twols_parse_optionst::report_unknown()
1498
1499
1499
1500
switch (get_ui ())
1500
1501
{
1501
- case ui_message_handlert::PLAIN:
1502
+ case ui_message_handlert::uit:: PLAIN:
1502
1503
break ;
1503
1504
1504
- case ui_message_handlert::XML_UI:
1505
+ case ui_message_handlert::uit:: XML_UI:
1505
1506
{
1506
1507
xmlt xml (" cprover-status" );
1507
1508
xml.data =" UNKNOWN" ;
0 commit comments