Skip to content

Commit 29e7ba5

Browse files
committed
Change the
"No assigns clause provided ..." and "No decreases clause provided..." warnings to "debug" instead of "warning" level. These will no longer be reported at default verbosity level (6), but can be re-instated by setting verbosity to level 10. Signed-off-by: Rod Chapman <[email protected]>
1 parent e81ad69 commit 29e7ba5

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)