heapTypeSubtype

fun heapTypeSubtype(ht1: Int, ht2: Int, ts: TypeSection?): Boolean

Check if heap type ht1 is a subtype of heap type ht2. Heap types are represented as typeIdx values (negative for abstract, non-negative for concrete).