Dependencies
brew install csmith--include-root /path/to/csmith/includename=commandclang=clang
gcc=gcc-15
/opt/toolchain/bin/cc -O2csmith csmith_fuzz_0 seed=209 mismatch reference=clang compiler=candidate reference-checksum=6a43d8cf compiler-checksum=6a409c84moon build --target native
moon -C csmith_wrapper build --target nativecsmith_wrapper/_build/native/debug/build/cmd/csmith_wrapper/csmith_wrapper.exe \
--reference "clang=clang" \
--compiler "candidate=/path/to/c-compiler" \
--compiler "system-clang=clang" \
--include-root /path/to/csmith/include \
--counterexample-dir counterexamples \
--seed 7 \
--count 20seed_for_case = first_seed + case_index * 101moon -C csmith_wrapper run cmd/csmith_wrapper --target native -- \
--reference "clang=clang" \
--compiler "candidate=/path/to/c-compiler" \
--include-root /path/to/csmith/include \
--counterexample-dir counterexamples \
--seed 7 \
--count 20moon -C csmith_wrapper install ./cmd/csmith_wrappercsmith_wrapper \
--reference "clang=clang" \
--compiler "candidate=/path/to/c-compiler" \
--include-root /path/to/csmith/include \
--counterexample-dir counterexamples \
--seed 7 \
--count 20csmith_wrapper \
--reference "clang=clang" \
--compiler "candidate=/path/to/c-compiler" \
--include-root /path/to/csmith/include \
--no-save-counterexamples \
--continue-on-error \
--seed 7 \
--count 20<counterexample-dir>/csmith_seed_<seed>_<stage>.c$TMPDIR/csmith_wrapper_recordscandidate=/path/to/c-compiler
case_c=counterexamples/csmith_seed_209_compiler_0_candidate_runtime_mismatch.c
"$candidate" -w -o /tmp/candidate_bug "$case_c"
/tmp/candidate_bug
record_dir=${TMPDIR:-/tmp}/csmith_wrapper_records/csmith_fuzz_0_209
clang -w -o /tmp/clang_bug "$record_dir/reference_clang_preprocessed.i"
/tmp/clang_bugchecksum = <hex>Dependencies