-
Notifications
You must be signed in to change notification settings - Fork 20
/
sdl92.g
1860 lines (1509 loc) · 45.3 KB
/
sdl92.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
OpenGEODE
ANTLR 3.1.3 grammar for the SDL92 language
Includes the following features from SDL2000+:
- FOR loops in TASKs
- Composite states (nested and aggregation/parallel states)
author: Maxime Perrotin
with contributions from Diego Barbera, Laurent Meyer
*/
grammar sdl92;
options {
language=Python3;
output=AST;
ASTLabelType=CommonTree;
backtrack=true;
memoize=true;
}
tokens {
ACTION;
ALL;
ALTERNATIVE;
ANSWER;
ARRAY;
ASN1;
ASSIGN;
BITSTR;
BLOCK;
CHANNEL;
CHOICE;
CIF;
CLOSED_RANGE;
COMMENT;
COMPOSITE_STATE;
CONDITIONAL;
CONNECT;
CONNECTION;
CONSTANT;
CONSTANTS;
CREATE;
DCL;
MONITOR;
DECISION;
DIGITS;
ELSE;
EMPTYSTR;
ENDNEWTYPE;
ENDSYNTYPE;
ENDTEXT;
ENTRY_POINT;
EXPORT;
EXPRESSION;
EXTERNAL;
FI;
FIELD;
FIELD_NAME;
FIELDS;
FLOAT2;
FLOAT;
FLOATING_LABEL;
FOR;
FPAR;
GROUND;
HISTORY_NEXTSTATE;
HYPERLINK;
IF;
IFTHENELSE;
IN;
INFORMAL_TEXT;
INOUT;
INPUT;
INPUT_NONE;
INPUTLIST;
JOIN;
LABEL;
LITERAL;
NEG;
NEWTYPE;
NEXTSTATE;
NUMBER_OF_INSTANCES;
OCTSTR;
OPEN_RANGE;
OUTPUT;
OUTPUT_BODY;
PARAM;
IOPARAM;
PARAMNAMES;
PARAMS;
PAREN;
PARTITION;
PFPAR;
POINT;
PRIMARY;
PROCEDURE;
PROCEDURE_CALL;
PROCEDURE_NAME;
PROCESS;
PROVIDED;
QUESTION;
RANGE;
RENAMES;
REQ_SERVER;
RID_SERVER;
INTERCEPT;
//RESET;
REQ_ID;
RETURN;
RETURNS;
RID_ID;
ROUTE;
SAVE;
SELECTOR;
SEQOF;
SEQUENCE;
//SET;
SIGNAL;
SIGNAL_LIST;
SORT;
STATE;
STATE_AGGREGATION;
STATE_PARTITION_CONNECTION;
STATELIST;
STIMULUS;
STOP;
STOPIF;
STRING;
STRUCT;
LITERALS;
SYNONYM;
SYNONYM_LIST;
SYNTYPE;
SYMBOLID;
SYSTEM;
TASK;
TASK_BODY;
TERMINATOR;
TEXT;
TEXTAREA;
TEXTAREA_CONTENT;
THEN;
THIS;
TIMER;
TO;
TRANSITION;
TYPE_INSTANCE;
UNHANDLED;
USE;
VALUE;
VARIABLE;
VARIABLES;
VIA;
VIAPATH;
INPUT_EXPRESSION;
OUTPUT_EXPRESSION;
ALWAYS;
NEVER;
EVENTUALLY;
FILTER_OUT;
N7S_SCL;
}
/*
Top level: any .pr file
*/
pr_file
: (use_clause
| system_definition
| process_definition)+
;
system_definition
: SYSTEM system_name end
entity_in_system*
ENDSYSTEM system_name? end
-> ^(SYSTEM system_name entity_in_system*)
;
use_clause
: cif*
USE package_name
('/' def_selection_list )?
end
-> ^(USE cif* end? package_name def_selection_list?)
;
/*
In USE clause: USE package/X, Y, Z;
*/
def_selection_list
: ID (','! ID)*
;
/* Entity in system:
Declare signals, external procedures, connections and blocks
*/
entity_in_system
: signal_declaration
| text_area
| procedure
| channel
| block_definition
;
/* signal_declaration:
e.g. SIGNAL open_door(typeA, typeB);
*/
signal_declaration
: cif_paramnames?
SIGNAL signal_id input_params?
(RENAMES (input_expression | output_expression))? // for observers
end
-> ^(SIGNAL cif_paramnames? signal_id input_params? ^(INTERCEPT input_expression? output_expression?))
;
channel
: CHANNEL channel_id
route+
ENDCHANNEL end
-> ^(CHANNEL channel_id route+)
;
route
: FROM source_id TO dest_id WITH signal_id (',' signal_id)* end
-> ^(ROUTE source_id dest_id signal_id+)
;
block_definition
: BLOCK block_id end
entity_in_block*
ENDBLOCK end
-> ^(BLOCK block_id entity_in_block*)
;
/* Inside a SDL block:
there can be nested blocks, processes, signalroutes and connections
to above channels
*/
entity_in_block
: signal_declaration
| signalroute
| connection
| block_definition
| process_definition
;
// There should be at least one route in the signal route
// However it is now optional (* and not +) to appease the
// syntax checker in the tool.
signalroute
: SIGNALROUTE route_id end?
route*
-> ^(SIGNALROUTE route_id route*)
;
connection
: CONNECT channel_id AND route_id end
-> ^(CONNECTION channel_id route_id)
;
/* process_definition
Covers various cases such as:
PROCESS name REFERENCED;
PROCESS name;
<body>
ENDPROCESS <name>;
Etc. The grammar is tolerant, semantic checks are done in the code.
*/
process_definition
: cif*
PROCESS t=TYPE? process_id
number_of_instances? (':' type_inst)? REFERENCED? a=end
pfpar?
(text_area | procedure | (composite_state_preamble) =>composite_state)*
processBody? ENDPROCESS? TYPE? process_id?
end?
-> ^(PROCESS cif* process_id number_of_instances? type_inst?
$t? REFERENCED? $a? pfpar? text_area* procedure*
composite_state* processBody?)
;
// Process formal parameters
pfpar
: FPAR parameters_of_sort
(',' parameters_of_sort)*
end?
-> ^(PFPAR parameters_of_sort+)
;
parameters_of_sort
: variable_id (',' variable_id)* sort
-> ^(PARAM variable_id+ sort)
;
// procedure
// 2021-03 Added EXPORTED and REFERENCED keywords
// needed to declare a synchronous provided interface at system level
procedure
: cif*
EXPORTED? PROCEDURE procedure_id (e1=end | SEMI)
fpar?
res=procedure_result?
(text_area | procedure)*
((processBody? ENDPROCEDURE procedure_id?)
| EXTERNAL | REFERENCED)
e2=end
-> ^(PROCEDURE cif* procedure_id $e1? $e2? fpar? $res?
text_area* procedure* processBody? EXTERNAL? EXPORTED? REFERENCED?)
;
// Procedure result / optional return type
procedure_result
: ('->' | RETURNS)
variable_id?
sort end?
-> ^(RETURNS variable_id? sort)
;
// Procedure formal parameters
fpar
: FPAR formal_variable_param
(',' formal_variable_param)*
end
-> ^(FPAR formal_variable_param+)
;
formal_variable_param
: (INOUT | IN | OUT)?
variable_id (',' variable_id)* sort
-> ^(PARAM INOUT? IN? OUT? variable_id+ sort)
;
// text_area: TODO add operator description in content
text_area
: cif+
content?
cif_end_text
-> ^(TEXTAREA cif+ content? cif_end_text)
;
// Text areas can contain textual procedures, FPAR declarations,
// and variable or timer declarations
content
: (procedure
| use_clause
| signal_declaration
| fpar
| res=procedure_result
| timer_declaration
| syntype_definition
| newtype_definition
| variable_definition
| monitor_definition
| observer_special_states_declaration
| synonym_definition)*
-> ^(TEXTAREA_CONTENT fpar* $res? procedure* variable_definition*
monitor_definition* syntype_definition* newtype_definition*
timer_declaration* signal_declaration* use_clause*
observer_special_states_declaration* synonym_definition*)
;
// Observers for model checking can have states that are flagged as
// error, ignore or success states. They are declared like this:
// errorstates stateA, stateB;
// ignorestates stateC;
// successstates stateD, stateE;
observer_special_states_declaration
: ERRORSTATES statename (',' statename)* end
-> ^(ERRORSTATES statename+)
| IGNORESTATES statename (',' statename)* end
-> ^(IGNORESTATES statename+)
| SUCCESSSTATES statename (',' statename)* end
-> ^(SUCCESSSTATES statename+)
;
timer_declaration
: TIMER timer_id
(',' timer_id)*
end
-> ^(TIMER timer_id+)
;
syntype_definition
: SYNTYPE syntype_name '=' parent_sort
(CONSTANTS (range_condition (',' range_condition)* ))?
ENDSYNTYPE syntype_name? end
-> ^(SYNTYPE syntype_name parent_sort range_condition*)
;
syntype_name
: sort
;
parent_sort
: sort
;
newtype_definition
: NEWTYPE type_name
(array_definition|structure_definition|enum_definition)?
ENDNEWTYPE type_name? end
-> ^(NEWTYPE type_name array_definition* structure_definition* enum_definition*)
;
type_name
: sort
;
array_definition
: ARRAY '(' sort ',' sort ')'
-> ^(ARRAY sort sort)
;
/* Create a new enumerated type with the sdl syntax:
newtype SomeEnumerated
literals on, off
endnewtype;
*/
enum_definition
: (LITERALS (enumerant (',' enumerant)* ))
-> ^(LITERALS enumerant+)
;
structure_definition
: STRUCT field_list end
-> ^(STRUCT field_list)
;
field_list
: field_definition (end field_definition)*
-> ^(FIELDS field_definition+)
;
field_definition
: field_name (',' field_name)* sort
-> ^(FIELD field_name+ sort)
;
/* variable definition has one extension to SDL: it is possible to specify
an alias to a data structure element:
dcl variable type renames foo.bar.baz */
variable_definition
: DCL variables_of_sort
(',' variables_of_sort)*
end
-> ^(DCL variables_of_sort+)
;
/* Monitors are an extension used when creating observers for model checking */
monitor_definition
: MONITOR variables_of_sort
(',' variables_of_sort)*
end
-> ^(MONITOR variables_of_sort+)
;
/* synonyms in SDL allow to declare constants */
synonym_definition
: internal_synonym_definition
;
internal_synonym_definition
: SYNONYM synonym_definition_item (',' synonym_definition_item)*
end
-> ^(SYNONYM_LIST synonym_definition_item+)
;
synonym_definition_item
: variable_id sort '=' (ground_expression | EXTERNAL)
-> ^(SYNONYM variable_id sort ground_expression? EXTERNAL?)
;
variables_of_sort
: variable_id (',' variable_id)* sort
((':=' ground_expression) | (RENAMES variable))?
-> ^(VARIABLES variable_id+ sort
ground_expression? ^(RENAMES variable)?)
;
ground_expression
: expression
-> ^(GROUND expression)
;
number_of_instances
: '(' initial_number=INT ',' maximum_number=INT ')'
-> ^(NUMBER_OF_INSTANCES $initial_number $maximum_number)
;
processBody
: start? (state | floating_label)*
;
start
: cif*
START name=state_entry_point_name? end
transition?
-> ^(START cif* $name? end? transition?)
;
floating_label
: cif*
CONNECTION connector_name ':'
transition?
cif_end_label?
ENDCONNECTION SEMI
-> ^(FLOATING_LABEL cif* connector_name transition?)
;
// state is either a full state definition, or a state instance
state
: state_definition
| state_instance
;
// the "via" part is needed to allow the graphical merge with a nextstate
state_definition
: cif*
STATE statelist via? (e=end | SEMI)
(state_part)*
ENDSTATE statename? f=end
-> ^(STATE cif* $e? statelist via? state_part*)
;
state_instance
: cif*
STATE statename ':' type_inst via? (e=end | SEMI)
(state_part)*
ENDSTATE statename? f=end
-> ^(STATE cif* $e? statename via? type_inst state_part*)
;
statelist
: ((statename)(',' statename)*)
-> ^(STATELIST statename+)
| ASTERISK exception_state?
-> ^(ASTERISK exception_state?)
;
exception_state
: '(' statename (',' statename)* ')'
-> statename+
;
// 11.11 State Machine and Composite State (SDL2000)
composite_state
: composite_state_graph
| state_aggregation
;
// used for syntactic predicate
composite_state_preamble
: STATE AGGREGATION? statename end
SUBSTRUCTURE
;
composite_state_graph
: STATE statename e=end
SUBSTRUCTURE
connection_points*
body=composite_state_body
ENDSUBSTRUCTURE statename? f=end
-> ^(COMPOSITE_STATE statename connection_points* $body $e?)
;
// 11.11.2 State Aggregation (SDL2000)
state_aggregation
: STATE AGGREGATION statename e=end
SUBSTRUCTURE
connection_points*
entities=entity_in_composite_state*
body=state_aggregation_body
ENDSUBSTRUCTURE statename? f=end
-> ^(STATE_AGGREGATION statename connection_points*
$entities* $body $e?)
;
// 11.11.2 State Aggregation (SDL2000)
entity_in_composite_state
: (text_area | procedure)
;
// 11.11.2 State Aggregation (SDL2000)
state_aggregation_body
: (state_partitioning | state_partition_connection)*
state*
;
// 11.11.2 State Aggregation (SDL2000)
state_partitioning
: composite_state
;
// 11.11.2 State Aggregation (SDL2000)
state_partition_connection
: CONNECT outer=entry_point AND inner=entry_point end
-> ^(STATE_PARTITION_CONNECTION $outer $inner end?)
;
// 11.11.2 State Aggregation (SDL2000)
entry_point
: state_part_id=ID VIA point
-> ^(ENTRY_POINT $state_part_id point)
;
// 11.11.2 State Aggregation (SDL2000)
point
: (state_point=ID | DEFAULT)
-> ^(POINT $state_point? DEFAULT?)
;
// 11.11.1 and 11.11.2 Composite State (SDL2000)
connection_points
: IN state_entry_exit_points end
-> ^(IN state_entry_exit_points end?)
| OUT state_entry_exit_points end
-> ^(OUT state_entry_exit_points end?)
;
// 11.11.1 and 11.11.2 Composite State (SDL2000)
state_entry_exit_points
: '(' statename (',' statename)* ')'
-> statename+
;
// 11.11.1 Composite State graph content (SDL2000)
// Use a syntactic predicate to disambiguate the parsing of the composite
// state vs a normal state, in the case of a syntax error in the composite.
composite_state_body
: (text_area
| procedure
| (composite_state_preamble) =>composite_state)*
start* (state | floating_label)*
EOF?
;
state_part
: input_part
//| priority_input // Not supported
| save_part // Not supported in openGEODE
| spontaneous_transition
| continuous_signal
| connect_part
;
// connect part is used to connect nested state exit points to a transition
connect_part
: cif*
CONNECT connect_list? end
transition?
-> ^(CONNECT cif* connect_list? end? transition?)
;
connect_list
: state_exit_point_name (',' state_exit_point_name)*
-> state_exit_point_name+
| ASTERISK
;
spontaneous_transition
: cif*
INPUT NONE end
enabling_condition?
transition
-> ^(INPUT_NONE cif* transition)
;
enabling_condition
: PROVIDED expression end
-> ^(PROVIDED expression)
;
continuous_signal
: cif*
PROVIDED expression e=end
(PRIORITY p=INT end)?
transition?
-> ^(PROVIDED expression cif* $p? $e? transition?)
;
save_part
: SAVE save_list
end
-> ^(SAVE save_list)
;
save_list
: signal_list
| asterisk_save_list
;
asterisk_save_list
: ASTERISK;
signal_list
: signal_item (',' signal_item)*
-> ^(SIGNAL_LIST signal_item+)
;
// Signal_item alternatives are all of the same ID type.
// Should be resolved at semantic analysis.
signal_item
: signal_id; /* |
priority_signal_id |
signal_list_id |
timer_id;*/
/* Not considered for the moment
(irrelevant in the scope of the generation of code for a single process)
priority_input
: PRIORITY INPUT priority_input_list end transition;
priority_input_list
: priority_stimulus (',' priority_stimulus)*;
priority_stimulus
: priority_signal_id ( '(' variable_id (',' variable_id)* ')');
*/
// this is only the "basic input part" from SDL92
input_part
: cif*
INPUT inputlist end
enabling_condition?
transition?
-> ^(INPUT cif* end?
inputlist enabling_condition? transition?)
;
// asterisk means: all signals not explicitly specified
// (semantic is different from asterisk state)
inputlist
: ASTERISK
| (stimulus (',' stimulus)*)
-> ^(INPUTLIST stimulus+)
;
stimulus
: stimulus_id input_params?
;
input_params
: L_PAREN variable_id (',' variable_id)* R_PAREN
-> ^(PARAMS variable_id+)
;
transition
: action+ label? terminator_statement?
-> ^(TRANSITION action+ label? terminator_statement?)
| terminator_statement
-> ^(TRANSITION terminator_statement)
;
action
: label?
(task
| task_body
| output
| create_request
| decision
| alternative
//| set_timer
//| reset_timer
| export // Not supported in OpenGEODE
| procedure_call)
;
export
: EXPORT
L_PAREN variable_id (COMMA variable_id)* R_PAREN
end
-> ^(EXPORT variable_id+)
;
/* Procedure call can be a local or remote call (including TO dest) */
procedure_call
: cif*
CALL procedure_call_body end
-> ^(PROCEDURE_CALL cif* end? procedure_call_body)
;
procedure_call_body
: procedure_id actual_parameters? to_part?
-> ^(OUTPUT_BODY procedure_id actual_parameters? to_part?)
;
/* Commented out because OG does not support the SET/RESET symbols
but dedicated procedures (set_timer/reset_timer)
This allows to "free" the reserved keywords "set" and "reset"
for other purposes such as message or variable names
set_timer
: SET set_statement (COMMA set_statement)*
end
-> set_statement+
;
set_statement
: L_PAREN (expression COMMA)? timer_id R_PAREN
-> ^(SET expression? timer_id)
;
// ('('expression_list')')? ')'; (removed because of non-LL(*) problem)
reset_timer
: RESET reset_statement (',' reset_statement)*
end
-> reset_statement+
;
reset_statement
: timer_id ('(' expression_list ')')?
-> ^(RESET timer_id expression_list?)
;
*/
/* Alternative (equivalent to #ifdef in C) */
alternative
: cif*
ALTERNATIVE alternative_question e=end
answer_part?
alternative_part?
ENDALTERNATIVE f=end
-> ^(ALTERNATIVE cif* $e?
alternative_question answer_part? alternative_part?)
;
alternative_part
: (answer_part+ else_part?)
-> answer_part+ else_part?
| else_part
-> else_part
;
alternative_question
: ground_expression
;
decision
: cif*
DECISION question e=end
answer_part?
alternative_part?
ENDDECISION f=end
-> ^(DECISION cif* $e? question
answer_part? alternative_part?)
;
answer_part
: cif*
L_PAREN answer R_PAREN ':' transition?
-> ^(ANSWER cif* answer transition?)
;
answer
: range_condition
| informal_text
;
else_part
: cif*
ELSE ':' transition?
-> ^(ELSE cif* transition?)
;
question
: informal_text
| expression
-> ^(QUESTION expression)
| ANY
-> ^(ANY)
;
range_condition
: (closed_range | open_range)
(','! (closed_range|open_range))*
;
closed_range
: a=expression ':' b=expression
-> ^(CLOSED_RANGE $a $b)
;
open_range
: constant
-> constant
| ( (EQ|NEQ|GT|LT|LE|GE) constant)
-> ^(OPEN_RANGE EQ? NEQ? GT? LT? LE? GE? constant)
;
constant
: expression
-> ^(CONSTANT expression)
;
// Instance creation: opengeode does not support FPAR/actual_parameters yet
create_request
: cif*
CREATE createbody
actual_parameters?
end
-> ^(CREATE cif* end? createbody actual_parameters?)
;
createbody
: process_id
| THIS
;
output
: cif*