Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
96
func
fromMyBitForm(api frontend.API, x frontend.Variable) frontend.Variable {
97
return
api.Div(api.Sub(1, x), 2)
98
}
99
100
func
toMyBitForm(x int) int {
101
if
x == 0 {
Callers
1
checkBits
Function · 0.70
Calls
2
Div
Method · 0.80
Sub
Method · 0.45
Tested by
no test coverage detected