Commit 4862560
authored
Evaluate subscripts in actualStream/inStream (#8278)
- Evaluate the subscripts in the connector reference used as argument to
actualStream/inStream, to ensure we can look up e.g. the matching
stream variable for a flow correctly. We already check that the
subscripts can be evaluated, with this change we also actually
evaluate them as intended.1 parent 49552c6 commit 4862560
File tree
3 files changed
+45
-7
lines changed- OMCompiler/Compiler/NFFrontEnd
- testsuite/flattening/modelica/scodeinst
3 files changed
+45
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
726 | 727 | | |
727 | | - | |
| 728 | + | |
| 729 | + | |
728 | 730 | | |
729 | 731 | | |
730 | 732 | | |
| |||
734 | 736 | | |
735 | 737 | | |
736 | 738 | | |
737 | | - | |
| 739 | + | |
738 | 740 | | |
739 | 741 | | |
740 | 742 | | |
| |||
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
| 856 | + | |
854 | 857 | | |
855 | 858 | | |
856 | 859 | | |
857 | 860 | | |
858 | | - | |
| 861 | + | |
| 862 | + | |
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
862 | 866 | | |
863 | 867 | | |
864 | | - | |
| 868 | + | |
865 | 869 | | |
866 | | - | |
| 870 | + | |
867 | 871 | | |
868 | 872 | | |
869 | 873 | | |
870 | | - | |
871 | | - | |
| 874 | + | |
| 875 | + | |
872 | 876 | | |
873 | 877 | | |
874 | 878 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments