﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3829	Memory allocation tracking produces weird statistics	Henning Kiel	Lennart Ochel	"Take this example. At the corresponding line no memory is allocated.
(Log file is from Compilation phase of compiler. SimCodeUtil.mo was translated)

Absyn.mo:
{{{
5274: public function isDerCref
5275:   input Exp exp;
5276:   output Boolean b;
5277: algorithm
5278:   b := match exp
5279:     case CALL(CREF_IDENT(""der"",{}),FUNCTIONARGS({CREF()},{})) then true;
5280:     else false;
5281:   end match;
5282: end isDerCref;
}}}

Absyn.c:
{{{

        case 1: {
          
          /* Pattern matching succeeded */
#line 5280 ""/Users/henning/src/OpenModelica/OMCompiler/Compiler/FrontEnd/Absyn.mo""
          mmc_set_current_pos(""[/Users/henning/src/OpenModelica/OMCompiler/Compiler/FrontEnd/Absyn.mo:5280:5-5281:3]"");
#line 5280 ""/Users/henning/src/OpenModelica/OMCompiler/Compiler/FrontEnd/Absyn.mo""
          tmp1 = 0;
#line 7157 OMC_FILE
          tmp5 = 1;
          break;
        }

}}}

omc-memory.txt:
{{{
5412416: [/Users/henning/src/OpenModelica/OMCompiler/Compiler/FrontEnd/Absyn.mo:5280:5-5281:3]
}}}
"	defect	closed	high		Code Generation		worksforme		Martin Sjölund
