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

Function newInferContext

analysis/infercontext.go:28–30  ·  view source on GitHub ↗

NewInferContextNoDecl returns an inferContext for a predicate that does not have a declaration.

(bc *BoundsAnalyzer, decl *ast.Decl, clause *ast.Clause)

Source from the content-addressed store, hash-verified

26
27// NewInferContextNoDecl returns an inferContext for a predicate that does not have a declaration.
28func newInferContext(bc *BoundsAnalyzer, decl *ast.Decl, clause *ast.Clause) *inferContext {
29 return &inferContext{bc: bc, pred: &decl.DeclaredAtom.Predicate, decl: decl, modes: decl.Modes(), clause: clause}
30}
31
32// inferState is state of inference while iterating over premises.
33// The relation type is represented implicitly in usedVars and varTpe.

Callers 1

checkClausesMethod · 0.85

Calls 1

ModesMethod · 0.80

Tested by

no test coverage detected