fix some code smells reported by sonarcloud
* bench/dtgbasat/gen.py, bin/autcross.cc, bin/autfilt.cc, bin/common_aoutput.cc, bin/common_aoutput.hh: Various cleanups.
This commit is contained in:
parent
716bb781eb
commit
05edab3f5a
5 changed files with 51 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2017-2020, 2022 Laboratoire de Recherche et
|
||||
// Copyright (C) 2017-2020, 2022-2023 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -549,7 +549,7 @@ namespace
|
|||
{
|
||||
if (!quiet)
|
||||
std::cerr << "info: building " << autname(i, is_really_comp(i))
|
||||
<< '*' << autname(j, true ^ is_really_comp(j))
|
||||
<< '*' << autname(j, !is_really_comp(j))
|
||||
<< " requires more acceptance sets than supported\n";
|
||||
return false;
|
||||
}
|
||||
|
|
@ -557,14 +557,14 @@ namespace
|
|||
if (verbose)
|
||||
std::cerr << "info: check_empty "
|
||||
<< autname(i, is_really_comp(i))
|
||||
<< '*' << autname(j, true ^ is_really_comp(j)) << '\n';
|
||||
<< '*' << autname(j, !is_really_comp(j)) << '\n';
|
||||
|
||||
auto w = aut_i->intersecting_word(aut_j);
|
||||
if (w)
|
||||
{
|
||||
std::ostream& err = global_error();
|
||||
err << "error: " << autname(i, is_really_comp(i))
|
||||
<< '*' << autname(j, true ^ is_really_comp(j))
|
||||
<< '*' << autname(j, !is_really_comp(j))
|
||||
<< (" is nonempty; both automata accept the infinite word:\n"
|
||||
" ");
|
||||
example() << *w << '\n';
|
||||
|
|
@ -613,7 +613,7 @@ namespace
|
|||
return src.str();
|
||||
}();
|
||||
|
||||
input_statistics.push_back(in_statistics());
|
||||
input_statistics.emplace_back(in_statistics());
|
||||
|
||||
input_statistics[round_num].input_source = std::move(source);
|
||||
if (auto name = input->get_named_prop<std::string>("automaton-name"))
|
||||
|
|
@ -658,7 +658,7 @@ namespace
|
|||
problems += prob;
|
||||
}
|
||||
spot::cleanup_tmpfiles();
|
||||
output_statistics.push_back(std::move(stats));
|
||||
output_statistics.emplace_back(std::move(stats));
|
||||
|
||||
if (verbose)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue