@@ -48,6 +48,23 @@ single_loop_incremental_symex_checkert::single_loop_incremental_symex_checkert(
48
48
prop_conv_solver->set_all_frozen ();
49
49
}
50
50
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
+
51
68
incremental_goto_checkert::resultt single_loop_incremental_symex_checkert::
52
69
operator ()(propertiest &properties)
53
70
{
@@ -65,13 +82,7 @@ operator()(propertiest &properties)
65
82
update_properties_status_from_symex_target_equation (
66
83
properties, result.updated_properties , equation);
67
84
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 );
75
86
76
87
initial_equation_generated = true ;
77
88
}
@@ -178,13 +189,7 @@ operator()(propertiest &properties)
178
189
179
190
current_equation_converted = false ;
180
191
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 );
188
193
189
194
}
190
195
0 commit comments