Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335794

Summary: Arthmetic If refactoring bug
Product: [Tools] PTP Reporter: Mariano Mendez <marianomendez>
Component: Photran.Refactoring EngineAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mariano Mendez CLA 2011-01-30 14:52:21 EST
Build Identifier: 20100917-0705

trying to refactor the next line of code 

      if(ifcur-2)120,60,120
   60 if(4*ip2-ip4)80,80,120
   80 if(ifact(if+1)-2)120,100,120

obtaining :

      if(ifcur-2< 0) then
          goto 120
      else if(ifcur-2 == 0) then 
          goto 60
      else 
          goto 120
      end if
      if(4*ip2-ip4< 0) then
          goto 80
      else if(4*ip2-ip4 == 0) then 
          goto 80
      else 
          goto 120
      end if
      if(ifact(if+1)-2< 0) then
          goto 120
      else if(ifact(if+1)-2 == 0) then 
          goto 100
      else 
          goto 120
      end if

loosing labels like 80 and 60


Reproducible: Always
Comment 1 Jeffrey Overbey CLA 2011-03-17 21:23:33 EDT
Thanks, Mariano.  This is fixed in HEAD.