MCPcopy Create free account
hub / github.com/ElementsProject/elements / CASE_B

Function CASE_B

src/simplicity/dag.h:176–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static inline size_t CASE_B(const dag_node* dag, const type* type_dag, size_t i) {
177 simplicity_debug_assert(CASE == dag[i].tag || ASSERTL == dag[i].tag || ASSERTR == dag[i].tag);
178 simplicity_debug_assert(PRODUCT == type_dag[dag[i].sourceType].kind);
179 simplicity_debug_assert(SUM == type_dag[type_dag[dag[i].sourceType].typeArg[0]].kind);
180 return type_dag[type_dag[dag[i].sourceType].typeArg[0]].typeArg[1];
181}
182
183static inline size_t CASE_C(const dag_node* dag, const type* type_dag, size_t i) {
184 simplicity_debug_assert(CASE == dag[i].tag || ASSERTL == dag[i].tag || ASSERTR == dag[i].tag);

Callers 2

runTCOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected