Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sequencer-2-2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
epics-modules
sequencer-2-2
Commits
ff132b7d
Commit
ff132b7d
authored
13 years ago
by
benjamin.franksen
Browse files
Options
Downloads
Patches
Plain Diff
test/compiler: reformated sncExOpt_*
parent
6f5d3970
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/compiler/sncExOpt_DuplOpt.st
+24
-35
24 additions, 35 deletions
test/compiler/sncExOpt_DuplOpt.st
test/compiler/sncExOpt_UnrecOpt.st
+23
-34
23 additions, 34 deletions
test/compiler/sncExOpt_UnrecOpt.st
with
47 additions
and
69 deletions
test/compiler/sncExOpt_DuplOpt.st
+
24
−
35
View file @
ff132b7d
...
@@ -3,39 +3,28 @@ float v;
...
@@ -3,39 +3,28 @@ float v;
assign
v
to
"grw:xxxExample"
;
assign
v
to
"grw:xxxExample"
;
monitor
v
;
monitor
v
;
ss
ss1
ss
ss1
{
{
state
low
{
state
low
option
+
t
;
{
entry
{
option
+
t
;
printf
(
"Will do this on entry"
);
entry
printf
(
"Another thing to do on entry"
);
{
}
printf
(
"Will do this on entry"
);
when
(
v
>
5.0
)
{
printf
(
"Another thing to do on entry"
);
printf
(
"now changing to high\n"
);
}
}
state
high
when
(
v
>
5.0
)
when
(
delay
(
.
1
))
{
{
}
state
low
printf
(
"now changing to high\n"
);
exit
{
}
state
high
printf
(
"Something to do on exit"
);
when
(
delay
(
.
1
))
}
{
}
state
high
{
}
state
low
option
-
t
;
exit
option
+
t
;
{
when
(
v
<=
5.0
)
{
printf
(
"Something to do on exit"
);
printf
(
"changing to low\n"
);
}
}
state
low
when
(
delay
(
.
1
))
{
}
}
state
high
state
high
}
{
option
-
t
;
option
+
t
;
when
(
v
<=
5.0
)
{
printf
(
"changing to low\n"
);
}
state
low
when
(
delay
(
.
1
))
{
}
state
high
}
}
}
This diff is collapsed.
Click to expand it.
test/compiler/sncExOpt_UnrecOpt.st
+
23
−
34
View file @
ff132b7d
...
@@ -3,38 +3,27 @@ float v;
...
@@ -3,38 +3,27 @@ float v;
assign
v
to
"grw:xxxExample"
;
assign
v
to
"grw:xxxExample"
;
monitor
v
;
monitor
v
;
ss
ss1
ss
ss1
{
{
state
low
{
state
low
option
+
tc
;
{
entry
{
option
+
tc
;
printf
(
"Will do this on entry"
);
entry
printf
(
"Another thing to do on entry"
);
{
}
printf
(
"Will do this on entry"
);
when
(
v
>
5.0
)
{
printf
(
"Another thing to do on entry"
);
printf
(
"now changing to high\n"
);
}
}
state
high
when
(
v
>
5.0
)
when
(
delay
(
.
1
))
{
{
}
state
low
printf
(
"now changing to high\n"
);
exit
{
}
state
high
printf
(
"Something to do on exit"
);
when
(
delay
(
.
1
))
}
{
}
state
high
{
}
state
low
option
-
t
;
exit
when
(
v
<=
5.0
)
{
{
printf
(
"changing to low\n"
);
printf
(
"Something to do on exit"
);
}
state
low
}
when
(
delay
(
.
1
))
{
}
state
high
}
}
state
high
{
option
-
t
;
when
(
v
<=
5.0
)
{
printf
(
"changing to low\n"
);
}
state
low
when
(
delay
(
.
1
))
{
}
state
high
}
}
}
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