Safe Haskell | None |
---|
- evaluate :: Program -> [State] -> Distance -> Program -> Double
- defaultOps :: Distr Instruction
- defaultMutations :: Mutation Program
Documentation
evaluate :: Program -> [State] -> Distance -> Program -> DoubleSource
Given a specification program and some inputs, evaluate a program against the specification for both performance and correctness.
defaultOps :: Distr InstructionSource
The default distribution of instructions. For now, we do not support any sort of jumps. All the other possible instructions along with constant numbers and unused slots are equally likely. The numeric value of constants is currently a uniform distribution over 18-bit words.
defaultMutations :: Mutation ProgramSource
The default mutations to try. For now, this will either change an instruction or swap two instructions in the program, with equal probability.