cd ~/PILOT/program
bash h_download.shRequirements:
- Must be named exactly
c_build.shand placed at the top level of the program directory (program/{program_name}/c_build.sh). - Must generate
compile_commands.json(e.g., using thebearcommand or CMake's-DCMAKE_EXPORT_COMPILE_COMMANDS=ON) - Must generate
.gcnofiles by setting appropriate compiler flags for gcov instrumentation
The following are example build scripts. You may need to adjust them based on each program's specific build requirements.
Example for coverage-instrumented builds ({program_name}/c_build.sh):
#!/bin/bash
make distclean
export CFLAGS="-fprofile-arcs -ftest-coverage"
export LDFLAGS="-lgcov --coverage -ldeflate"
export LIBS="-ldeflate"
./autogen.sh
./configure
bear -- makecd ~/PILOT/program/{program_name}
chmod +x c_build.sh
./c_build.shImportant: Replace {program_name} with the actual program name (e.g., ffmpeg-N-103440-g2f0113be3f, yara-4.1.1).