[m-rev.] for review: deep profiling bug fix

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Jul 23 18:55:32 AEST 2001


On 18-Jul-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> Fix a bug that caused the deep profiler to abort when processing data files
> created by executables containing procedures with empty bodies.
> 
> compiler/deep_profiling.m:
> 	Ensure that not only the disjunctions surrounding callcode, exitcode,
> 	failcode etc are impure, but the whole goal containing them as well.
> 	In the absence of an impure marker on the goal representing the
> 	procedure body, simplify was replacing the entire body with true
> 	in cases where the original body did not generate any outputs and was
> 	det. This is the bug that bit David Overton.
> 
> 	Fix another instance of the same problem by ensuring that all goals in
> 	the transformed body of the procedure that have had impure profiling
> 	code inserted into them are also marked impure.

That looks fine.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list