Skip to content

Commit 032d871

Browse files
committed
Use NOT_CHECKED when checking status
Signed-off-by: František Nečas <[email protected]>
1 parent de4ab8e commit 032d871

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/2ls/2ls_parse_options.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,8 @@ void twols_parse_optionst::report_properties(
12491249
it!=property_map.end();
12501250
it++)
12511251
{
1252-
if(it->second.status==property_statust::UNKNOWN)
1252+
if(it->second.status==property_statust::UNKNOWN ||
1253+
it->second.status==property_statust::NOT_CHECKED)
12531254
unknown++;
12541255
if(it->second.status==property_statust::FAIL)
12551256
failed++;

src/2ls/cover_goals_ext.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void cover_goals_extt::assignment()
130130
for(goal_mapt::const_iterator it=goal_map.begin();
131131
it!=goal_map.end(); it++, g_it++)
132132
{
133-
if(property_map.at(it->first).status==property_statust::UNKNOWN &&
133+
if((property_map.at(it->first).status==property_statust::UNKNOWN ||
134+
property_map.at(it->first).status==property_statust::NOT_CHECKED) &&
134135
solver.l_get(g_it->condition).is_true())
135136
{
136137
property_map.at(it->first).status=property_statust::FAIL;
@@ -159,7 +160,8 @@ void cover_goals_extt::assignment()
159160
for(goal_mapt::const_iterator it=goal_map.begin();
160161
it!=goal_map.end(); it++, g_it++)
161162
{
162-
if(property_map.at(it->first).status==property_statust::UNKNOWN &&
163+
if((property_map.at(it->first).status==property_statust::UNKNOWN ||
164+
property_map.at(it->first).status==property_statust::NOT_CHECKED) &&
163165
solver.l_get(g_it->condition).is_true())
164166
{
165167
property_map.at(it->first).status=property_statust::FAIL;

src/2ls/summary_checker_base.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ resultt summary_checker_baset::check_properties()
148148
{
149149
if(p_it->second.status==property_statust::FAIL)
150150
return resultt::FAIL;
151-
if(p_it->second.status==property_statust::UNKNOWN)
151+
if(p_it->second.status==property_statust::UNKNOWN ||
152+
p_it->second.status==property_statust::NOT_CHECKED)
152153
result=resultt::UNKNOWN;
153154
}
154155

@@ -238,7 +239,7 @@ void summary_checker_baset::check_properties(
238239
}
239240

240241
// do not recheck properties that have already been decided
241-
if(property_map.at(property_id).status!=property_statust::UNKNOWN)
242+
if(property_map.at(property_id).status!=property_statust::NOT_CHECKED)
242243
continue;
243244

244245
// TODO: some properties do not show up in initialize_property_map

src/2ls/summary_checker_nonterm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ resultt summary_checker_nontermt::check_nonterm_linear()
589589
{
590590
if(p_it->second.status==property_statust::FAIL)
591591
return resultt::FAIL;
592-
if(p_it->second.status==property_statust::UNKNOWN)
592+
if(p_it->second.status==property_statust::UNKNOWN ||
593+
p_it->second.status==property_statust::NOT_CHECKED)
593594
result=resultt::UNKNOWN;
594595
}
595596

0 commit comments

Comments
 (0)