[Icfp04-discuss] Method for determining the best ant

Laurent Desnogues laurent.desnogues at wanadoo.fr
Thu Jun 10 00:39:37 EDT 2004


Not really related, but I was wondering what would occur to
statically invalid ants.

If you use a C generator, depending on its output, invalid
ant code may result in possibly not compilable C code.
Example:

{
   ...
   state 999:
     if (can_move)
       goto state_1000;
     else
       goto state_9999;
   ...
}

where state_9999 does not exist.

But in an interpreter (or a generator dumping different
C code, for instance arrays of pre-decoded instructions),
that could very well never fail if state_999 is never
reached.

Just wondering :-)


		Laurent



More information about the Icfp04-discuss mailing list