Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5582 closed defect (fixed)

The annotation InlineAfterIndexReduction is not included in the shown structural annotations

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 1.14.0
Component: New Instantiation Version:
Keywords: Cc: Lennart Ochel, Karim Adbdelhak

Description

If one tries to flatten this model with -d=newInst --showStructuralAnnotations

model M
  function f 
    input Real x;
    output Real y;
  algorithm
    y := sin(x) - 3;
  annotation(InlineAfterIndexReduction=true);
  end f;
  
  Real a = time;
  Real b = f(a);
end M;

the annotation is not shown, as it should.

Change History (6)

comment:1 by Francesco Casella, 5 years ago

Cc: Lennart Ochel Karim Adbdelhak added

@lochel, @Karim, I couldn't figure out your latest comment in ticket #5170 until I understood I was missing something...

comment:2 by Karim Adbdelhak, 5 years ago

I updated the module, these are currently the structural annotations:

  keep := match mod.ident
    case "Evaluate" then true;
    case "Inline" then true;
    case "LateInline" then true;
    case "derivative" then true;
    case "inverse" then true;
    case "smoothOrder" then true;
    case "InlineAfterIndexReduction" then true;
    else false;
  end match;

Anything else i should add before pushing?

comment:3 by Francesco Casella, 5 years ago

I would add GenerateEvents, which clearly has a structural impact on the code generation.

comment:4 by Karim Adbdelhak, 5 years ago

Should be fixed with PR324

comment:5 by Karim Adbdelhak, 5 years ago

Resolution: fixed
Status: newclosed

comment:6 by Francesco Casella, 5 years ago

Works fine with the latest nightly, thanks!

Note: See TracTickets for help on using tickets.