csmith-project/csmith
Csmith, a random generator of C programs observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 70
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5601
- days_rel: n/a
- days_push: 185
- n_releases_24m: 0
Adoption not part of the score
1231 stars · 170 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Csmith is a random generator of C programs whose primary purpose is finding compiler bugs via differential testing. It emits C programs free of undefined behaviors along with statistics about each generated program.
Use cases
- find bugs in gcc or clang with random C programs
- differential testing of C compilers
- generate a test suite of valid C programs automatically
- stress-test compiler optimizations with random inputs
- generate undefined-behavior-free C code for fuzzing experiments
When to choose
- you need many random but well-defined C programs for compiler testing
- you want to compare outputs of multiple C compilers to find miscompilations
- you need a corpus of C programs and don't want to write them by hand
When to avoid
- you need random programs in languages other than C
- you need guaranteed termination - generated programs may contain infinite loops
- you need a general-purpose fuzzer for arbitrary binaries rather than C source generation
Facets
cli-tool · maturity maintenance
testing fuzzing data-generation compiler testing compilers developer-tools programming-languages windows cli cross-platform random-program-generation differential-testing compiler-bug-finding c-programs undefined-behavior-free linux macos
2 sources
- readme: https://github.com/csmith-project/csmith · fetched 2026-08-28 · 0160b29dd35e
- homepage: http://embed.cs.utah.edu/csmith/ · fetched 2026-08-29 · ac8745a165ee
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| csmith-project/csmith | main | 64 |
For agents
markdown · JSON · MCP: product_card(name="csmith-project/csmith")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem