strange behaviour

From: Thorsten Winterer <t.winterer_at_icparc.ic.ac.uk>
Date: Fri 06 Jul 2001 10:25:45 AM GMT
Message-ID: <3B459229.F5978A66@icparc.ic.ac.uk>
Hi,

here is another bug, but I don't know whether it is in Eclipse or in my
program. This bug shows up in versions 5.2 and 5.1.3. (I haven't tested
other versions)
The problem is in the program cycle.ecl, in the predicate add_edges/2,
line 242 in the code. It's in the second loop of three nested loops. If
the parameter FleetGraph (a term with the functor graph) is handled at
this point (e.g., by printing it), everything works fine. Otherwise, in
the second iteration of the second loop the term becomes a list and the
program aborts.
This can be tested by calling
?- init_cycle_graphs('28052001',[lgw],P,G).
Compare the last arguments of the predicate calls at step 4152 (with
line 242) and step 4150 (without line 242).
I have attached all relevant files to this mail.

Cheers,

Thorsten

--
"Pluralitas non est ponenda sine neccesitate"
                                 William of Ockham
-----------------------------------------------------------

Thorsten Winterer, IC-Parc,      Email: t.winterer@ic.ac.uk
William Penney Laboratory,
Imperial College,
London SW7 2AZ, UK.






Received on Fri Jul 06 11:25:50 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:08 PM GMT GMT