﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
239	Embedded TimeSet functions causes TOL to die	ptejedor	Víctor de Buen Remiro	"If you want to calculate timesets as ""the monday nearest Corpus Christi"", by
calculating first Corpus Christi (Succ(Easter,60) and then calling a function to
calculate a transformation over it, like in the example below, TOL enters in a
state in which it asks for 100% CPU, and it eventually dies. Here is a snippet 
of code to demonstrate it:

TimeSet LC(TimeSet t){
//////////////////////////////////////////////////////
// LC: lunes cercanos: transfiere los dias pertenecientes
//     a t entre semana al lunes mas cercano. Si el dia es 
//     sabado, domingo o lunes, no lo toca
///////////////////////////////////////////////////////
TimeSet TsSDL = WD(1) + WD(6) + WD(7); //Sabado, Domingo y Lunes
TimeSet TsMXJ = WD(2) + WD(3) + WD(4); //Martes, Miercoles y Jueves
TimeSet TsV   = WD(5);
TimeSet final= t*TsSDL + Succ(t*TsMXJ,-1,Semanal) + Succ(t*TsV,+1,Semanal)
};

TimeSet SD=WD(6)+WD(7); //Sabados y Domingos
TimeSet CC=Succ(Easter,60); //Corpus Christi
TimeSet LCCC=LC(CC); // Lunes previo al Corpus Christi
TimeSet festivos= SD + LCCC;

If you, after compiling this code try to look at the resulting timese, TOL dies
abruptly."	defect	closed	normal		TimeSetAlgebra	1.1.2	normal	fixed		
