diff --git a/include/emp/hardware/VirtualCPU.hpp b/include/emp/hardware/VirtualCPU.hpp index d648bc45ed..e514fab198 100644 --- a/include/emp/hardware/VirtualCPU.hpp +++ b/include/emp/hardware/VirtualCPU.hpp @@ -135,9 +135,9 @@ namespace emp{ genome_t genome_working; ///< Working copy of genome that can mutate, resize, and change //////// BOOKKEEPING size_t active_stack_idx = 0; ///< Index of CPU's active stack - emp::vector copied_inst_id_vec; ///< Vector of instructions that have been - ///< copied - size_t num_insts_executed = 0; + emp::vector copied_inst_id_vec; /**< Vector of instructions that have been + copied */ + size_t num_insts_executed = 0; ///< Number of instructions that have been executed //////// CONSTRUCTORS / DESTRUCTOR @@ -277,6 +277,10 @@ namespace emp{ genome_working.erase(genome_working.begin() + idx); nops_need_curated = true; } + /// Return the number of instruction that have been copied + size_t GetNumInstsCopied() const{ + return copied_inst_id_vec.size(); + }