MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / toVariableIds

Method toVariableIds

ecgo/builder/builder.go:175–185  ·  view source on GitHub ↗

toVariables return frontend.Variable corresponding to inputs and the total size of the linear expressions

(in ...frontend.Variable)

Source from the content-addressed store, hash-verified

173
174// toVariables return frontend.Variable corresponding to inputs and the total size of the linear expressions
175func (builder *builder) toVariableIds(in ...frontend.Variable) []int {
176 r := make([]int, 0, len(in))
177 e := func(i frontend.Variable) {
178 v := builder.toVariableId(i)
179 r = append(r, v)
180 }
181 for i := 0; i < len(in); i++ {
182 e(in[i])
183 }
184 return r
185}
186
187// NewHint initializes internal variables whose value will be evaluated using
188// the provided hint function at run time from the inputs. Inputs must be either

Callers 12

AddMethod · 0.95
SubMethod · 0.95
MulMethod · 0.95
DivUncheckedMethod · 0.95
DivMethod · 0.95
XorMethod · 0.95
OrMethod · 0.95
AndMethod · 0.95
CommitMethod · 0.95
callSubCircuitMethod · 0.95
newHintForIdMethod · 0.95
CustomGateMethod · 0.95

Calls 1

toVariableIdMethod · 0.95

Tested by

no test coverage detected