Changes between Initial Version and Version 1 of Ticket #5110, comment 15


Ignore:
Timestamp:
2018-09-21T07:42:28Z (7 years ago)
Author:
Rüdiger Franke

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5110, comment 15

    initial v1  
    11To summarize the status:
    22
    3 PR ​https://github.com/OpenModelica/OMCompiler/pull/2644/ attempts to vectorize auto generated assignments of the form `previous(x) := x` instead of `previous(x[1]) := x[1]; previous(x2) := x2; ...`. It causes a couple of failed tests with the C runtime that does not appear to treat arrays yet, see https://test.openmodelica.org/hudson//job/OpenModelica_TEST_PULL_REQUEST/6007/. This PR can be discarded if `x` is treated as array thoughout the translation process (see below).
     3PR ​https://github.com/OpenModelica/OMCompiler/pull/2644/ attempts to collapse auto generated assignments of the form `previous(x) := x` instead of `previous(x[1]) := x[1]; previous(x[2]) := x[2]; ...`. It causes a couple of failed tests with the C runtime that does not appear to treat arrays yet, see https://test.openmodelica.org/hudson//job/OpenModelica_TEST_PULL_REQUEST/6007/. This PR can be discarded if `x` is treated as array thoughout the translation process (see below).
    44
    55[changeset:1fd1dd9e67/OMCompiler] and [changeset:66ceece9bfae/OMCompiler] extend `collapseArrayExpressions` to also cover arrays with calls, like `{der(x[1]), der({x[2])}` for the Cpp runtime only.