bugLiberty Eiffel - Bugs: bug #47905, LE generates 'unreachabel code'...

 
 

bug #47905: LE generates 'unreachabel code' for 'and-then' statements

Submitted by:  Hans Zwakenberg <hzwakenberg>
Submitted on:  Thu 12 May 2016 07:00:00 AM UTC  
 
Category:  Liberty tools Severity:  3 - Normal
Priority:  5 - Normal Status:  Confirmed
Assigned to:  None Open/Closed:  Open
Release:  bell Fixed Release:  None
Planned Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 May 2016 07:00:00 AM UTC, original submission:

Continuing my experiments with Pelles-C, I noticed that a lot of the code that it flags as 'unreachable code' is generated for Eiffel 'and then' statements, especially so when multiple of them are chained together..

Despite doing global analysis when in boost-mode, Liberty cannot or does not determine, that an 'and then' condition can never happen and generates unneeded code for it.

Just a single example of the many in the current (May 11, 2016) germ:   compile_to_c8.c, lines 1079, 1081, 1082, 1177, 1179, 1180, 1543, 1545, 1546.
As noted, Pelles-C flags many more of these (currently) 135 c-files with the same warning message.

Hans Zwakenberg <hzwakenberg>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hzwakenberg (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-31 hzwakenberg StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.4