Known limits of the analysis and practical guidance. Part of the analysis documentation.
- Prefer a source-backed analysis or
trace-mergeover an IPC fallback model when the framework's sources are available; use--modelsfor implementations that genuinely cannot be indexed. See Function models and the source-backed workflow. - Supply
--include,--depand--compile-commandswhen declarations, receiver types or build flags are missing. See Dependency roots and Compilation databases. - Use
--explorefor configuration-dependent code and read its limits before relying on the extra facts. - Treat
trace inspect sliceas an adviser query, not a race report; it shows evidence under a bounded walk. See Value slice. - Enable
--sequencingonly when call order matters; it adds a sidecar graph and export cost. See Call sequencing. - Filter logging and boilerplate macros with
--ignore-macro/--ignore-loggingso they do not create call sites and temporaries. See Noise macro filtering. - Re-measure the pinned corpora with
scripts/eval_check.pywhen a change moves counts; keep measurements indocs/EVAL_REPORT.md.
- All paths merged; no null-check refinement.
- Call order (
--sequencing) is control-flow reachability, not path feasibility; see Call sequencing, "Limits". freedoes not invalidate pointers.FieldSummarymay connect unrelated struct instances.- Lazily created field cells carry no slot guard (see Variable cells): their recorded type is not reliable enough to guard by.
- Multiple vtable/ops targets reported for one indirect site (may-analysis).
- Casts of struct instances to another ops type (
svc = (IOps *)&inst): the whole instance flows into the target-typed slot, so field loads on it resolve against the outer layout plus its type-matched summary — sibling fields at colliding positional indexes can cross into such loads (observed as ~2% of Dispatch-site edges on HDF test drivers). - Signature-guarded propagation drops cross-signature fn values (see
Signature-guarded function-value propagation): calls through cells whose
declared fn-pointer arity mismatches the stored function are not reported.
Sites whose only reachable "targets" arrived via such wrong-type flow now
report none (e.g. stub-side
super->Xcalls behind an opaque IPC boundary in HDF — their baseline targets were cross-object pollution, not real resolutions). - IPC / process boundaries are only partly modeled: OpenHarmony proxy
operations connect to conventionally named stub handlers through synthetic
ipccall edges, including reconstruction from separately indexed repositories; see OpenHarmony IPC bridges. Opcode dispatch, parcel flow andHdfRemoteServiceObtain-style registrations remain unmodeled. memcpy/memmove: modeled through function models; unmodeled copier names remain invisible.- Macro-generated identifiers may be skipped when classified as macro-like callees.
- Function pointer resolution is name/linkage based.
dlsym/GetProcAddress: a string constant in the name argument (literal or a variable that receives one) is looked up among indexed functions of that exact name; missing symbols stay unresolved.dlopenthat only runsREGISTERstatic constructors is the C3 factory path, not modeled here. The DSO handle is not used to restrict candidates.sprintfinto a name buffer is unmodeled.
Whole-program HDF-scale runs (~600 TUs, ~11k functions) target roughly:
| Phase | Typical |
|---|---|
| Index | ~25s (parallel preprocess + parse) |
| Analyze | ~0.3s |
| Export (minimal) | ~0.1s |
Key optimizations: solver adjacency index, loc_nodes reverse index, worklist dedup, lazy abstract locations, minimal SQLite export, skipped redundant header indexing.