preconditions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormattedReport

func FormattedReport(res AnalysisResult) (string, bool)

FormattedReport writes res to a string and returns true if the analysis has findings.

Types

type AnalysisReqs

type AnalysisReqs struct {
	// Tag is the tag to analyze, ignored if non-empty.
	Tag string
}

AnalysisReqs specifies requirements for the analysis that are not in the config.

type AnalysisResult

type AnalysisResult struct {
	NumSpecs      int
	UncheckedLocs map[string][]token.Position
}

An AnalysisResult of the condition checking analysis returns the list of location where unchecked calls occur.

func Analyze

func Analyze(state *ptr.State, reqs AnalysisReqs) (AnalysisResult, error)

Analyze runs the analysis on the program wrapped in the pointer state.

Jump to

Keyboard shortcuts

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