0
Vote

Another bug in optimization

description

Expression
 
def A = unfold(100,100,100,(i,j,k)=>(i - 55.5)j(k-55.5))
length(A,1)
 
causes output:
 
Compile complete (0:0:0.026000)
Object reference not set to an instance of an object.
 
Stack Trace:    at Faml.Optimization.ExpressionOptimizer.Optimize() in E:\BS\Microsoft Lab\Faml\Faml Sources\Faml.Compiler\Optimization\ExpressionOptimizer.cs:line 51
   at Faml.Compiler.FamlProgram.MakeGlobalOptimization() in E:\BS\Microsoft Lab\Faml\Faml Sources\Faml.Compiler\Frontend\FamlProgram.cs:line 169
   at Faml.Compiler.FamlProgram.Evaluate() in E:\BS\Microsoft Lab\Faml\Faml Sources\Faml.Compiler\Frontend\FamlProgram.cs:line 117
   at VisualFaml.Form1.Eval(FamlProgram faml) in E:\BS\Microsoft Lab\Faml\Faml Sources\VisualFaml\Form1.cs:line 196

comments