Changeset 28f4207 in OpenModelica


Ignore:
Timestamp:
2014-05-30T16:04:22+02:00 (10 years ago)
Author:
Lennart Ochel <lennart.ochel@…>
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:
6e0d6731
Parents:
19c18417
Message:
  • workaround for builtin functions that are impure, but not marked as impure
  • expected output (revert some bad changes from r20848)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20907 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/FrontEnd/Expression.mo

    r057633b0 r28f4207  
    71717171    then ((e, true));
    71727172
    7173     case (((e as DAE.CALL(path = Absyn.IDENT(name="sample"))), _))
     7173    // workaround for builtin functions that are impure, but not marked as impure
     7174    case (((e as DAE.CALL(path = Absyn.IDENT(name="alarm"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7175    then ((e, true));
     7176
     7177    case (((e as DAE.CALL(path = Absyn.IDENT(name="compareFilesAndMove"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7178    then ((e, true));
     7179
     7180    case (((e as DAE.CALL(path = Absyn.IDENT(name="delay"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7181    then ((e, true));
     7182
     7183    case (((e as DAE.CALL(path = Absyn.IDENT(name="initial"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7184    then ((e, true));
     7185
     7186    case (((e as DAE.CALL(path = Absyn.IDENT(name="print"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7187    then ((e, true));
     7188
     7189    case (((e as DAE.CALL(path = Absyn.IDENT(name="readFile"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7190    then ((e, true));
     7191
     7192    case (((e as DAE.CALL(path = Absyn.IDENT(name="sample"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7193    then ((e, true));
     7194
     7195    case (((e as DAE.CALL(path = Absyn.IDENT(name="system"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7196    then ((e, true));
     7197
     7198    case (((e as DAE.CALL(path = Absyn.IDENT(name="system_parallel"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7199    then ((e, true));
     7200
     7201    case (((e as DAE.CALL(path = Absyn.IDENT(name="terminal"), attr=DAE.CALL_ATTR(builtin=true))), _))
     7202    then ((e, true));
     7203
     7204    case (((e as DAE.CALL(path = Absyn.IDENT(name="writeFile"), attr=DAE.CALL_ATTR(builtin=true))), _))
    71747205    then ((e, true));
    71757206
Note: See TracChangeset for help on using the changeset viewer.