Skip to content

Commit 34dc8dc

Browse files
authored
Merge pull request #8655 from rod-chapman/less_verbose_contract_warnings
Change the "no assigns..." and "no decreases..." warnings to higher verbosity
2 parents e81ad69 + 29e7ba5 commit 34dc8dc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/goto-instrument/contracts/dynamic-frames/dfcc_cfg_info.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -360,31 +360,31 @@ static struct contract_clausest default_loop_contract_clauses(
360360
else
361361
{
362362
// infer assigns clause targets if none given
363-
log.warning() << "No assigns clause provided for loop " << function_id
364-
<< "." << loop.latch->loop_number << " at "
365-
<< loop.head->source_location() << ". The inferred set {";
363+
log.debug() << "No assigns clause provided for loop " << function_id
364+
<< "." << loop.latch->loop_number << " at "
365+
<< loop.head->source_location() << ". The inferred set {";
366366
bool first = true;
367367
for(const auto &expr : inferred_assigns)
368368
{
369369
if(!first)
370370
{
371-
log.warning() << ", ";
371+
log.debug() << ", ";
372372
}
373373
first = false;
374-
log.warning() << format(expr);
374+
log.debug() << format(expr);
375375
}
376-
log.warning() << "} might be incomplete or imprecise, please provide an "
377-
"assigns clause if the analysis fails."
378-
<< messaget::eom;
376+
log.debug() << "} might be incomplete or imprecise, please provide an "
377+
"assigns clause if the analysis fails."
378+
<< messaget::eom;
379379
result.assigns = inferred_assigns;
380380
}
381381

382382
if(result.decreases_clauses.empty())
383383
{
384-
log.warning() << "No decrease clause provided for loop " << function_id
385-
<< "." << loop.latch->loop_number << " at "
386-
<< loop.head->source_location()
387-
<< ". Termination will not be checked." << messaget::eom;
384+
log.debug() << "No decrease clause provided for loop " << function_id
385+
<< "." << loop.latch->loop_number << " at "
386+
<< loop.head->source_location()
387+
<< ". Termination will not be checked." << messaget::eom;
388388
}
389389
}
390390
return result;

0 commit comments

Comments
 (0)