Opened 7 years ago

Closed 7 years ago

#4841 closed defect (fixed)

inline function with bindings for outputs

Reported by: Vitalij Ruge Owned by: Vitalij Ruge
Priority: high Milestone: 1.13.0
Component: *unknown* Version:
Keywords: Cc:

Description

following model will transform wrong if inline is active.

function foo
  input Real a;
  input Real b;
  input Real c;
  output Real d;
  output Real e1 = a;
protected
  Real f = a + e1;
  Real g = f + e1;
algorithm
  d := b+c + g*f;
  annotation(Inline = true);
end foo;


model foobar
  Real a,b,c,d,e;
equation
  (d, e) =  foo(a,b,c);
  a = time;
  b = 2*time;
  c = 3*time;
end foobar;

maybe because function equation f = ...; g = ...; depend on e1.

Change History (3)

comment:1 by Vitalij Ruge, 7 years ago

Milestone: Future1.13.0
Owner: changed from somebody to Vitalij Ruge
Status: newassigned

comment:2 by Vitalij Ruge, 7 years ago

fixed with PR2314

comment:3 by Vitalij Ruge, 7 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.