[m-rev.] diff: fix accumulator test case failure

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Jul 7 16:30:47 AEST 2001


On 07-Jul-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> Estimated hours taken: 0.25
> 
> compiler/hlds_out.m:
> 	Don't abort if the cons_id in a unify_rhs is a pred_const.
> 
> 	Without this change tests/general/accumulator/highorder.m fails.

That is not the right fix.  It is documented in hlds_goal.m as
an invariant of the HLDS that the cons_id in a unify_rhs is never
a pred_const.  So either the invariant needs to be changed, or (IMHO
more likely) the code which produces such a unify_rhs needs to be fixed.

BTW, when did the highorder test start failing, and what options caused
it to fail?  It seems to have been working fine previously.

-- 
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