Skip to content

Commit

Permalink
Fixed bug with overwriting of equations. Changed testcases Shadow1.mo…
Browse files Browse the repository at this point in the history
… and Overwriting2.mo.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2486 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Aug 27, 2006
1 parent 23925b9 commit 5be5cb9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Compiler/Inst.mo
Expand Up @@ -6614,14 +6614,6 @@ algorithm
then
(cache,dae,env,csets_1,ci_state_1);

/* The following rule handles shadowed (replaced) equations. If an equation has a simple name
on the left-hand side, and that component has an equation modifier, this equation is discarded.*/
case (cache,env,mods,pre,csets,ci_state,SCode.EQ_EQUALS(exp1 = Absyn.CREF(componentReg = Absyn.CREF_IDENT(name = n,subscripts = {})),exp2 = e2),initial_,impl)
equation
(cache,Types.VAR(_,_,_,_,Types.EQBOUND(_,_,_)),_,_,_) = Lookup.lookupIdentLocal(cache,env, n);
ci_state_1 = instEquationCommonCiTrans(ci_state, initial_);
then
(cache,{},env,csets,ci_state_1);
/* equality equations e1 = e2 */
case (cache,env,mods,pre,csets,ci_state,SCode.EQ_EQUALS(exp1 = e1,exp2 = e2),initial_,impl)
local Option<Interactive.InteractiveSymbolTable> c1,c2;
Expand Down

0 comments on commit 5be5cb9

Please sign in to comment.