Add CBMC target platform support#1201
Open
tob-joe wants to merge 2 commits into
Open
Conversation
Add explicit CBMC target platform selection for the proof infrastructure, including i386 Linux support with an i686 preprocessor and matching CBMC target-model flags. Add target compiler shims for goto-instrument, a target ABI canary proof, and the solver/proof configuration tweaks needed by the 32-bit ML-DSA suite. Do not expose riscv32 as a CBMC target because this CBMC toolchain does not support that architecture model. Verification: git diff --check; python3 -B -m py_compile scripts/tests proofs/cbmc/run-cbmc-proofs.py; ./scripts/tests cbmc --help target list; canary dry-runs for i386-linux, x86_64-linux, aarch64-linux, riscv64-linux, and ppc64le-linux; nix eval --raw .#devShells.aarch64-linux.cbmc32.drvPath. Signed-off-by: Joe Doyle <joseph.doyle@trailofbits.com> Co-authored-by: Codex <codex@openai.com>
Add CBMC workflow inputs for selecting a target platform, proof subset, single-step execution, timeout, report mode, and Nix shell. Use those inputs to run the cbmc_target_model canary across every supported explicit CBMC target in the cbmc32 shell, while leaving the existing full-suite CBMC jobs unchanged. Also format flake.nix with nixpkgs-fmt and add the SPDX/copyright headers required by lint to the target compiler shims. Verification: - nix develop .#ci -c lint - python3 -B -m py_compile scripts/tests proofs/cbmc/run-cbmc-proofs.py - ./scripts/tests cbmc --help - cbmc_target_model passed locally for i386-linux, x86_64-linux, aarch64-linux, riscv64-linux, and ppc64le-linux under .#cbmc32 Signed-off-by: Joe Doyle <joseph.doyle@trailofbits.com> Co-authored-by: Codex <codex@openai.com>
Contributor
CBMC Results (ML-DSA-65, REDUCE-RAM)
Full Results (206 proofs)
|
Contributor
CBMC Results (ML-DSA-87, REDUCE-RAM)
Full Results (206 proofs)
|
Contributor
CBMC Results (ML-DSA-44, REDUCE-RAM)
Full Results (206 proofs)
|
Contributor
CBMC Results (ML-DSA-65)
Full Results (206 proofs)
|
Contributor
CBMC Results (ML-DSA-44)
Full Results (206 proofs)
|
Contributor
CBMC Results (ML-DSA-87)
Full Results (206 proofs)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
i386-linux,x86_64-linux,aarch64-linux,riscv64-linux, andppc64le-linuxcbmc32Nix shell with the matching target compilersgoto-ccandgoto-instrumentsize_t,long, anduint64_twidthscbmc32shellVerification
nix develop .#ci -c lintgit diff --checkpython3 -B -m py_compile scripts/tests proofs/cbmc/run-cbmc-proofs.py./scripts/tests cbmc --help | rg -- '--cbmc-target|i386-linux|x86_64-linux|aarch64-linux|riscv64-linux|ppc64le-linux|native|ilp32'cbmc_target_modelpassed locally fori386-linux,x86_64-linux,aarch64-linux,riscv64-linux, andppc64le-linuxunder.#cbmc32nix eval --raw .#devShells.aarch64-linux.cbmc32.drvPathThis work was completed by Trail of Bits as part of the Patch The Planet project in collaboration with OpenAI. The issue was identified primarily by the Codex coding agent, and manually reviewed before submission.