6 releases
Uses new Rust 2024
| new 0.3.0 | Aug 6, 2026 |
|---|---|
| 0.1.4 | Jan 24, 2025 |
| 0.1.3 | Sep 30, 2024 |
| 0.1.0 | Aug 30, 2024 |
#536 in Caching
Used in 4 crates
1.5MB
37K
SLoC
libLISA is a library for automated discovery and analysis of CPU instructions. This crate is the core library that can be used to load and manipulate already-analyzed datasets. Several separate crates are available for enumeration, synthesis and architecture support:
liblisa-encfor enumeration and encoding analysisliblisa-synthfor synthesisliblisa-x64-observerfor observing instruction execution on x86-64
Loading semantics from disk
Encodings support serde, and can be serialized and deserialized by any library that supports serde. By default, libLISA uses JSON. You can import these semantics as follows:
use std::fs::File;
use std::io::BufReader;
use std::path::PathBuf;
use liblisa::encoding::Encoding;
use liblisa::semantics::default::computation::SynthesizedComputation;
use liblisa::arch::x64::X64Arch;
let file = File::open("semantics.json").unwrap();
let reader = BufReader::new(file);
let semantics: Vec<Encoding<X64Arch, SynthesizedComputation>> =
serde_json::from_reader(reader).unwrap();
See encoding::Encoding for how these semantics can be used.
Features
z3: adds thez3crate as a dependency, and enables the Z3 implementation forsmt::SmtSolver.x64-undef: enables thearch::x64::undefnamespace, which uses the XED disassembler library to provide definitions for undefined behavior.
Dependencies
~7–11MB
~214K SLoC