Opened 12 years ago

Closed 12 years ago

#2103 closed defect (fixed)

code generation bug involving tuples and integers

Reported by: Christoph Höger Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Code Generation Version: trunk
Keywords: Cc:

Description

There is a side-effect on the generation of comments when integers and tuples are used.

model Bug

  function g
    input Real x;
    output Real y=x, z=x;
  end g;

  Real x,y;
  Integer i(start=1);
  equation
  (x,y) = g(time*i);

  /* only to prevent optimization of i */
  when sample(1,1) then
    i=pre(i) + 1;
  end when;
end Bug;

Change History (4)

comment:1 by Martin Sjölund, 12 years ago

Component: BackendCode Generation
Owner: changed from probably noone to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r15461

comment:3 by Christoph Höger, 12 years ago

Resolution: fixed
Status: closedreopened

The fix seems to have changed too much. I get a missing ref tod gesv_ now, because the generated Makefile lacks the -llapack flag.

comment:4 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: reopenedclosed

It's an unrelated problem that has been fixed in r15464.

Note: See TracTickets for help on using tickets.