Opened 9 years ago

Last modified 9 years ago

#3370 new defect

Add tail recursion optimization for return statements

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: Future
Component: Frontend Version: trunk
Keywords: Cc:

Description (last modified by Martin Sjölund)

The following is currently not recognize by the tail recursion optimization:

function f
  /// ...
algorithm
  if cond then
    out := f(...); // tail recursive call
    return;
  end if;
end f;

Change History (1)

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

Description: modified (diff)
Note: See TracTickets for help on using tickets.