gotools/go/callgraph/callgraph_test.go

const httpEx

var once

var prog

var main

func example(t testing.TB) (*ssa.Program, *ssa.Function) {}

var stats

func logStats(b *testing.B, cnd bool, name string, cg *callgraph.Graph, main *ssa.Function) {}

func BenchmarkStatic(b *testing.B) {}

func BenchmarkCHA(b *testing.B) {}

func BenchmarkRTA(b *testing.B) {}

func BenchmarkVTA(b *testing.B) {}

func BenchmarkVTA2(b *testing.B) {}

func BenchmarkVTA3(b *testing.B) {}

func BenchmarkVTAAlt(b *testing.B) {}

func BenchmarkVTAAlt2(b *testing.B) {}

// reaches computes the transitive closure of functions forward reachable
// via calls in cg starting from `sources`. If refs is true, include
// functions referred to in an instruction.
func reaches(source *ssa.Function, cg *callgraph.Graph, refs bool) map[*ssa.Function]bool {}