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

Bug 233

Summary: Check on presence of return statement is too strong
Product: UPPAAL Reporter: Gerd Behrmann <behrmann>
Component: libutapAssignee: Gerd Behrmann <behrmann>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P1    
Version: 3.6 Alpha 2   
Hardware: All   
OS: All   
Architecture:

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).