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

Bug 610 - Sending doubles function-parameter by reference gives unspecified behavior
Summary: Sending doubles function-parameter by reference gives unspecified behavior
Status: ASSIGNED
Alias: None
Product: UPPAAL
Classification: Unclassified
Component: Engine (show other bugs)
Version: 4.1.20
Hardware: PC Linux
: P5 normal
Assignee: Marius Mikučionis
URL:
Depends on:
Blocks:
 
Reported: 2016-09-27 00:30 CEST by Peter Gjøl Jensen
Modified: 2017-02-20 10:09 CET (History)
1 user (show)

See Also:
Architecture:


Attachments
Model provocating the error (1.11 KB, text/xml)
2016-09-27 00:30 CEST, Peter Gjøl Jensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gjøl Jensen 2016-09-27 00:30:58 CEST
Created attachment 289 [details]
Model provocating the error

When a function is declared as

void func(double& x) ...

the arguments do not seem to be handled correctly by the engine. As far as I can tell, the uppaaal-byte-code around handling double-references is broken.
Comment 1 Marius Mikučionis 2017-02-20 10:09:49 CET
On the first check the variable is not reset the target invariant is violated.
However the second time the variable is reset and the same check succeeds.
Probably has something to do with compilation process.