Documentation ¶
Overview ¶
Package generator provides means to generate state tests for Ethereum.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateProgram ¶
GenerateProgram creates a new evm program and returns a gstMaker based on it as well as its program code.
func Probability ¶
Probability returns the probability of this strategy, given the sum of all strategies on scale 1-255.
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
type Jumptable ¶
type Jumptable struct {
// contains filtered or unexported fields
}
func NewJumptable ¶
NewJumptable creates a new Jumptable with a minimum jump distance.
func (*Jumptable) InsertJumps ¶
type Strategy ¶
type Strategy interface { // Execute executes the strategy. // adds the resulting opcodes to the program. Execute(env Environment) // Importance returns the importance of this strategy. // This is needed to calculate the probability of this strategy. // Should be on a scale of 1-100. Importance() int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.