﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1172	Problem with for loop in algorithm (from MathCore)	Karin Gustafsson	Karin Gustafsson	"See the attached model, it is a version of the Dining Philosophers Problem.


It is ok to validate the model but not to build it. The problem is in the class Mutex. It has a for loop in the algortihm section. If doing instantiateModel(Philosoper.DiningTable?) some of the code looks like:

{{{
for i in {1,2,3,4,5} loop

when mutex.request[mutex.i] then

mutex.ok[mutex.i] := true;
}}}

The index should be just ""i"" and not ""mutex.i""."	defect	closed	blocker				fixed		Karin Gustafsson Adrian Pop
