Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceCount ¶
func SliceCount[E comparable](s []E, v E) int
Types ¶
type FlowPermutation ¶
func FlowPermutations ¶
func FlowPermutations(entryBlock *ProgBlock) []FlowPermutation
func (FlowPermutation) Copy ¶
func (fp FlowPermutation) Copy() FlowPermutation
func (FlowPermutation) Last ¶
func (fp FlowPermutation) Last() *ProgBlock
func (FlowPermutation) String ¶
func (fp FlowPermutation) String() string
type ProgBlock ¶
type ProgBlock struct { Index int // The current block of code Block asm.Instructions // The next block of we don't branch NoBranch *ProgBlock // The next block if we do branch Branch *ProgBlock }
func ProgramBlocks ¶
func ProgramBlocks(prog asm.Instructions) []*ProgBlock
Click to show internal directories.
Click to hide internal directories.