#2704 closed defect (fixed)
impure functions are not constant
Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: |
Description
Remove simple equations does not handle impure functions correctly:
Example 1:
model test Boolean a = initial(); end test;
Example 2:
model test2 impure function impureTest output Integer x; external "C" x = _impureTest() annotation(Include = "#include <stdlib.h> int _impureTest() { static int d=0; return (double)++d; }"); end impureTest; Real r = impureTest(); end test2;
Change History (3)
comment:1 by , 11 years ago
Status: | new → accepted |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
This is fixed in r20907.