Ticket #92 (accepted defect)

Opened 12 years ago

Last modified 8 years ago

backtranslation of switch nested in loop reverses order

Reported by: Utke Owned by: utke
Priority: 2 Milestone:
Component: OpenADFortTK Keywords:

Description (last modified by utke) (diff)

A simple switch statement that is the body of a loop
leads in the reversed control flow graph after backtranslation by xaif2whirl to a situation where the switch is translated into goto-label pairs and the end-switch label is placed AFTER the updated statement of the containing loop.
So, the update statement is never reached and the loops is infinite

Change History

comment:1 Changed 11 years ago by Utke

sample code in

subroutine head(x,y)

double precision, dimension(3), intent(in)
double precision, dimension(3), intent(out)
y integer i

c$openad INDEPENDENT(x)

do i=1,3
select case (i)
case (1)


case (2)


case default


end select
end do

c$openad DEPENDENT(y)

end subroutine

comment:2 Changed 8 years ago by utke

  • Status changed from Assigned to new
  • Description modified (diff)

comment:3 Changed 8 years ago by utke

  • Owner changed from Tallent to utke
  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.