csmith

generator of random C programs

Install

All systems
curl cmd.cat/csmith.sh
Debian Debian
apt-get install csmith
Ubuntu
apt-get install csmith
image/svg+xml Kali Linux
apt-get install csmith
Fedora
dnf install csmith
Windows (WSL2)
sudo apt-get update sudo apt-get install csmith
OS X
brew install csmith
Raspbian
apt-get install csmith

csmith

generator of random C programs

Csmith is a tool that can generate random C programs that statically and dynamically conform to the C99 standard. Thus, it is useful for stress-testing compilers, static analyzers, and other tools that process C code.