Bug 610

Summary: Sending doubles function-parameter by reference gives unspecified behavior
Product: UPPAAL Reporter: Peter Gjøl Jensen <pgj>
Component: EngineAssignee: Marius Mikučionis <marius>
Status: ASSIGNED ---    
Severity: normal CC: adavid
Priority: P5    
Version: 4.1.20   
Hardware: PC   
OS: Linux   
Attachments: Model provocating the error

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.