Skip to content

Commit 1af207d

Browse files
author
Thomas Kiley
committed
Switch the output to incremental status
1 parent 4c9feb0 commit 1af207d

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

src/goto-checker/single_loop_incremental_symex_checker.cpp

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,23 @@ single_loop_incremental_symex_checkert::single_loop_incremental_symex_checkert(
4848
prop_conv_solver->set_all_frozen();
4949
}
5050

51+
void output_incremental_status(
52+
const propertiest &properties,
53+
messaget &message_hander)
54+
{
55+
const auto any_failures = std::any_of(
56+
properties.begin(),
57+
properties.end(),
58+
[](const std::pair<irep_idt, property_infot> &property) {
59+
return property.second.status == property_statust::FAIL;
60+
});
61+
std::string status = any_failures ? "FAILURE" : "INCONCLUSIVE";
62+
structured_datat incremental_status{
63+
{{labelt({"incremental", "status"}),
64+
structured_data_entryt::data_node(json_stringt(status))}}};
65+
message_hander.statistics() << incremental_status;
66+
}
67+
5168
incremental_goto_checkert::resultt single_loop_incremental_symex_checkert::
5269
operator()(propertiest &properties)
5370
{
@@ -65,13 +82,7 @@ operator()(propertiest &properties)
6582
update_properties_status_from_symex_target_equation(
6683
properties, result.updated_properties, equation);
6784

68-
const auto is_failure = std::any_of(
69-
properties.begin(), properties.end(), [](const
70-
std::pair<irep_idt, property_infot> &property) {
71-
return property.second.status == property_statust::FAIL;
72-
});
73-
output_overall_result(
74-
is_failure ? ::resultt::FAIL : ::resultt::PASS, ui_message_handler);
85+
output_incremental_status(properties, log);
7586

7687
initial_equation_generated = true;
7788
}
@@ -178,13 +189,7 @@ operator()(propertiest &properties)
178189

179190
current_equation_converted = false;
180191

181-
const auto is_failure = std::any_of(
182-
properties.begin(), properties.end(), [](const
183-
std::pair<irep_idt, property_infot> &property) {
184-
return property.second.status == property_statust::FAIL;
185-
});
186-
output_overall_result(
187-
is_failure ? ::resultt::FAIL : ::resultt::PASS, ui_message_handler);
192+
output_incremental_status(properties, log);
188193

189194
}
190195

0 commit comments

Comments
 (0)