Changeset 20893ab in OpenModelica for OMCompiler/Compiler/NBackEnd/NBVariable.mo
- Timestamp:
- 2021-04-06T15:07:08+02:00 (3 years ago)
- Children:
- 2d459fc8
- Parents:
- a94b02e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/NBackEnd/NBVariable.mo
rc95dc3ca r20893ab 2 2 * This file is part of OpenModelica. 3 3 * 4 * Copyright (c) 1998-202 0, Open Source Modelica Consortium (OSMC),4 * Copyright (c) 1998-2021, Open Source Modelica Consortium (OSMC), 5 5 * c/o Linköpings universitet, Department of Computer and Information Science, 6 6 * SE-58183 Linköping, Sweden. … … 46 46 //NF Imports 47 47 import BackendExtension = NFBackendExtension; 48 import BackendInfo =NFBackendExtension.BackendInfo;49 import Binding =NFBinding.Binding;48 import NFBackendExtension.BackendInfo; 49 import NFBinding.Binding; 50 50 import Component = NFComponent; 51 51 import ComponentRef = NFComponentRef; 52 52 import Dimension = NFDimension; 53 53 import Expression = NFExpression; 54 import InstNode =NFInstNode.InstNode;54 import NFInstNode.InstNode; 55 55 import Prefixes = NFPrefixes; 56 56 import Subscript = NFSubscript; 57 57 import Type = NFType; 58 58 import Variable = NFVariable; 59 import VariableKind =NFBackendExtension.VariableKind;59 import NFBackendExtension.VariableKind; 60 60 61 61 // Backend Imports … … 1313 1313 end getMarkedVars; 1314 1314 1315 function compress "O(n)1315 function compress "O(n) 1316 1316 Reorders the elements in order to remove all the gaps. 1317 1317 Be careful: This changes the indices of the elements. … … 1338 1338 lastUsedIndex := lastUsedIndex-1; 1339 1339 end while; 1340 // udpate HashTable element1340 // udpate hash table element 1341 1341 UnorderedMap.add(getVarName(moved_var), i, vars.map); 1342 1342 end if;
Note: See TracChangeset
for help on using the changeset viewer.