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

Function EvalProgram

engine/seminaivebottomup.go:138–141  ·  view source on GitHub ↗

EvalProgram evaluates a given program on the given facts, modifying the fact store in the process. Deprecated: use EvalStratifiedProgramWithStats instead.

(programInfo *analysis.ProgramInfo, store factstore.FactStore, options ...EvalOption)

Source from the content-addressed store, hash-verified

136// EvalProgram evaluates a given program on the given facts, modifying the fact store in the process.
137// Deprecated: use EvalStratifiedProgramWithStats instead.
138func EvalProgram(programInfo *analysis.ProgramInfo, store factstore.FactStore, options ...EvalOption) error {
139 _, err := EvalProgramWithStats(programInfo, store, options...)
140 return err
141}
142
143func newEvalOptions(options ...EvalOption) EvalOptions {
144 ops := EvalOptions{}

Callers 2

runEvaluateFunction · 0.92

Calls 1

EvalProgramWithStatsFunction · 0.85

Tested by 2

runEvaluateFunction · 0.74