Summary: | side-effect-free function detection is too constraining | ||
---|---|---|---|
Product: | UPPAAL | Reporter: | Marius Mikučionis <marius> |
Component: | libutap | Assignee: | Gerd Behrmann <behrmann> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 4.0.1 | ||
Hardware: | PC | ||
OS: | All | ||
Architecture: |
Description
Marius Mikučionis
2006-07-12 16:51:31 CEST
This is strictly speaking not a bug in UPPAAL, but a problem in the language. The problem is with the array parameter only; it is not a reference to a constant array of integers, but a reference to an array of constant integers. Therefore the type checker does not realise that the argument cannot be modified by the function. I will try to make a workaround for this. Fixed on the 4.0 branch from rev. 2429. Fixed on the trunk from rev. 2853. |