No description
  • C++ 88.2%
  • Shell 5.7%
  • CMake 4.2%
  • C 1.9%
Find a file
2026-05-05 00:54:42 +02:00
models Initial release 2026-05-05 00:54:42 +02:00
src Initial release 2026-05-05 00:54:42 +02:00
test Initial release 2026-05-05 00:54:42 +02:00
third_party Initial release 2026-05-05 00:54:42 +02:00
.clang-format Initial release 2026-05-05 00:54:42 +02:00
.gitignore Initial release 2026-05-05 00:54:42 +02:00
.gitmodules Initial release 2026-05-05 00:54:42 +02:00
build.sh Initial release 2026-05-05 00:54:42 +02:00
CMakeLists.txt Initial release 2026-05-05 00:54:42 +02:00
format.sh Initial release 2026-05-05 00:54:42 +02:00
LICENSE.txt Initial release 2026-05-05 00:54:42 +02:00
README.md Initial release 2026-05-05 00:54:42 +02:00

llvm-llm-ub-resolver

A joke that I could not just stop working on Clang plugin that loads an LLM inside the compiler and asks it to fix undefined behavior in your C code. Nothing says "reliable build pipeline" like a 0.5B parameter model running in your compilation step.

Build

cmake -B build -S . -DLLVM_DIR=$(llvm-config --cmakedir)
cmake --build build -j $(nproc)

Demo

./models/download_model.sh
./test/run_demo.sh

Compiles with the plugin, generates the "fixed" file, compiles the "fixed" version, and shows a diff.