Summary: | Engine crashes when control reaches end of non-void function | ||
---|---|---|---|
Product: | UPPAAL | Reporter: | Lars T. Mikkelsen <ltm> |
Component: | Engine | Assignee: | Gerd Behrmann <behrmann> |
Status: | ASSIGNED --- | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 4.0.5 | ||
Hardware: | All | ||
OS: | All | ||
Architecture: | |||
Attachments: | return.xml |
Description
Lars T. Mikkelsen
2007-02-27 11:54:03 CET
Created attachment 146 [details]
return.xml
Confirmed. To be fair, UPPAAL does check for the presence of a return statement, but apparently there is a bug that makes it possible to fool it (as demonstrated by your model). The problem is triggered by the if-statement not having an else case. Resolved on the 4.0 branch from rev. 2982. Fix confirmed in 4.0.6. The bug is not yet fixed in other branches than 4.0. |