Changeset 49bf67a in OpenModelica
- Timestamp:
- 2016-01-29T12:09:59+01:00 (8 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 3ccd90a
- Parents:
- 3029c64
- git-author:
- Willi Braun <wbraun@…> (01/29/16 03:13:30)
- git-committer:
- Willi Braun <wbraun@…> (01/29/16 12:09:59)
- Location:
- Compiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/BackEnd/CommonSubExpression.mo
re70366d r49bf67a 55 55 protected import ExpressionDump; 56 56 protected import ExpressionSolve; 57 protected import Global; 57 58 protected import HashTableExpToExp; 58 59 protected import HashTableExpToIndex; … … 76 77 DAE.FunctionTree functionTree; 77 78 HashTableExpToExp.HashTable HT; 78 Integer index= 1;79 Integer index=System.tmpTickIndex(Global.backendDAE_cseIndex); 79 80 list<BackendDAE.Equation> eqList; 80 81 list<BackendDAE.Var> varList; … … 711 712 712 713 case DAE.T_REAL() equation 713 str = inPrefix + intString(inIndex);714 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 714 715 cr = DAE.CREF_IDENT(str, DAE.T_REAL_DEFAULT, {}); 715 716 value = DAE.CREF(cr, DAE.T_REAL_DEFAULT); … … 717 718 718 719 case DAE.T_INTEGER() equation 719 str = inPrefix + intString(inIndex);720 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 720 721 cr = DAE.CREF_IDENT(str, DAE.T_INTEGER_DEFAULT, {}); 721 722 value = DAE.CREF(cr, DAE.T_INTEGER_DEFAULT); … … 723 724 724 725 case DAE.T_STRING() equation 725 str = inPrefix + intString(inIndex);726 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 726 727 cr = DAE.CREF_IDENT(str, DAE.T_STRING_DEFAULT, {}); 727 728 value = DAE.CREF(cr, DAE.T_STRING_DEFAULT); … … 729 730 730 731 case DAE.T_BOOL() equation 731 str = inPrefix + intString(inIndex);732 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 732 733 cr = DAE.CREF_IDENT(str, DAE.T_BOOL_DEFAULT, {}); 733 734 value = DAE.CREF(cr, DAE.T_BOOL_DEFAULT); … … 735 736 736 737 case DAE.T_CLOCK() equation 737 str = inPrefix + intString(inIndex);738 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 738 739 cr = DAE.CREF_IDENT(str, DAE.T_CLOCK_DEFAULT, {}); 739 740 value = DAE.CREF(cr, DAE.T_CLOCK_DEFAULT); … … 747 748 // Expanding 748 749 case DAE.T_ARRAY() equation 749 str = inPrefix + intString(inIndex);750 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 750 751 cr = DAE.CREF_IDENT(str, inType, {}); 751 752 // crefs = ComponentReference.expandCref(cr, false); … … 757 758 // record types 758 759 case DAE.T_COMPLEX(varLst=varLst, complexClassType=ClassInf.RECORD(path)) equation 759 str = inPrefix + intString(inIndex);760 str = inPrefix + String(System.tmpTickIndex(Global.backendDAE_cseIndex)); 760 761 cr = DAE.CREF_IDENT(str, inType, {}); //inType? 761 762 // crefs = ComponentReference.expandCref(cr, true); -
Compiler/Global/Global.mo
r7f300786 r49bf67a 69 69 // nodeId 70 70 constant Integer fgraph_nextId = 22; 71 // csevar name 72 constant Integer backendDAE_cseIndex = 23; 73 71 74 // ---------------------- 72 75
Note: See TracChangeset
for help on using the changeset viewer.