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

Function newEvalOptions

engine/seminaivebottomup.go:143–154  ·  view source on GitHub ↗
(options ...EvalOption)

Source from the content-addressed store, hash-verified

141}
142
143func newEvalOptions(options ...EvalOption) EvalOptions {
144 ops := EvalOptions{}
145 allPredicates := func(ast.PredicateSym) bool {
146 return true
147 }
148 ops.predicateAllowList = &allPredicates
149 ops.externalPredicates = make(map[ast.PredicateSym]ExternalPredicateCallback)
150 for _, o := range options {
151 o(&ops)
152 }
153 return ops
154}
155
156// EvalProgramWithStats evaluates a given program on the given facts, modifying the fact store in the process.
157// Deprecated: use EvalStratifiedProgramWithStats instead.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected