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

Function fromMyBitForm

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

Source from the content-addressed store, hash-verified

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

Callers 1

checkBitsFunction · 0.70

Calls 2

DivMethod · 0.80
SubMethod · 0.45

Tested by

no test coverage detected