Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
0a21a4c8
Commit
0a21a4c8
authored
Jun 20, 2017
by
Alexandre Duret-Lutz
Browse files
ltsmin: catch exceptions by reference
* spot/ltsmin/ltsmin.cc, tests/ltsmin/modelcheck.cc: Here.
parent
05abed6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
spot/ltsmin/ltsmin.cc
View file @
0a21a4c8
...
...
@@ -1112,7 +1112,7 @@ namespace spot
{
convert_aps
(
to_observe
,
iface
,
dict
,
dead
,
*
ps
);
}
catch
(
std
::
runtime_error
)
catch
(
const
std
::
runtime_error
&
)
{
delete
ps
;
dict
->
unregister_all_my_variables
(
iface
.
get
());
...
...
tests/ltsmin/modelcheck.cc
View file @
0a21a4c8
// -*- coding: utf-8 -*-
// Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016 Laboratoire de
// Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016
, 2017
Laboratoire de
// Recherche et Developpement de l'Epita (LRDE)
//
// This file is part of Spot, a model checking library.
...
...
@@ -282,7 +282,7 @@ checked_main(int argc, char **argv)
{
res
=
ec
->
check
();
}
catch
(
std
::
bad_alloc
)
catch
(
const
std
::
bad_alloc
&
)
{
std
::
cerr
<<
"Out of memory during emptiness check."
<<
std
::
endl
;
...
...
@@ -326,7 +326,7 @@ checked_main(int argc, char **argv)
{
run
=
res
->
accepting_run
();
}
catch
(
std
::
bad_alloc
)
catch
(
const
std
::
bad_alloc
&
)
{
std
::
cerr
<<
"Out of memory while looking for counterexample."
<<
std
::
endl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment