ConstantValue returns always returns (nil, false) now, since the Golang frontend doesn't know the values of variables.
(v frontend.Variable)
| 110 | |
| 111 | // ConstantValue returns always returns (nil, false) now, since the Golang frontend doesn't know the values of variables. |
| 112 | func (builder *builder) ConstantValue(v frontend.Variable) (*big.Int, bool) { |
| 113 | coeff, ok := builder.constantValue(builder.toVariableId(v)) |
| 114 | if !ok { |
| 115 | return nil, false |
| 116 | } |
| 117 | return builder.field.ToBigInt(coeff), true |
| 118 | } |
| 119 | |
| 120 | func (builder *builder) constantValue(x int) (constraint.Element, bool) { |
| 121 | i := builder.varConstId[x] |
nothing calls this directly
no test coverage detected