Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
6a6adb9f
Commit
6a6adb9f
authored
Nov 23, 2015
by
Maxime Perrotin
Browse files
Save test file from the tool, replace manual code
parent
a8d54281
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/test-provided1/og.pr
View file @
6a6adb9f
...
...
@@ -4,7 +4,6 @@ SYSTEM og;
signal telecommand(tc_type);
signal telemetry(tm_type);
/* CIF ENDTEXT */
CHANNEL c
FROM ENV TO og WITH telecommand;
...
...
@@ -21,17 +20,17 @@ signal telemetry(tm_type);
SUBSTRUCTURE
STATE mode_manager;
SUBSTRUCTURE
/* CIF START (
180, 60
), (70, 35) */
/* CIF START (
359, 108
), (70, 35) */
START;
/* CIF NEXTSTATE (
159
, 1
10
), (1
11
, 35) */
/* CIF NEXTSTATE (
331
, 1
58
), (1
26
, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (
159
, 1
10
), (1
11
, 35) */
/* CIF STATE (
331
, 1
58
), (1
26
, 35) */
STATE wait_for_tc;
/* CIF PROVIDED (1
43, 165
), (
144
, 35) */
provided
got_tc=true and present(tc!content)=change_mode;
/* CIF PROCEDURECALL (
123
, 2
15
), (
184
, 35) */
/* CIF PROVIDED (1
70, 213
), (
451
, 35) */
PROVIDED
got_tc=true and present(tc!content)=change_mode;
/* CIF PROCEDURECALL (
282
, 2
63
), (
226
, 35) */
CALL writeln('Change Mode');
/* CIF NEXTSTATE (
18
0,
265
), (70, 35) */
/* CIF NEXTSTATE (
36
0,
313
), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
...
...
@@ -39,45 +38,45 @@ signal telemetry(tm_type);
SUBSTRUCTURE
/* CIF START (144, 56), (70, 35) */
START;
/* CIF NEXTSTATE (1
2
6, 106), (1
0
6, 35) */
/* CIF NEXTSTATE (1
1
6, 106), (1
2
6, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (1
2
6, 106), (1
0
6, 35) */
/* CIF STATE (1
1
6, 106), (1
2
6, 35) */
STATE wait_for_tc;
/* CIF
PROVIDED (107
, 161), (1
44
, 35) */
/* CIF
INPUT (93
, 161), (1
75
, 35) */
INPUT telecommand(tc);
/* CIF TASK (1
1
7, 211), (1
23
, 35) */
/* CIF TASK (1
0
7, 211), (1
46
, 35) */
TASK got_tc := true;
/* CIF NEXTSTATE (14
4
, 261), (70, 35) */
/* CIF NEXTSTATE (14
5
, 261), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
STATE memory_manager;
SUBSTRUCTURE
/* CIF START (
165, 47
), (70, 35) */
/* CIF START (
259, 60
), (70, 35) */
START;
/* CIF NEXTSTATE (
147, 97
), (1
0
6, 35) */
/* CIF NEXTSTATE (
231, 110
), (1
2
6, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (
147, 97
), (1
0
6, 35) */
/* CIF STATE (
231, 110
), (1
2
6, 35) */
STATE wait_for_tc;
/* CIF
INPUT (128
, 15
2
), (
144
, 35) */
provided
got_tc=true and present(tc!content)=patch_memory;
/* CIF PROCEDURECALL (8
7
, 2
02
), (2
26
, 35) */
/* CIF
PROVIDED (64
, 1
6
5), (
459
, 35) */
PROVIDED
got_tc=true and present(tc!content)=patch_memory;
/* CIF PROCEDURECALL (
17
8, 2
15
), (2
31
, 35) */
CALL writeln('Patch Memory');
/* CIF NEXTSTATE (
165
, 25
2
), (70, 35) */
/* CIF NEXTSTATE (
258
, 2
6
5), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
/* CIF STATE (370, 97), (1
47
, 35) */
/* CIF STATE (370, 97), (1
82
, 35) */
STATE memory_manager;
ENDSTATE;
/* CIF STATE (238, 111), (
96
, 35) */
/* CIF STATE (238, 111), (
113
, 35) */
STATE tc_router;
ENDSTATE;
/* CIF STATE (314, 191), (1
32
, 35) */
/* CIF STATE (314, 191), (1
61
, 35) */
STATE mode_manager;
ENDSTATE;
ENDSUBSTRUCTURE;
/* CIF TEXT (0, 310), (2
8
7, 1
40
) */
/* CIF TEXT (0, 310), (
3
27, 1
68
) */
-- This system tests the provided clause
-- (continuous signal)
...
...
@@ -87,13 +86,13 @@ dcl tm TM_type;
dcl got_tc Boolean_type;
/* CIF ENDTEXT */
/* CIF START (3
16
, 297), (70, 35) */
/* CIF START (3
37
, 297), (70, 35) */
START;
/* CIF NEXTSTATE (3
16
, 34
7
), (70, 35) */
/* CIF NEXTSTATE (3
37
, 34
8
), (70, 35) */
NEXTSTATE wait;
/* CIF STATE (412, 344), (
6
7, 35) */
/* CIF STATE (412, 344), (7
0
, 35) */
STATE wait;
ENDSTATE;
ENDPROCESS og;
ENDBLOCK;
ENDSYSTEM;
ENDSYSTEM;
\ No newline at end of file
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