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

Function fromMyBitForm

ecgo/examples/keccak_full/main.go:94–96  ·  view source on GitHub ↗
(api frontend.API, x frontend.Variable)

Source from the content-addressed store, hash-verified

92}
93
94func fromMyBitForm(api frontend.API, x frontend.Variable) frontend.Variable {
95 return api.Div(api.Sub(1, x), 2)
96}
97
98func toMyBitForm(x int) int {
99 if x == 0 {

Callers 1

checkBitsFunction · 0.70

Calls 2

DivMethod · 0.80
SubMethod · 0.45

Tested by

no test coverage detected