asmslicer
asmslicer is the LOCI static-analysis service. It slices ELF binaries (embedded firmware and executables) into:
- ASM basic blocks and linear execution segments, including CFG info.
- Callgraph between functions.
- Symbol and variable-access information.
and additionally provides binary diffing, worst-case stack-depth estimation, ROM/RAM memory-usage reports, and cross-artifact symbol dependency resolution.
Documentation
Full documentation lives in docs/ — start with the overview.
| 1. Overview and scope | What the service does; scope boundary vs. the TDMP trace pipeline |
| 2. Architecture | Processing pipeline, disassembly engines, data flow |
| 3. CLI reference | Subcommands slice, diff, stack-depth, memmap, deps; exit codes |
| 4. Output formats | Normative schemas of all CSV/DOT/JSON artifacts |
| 5. Analyses | Methods, assumptions, guarantees, blind spots |
| 6. Platform support | aarch64 / Cortex-M / TriCore support matrix |
| 7. Deployment and operations | Docker image, env vars, security posture |
| 8. Dependencies | Third-party inventory and licenses |
| 9. Quality assurance | Test suites and golden-data regression evidence |
| 10. Limitations and determinism | Soundness limits, reproducibility statement |
| 11. Release and versioning | CI/CD, image tagging, provenance |
How do I get set up?
- asmslicer uses uv for Python project and dependency management; install uv first.
External dependencies
The following system tools are required for full functionality:
binutils— providesc++filtfor C++ symbol demanglingllvm-18— providesllvm-ifs-18for interface stub generationrustfilt— for Rust symbol demangling
On Debian/Ubuntu:
sudo apt-get update && sudo apt-get install binutils rustfilt
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
For CUDA binary analysis (optional):
# Requires NVIDIA CUDA toolkit
sudo apt-get install cuda-cuxxfilt-13-0 cuda-cuobjdump-13-0 cuda-nvdisasm-13-0
- Then configure the venv using uv:
uv venv
source .venv/bin/activate
uv sync
- Once the venv is set up you can run the service CLI locally:
loci-service-asmslicer --help
loci-service-asmslicer slice path/to/app.elf ./out
- The Docker container image can also be built in the standard way:
docker build -t loci-platform/loci-service-static-analysis .
Contribution guidelines
- The project uses the
mainbranch for active development. - Changes are merged by creating a pull request targeting
main. - Merging to
mainautomatically triggers a build pipeline which deploys the Docker container to AWS ECR with thelatesttag. - Creating an annotated tag with an
x.y.zversion number triggers a pipeline build which deploys the Docker container to AWS ECR with thex.y.ztag. See docs/11-versioning.md.
Who do I talk to?
- Repo owner or admin.
Release files for loci-service-asmslicer 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| loci_service_asmslicer-1.1.2-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| loci_service_asmslicer-1.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_x86_64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ x86-64 | Details |
| loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details |
Total release size: 32.4 MB
Release files / loci_service_asmslicer-1.1.2-cp312-cp312-win_amd64.whl
| Download URL | loci_service_asmslicer-1.1.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6bed271963fcafa1a6daaffccfa696f7a6f237093660bf09f1befc50214fdabd
|
|
BLAKE2b-256 checksum How to use checksums |
de844220db929903563131f3f8f70f7004a20505f12400e34b0c1acca11a6341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.15
|
Release files / loci_service_asmslicer-1.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loci_service_asmslicer-1.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.1 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9b44d263291c1a8732f5d21cae60eee309b27d7089de4f782971550273bd17b7
|
|
BLAKE2b-256 checksum How to use checksums |
c5fb84ce88bd3ecabdbb1c048d5f5dfe2d2d53be9f110830e0dff3d0a7cea391
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_x86_64.whl
| Download URL | loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed9fe9e7f76b40fad9bfc5861e1f0a1535709532f7127a0a8d843483edbd008a
|
|
BLAKE2b-256 checksum How to use checksums |
22a7c75be76f0297f6a438676ec61263174c3ee97769d4db0248e6fe21487825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | loci_service_asmslicer-1.1.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8284265aa959e2d4be9a7df9fdc3bb317a8cc2ca2172734429159d8b0d927e53
|
|
BLAKE2b-256 checksum How to use checksums |
0ce927551531a56ccb9da24d0d63412841782f997cbf92385e2325590fdf1929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|