MCPcopy
hub / github.com/google/mangle / Analyze

Function Analyze

analysis/validation.go:103–105  ·  view source on GitHub ↗

Analyze identifies the extensional and intensional predicates of a program and checks every rule.

(program []parse.SourceUnit, extraPredicates map[ast.PredicateSym]ast.Decl)

Source from the content-addressed store, hash-verified

101
102// Analyze identifies the extensional and intensional predicates of a program and checks every rule.
103func Analyze(program []parse.SourceUnit, extraPredicates map[ast.PredicateSym]ast.Decl) (*ProgramInfo, error) {
104 return AnalyzeAndCheckBounds(program, extraPredicates, NoBoundsChecking)
105}
106
107// ExtractPackages turns source units into merged source packages.
108func ExtractPackages(program []parse.SourceUnit) (map[string]*packages.Package, error) {

Callers 2

TestAnalyzeNegativeFunction · 0.85
AnalyzeOneUnitFunction · 0.85

Calls 1

AnalyzeAndCheckBoundsFunction · 0.85

Tested by 1

TestAnalyzeNegativeFunction · 0.68