-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for relations with aggregates and variables in pyrflx
Ref: #964
- Loading branch information
Showing
6 changed files
with
109 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package Aggregate_In_Relation is | ||
|
||
type B is mod 2 ** 8; | ||
type C is mod 2 ** 8; | ||
type D is mod 2 ** 8; | ||
|
||
type Aggregate_In_Relation_Msg is | ||
message | ||
Fld_A : Opaque | ||
with Size => 16 | ||
then Fld_B | ||
if Fld_A /= [16#01#, 16#02#] | ||
then null | ||
if [16#01#, 16#02#] = Fld_A; | ||
Fld_B : B | ||
then Fld_C | ||
if [16#01#, 16#02#] = [16#01#, 16#02#]; | ||
Fld_C : C | ||
then Fld_D | ||
if Fld_C = Fld_B; | ||
Fld_D : D; | ||
end message; | ||
|
||
end Aggregate_In_Relation; |
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
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