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

Function getFrozenIx

src/simplicity/typeInference.c:413–415  ·  view source on GitHub ↗

Given the representative of an equivalence class of unification variables that already has a reference to a frozen version * of its bound type, return that reference. * * Precondition: NULL == var->parent; * isFrozen(var) */

Source from the content-addressed store, hash-verified

411 * isFrozen(var)
412 */
413static size_t getFrozenIx(unification_var* var) {
414 return var->isBound ? var->bound.frozen_ix : 0;
415}
416
417/* Set '*result' to the index within 'type_dag' that contains an instance type bound by 'var' where free variables are instantiated
418 * at the ONE type, recursively adding new nodes to 'type_dag' as necessary.

Callers 1

freezeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected