You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6bf932f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CLAUDE.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,40 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## What is Map2Check
6
6
7
-
Map2Check is a bug-hunting tool that automatically generates and checks safety properties in C programs. It tracks memory pointers and variable assignments to check user-specified assertions, overflow, and pointer safety. It uses LLVM 6.0, LibFuzzer, and KLEE for test case generation, and Crab-LLVM for computing inductive invariants.
7
+
Map2Check is a bug-hunting tool that automatically generates and checks safety properties in C programs. It tracks memory pointers and variable assignments to check user-specified assertions, overflow, and pointer safety. It uses LLVM 16, LibFuzzer, and KLEE 3.1 for test case generation.
8
8
9
9
## Build System
10
10
11
-
The project uses **CMake 3.20+ + Ninja** and **C++17**. The intended build environment is the Docker image defined in [Dockerfile](Dockerfile).
11
+
The project uses **CMake 3.20+ + Ninja** and **C++17**. The intended build environment is the Docker image defined in [Dockerfile.dev](Dockerfile.dev) (Ubuntu 22.04 + LLVM 16 + KLEE 3.1).
12
12
13
-
### Build the release (inside Docker)
13
+
> The root [Dockerfile](Dockerfile) and the `make-release.sh` / `make-unit-test.sh` scripts are leftovers from the LLVM 6.0 era (hardcoded to `/llvm/release/llvm600`) and do not work with the current toolchain — use the steps below instead.
### Manual CMake build (if LLVM 6.0 is locally available)
33
+
`Dockerfile.dev` already builds and installs KLEE 3.1 (to `/opt/klee`) and provides LibFuzzer via LLVM 16's compiler-rt — do **not** pass `-DSKIP_KLEE=ON` or `-DSKIP_LIB_FUZZER=ON` unless you deliberately want a build without KLEE/LibFuzzer support.
34
+
35
+
### Manual CMake build (if LLVM 16 is locally available, e.g. via apt.llvm.org)
./make-regression-test.sh s <xml_path># SV-COMP set
59
74
```
60
75
76
+
### CI
77
+
78
+
GitHub Actions ([.github/workflows/ci.yml](.github/workflows/ci.yml)) runs on every push/PR against LLVM 16: build + unit tests, static analysis (`clang-tidy`, `cppcheck`), and ASan/UBSan sanitizer tests. [docker-publish.yml](.github/workflows/docker-publish.yml) publishes the `Dockerfile.dev` image on push to `develop`.
79
+
61
80
## Code Style
62
81
63
82
-**C++ code**: Google C++ style — run `clang-format` with the [.clang-format](.clang-format) file.
@@ -88,7 +107,7 @@ To add a new analysis: extend `callPass()` in [caller.cpp](modules/frontend/call
0 commit comments