﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2704	impure functions are not constant	Lennart Ochel	Lennart Ochel	"Remove simple equations does not handle impure functions correctly:

Example 1:
{{{#!mo
model test
  Boolean a = initial();
end test;
}}}


Example 2:
{{{#!mo
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;
}}}"	defect	closed	high	1.9.1	Backend	trunk	fixed		
