Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Spot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spot
Spot
Commits
2853c4ca
Commit
2853c4ca
authored
Feb 05, 2016
by
Alexandre Duret-Lutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tests/core/safra.cc (help): Simplify.
parent
8e26852a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
tests/core/safra.cc
tests/core/safra.cc
+15
-16
No files found.
tests/core/safra.cc
View file @
2853c4ca
...
...
@@ -33,20 +33,19 @@
#include <spot/twaalgos/simulation.hh>
int
help
();
int
help
()
static
void
help
()
{
std
::
cerr
<<
"safra [OPTIONS]
\n
"
;
std
::
cerr
<<
"
\t
-f ltl_formula
\t
input string is an ltl formulae
\n
"
;
std
::
cerr
<<
"
\t
--hoa file.hoa
\t
input file has hoa format
\n
"
;
std
::
cerr
<<
"
\t
-p
\t
pretty print states
\n
"
;
std
::
cerr
<<
"
\t
-H
\t
output hoa format
\n
"
;
std
::
cerr
<<
"
\t
-b
\t
reduce result using bisimulation
\n
"
;
std
::
cerr
<<
"
\t
--scc_opt
\t
Use an SCC-based Safra
\n
"
;
std
::
cerr
<<
"
\t
--bisim_opt
\t
Use Simulation info to reduce macro-states
"
"size
\n
"
;
std
::
cerr
<<
"
\t
--stutter
\t
Stutter-invarience optimisation
\n
"
;
return
1
;
std
::
cerr
<<
"safra [OPTIONS]
\n
"
"
\t
-f ltl_formula
\t
input string is an ltl formulae
\n
"
"
\t
--hoa file.hoa
\t
input file has hoa format
\n
"
"
\t
-p
\t
pretty print states
\n
"
"
\t
-H
\t
output hoa format
\n
"
"
\t
-b
\t
reduce result using bisimulation
\n
"
"
\t
--scc_opt
\t
Use an SCC-based Safra
\n
"
"
\t
--bisim_opt
\t
Use Simulation info to reduce macro-states size
\n
"
"
\t
--stutter
\t
Stutter-invarience optimisation
\n
"
;
exit
(
1
)
;
}
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -64,21 +63,21 @@ int main(int argc, char* argv[])
char
*
input
=
nullptr
;
if
(
argc
<=
2
)
return
help
();
help
();
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
if
(
!
strncmp
(
argv
[
i
],
"--hoa"
,
5
))
{
in_hoa
=
true
;
if
(
i
+
1
>=
argc
)
return
help
();
help
();
input
=
argv
[
++
i
];
}
else
if
(
!
strncmp
(
argv
[
i
],
"-f"
,
2
))
{
in_ltl
=
true
;
if
(
i
+
1
>=
argc
)
return
help
();
help
();
input
=
argv
[
++
i
];
}
else
if
(
!
strncmp
(
argv
[
i
],
"-H"
,
2
))
...
...
Write
Preview
Markdown
is supported
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