(customGateType uint64)
| 23 | } |
| 24 | |
| 25 | func GetFunc(customGateType uint64) solver.Hint { |
| 26 | if h, ok := customGateHintFunc[customGateType]; ok { |
| 27 | return h.hintFunc |
| 28 | } |
| 29 | panic(fmt.Sprintf("custom gate %d not registered", customGateType)) |
| 30 | } |
| 31 | |
| 32 | func GetCost(customGateType uint64) int { |
| 33 | if h, ok := customGateHintFunc[customGateType]; ok { |
no outgoing calls
no test coverage detected