Akirayasha/cisb-bench-llvm-O2
CISB-Bench LLVM-O2: Assembly Transpilation Benchmark Overview This dataset is derived from the Compiler-Introduced Security Bugs (CISB) benchmark, compiled with LLVM/Clang-17 at -O2 optimization level. It supports bidirectional assembly transpilation (x86-64 ↔ AArch64) and is designed for evaluating transpilation models on security-critical code. Dataset Structure Column Description task_name Full task identifier including flag (e.g.… See the full description on the dataset page: https://huggingface.co/datasets/Akirayasha/cisb-bench-llvm-O2.
CISB-Bench LLVM-O2: Assembly Transpilation Benchmark
Overview
This dataset is derived from the Compiler-Introduced Security Bugs (CISB) benchmark, compiled with LLVM/Clang-17 at -O2 optimization level. It supports bidirectional assembly transpilation (x86-64 ↔ AArch64) and is designed for evaluating transpilation models on security-critical code.
Dataset Structure
Statistics
- Total records: 72
- Safe records: 36
- Unsafe records: 36
Transpilation Directions
This dataset supports both directions:
- x86 → ARM: Use
x86_64as input,aarch64_linuxas target - ARM → x86: Use
aarch64_linuxas input,x86_64as target
Security Oracle
The test harness returns exit codes:
0→ SAFE (security check preserved)1→ UNSAFE (security check eliminated)2→ HARNESS_ERROR (transpilation error)>128→ CRASH
The run_output column captures what the harness printed while producing that verdict for the safe/unsafe x86_64 build, so it can be fed to a model as additional context.
Usage
from datasets import load_dataset
ds = load_dataset("Akirayasha/cisb-bench-llvm-O2", split="test")
# Filter by flag
safe = ds.filter(lambda x: x["flag"] == "safe")
unsafe = ds.filter(lambda x: x["flag"] == "unsafe")
# x86 -> ARM transpilation
record = ds[0]
x86_input = record["x86_64"]
arm_target = record["aarch64_linux"]
# ARM -> x86 transpilation
arm_input = record["aarch64_linux"]
x86_target = record["x86_64"]
# Rebuild/rerun the verifier against a candidate
harness = record["test_c"]
failure = record["run_output"]Citation
Part of the CISC-to-RISC transpilation research project at MBZUAI.
