Workspace & Crate Map

Architectura is organized as a modular Cargo workspace (edition = "2024", MSRV 1.88). A plain cargo build or cargo check operates only on default-members—the environment-independent portable crates—so checking the workspace never unexpectedly pulls LLVM or optional external tooling.

Crate Reference

Core & IR Layers

CratePurposeDefault FeaturesOptional FeaturesLicense
archsem-coreIrEmitter trait, SemProgram micro-op VM & verifier, ArchManifest, DecodeContext, ControlEffect / SemanticControl, Choice, OpaqueIntrinsic, canonical wire encoder[]serde (RON/JSON artifact loading & serialization)MIT
archsem-recordIrEmitter action-stream recorder producing validated RecordedInstruction traces[]serdeMIT
archsem-irRtlEmitter, Fragment, Function CFG discovery, OriginGraph provenance, SemanticFidelity, backward slicing, effect summaries, register & memory SSA, replay[]—MIT
archsem-simplifySelf-contained 1–512-bit known-bits, demanded-bits, and effect-aware integer simplification over archsem-ir[]—MIT
archsem-refIndependent bounded concrete reference executor (ConcreteEnvironment, ReferenceEmitter)[]arm64-guest (links archsem-arm64/farm64)MIT
archsem-symexBounded symbolic execution, concolic execution, proof obligations, and validation artifacts (backed by bitwright)[]serde, transform-checkMIT + bitwright (PolyForm-Noncommercial-1.0.0)
archsem-llvmReference LLVM 21.1 IR emitter (LlvmEmitter via llvm-sys) and SSA replay sink (host-only, publish = false)[]—MIT

Architecture Frontends

CrateTarget ArchitectureDefault FeaturesOptional FeaturesExternal Decoder / RuntimeLicense
archsem-x86x86 (16/32/64-bit)[]iced (iced-x86)iced-x86 (1.21, mvex)MIT
archsem-arm64AArch64 (A64, SIMD, SVE/SME, system)[]farm64 (fARM64)fARM64MIT
archsem-wasmWebAssembly modules & functionsEnabled (wasm)—fWASMMIT
archsem-evmEthereum Virtual Machine bytecodeEnabled (evm)—evm-disassemblerMIT
archsem-cilECMA-335 (.NET CIL) PE images & methodsEnabled (cil)—cildec, fNETMIT
archsem-luaLua 5.1–5.4 & LuaJIT bytecode chunksEnabled (lua)runtime (archsem-ref)fLUAMIT
archsem-pythonExperimental CPython 3.11.9 wordcode handler subset[]pythonSelf-contained wordcode decoderMIT

Bindings, Authoring Tooling & Verification

CrateRoleHost-only / PublishableLicense
archsem-capiC ABI (archsem.h), C++17 header (archsem.hpp), CMake target archsem::archsemNative library (publish = false); optional symex featureMIT (with symex: links bitwright under PolyForm-Noncommercial-1.0.0)
archsem-langAsem compiler library (lexer, parser, lowerer, Rust & .asemc emitter)Host-only (publish = false)MIT
archsemcAsem compiler CLI (check, build, fmt, schematic)Host-only (publish = false)MIT
archsem-lspLanguage Server Protocol server for .asem filesHost-only (publish = false)MIT
archsem-genChecked-in semantic-family generatorHost-only (publish = false)MIT
archsem-exportMachine-readable JSON exporter for semantic tables and coverage catalogsHost-only (publish = false)MIT
archsem-uops-infoOffline importer for pinned uops.info XML snapshotsHost-only (publish = false)MIT
archsem-conformanceShared cross-component conformance corpus, adversarial fixtures, and external_oracle sidecar protocolPublishable (MIT)MIT
archsem-examplesRunnable target-neutral public API examplesWorkspace examples (publish = false)MIT
archsem-benchmarksDeterministic provider-pipeline performance baselinesWorkspace bench (publish = false)MIT

[!TIP] editors/zed/asem is a wasm32-wasip2 Zed editor extension built independently by Zed's extension builder (excluded from the Cargo workspace so cargo does not descend into it automatically).

Platform & WebAssembly Portability

  • MSRV: Rust 1.88.0 (rust-version = "1.88").
  • Portable Host Platforms: Linux, macOS, and Windows.
  • WebAssembly Targets: All core portable crates (archsem-core, archsem-record, archsem-ir, archsem-simplify, archsem-symex, archsem-ref, archsem-conformance, archsem-x86, archsem-arm64) compile cleanly for both wasm32-unknown-unknown and wasm32-wasip1 (with --all-features):
cargo check --locked --target wasm32-unknown-unknown --all-targets --all-features \
  -p archsem-core -p archsem-record -p archsem-ir -p archsem-simplify \
  -p archsem-symex -p archsem-ref -p archsem-conformance -p archsem-x86 -p archsem-arm64
  • Host-Only Surfaces: archsem-llvm (requires LLVM 21.1 llvm-config on PATH), archsemc, archsem-lang, archsem-lsp, archsem-gen, archsem-export, archsem-uops-info, archsem-benchmarks, fuzzers (fuzz/), and native hardware differential tests are host-only.

Licensing Summary

ScopeLicenseNotes
Workspace default & all crates except archsem-symexMIT License (Copyright (c) 2026 valeria-org)Permissive commercial and noncommercial use
archsem-symex & archsem-capi (symex / ARCHSEM_SYMEX=ON)MIT wrapper + bitwright (PolyForm-Noncommercial-1.0.0)bitwright is free for noncommercial use; commercial use requires a license from its licensor
Formal proofs (formal/)MITPinned to Lean 4.32.0, stdlib-only