Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

[NF] Improve handling of reductions. #2703

Closed
wants to merge 1 commit into from

Conversation

perost
Copy link
Member

@perost perost commented Oct 8, 2018

  • Separate the handling of array constructors and reductions so
    reductions can be handled properly.
  • Implement expansion of type names, to better handle enumeration names
    as iteration ranges.
  • Expand enumeration type names in Expression.toDAE, so that they can be
    converted to DAE-form.
  • Add missing case for enumeration literals in Expression.compare.
  • Don't fill in "missing" subscripts in crefs with :, it interfers with
    reductions in some cases and doesn't seem to have any benefits.

- Separate the handling of array constructors and reductions so
  reductions can be handled properly.
- Implement expansion of type names, to better handle enumeration names
  as iteration ranges.
- Expand enumeration type names in Expression.toDAE, so that they can be
  converted to DAE-form.
- Add missing case for enumeration literals in Expression.compare.
- Don't fill in "missing" subscripts in crefs with :, it interfers with
  reductions in some cases and doesn't seem to have any benefits.
@OpenModelica-Hudson
Copy link
Member

The tests run correctly according to OpenModelica_TEST_PULL_REQUEST 2018-10-08_16-32-42.

OpenModelica-Hudson pushed a commit that referenced this pull request Oct 8, 2018
- Separate the handling of array constructors and reductions so
  reductions can be handled properly.
- Implement expansion of type names, to better handle enumeration names
  as iteration ranges.
- Expand enumeration type names in Expression.toDAE, so that they can be
  converted to DAE-form.
- Add missing case for enumeration literals in Expression.compare.
- Don't fill in "missing" subscripts in crefs with :, it interfers with
  reductions in some cases and doesn't seem to have any benefits.

Belonging to [master]:
  - #2703
  - OpenModelica/OpenModelica-testsuite#1047
OpenModelica-Hudson pushed a commit to OpenModelica/OpenModelica-testsuite that referenced this pull request Oct 8, 2018
@casella
Copy link

casella commented Oct 8, 2018

Can't wait for the Hudson results 😃

@casella
Copy link

casella commented Oct 8, 2018

Job #2386 running...

@casella
Copy link

casella commented Oct 8, 2018

All right, nothing fancy yet.

I'm always hoping for the silver bullet PR, which will cause 1500+ improvements in a single shot, but I guess there is no such thing...

@hkiel
Copy link
Member

hkiel commented Oct 9, 2018

All right, nothing fancy yet.

I would even consider 16 improvements vs. 67 regressions a step back instead of a step forward...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants