-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For issue #75
- Loading branch information
Showing
38 changed files
with
408 additions
and
908 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 3 additions & 42 deletions
45
tests/SAE-behaviour_annex-04202009/ba_example_001.aadl.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
package Test | ||
public | ||
data number | ||
end number; | ||
|
||
subprogram mul | ||
features | ||
x : in parameter number; | ||
y : in parameter number; | ||
z : out parameter number; | ||
|
||
end mul; | ||
|
||
subprogram cube | ||
features | ||
x : in parameter number; | ||
y : out parameter number; | ||
mul : requires subprogram access mul; | ||
|
||
annex behavior_specification {** | ||
variables | ||
tmp; | ||
states | ||
s : initial final state; | ||
transitions | ||
t : s -[]-> s { | ||
mul!(x, x, tmp); | ||
mul!(tmp, x, y) | ||
}; | ||
**}; | ||
end cube; | ||
|
||
end Test; | ||
|
||
Frontends : error : ba_example_001.aadl:25:11: parsing Behavior_Variable, token ':' is expected, found token ';' | ||
Frontends : error : ba_example_001.aadl:25:11: parsing Behavior_Variable, the list parsed is empty | ||
Frontends : fatal error : ba_example_001.aadl:28:07: parsing Behavior_Specification, failed |
202 changes: 2 additions & 200 deletions
202
tests/SAE-behaviour_annex-04202009/ba_example_002.aadl.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,200 +1,2 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
package Test | ||
public | ||
with Base_types; | ||
|
||
thread speed | ||
features | ||
tick : in event port | ||
{Dequeue_Protocol => AllItems;}; | ||
sp : out data port Base_types::integer; | ||
|
||
properties | ||
Dispatch_Protocol => periodic; | ||
Period => 1000 Ms; | ||
|
||
end speed; | ||
|
||
thread implementation speed.i | ||
annex behavior_specification {** | ||
states | ||
s0 : initial complete state; | ||
transitions | ||
s0 -[]-> s0 { | ||
sp := tick'count | ||
}; | ||
**}; | ||
end speed.i; | ||
|
||
end Test; | ||
|
||
package Base_Types | ||
public | ||
with data_model; | ||
|
||
data Boolean | ||
properties | ||
Data_Model::Data_Representation => Boolean; | ||
|
||
end Boolean; | ||
|
||
data Integer | ||
properties | ||
Data_Model::Data_Representation => Integer; | ||
|
||
end Integer; | ||
|
||
data Integer_8 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Signed; | ||
Source_Data_Size => 1 Bytes; | ||
|
||
end Integer_8; | ||
|
||
data Integer_16 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Signed; | ||
Source_Data_Size => 2 Bytes; | ||
|
||
end Integer_16; | ||
|
||
data Integer_32 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Signed; | ||
Source_Data_Size => 4 Bytes; | ||
|
||
end Integer_32; | ||
|
||
data Integer_64 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Signed; | ||
Source_Data_Size => 8 Bytes; | ||
|
||
end Integer_64; | ||
|
||
data Unsigned_8 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Unsigned; | ||
Source_Data_Size => 1 Bytes; | ||
|
||
end Unsigned_8; | ||
|
||
data Unsigned_16 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Unsigned; | ||
Source_Data_Size => 2 Bytes; | ||
|
||
end Unsigned_16; | ||
|
||
data Unsigned_32 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Unsigned; | ||
Source_Data_Size => 4 Bytes; | ||
|
||
end Unsigned_32; | ||
|
||
data Unsigned_64 extends Integer | ||
properties | ||
Data_Model::Number_Representation => Unsigned; | ||
Source_Data_Size => 8 Bytes; | ||
|
||
end Unsigned_64; | ||
|
||
data Natural extends Integer | ||
properties | ||
Data_Model::Integer_Range => 0 .. Max_Target_Integer; | ||
|
||
end Natural; | ||
|
||
data Float | ||
properties | ||
Data_Model::Data_Representation => Float; | ||
|
||
end Float; | ||
|
||
data Float_32 extends Float | ||
properties | ||
Data_Model::IEEE754_Precision => Simple; | ||
Source_Data_Size => 4 Bytes; | ||
|
||
end Float_32; | ||
|
||
data Float_64 extends Float | ||
properties | ||
Data_Model::IEEE754_Precision => Double; | ||
Source_Data_Size => 8 Bytes; | ||
|
||
end Float_64; | ||
|
||
data Character | ||
properties | ||
Data_Model::Data_Representation => Character; | ||
|
||
end Character; | ||
|
||
data String | ||
properties | ||
Data_Model::Data_Representation => String; | ||
|
||
end String; | ||
|
||
end Base_Types; | ||
|
||
property set Data_Model is | ||
Base_Type : list of classifier ( | ||
data) | ||
applies to (data); | ||
|
||
Code_Set : aadlinteger | ||
applies to (data); | ||
|
||
Data_Digits : aadlinteger | ||
applies to (data); | ||
|
||
Data_Scale : aadlinteger | ||
applies to (data); | ||
|
||
Data_Representation : enumeration (Array, Boolean, Character, Enum, Float, Fixed, Integer, String, Struct, Union) | ||
applies to (data); | ||
|
||
Dimension : list of aadlinteger | ||
applies to (data); | ||
|
||
Indefinite_Dimension : constant aadlinteger => -1; | ||
Infinite_Dimension : constant aadlinteger => -2; | ||
Element_Names : list of aadlstring | ||
applies to (data); | ||
|
||
Enumerators : list of aadlstring | ||
applies to (data); | ||
|
||
IEEE754_Precision : enumeration (Simple, Double) | ||
applies to (data); | ||
|
||
Initial_Value : list of aadlstring | ||
applies to (data, port, parameter); | ||
|
||
Integer_Range : range of aadlinteger | ||
applies to (data, port, parameter); | ||
|
||
Measurement_Unit : aadlstring | ||
applies to (data, port, parameter); | ||
|
||
Number_Representation : enumeration (Signed, Unsigned) | ||
applies to (data); | ||
|
||
Real_Range : range of aadlreal | ||
applies to (data, port, parameter); | ||
|
||
Representation : list of aadlstring | ||
applies to (data); | ||
|
||
end Data_Model; | ||
|
||
ba_example_002.aadl:20:05: speed.i ( Thread ) must define one or more final states. | ||
Cannot analyze BEHAVIOR_SPECIFICATION specifications |
Oops, something went wrong.