Commit acff9698 authored by Etienne Renault's avatar Etienne Renault

modelcheck: capture exceptions by const reference

* tests/ltsmin/modelcheck.cc: here.
parent b7610e69
......@@ -269,7 +269,7 @@ static int checked_main()
model = spot::ltsmin_model::load(mc_options.model)
.kripke(&ap, dict, deadf, mc_options.compress);
}
catch (std::runtime_error& e)
catch (const std::runtime_error& e)
{
std::cerr << e.what() << '\n';
}
......@@ -322,7 +322,7 @@ static int checked_main()
{
res = ec->check();
}
catch (std::bad_alloc&)
catch (const std::bad_alloc&)
{
std::cerr << "Out of memory during emptiness check."
<< std::endl;
......@@ -357,7 +357,7 @@ static int checked_main()
{
run = res->accepting_run();
}
catch (std::bad_alloc&)
catch (const std::bad_alloc&)
{
std::cerr << "Out of memory while looking for counterexample."
<< std::endl;
......@@ -429,7 +429,7 @@ static int checked_main()
.kripkecube(propcube->get_ap(), deadf, mc_options.compress,
mc_options.nb_threads);
}
catch (std::runtime_error& e)
catch (const std::runtime_error& e)
{
std::cerr << e.what() << '\n';
}
......@@ -535,7 +535,7 @@ static int checked_main()
.kripkecube({}, deadf, mc_options.compress,
mc_options.nb_threads);
}
catch (std::runtime_error& e)
catch (const std::runtime_error& e)
{
std::cerr << e.what() << '\n';
}
......@@ -631,7 +631,7 @@ static int checked_main()
.kripkecube({}, deadf, mc_options.compress,
mc_options.nb_threads);
}
catch (std::runtime_error& e)
catch (const std::runtime_error& e)
{
std::cerr << e.what() << '\n';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment