Skip to content
GitLab
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
0fd1100c
Commit
0fd1100c
authored
Mar 28, 2018
by
Etienne Renault
Browse files
modelcheck: capture exceptions by const reference
* tests/ltsmin/modelcheck.cc: here.
parent
8f3f199d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/ltsmin/modelcheck.cc
View file @
0fd1100c
...
...
@@ -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'
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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