sealmap-extract
The language-neutral half of a sealmap language adapter. A language adapter parses source and walks function bodies into a raw flow; everything after that is shared here, so every language gets flows, labels, ids and confidences by the same rules:
| Module | Owns |
|---|---|
raw |
the raw flow IR (RawStep, RawCall, Callee, Recv) and walk-time shapers |
lower |
flow normalisation: raw steps plus a call resolver → a model Flow |
confidence |
the confidence lattice, the external-call policy, call-edge aggregation |
labels |
label rules: token spacing, clipping limits, call/condition/closure labels |
fingerprint |
per-symbol sig_hash / body_hash: BLAKE3 over a language-neutral, comment- and whitespace-free token stream |
ids |
the sym: symbol-id builder |
isolate |
per-file collection on big stacks with a panic guard (feature parallel: rayon) |
It has no parser dependency; a language adapter brings its own.
use ;
use ;
use ;
let call = ;
let raw = vec!;
let app = module_id;
let flow = lower_flow
.unwrap;
let targets: = flow.calls.map.collect;
assert_eq!;
Licence
Licensed under either of Apache License, Version 2.0 or MIT licence, at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 licence, shall be dual licensed as above, without any additional terms or conditions.