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

Function CASE_A

src/simplicity/dag.h:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static inline size_t CASE_A(const dag_node* dag, const type* type_dag, size_t i) {
170 simplicity_debug_assert(CASE == dag[i].tag || ASSERTL == dag[i].tag || ASSERTR == dag[i].tag);
171 simplicity_debug_assert(PRODUCT == type_dag[dag[i].sourceType].kind);
172 simplicity_debug_assert(SUM == type_dag[type_dag[dag[i].sourceType].typeArg[0]].kind);
173 return type_dag[type_dag[dag[i].sourceType].typeArg[0]].typeArg[0];
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);

Callers 2

runTCOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected