Documentation ¶
Overview ¶
Package cover implements set operations on slices (arrays of coverage PCs).
Index ¶
- func HasDifference(cov0, cov1 Cover) bool
- func Minimize(corpus []Cover) []int
- func RestorePC(pc uint32, base uint32) uint64
- func SignalAdd(base map[uint32]struct{}, signal []uint32)
- func SignalDiff(base map[uint32]struct{}, signal []uint32) (diff []uint32)
- func SignalNew(base map[uint32]struct{}, signal []uint32) bool
- type Cover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasDifference ¶
HasDifference returns true if cov0 has some coverage that is not present in cov1. This is called on fuzzer hot path.
func Minimize ¶
Minimize returns a minimal set of inputs that give the same coverage as the full corpus.
func SignalDiff ¶
Types ¶
type Cover ¶
type Cover []uint32
func Canonicalize ¶
Canonicalize sorts and removes duplicates.
func Difference ¶
func Intersection ¶
func SymmetricDifference ¶
Click to show internal directories.
Click to hide internal directories.