Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
256d77a
chore: remove paper artifacts (moved to separate repository)
GuilhermeBn198 Jul 17, 2026
5e4559d
feat(wasm): add root-level WASM test scripts
GuilhermeBn198 Jul 17, 2026
bda6b3d
docs: add example programs with README reference
GuilhermeBn198 Jul 17, 2026
0cf6827
chore: remove redundant root-level WASM test scripts
GuilhermeBn198 Jul 17, 2026
56e4ae6
docs: add CASTLE-Benchmark integration design spec
GuilhermeBn198 Jul 17, 2026
f0d1412
docs: add CASTLE-Benchmark integration implementation plan
GuilhermeBn198 Jul 17, 2026
92683cb
chore: add CASTLE-Benchmark git submodule
GuilhermeBn198 Jul 17, 2026
72aacc3
test: add CASTLE regression tests (5 micro-benchmarks)
GuilhermeBn198 Jul 17, 2026
b1f5855
ci: add CASTLE regression job
GuilhermeBn198 Jul 17, 2026
69398ab
feat(castle): add evaluation script for all 250 CASTLE benchmarks
GuilhermeBn198 Jul 17, 2026
6404064
fix(castle): add line-match classification and edge case guards
GuilhermeBn198 Jul 17, 2026
5e1d5ba
fix(castle): replace bc with python3 for elapsed time calculation
GuilhermeBn198 Jul 17, 2026
55da626
feat(castle): add BenchExec YML/SET/XML infrastructure for CASTLE C250
GuilhermeBn198 Jul 17, 2026
e88f96c
fix(castle): increase per-test timeout to 300s, add .gitignore for bu…
GuilhermeBn198 Jul 19, 2026
6e8af81
fix(gitignore): remove tests/castle/results/ from .gitignore
GuilhermeBn198 Jul 19, 2026
523842c
fix(castle): swap out-of-scope regression cases for memtrack-detectab…
GuilhermeBn198 Aug 12, 2026
ea2b4fc
docs: add explanatory video to README
GuilhermeBn198 Aug 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 60 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,66 @@ jobs:
'

# ===========================================================
# Job 5: Dynamic Analysis — Valgrind memcheck (OpenSSF)
# Job 5: CASTLE Benchmark Regression Tests
# ===========================================================
# Verifies Map2Check against 5 CASTLE micro-benchmarks
# (CWE-415, 416, 476, 787) — memory safety regression suite.
castle-regression:
name: CASTLE Regression
runs-on: ubuntu-22.04
timeout-minutes: 20
needs: [build-and-test]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo docker image prune -a -f || true

- name: Pull map2check-dev image
run: docker pull ghcr.io/hbgit/map2check-dev:latest

- name: Build + install Map2Check in container
run: |
docker run --rm \
-u root \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
-e CC=/usr/bin/clang-16 \
-e CXX=/usr/bin/clang++-16 \
ghcr.io/hbgit/map2check-dev:latest bash -c '
rm -rf build_castle_ci install_castle_ci
mkdir -p build_castle_ci && cd build_castle_ci
cmake .. -G Ninja \
-DLLVM_DIR=/usr/lib/llvm-16/lib/cmake/llvm \
-DENABLE_TEST=ON \
-DMAP2CHECK_DYNAMIC_LINK=ON \
-DCMAKE_INSTALL_PREFIX=/workspace/install_castle_ci
ninja
ninja install
mkdir -p /workspace/install_castle_ci/lib/klee
ln -sf /opt/klee/lib/klee/runtime /workspace/install_castle_ci/lib/klee/runtime
ln -sf /usr/lib/llvm-16/lib/clang /workspace/install_castle_ci/lib/clang
'

- name: Run CASTLE regression tests
run: |
docker run --rm \
-u root \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
-e MAP2CHECK_PATH=/workspace/install_castle_ci \
ghcr.io/hbgit/map2check-dev:latest bash -c '
bash tests/integration/test_castle_regression.sh
'

# ===========================================================
# Job 6: Dynamic Analysis — Valgrind memcheck (OpenSSF)
# ===========================================================
# Build ISOLADO e SEM sanitizers: a shadow memory do ASan/UBSan
# conflita com a VM do Valgrind. Debug + DWARF-4 para stacks
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "CASTLE-Benchmark"]
path = tests/castle/CASTLE-Benchmark
url = https://github.com/CASTLE-Benchmark/CASTLE-Benchmark
255 changes: 0 additions & 255 deletions .opencode/skills/map2check-sbseg2026/SKILL.md

This file was deleted.

Loading
Loading