Skip to content

Commit

Permalink
Fixes for bug #1436:
Browse files Browse the repository at this point in the history
- Replaced the dependency analysis in CevalFunction with a new that uses the
  Graph package, to fix bug 1436 (and probably more too).
- Added traversal function Expression.traverseExpBidir.
- Added function ComponentReference.crefEqualWithoutSubs, which compares two
  crefs but disregards their subscripts.
- Extended Expression.subscriptExp to handle more cases, and added
  subscriptIndexExp that has the old behaviour of only handling DAE.INDEX.
- Added test case mofiles/FunctionEval11 to test fix for bug 1436.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8128 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Mar 7, 2011
1 parent 7943317 commit ab30fc0
Show file tree
Hide file tree
Showing 8 changed files with 949 additions and 322 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -1738,7 +1738,7 @@ algorithm
case (DAE.CREF(componentRef = cr), _)
equation
subscripts = ComponentReference.crefSubs(cr);
subscript_exprs = Util.listMap(subscripts, Expression.subscriptExp);
subscript_exprs = Util.listMap(subscripts, Expression.subscriptIndexExp);
true = isLoopDependentHelper(subscript_exprs, iteratorExp);
then true;
case (DAE.ASUB(sub = subscript_exprs), _)
Expand Down

0 comments on commit ab30fc0

Please sign in to comment.