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

Method constantValue

ecgo/builder/builder.go:120–126  ·  view source on GitHub ↗
(x int)

Source from the content-addressed store, hash-verified

118}
119
120func (builder *builder) constantValue(x int) (constraint.Element, bool) {
121 i := builder.varConstId[x]
122 if i == 0 {
123 return constraint.Element{}, false
124 }
125 return builder.constValues[i], true
126}
127
128func (builder *builder) addVarId() int {
129 builder.maxVar += 1

Callers 14

addMethod · 0.95
NegMethod · 0.95
MulMethod · 0.95
DivUncheckedMethod · 0.95
DivMethod · 0.95
XorMethod · 0.95
OrMethod · 0.95
AndMethod · 0.95
SelectMethod · 0.95
IsZeroMethod · 0.95
ConstantValueMethod · 0.95
AssertIsEqualMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected