[Avida-SVN] r3496 - development/tests/analyze_printphenotypes/config

blwalker at myxo.css.msu.edu blwalker at myxo.css.msu.edu
Thu Oct 15 09:45:17 PDT 2009


Author: blwalker
Date: 2009-10-15 12:45:17 -0400 (Thu, 15 Oct 2009)
New Revision: 3496

Added:
   development/tests/analyze_printphenotypes/config/default-classic.org
   development/tests/analyze_printphenotypes/config/instset-classic.cfg
Removed:
   development/tests/analyze_printphenotypes/config/default-heads.org
   development/tests/analyze_printphenotypes/config/instset-heads.cfg
Modified:
   development/tests/analyze_printphenotypes/config/avida.cfg
Log:

Returning analyze_printphenotypes to using "classic" vs. "heads" configuration files, because instset-heads.cfg is NOT simply a rename of instset-classic.cfg as implied by the commit log for r3433.  The order of the instructions is also different, which of course deeply breaks any organisms evolved under instset-classic.cfg.


Modified: development/tests/analyze_printphenotypes/config/avida.cfg
===================================================================
--- development/tests/analyze_printphenotypes/config/avida.cfg	2009-10-15 16:26:21 UTC (rev 3495)
+++ development/tests/analyze_printphenotypes/config/avida.cfg	2009-10-15 16:45:17 UTC (rev 3496)
@@ -29,11 +29,11 @@
 ### CONFIG_FILE_GROUP ###
 # Configuration Files
 DATA_DIR data                       # Directory in which config files are found
-INST_SET instset-heads.cfg          # File containing instruction set
+INST_SET instset-classic.cfg          # File containing instruction set
 EVENT_FILE events.cfg               # File containing list of events during run
 ANALYZE_FILE analyze.cfg            # File used for analysis mode
 ENVIRONMENT_FILE environment.cfg    # File that describes the environment
-START_CREATURE default-heads.org  # Organism to seed the soup
+START_CREATURE default-classic.org  # Organism to seed the soup
 
 ### REPRODUCTION_GROUP ###
 # Birth and Death

Added: development/tests/analyze_printphenotypes/config/default-classic.org
===================================================================
--- development/tests/analyze_printphenotypes/config/default-classic.org	                        (rev 0)
+++ development/tests/analyze_printphenotypes/config/default-classic.org	2009-10-15 16:45:17 UTC (rev 3496)
@@ -0,0 +1,53 @@
+# ---  Setup  ---
+h-alloc    # Allocate space for child
+h-search   # Locate the end of the organism
+nop-C      #
+nop-A      #
+mov-head   # Place write-head at beginning of offspring.
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+nop-C      #
+
+# ---  Copy Loop  ---
+h-search   # Mark the beginning of the copy loop
+h-copy     # Do the copy
+if-label   # If we're done copying....
+nop-C      #
+nop-A      #
+h-divide   #    ...divide!
+mov-head   # Otherwise, loop back to the beginning of the copy loop.
+nop-A      # End label.
+nop-B      #

Deleted: development/tests/analyze_printphenotypes/config/default-heads.org
===================================================================
--- development/tests/analyze_printphenotypes/config/default-heads.org	2009-10-15 16:26:21 UTC (rev 3495)
+++ development/tests/analyze_printphenotypes/config/default-heads.org	2009-10-15 16:45:17 UTC (rev 3496)
@@ -1,100 +0,0 @@
-h-alloc    # Allocate space for child
-h-search   # Locate the end of the organism
-nop-C      #
-nop-A      #
-mov-head   # Place write-head at beginning of offspring.
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-nop-C      #
-h-search   # Mark the beginning of the copy loop
-h-copy     # Do the copy
-if-label   # If we're done copying....
-nop-C      #
-nop-A      #
-h-divide   #    ...divide!
-mov-head   # Otherwise, loop back to the beginning of the copy loop.
-nop-A      # End label.
-nop-B      #

Added: development/tests/analyze_printphenotypes/config/instset-classic.cfg
===================================================================
--- development/tests/analyze_printphenotypes/config/instset-classic.cfg	                        (rev 0)
+++ development/tests/analyze_printphenotypes/config/instset-classic.cfg	2009-10-15 16:45:17 UTC (rev 3496)
@@ -0,0 +1,52 @@
+nop-A      1   # a
+nop-B      1   # b
+nop-C      1   # c
+if-n-equ   1   # d
+if-less    1   # e
+pop        1   # f
+push       1   # g
+swap-stk   1   # h
+swap       1   # i 
+shift-r    1   # j
+shift-l    1   # k
+inc        1   # l
+dec        1   # m
+add        1   # n
+sub        1   # o
+nand       1   # p
+IO         1   # q   Puts current contents of register and gets new.
+h-alloc    1   # r   Allocate as much memory as organism can use.
+h-divide   1   # s   Cuts off everything between the read and write heads
+h-copy     1   # t   Combine h-read and h-write
+h-search   1   # u   Search for matching template, set flow head & return info
+               #   #   if no template, move flow-head here, set size&offset=0.
+mov-head   1   # v   Move ?IP? head to flow control.
+jmp-head   1   # w   Move ?IP? head by fixed amount in CX.  Set old pos in CX.
+get-head   1   # x   Get position of specified head in CX.
+if-label   1   # y
+set-flow   1   # z   Move flow-head to address in ?CX? 
+
+#adv-head   1
+#jump-f     1
+#jump-b     1
+#call       1
+#return     1
+#if-bit-1   1
+#get        1
+#put        1
+#h-read     1
+#h-write    1
+#set-head   1
+#search-f   1
+#search-b   1
+
+
+# Works on multiple nops:  pop  push  inc  dec  IO  adv-head 
+
+# What if we add a new head.  Search will return the location of something,
+# and put the new head there.  Then set-head will move another head to that
+# point.  In the case of the copy loop, it only needs to be set once and
+# this will speed up the code quite a bit!
+
+# Search with no template returns current position (abs line number) in
+# genome.
\ No newline at end of file

Deleted: development/tests/analyze_printphenotypes/config/instset-heads.cfg
===================================================================
--- development/tests/analyze_printphenotypes/config/instset-heads.cfg	2009-10-15 16:26:21 UTC (rev 3495)
+++ development/tests/analyze_printphenotypes/config/instset-heads.cfg	2009-10-15 16:45:17 UTC (rev 3496)
@@ -1,37 +0,0 @@
-# No-ops
-nop-A      1   # a
-nop-B      1   # b
-nop-C      1   # c
-
-# Flow control operations
-if-n-equ   1   # d
-if-less    1   # e
-if-label   1   # f
-mov-head   1   # g
-jmp-head   1   # h
-get-head   1   # i
-set-flow   1   # j
-
-# Single Argument Math
-shift-r    1   # k
-shift-l    1   # l
-inc        1   # m
-dec        1   # n
-push       1   # o
-pop        1   # p
-swap-stk   1   # q
-swap       1   # r 
-
-# Double Argument Math
-add        1   # s
-sub        1   # t
-nand       1   # u
-
-# Biological Operations
-h-copy     1   # v
-h-alloc    1   # w
-h-divide   1   # x
-
-# I/O and Sensory
-IO         1   # y
-h-search   1   # z




More information about the Avida-cvs mailing list