This issue tracker is closed. Please visit UPPAAL issue tracker at Github instead.

Bug 233 - Check on presence of return statement is too strong
Summary: Check on presence of return statement is too strong
Status: RESOLVED FIXED
Alias: None
Product: UPPAAL
Classification: Unclassified
Component: libutap (show other bugs)
Version: 3.6 Alpha 2
Hardware: All All
: P1 minor
Assignee: Gerd Behrmann
URL:
Depends on:
Blocks:
 
Reported: 2005-12-02 19:54 CET by Gerd Behrmann
Modified: 2006-01-17 15:32 CET (History)
0 users

See Also:
Architecture:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd Behrmann 2005-12-02 19:54:40 CET
The check on the existence of a return statement at the end of functions with a non-void return type is 
too strong. E.g.

int f()
{
  if (i<2) 
    return 1; 
  else 
    return 2;
}

is a correct function definition. Yet UPPAAL complains about the last statement (which is the if-
statement) not being a return statement.
Comment 1 Gerd Behrmann 2006-01-17 15:32:33 CET
Fixed on the trunk (rev. 1451).