MCPcopy Create free account
hub / github.com/caverav/flutterdec / _parse_blutter_function_ref

Function _parse_blutter_function_ref

adapters/python/adapter_template.py:401–410  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

399 call_target_counts: Dict[int, int] = {}
400 for off in range(0, max(0, instr_len - 3), 4):
401 word = struct.unpack_from("<I", instr, off)[0]
402 pc = base_va + off
403 tgt = _decode_bl_target(pc, word)
404 if tgt is not None and base_va <= tgt < hi and (tgt - base_va) % 4 == 0:
405 call_target_counts[tgt] = call_target_counts.get(tgt, 0) + 1
406 if _is_frame_prologue(word):
407 prologues.add(base_va + off)
408
409 starts.update(prologues)
410 for tgt, count in call_target_counts.items():
411 if tgt in prologues or count >= 2:
412 starts.add(tgt)
413

Callers 1

_parse_blutter_ppFunction · 0.85

Calls 3

_normalize_library_uriFunction · 0.85
_sanitize_owner_classFunction · 0.85
_selector_from_stringFunction · 0.85

Tested by

no test coverage detected