Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
a591fae0
Commit
a591fae0
authored
10 years ago
by
Jan Vesely
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
16fba89b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adeterminize/src/adeterminize.cpp
+10
-5
10 additions, 5 deletions
adeterminize/src/adeterminize.cpp
with
10 additions
and
5 deletions
adeterminize/src/adeterminize.cpp
+
10
−
5
View file @
a591fae0
...
...
@@ -28,7 +28,8 @@ using namespace alib;
#define VERSION "0.0.1"
void
printHelp
()
{
void
printHelp
()
{
cout
<<
"adeterminize "
<<
VERSION
<<
endl
;
cout
<<
"Determinize various types of automaton."
<<
endl
;
cout
<<
"Usage: adeterminize -t TYPE [SWITCH...]"
<<
endl
;
...
...
@@ -40,7 +41,8 @@ void printHelp() {
}
Determinizer
*
getVpaDeterminizer
(
Automaton
*
automaton
,
string
version
)
{
Determinizer
*
getVpaDeterminizer
(
Automaton
*
automaton
,
string
version
)
{
if
(
version
==
"3"
)
{
return
new
vpa
::
VpaDeterminizer3
((
PDA
*
)
automaton
);
}
else
if
(
version
==
"2"
)
{
...
...
@@ -50,7 +52,8 @@ Determinizer* getVpaDeterminizer(Automaton* automaton, string version) {
}
Determinizer
*
getRhdpdaDeterminizer
(
Automaton
*
automaton
,
string
version
)
{
Determinizer
*
getRhdpdaDeterminizer
(
Automaton
*
automaton
,
string
version
)
{
if
(
version
==
"4"
)
{
return
new
rhdpda
::
RhdpdaDeterminizer4
((
PDA
*
)
automaton
);
}
else
if
(
version
==
"3"
)
{
...
...
@@ -62,7 +65,8 @@ Determinizer* getRhdpdaDeterminizer(Automaton* automaton, string version) {
}
Determinizer
*
getDeterminizer
(
Automaton
*
automaton
,
string
type
,
string
version
)
{
Determinizer
*
getDeterminizer
(
Automaton
*
automaton
,
string
type
,
string
version
)
{
string
_type
;
for
(
const
auto
&
c
:
type
)
{
_type
.
append
(
1
,
tolower
(
c
));
...
...
@@ -86,7 +90,8 @@ Determinizer* getDeterminizer(Automaton* automaton, string type, string version)
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
static
struct
option
longOptions
[]
=
{
{
"type"
,
required_argument
,
NULL
,
't'
},
{
"algorithm"
,
required_argument
,
NULL
,
'a'
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment