Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d85ad38
commit 13c08d4
Showing
33 changed files
with
563 additions
and
348 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// name: EnumRangeBinding1 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
model EnumRangeBinding1 | ||
type E = enumeration(one, two, three, four); | ||
E e1[E] = E.one:E.four; | ||
E e2[2] = E.two:E.three; | ||
end EnumRangeBinding1; | ||
|
||
// Result: | ||
// class EnumRangeBinding1 | ||
// enumeration(one, two, three, four) e1[E.one]; | ||
// enumeration(one, two, three, four) e1[E.two]; | ||
// enumeration(one, two, three, four) e1[E.three]; | ||
// enumeration(one, two, three, four) e1[E.four]; | ||
// enumeration(one, two, three, four) e2[1]; | ||
// enumeration(one, two, three, four) e2[2]; | ||
// equation | ||
// e1 = {E.one, E.two, E.three, E.four}; | ||
// e2 = {E.two, E.three}; | ||
// end EnumRangeBinding1; | ||
// endResult |
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,236 @@ | ||
// name: EquationQualified1 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
// | ||
|
||
model A | ||
Real x[3, 2, 1]; | ||
end A; | ||
|
||
model B | ||
A a[1, 3]; | ||
end B; | ||
|
||
model EquationQualified1 | ||
B b[2, 5]; | ||
equation | ||
b[1].a[1].x[2] = b[2].a[1].x[2]; | ||
end EquationQualified1; | ||
|
||
// Result: | ||
// class EquationQualified1 | ||
// Real b[1,1].a[1,1].x[1,1,1]; | ||
// Real b[1,1].a[1,1].x[1,2,1]; | ||
// Real b[1,1].a[1,1].x[2,1,1]; | ||
// Real b[1,1].a[1,1].x[2,2,1]; | ||
// Real b[1,1].a[1,1].x[3,1,1]; | ||
// Real b[1,1].a[1,1].x[3,2,1]; | ||
// Real b[1,1].a[1,2].x[1,1,1]; | ||
// Real b[1,1].a[1,2].x[1,2,1]; | ||
// Real b[1,1].a[1,2].x[2,1,1]; | ||
// Real b[1,1].a[1,2].x[2,2,1]; | ||
// Real b[1,1].a[1,2].x[3,1,1]; | ||
// Real b[1,1].a[1,2].x[3,2,1]; | ||
// Real b[1,1].a[1,3].x[1,1,1]; | ||
// Real b[1,1].a[1,3].x[1,2,1]; | ||
// Real b[1,1].a[1,3].x[2,1,1]; | ||
// Real b[1,1].a[1,3].x[2,2,1]; | ||
// Real b[1,1].a[1,3].x[3,1,1]; | ||
// Real b[1,1].a[1,3].x[3,2,1]; | ||
// Real b[1,2].a[1,1].x[1,1,1]; | ||
// Real b[1,2].a[1,1].x[1,2,1]; | ||
// Real b[1,2].a[1,1].x[2,1,1]; | ||
// Real b[1,2].a[1,1].x[2,2,1]; | ||
// Real b[1,2].a[1,1].x[3,1,1]; | ||
// Real b[1,2].a[1,1].x[3,2,1]; | ||
// Real b[1,2].a[1,2].x[1,1,1]; | ||
// Real b[1,2].a[1,2].x[1,2,1]; | ||
// Real b[1,2].a[1,2].x[2,1,1]; | ||
// Real b[1,2].a[1,2].x[2,2,1]; | ||
// Real b[1,2].a[1,2].x[3,1,1]; | ||
// Real b[1,2].a[1,2].x[3,2,1]; | ||
// Real b[1,2].a[1,3].x[1,1,1]; | ||
// Real b[1,2].a[1,3].x[1,2,1]; | ||
// Real b[1,2].a[1,3].x[2,1,1]; | ||
// Real b[1,2].a[1,3].x[2,2,1]; | ||
// Real b[1,2].a[1,3].x[3,1,1]; | ||
// Real b[1,2].a[1,3].x[3,2,1]; | ||
// Real b[1,3].a[1,1].x[1,1,1]; | ||
// Real b[1,3].a[1,1].x[1,2,1]; | ||
// Real b[1,3].a[1,1].x[2,1,1]; | ||
// Real b[1,3].a[1,1].x[2,2,1]; | ||
// Real b[1,3].a[1,1].x[3,1,1]; | ||
// Real b[1,3].a[1,1].x[3,2,1]; | ||
// Real b[1,3].a[1,2].x[1,1,1]; | ||
// Real b[1,3].a[1,2].x[1,2,1]; | ||
// Real b[1,3].a[1,2].x[2,1,1]; | ||
// Real b[1,3].a[1,2].x[2,2,1]; | ||
// Real b[1,3].a[1,2].x[3,1,1]; | ||
// Real b[1,3].a[1,2].x[3,2,1]; | ||
// Real b[1,3].a[1,3].x[1,1,1]; | ||
// Real b[1,3].a[1,3].x[1,2,1]; | ||
// Real b[1,3].a[1,3].x[2,1,1]; | ||
// Real b[1,3].a[1,3].x[2,2,1]; | ||
// Real b[1,3].a[1,3].x[3,1,1]; | ||
// Real b[1,3].a[1,3].x[3,2,1]; | ||
// Real b[1,4].a[1,1].x[1,1,1]; | ||
// Real b[1,4].a[1,1].x[1,2,1]; | ||
// Real b[1,4].a[1,1].x[2,1,1]; | ||
// Real b[1,4].a[1,1].x[2,2,1]; | ||
// Real b[1,4].a[1,1].x[3,1,1]; | ||
// Real b[1,4].a[1,1].x[3,2,1]; | ||
// Real b[1,4].a[1,2].x[1,1,1]; | ||
// Real b[1,4].a[1,2].x[1,2,1]; | ||
// Real b[1,4].a[1,2].x[2,1,1]; | ||
// Real b[1,4].a[1,2].x[2,2,1]; | ||
// Real b[1,4].a[1,2].x[3,1,1]; | ||
// Real b[1,4].a[1,2].x[3,2,1]; | ||
// Real b[1,4].a[1,3].x[1,1,1]; | ||
// Real b[1,4].a[1,3].x[1,2,1]; | ||
// Real b[1,4].a[1,3].x[2,1,1]; | ||
// Real b[1,4].a[1,3].x[2,2,1]; | ||
// Real b[1,4].a[1,3].x[3,1,1]; | ||
// Real b[1,4].a[1,3].x[3,2,1]; | ||
// Real b[1,5].a[1,1].x[1,1,1]; | ||
// Real b[1,5].a[1,1].x[1,2,1]; | ||
// Real b[1,5].a[1,1].x[2,1,1]; | ||
// Real b[1,5].a[1,1].x[2,2,1]; | ||
// Real b[1,5].a[1,1].x[3,1,1]; | ||
// Real b[1,5].a[1,1].x[3,2,1]; | ||
// Real b[1,5].a[1,2].x[1,1,1]; | ||
// Real b[1,5].a[1,2].x[1,2,1]; | ||
// Real b[1,5].a[1,2].x[2,1,1]; | ||
// Real b[1,5].a[1,2].x[2,2,1]; | ||
// Real b[1,5].a[1,2].x[3,1,1]; | ||
// Real b[1,5].a[1,2].x[3,2,1]; | ||
// Real b[1,5].a[1,3].x[1,1,1]; | ||
// Real b[1,5].a[1,3].x[1,2,1]; | ||
// Real b[1,5].a[1,3].x[2,1,1]; | ||
// Real b[1,5].a[1,3].x[2,2,1]; | ||
// Real b[1,5].a[1,3].x[3,1,1]; | ||
// Real b[1,5].a[1,3].x[3,2,1]; | ||
// Real b[2,1].a[1,1].x[1,1,1]; | ||
// Real b[2,1].a[1,1].x[1,2,1]; | ||
// Real b[2,1].a[1,1].x[2,1,1]; | ||
// Real b[2,1].a[1,1].x[2,2,1]; | ||
// Real b[2,1].a[1,1].x[3,1,1]; | ||
// Real b[2,1].a[1,1].x[3,2,1]; | ||
// Real b[2,1].a[1,2].x[1,1,1]; | ||
// Real b[2,1].a[1,2].x[1,2,1]; | ||
// Real b[2,1].a[1,2].x[2,1,1]; | ||
// Real b[2,1].a[1,2].x[2,2,1]; | ||
// Real b[2,1].a[1,2].x[3,1,1]; | ||
// Real b[2,1].a[1,2].x[3,2,1]; | ||
// Real b[2,1].a[1,3].x[1,1,1]; | ||
// Real b[2,1].a[1,3].x[1,2,1]; | ||
// Real b[2,1].a[1,3].x[2,1,1]; | ||
// Real b[2,1].a[1,3].x[2,2,1]; | ||
// Real b[2,1].a[1,3].x[3,1,1]; | ||
// Real b[2,1].a[1,3].x[3,2,1]; | ||
// Real b[2,2].a[1,1].x[1,1,1]; | ||
// Real b[2,2].a[1,1].x[1,2,1]; | ||
// Real b[2,2].a[1,1].x[2,1,1]; | ||
// Real b[2,2].a[1,1].x[2,2,1]; | ||
// Real b[2,2].a[1,1].x[3,1,1]; | ||
// Real b[2,2].a[1,1].x[3,2,1]; | ||
// Real b[2,2].a[1,2].x[1,1,1]; | ||
// Real b[2,2].a[1,2].x[1,2,1]; | ||
// Real b[2,2].a[1,2].x[2,1,1]; | ||
// Real b[2,2].a[1,2].x[2,2,1]; | ||
// Real b[2,2].a[1,2].x[3,1,1]; | ||
// Real b[2,2].a[1,2].x[3,2,1]; | ||
// Real b[2,2].a[1,3].x[1,1,1]; | ||
// Real b[2,2].a[1,3].x[1,2,1]; | ||
// Real b[2,2].a[1,3].x[2,1,1]; | ||
// Real b[2,2].a[1,3].x[2,2,1]; | ||
// Real b[2,2].a[1,3].x[3,1,1]; | ||
// Real b[2,2].a[1,3].x[3,2,1]; | ||
// Real b[2,3].a[1,1].x[1,1,1]; | ||
// Real b[2,3].a[1,1].x[1,2,1]; | ||
// Real b[2,3].a[1,1].x[2,1,1]; | ||
// Real b[2,3].a[1,1].x[2,2,1]; | ||
// Real b[2,3].a[1,1].x[3,1,1]; | ||
// Real b[2,3].a[1,1].x[3,2,1]; | ||
// Real b[2,3].a[1,2].x[1,1,1]; | ||
// Real b[2,3].a[1,2].x[1,2,1]; | ||
// Real b[2,3].a[1,2].x[2,1,1]; | ||
// Real b[2,3].a[1,2].x[2,2,1]; | ||
// Real b[2,3].a[1,2].x[3,1,1]; | ||
// Real b[2,3].a[1,2].x[3,2,1]; | ||
// Real b[2,3].a[1,3].x[1,1,1]; | ||
// Real b[2,3].a[1,3].x[1,2,1]; | ||
// Real b[2,3].a[1,3].x[2,1,1]; | ||
// Real b[2,3].a[1,3].x[2,2,1]; | ||
// Real b[2,3].a[1,3].x[3,1,1]; | ||
// Real b[2,3].a[1,3].x[3,2,1]; | ||
// Real b[2,4].a[1,1].x[1,1,1]; | ||
// Real b[2,4].a[1,1].x[1,2,1]; | ||
// Real b[2,4].a[1,1].x[2,1,1]; | ||
// Real b[2,4].a[1,1].x[2,2,1]; | ||
// Real b[2,4].a[1,1].x[3,1,1]; | ||
// Real b[2,4].a[1,1].x[3,2,1]; | ||
// Real b[2,4].a[1,2].x[1,1,1]; | ||
// Real b[2,4].a[1,2].x[1,2,1]; | ||
// Real b[2,4].a[1,2].x[2,1,1]; | ||
// Real b[2,4].a[1,2].x[2,2,1]; | ||
// Real b[2,4].a[1,2].x[3,1,1]; | ||
// Real b[2,4].a[1,2].x[3,2,1]; | ||
// Real b[2,4].a[1,3].x[1,1,1]; | ||
// Real b[2,4].a[1,3].x[1,2,1]; | ||
// Real b[2,4].a[1,3].x[2,1,1]; | ||
// Real b[2,4].a[1,3].x[2,2,1]; | ||
// Real b[2,4].a[1,3].x[3,1,1]; | ||
// Real b[2,4].a[1,3].x[3,2,1]; | ||
// Real b[2,5].a[1,1].x[1,1,1]; | ||
// Real b[2,5].a[1,1].x[1,2,1]; | ||
// Real b[2,5].a[1,1].x[2,1,1]; | ||
// Real b[2,5].a[1,1].x[2,2,1]; | ||
// Real b[2,5].a[1,1].x[3,1,1]; | ||
// Real b[2,5].a[1,1].x[3,2,1]; | ||
// Real b[2,5].a[1,2].x[1,1,1]; | ||
// Real b[2,5].a[1,2].x[1,2,1]; | ||
// Real b[2,5].a[1,2].x[2,1,1]; | ||
// Real b[2,5].a[1,2].x[2,2,1]; | ||
// Real b[2,5].a[1,2].x[3,1,1]; | ||
// Real b[2,5].a[1,2].x[3,2,1]; | ||
// Real b[2,5].a[1,3].x[1,1,1]; | ||
// Real b[2,5].a[1,3].x[1,2,1]; | ||
// Real b[2,5].a[1,3].x[2,1,1]; | ||
// Real b[2,5].a[1,3].x[2,2,1]; | ||
// Real b[2,5].a[1,3].x[3,1,1]; | ||
// Real b[2,5].a[1,3].x[3,2,1]; | ||
// equation | ||
// b[1,1].a[1,1].x[2,1,1] = b[2,1].a[1,1].x[2,1,1]; | ||
// b[1,1].a[1,1].x[2,2,1] = b[2,1].a[1,1].x[2,2,1]; | ||
// b[1,1].a[1,2].x[2,1,1] = b[2,1].a[1,2].x[2,1,1]; | ||
// b[1,1].a[1,2].x[2,2,1] = b[2,1].a[1,2].x[2,2,1]; | ||
// b[1,1].a[1,3].x[2,1,1] = b[2,1].a[1,3].x[2,1,1]; | ||
// b[1,1].a[1,3].x[2,2,1] = b[2,1].a[1,3].x[2,2,1]; | ||
// b[1,2].a[1,1].x[2,1,1] = b[2,2].a[1,1].x[2,1,1]; | ||
// b[1,2].a[1,1].x[2,2,1] = b[2,2].a[1,1].x[2,2,1]; | ||
// b[1,2].a[1,2].x[2,1,1] = b[2,2].a[1,2].x[2,1,1]; | ||
// b[1,2].a[1,2].x[2,2,1] = b[2,2].a[1,2].x[2,2,1]; | ||
// b[1,2].a[1,3].x[2,1,1] = b[2,2].a[1,3].x[2,1,1]; | ||
// b[1,2].a[1,3].x[2,2,1] = b[2,2].a[1,3].x[2,2,1]; | ||
// b[1,3].a[1,1].x[2,1,1] = b[2,3].a[1,1].x[2,1,1]; | ||
// b[1,3].a[1,1].x[2,2,1] = b[2,3].a[1,1].x[2,2,1]; | ||
// b[1,3].a[1,2].x[2,1,1] = b[2,3].a[1,2].x[2,1,1]; | ||
// b[1,3].a[1,2].x[2,2,1] = b[2,3].a[1,2].x[2,2,1]; | ||
// b[1,3].a[1,3].x[2,1,1] = b[2,3].a[1,3].x[2,1,1]; | ||
// b[1,3].a[1,3].x[2,2,1] = b[2,3].a[1,3].x[2,2,1]; | ||
// b[1,4].a[1,1].x[2,1,1] = b[2,4].a[1,1].x[2,1,1]; | ||
// b[1,4].a[1,1].x[2,2,1] = b[2,4].a[1,1].x[2,2,1]; | ||
// b[1,4].a[1,2].x[2,1,1] = b[2,4].a[1,2].x[2,1,1]; | ||
// b[1,4].a[1,2].x[2,2,1] = b[2,4].a[1,2].x[2,2,1]; | ||
// b[1,4].a[1,3].x[2,1,1] = b[2,4].a[1,3].x[2,1,1]; | ||
// b[1,4].a[1,3].x[2,2,1] = b[2,4].a[1,3].x[2,2,1]; | ||
// b[1,5].a[1,1].x[2,1,1] = b[2,5].a[1,1].x[2,1,1]; | ||
// b[1,5].a[1,1].x[2,2,1] = b[2,5].a[1,1].x[2,2,1]; | ||
// b[1,5].a[1,2].x[2,1,1] = b[2,5].a[1,2].x[2,1,1]; | ||
// b[1,5].a[1,2].x[2,2,1] = b[2,5].a[1,2].x[2,2,1]; | ||
// b[1,5].a[1,3].x[2,1,1] = b[2,5].a[1,3].x[2,1,1]; | ||
// b[1,5].a[1,3].x[2,2,1] = b[2,5].a[1,3].x[2,2,1]; | ||
// end EquationQualified1; | ||
// endResult |
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
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
Oops, something went wrong.