Skip to content

Commit

Permalink
Do not evaluate functions marked __OpenModelica_Impure=true
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24226 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 27, 2015
1 parent 1a3b70f commit 32df748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Static.mo
Expand Up @@ -7506,7 +7506,7 @@ algorithm
(args_2, slots2) := addDefaultArgs(slots, info);
// DO NOT CHECK IF ALL SLOTS ARE FILLED!
true := List.fold(slots2, slotAnd, true);
callExp := DAE.CALL(fn_1,args_2,DAE.CALL_ATTR(tp,tuple_,builtin,isImpure,isFunctionPointer,inlineType,DAE.NO_TAIL()));
callExp := DAE.CALL(fn_1,args_2,DAE.CALL_ATTR(tp,tuple_,builtin,isImpure or (not isPure),isFunctionPointer,inlineType,DAE.NO_TAIL()));
//ExpressionDump.dumpExpWithTitle("function elabCallArgs3: ", callExp);

// create a replacement for input variables -> their binding
Expand Down

0 comments on commit 32df748

Please sign in to comment.