toVariables return frontend.Variable corresponding to inputs and the total size of the linear expressions
(in ...frontend.Variable)
| 173 | |
| 174 | // toVariables return frontend.Variable corresponding to inputs and the total size of the linear expressions |
| 175 | func (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 |
no test coverage detected