Changeset 8a20ce0 in OpenModelica for Compiler/NFFrontEnd/NFBinding.mo


Ignore:
Timestamp:
2019-01-21T16:29:30+01:00 (5 years ago)
Author:
hudson <openmodelica@…>
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:
5e72f06e
Parents:
25cfbd50
git-author:
Per Östlund <per.ostlund@…> (01/21/19 16:29:30)
git-committer:
hudson <openmodelica@…> (01/21/19 16:29:30)
Message:

[NF] Propagate structuralness via modifications.

  • Mark parameters that have a structural cref as binding as also structural.

Belonging to [master]:

  • OpenModelica/OMCompiler#2887
  • OpenModelica/OpenModelica-testsuite#1108
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/NFFrontEnd/NFBinding.mo

    rbbc01270 r8a20ce0  
    260260  end isRecordExp;
    261261
     262  function isCrefExp
     263    input Binding binding;
     264    output Boolean isCref;
     265  algorithm
     266    isCref := match binding
     267      case TYPED_BINDING(bindingExp = Expression.CREF()) then true;
     268      else false;
     269    end match;
     270  end isCrefExp;
     271
    262272  function recordFieldBinding
    263273    input InstNode fieldNode;
Note: See TracChangeset for help on using the changeset viewer.