# ACL2 x86 ISA model (x86isa)

> An executable model of x86-64 machine code in the ACL2 theorem prover, from UT Austin. It can run programs, including a lightly modified Linux, and is used to prove properties of x86 machine code.

- Kind: formal semantics
- Models: x86-64 (Follows the Intel Software Developer's Manual, cross-checked with AMD manuals; no single SDM revision is named (opcode-table comments cite the May 2018 edition).)
- Fragment: IA-32e mode (64-bit and compatibility sub-modes) and 32-bit protected mode. Two views: an application-level view with flat linear memory and models of a few system calls, and a system-level view with paging, segmentation and partial models of system instructions. Many general-purpose and SSE instructions are modeled; x87 arithmetic, most AVX and all AVX-512 instructions are not. The generated implemented-opcodes list in the manual gives the exact set.
- Written in: ACL2
- Available in: ACL2
- Stage: 0 (Mechanized)
- Licence: open-source, BSD-3-Clause
- Validation: According to the manual, an earlier version was validated by co-simulation against real processors using tools internal to Centaur Technology; that setup "was lost to history". Current open tools compare the model with real hardware: a KVM-based tool used while getting Linux to boot (described as rough) and the asmtest framework, which runs small programs on the model and on hardware and compares results. We found no published pass or fail counts.
- Latest release: ACL2 8.7 (community books) (2026-03-23) https://github.com/acl2/acl2/tree/8.7

## Stage

**Stage 0: Mechanized.**

| Stage | Criterion | Met | Evidence / note |
|---|---|---|---|
| 0 | Machine-checked or machine-readable definition | yes | [evidence](https://github.com/acl2/acl2/tree/master/books/projects/x86isa/machine) |
| 0 | Fragment and version are stated | yes | [evidence](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/doc.lisp) Modes, views and the implemented-opcode list are documented. No single Intel SDM revision is named. |
| 1 | Can be executed or tested | yes | [evidence](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/linux/doc.lisp) The model executes programs and runs a slightly modified Linux. |
| 1 | Published results against conformance tests or real implementations | unknown | [evidence](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/tools/execution/asmtest/asmtest.lisp) Open differential-testing tools against real hardware exist (asmtest, KVM-based checks), and earlier papers describe co-simulation, but we found no published, reproducible results for the current model. |
| 2 | Adopted by the language or ISA owner, or covers the full current version and tracks new ones | no | Adopted by the owner: no; full coverage: no; tracks new versions: no. We found no statement from Intel or AMD adopting or endorsing the model. (Intel Corporation holds copyright on some 2024 files.) Many opcodes are unimplemented, including x87 arithmetic and AVX-512. No stated policy for following new SDM revisions. |

Missing for Stage 1: Published results against conformance tests or real implementations.

## ISA-level features

| Feature | Coverage |
|---|---|
| User-level instructions | Partial — Most general-purpose instructions are modeled, with documented gaps (for example INT, INTO and some far control transfers). By our count of the opcode table (machine/inst-listing.lisp, commit 3729299), 705 of 1,104 legacy-encoded entries have a semantic function. ([source](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/machine/catalogue-data.lisp)) |
| Floating-point instructions | Partial — SSE/SSE2-style scalar and packed floating point is modeled. x87 floating-point arithmetic is not (0 of 129 x87 opcode entries implemented, our count). ([source](https://github.com/acl2/acl2/tree/master/books/projects/x86isa/machine/instructions/fp)) |
| Vector / SIMD instructions | Partial — Many MMX/SSE integer and floating-point instructions are modeled. By our count, 97 of 745 VEX-encoded (AVX/AVX2) entries and none of the 1,374 EVEX-encoded (AVX-512) entries are implemented. ([source](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/machine/inst-listing.lisp)) |
| Privileged mode | Partial — The system-level view models supervisor state, paging-related faults and partial system instructions (for example LLDT, LGDT). The manual's to-do list says most exceptions other than page faults are still unhandled. ([source](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/doc.lisp)) |
| Virtual memory | Partial — IA-32e paging and segmentation are modeled in the system-level view (52-bit physical addresses). We found no statement about other paging modes. ([source](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/doc.lisp)) |
| Concurrency memory model | Unknown — We found no multiprocessor or x86-TSO support in the documentation. |

## Sources
- [x86isa manual source (introduction, model-validation, to-do)](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/doc.lisp)
- [x86isa opcode table](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/machine/inst-listing.lisp)
- [KVM-based validation tool documentation](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/virtualization/top.lisp)
- [asmtest differential testing framework](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/tools/execution/asmtest/asmtest.lisp)
- [Running Linux on x86isa](https://github.com/acl2/acl2/blob/master/books/projects/x86isa/linux/doc.lisp)
- [x86isa commits (latest a3ad69d, 2026-11-07)](https://github.com/acl2/acl2/commits/master/books/projects/x86isa)

---
Last checked 2026-11-26. Data: [JSON](/semantics/acl2-x86isa.json) · Page: [HTML](/semantics/acl2-x86isa/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
