glc

package
v0.0.0-...-d374ac5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorpusGLC

type CorpusGLC struct {
	Smashed            bool // Whether this seed has been smashed
	MutateCount        int
	Cost               float64
	MutateCost         float64 // Total cost of mutating this seed
	MutateGain         float64 // Total gain of mutating this seed
	VerifyGain         float64
	VerifyCost         float64
	MinimizeGain       float64
	MinimizeCost       float64
	MinimizeTimeSave   float64 // Time save due to minimization
	CostBeforeMinimize float64 // Cost before minimization
	MutateGainNorm     float64 // Normalized gain after Nael's
	MutateGainNormOrig float64 // Normalized gain after Nael's
	TriageGainNorm     float64 // Normalized gain after Nael's
}

type GLC

type GLC struct {
	Count     int
	TotalGain float64
	// TotalLoss  float64
	TotalCost  float64
	TotalGain2 float64
	// TotalLoss2 float64
	TotalCost2 float64
}

func (*GLC) Remove

func (glc *GLC) Remove(gain float64, cost float64)

func (*GLC) Update

func (glc *GLC) Update(gain float64, cost float64)

type MABGLC

type MABGLC struct {
	// For Scheduling
	NormalizedGenerate GLC // Normalized gain for Generate. Used for weight deciding
	NormalizedMutate   GLC // Normalized gain for Mutate. Used for weight deciding
	NormalizedTriage   GLC // Normalized gain for Triage. Used for weight deciding
	RawAll             GLC // Raw gain/cost for all Gen/Mut/Tri. Used for computing Nael's Normallization
	NaelAll            GLC // Nael-Normalized gain/cost for all Gen/Mut/Tri. Used for normalization
	// For Seed selection
	RawMutate  GLC // Raw gain/cost for mutations. Used for Nael's computation for seed selection
	NaelMutate GLC // Nael-Normalized gain/cost for mutations. Used for normalization
}

type TriageInfo

type TriageInfo struct {
	Source           int
	SourceCost       float64
	TriageGain       float64
	VerifyGain       float64
	VerifyCost       float64
	MinimizeGain     float64
	MinimizeCost     float64
	MinimizeTimeSave float64
	TriageCount      int
	TriageTotal      int
	SourceGainNorm   float64
	TriageGainNorm   float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL