Switch to add/remove instruction mutation

This commit is contained in:
Ian Gulliver
2021-11-22 20:33:22 -08:00
parent 8f712688b9
commit a5e44a7e07
8 changed files with 52 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ import "math/rand"
import "github.com/firestuff/subcoding/vm"
func randOperand(prog *vm.Program, t vm.OperandNumericType) *vm.Operand {
func RandOperand(prog *vm.Program, t vm.OperandNumericType) *vm.Operand {
for {
op := &vm.Operand{
Type: randOperandType(),